<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: MC9S12NE64 OpenTCP Java Applet in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12NE64-OpenTCP-Java-Applet/m-p/134667#M2115</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;There are some RST's in your ethereal dump - are you sure your webserver can handle multiple connections?&lt;BR /&gt;Also there's an incorrect TCP checksum. This should normally not happen because an ethernet card throws away damaged packets (wrong CRC, you should not see this as an incorrect TCP checksum).&lt;BR /&gt;&lt;BR /&gt;Matthieu SIMON wrote:&lt;BR /&gt;&amp;gt; The simplest way was to create a java applet which connects to target by TCP protocol&lt;BR /&gt;&amp;gt; to send parameters but maybe there's another way, any suggestions ?&lt;BR /&gt;&lt;BR /&gt;I think the simplest way is using an HTML FORM and submit button. You need neither multiple connections nor a JVM on the browser for this.&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 Oct 2006 23:15:43 GMT</pubDate>
    <dc:creator>pittbull</dc:creator>
    <dc:date>2006-10-31T23:15:43Z</dc:date>
    <item>
      <title>MC9S12NE64 OpenTCP Java Applet</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12NE64-OpenTCP-Java-Applet/m-p/134664#M2112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;I'm trying to execute a Java applet (this one : &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fdonpichol.free.fr%2Fapplet%2F" rel="nofollow" target="_blank"&gt;http://donpichol.free.fr/applet/&lt;/A&gt;&lt;SPAN&gt; ) from an OpenTCP http server embedded in the NE64 flash memory.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can reach the "index.htm" and it's loaded well, then the java virtual machine try to load the "test.class" and it gives an error :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;--------------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;java.lang.RuntimeException: java.lang.NullPointerException&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(Unknown Source)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at java.net.HttpURLConnection.getResponseCode(Unknown Source)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at sun.applet.AppletClassLoader.getBytes(Unknown Source)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at sun.applet.AppletClassLoader.access$100(Unknown Source)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at sun.applet.AppletClassLoader$1.run(Unknown Source)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at java.security.AccessController.doPrivileged(Native Method)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at sun.applet.AppletClassLoader.findClass(Unknown Source)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at java.lang.ClassLoader.loadClass(Unknown Source)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at sun.applet.AppletClassLoader.loadClass(Unknown Source)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;at java.lang.ClassLoader.loadClass(Unknown Source)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and so on ...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;--------------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I "Save As..." the index.htm into a local directory it works well -&amp;gt; so, the datas aren't corrupted, the communication works and the "index.htm" and "test.class" are well "burned" into flash, http server GETs them, ...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does someone have ever experienced this kind of problem ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;I found a demo example from &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.softecmicro.com%2Fforum%2Fshowthread.php%3Fs%3D7df906a26a7f5f029d90f6f04e782ba1%26threadid%3D482%26goto%3Dnextoldest" rel="nofollow" target="_blank"&gt;http://www.softecmicro.com/forum/showthread.php?s=7df906a26a7f5f029d90f6f04e782ba1&amp;amp;threadid=482&amp;amp;goto=nextoldest&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;but the .jar is to big to fit in the memory with my code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does someone have a small working html file + .jar to try on my application ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using JRE 1.5.0_06&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Matthieu SIMON&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;--------------------------------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CANEL - C.E.I.D.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;14, rue Michel Luciani&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;91330 Yerres - France&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Phone +33169484216&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Fax +33169481420&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;--------------------------------------------------&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Oct 2006 17:46:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12NE64-OpenTCP-Java-Applet/m-p/134664#M2112</guid>
      <dc:creator>MatthieuSIMON</dc:creator>
      <dc:date>2006-10-30T17:46:39Z</dc:date>
    </item>
    <item>
      <title>Re: MC9S12NE64 OpenTCP Java Applet</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12NE64-OpenTCP-Java-Applet/m-p/134665#M2113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;It seems that the browser fails to load the .class files. This can happen for a number of reasons:&lt;BR /&gt;- There's a wrong "codebase" attribute in your "applet" tag.&lt;BR /&gt;- Your server doesn't handle class loaders HTTP requests properly.&lt;BR /&gt;- Your server does not allow multiple connections.&lt;BR /&gt;- ...&lt;BR /&gt;&lt;BR /&gt;As a starting point, you may trace the HTTP requests to see if they're handled and if your server delivers the required stuff to the browser.&lt;BR /&gt;&lt;BR /&gt;Hope this helps a little,&lt;BR /&gt;&lt;BR /&gt;-&amp;gt; pittbull&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Oct 2006 02:22:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12NE64-OpenTCP-Java-Applet/m-p/134665#M2113</guid>
      <dc:creator>pittbull</dc:creator>
      <dc:date>2006-10-31T02:22:09Z</dc:date>
    </item>
    <item>
      <title>Re: MC9S12NE64 OpenTCP Java Applet</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12NE64-OpenTCP-Java-Applet/m-p/134666#M2114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi pittbull,&lt;BR /&gt;&lt;BR /&gt;Thank you for helping.&lt;BR /&gt;&lt;BR /&gt;Tracing the HTTP requests and acks was the first thing I did.&lt;BR /&gt;(Ethereal's export function is bugged in version 0.99.0, so can't show you the log but have a look at the printscreen)&lt;BR /&gt;&lt;BR /&gt;&amp;gt;- There's a wrong "codebase" attribute in your "applet" tag.&lt;BR /&gt;what do you mean ? I can't control this, it's generated by java compiler, no ?&lt;BR /&gt;&lt;BR /&gt;Well, my whole app works well (ethernet to serial converter), all the work is done but I just need a way to configure the different parameters (IP, netmask, ..., baudrate, stop bits, ...)&lt;BR /&gt;The simplest way was to create a java applet which connects to target by TCP protocol to send parameters but maybe there's another way, any suggestions ?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Matthieu SIMON&lt;BR /&gt;--------------------------------------------------&lt;BR /&gt;CANEL - C.E.I.D.&lt;BR /&gt;14, rue Michel Luciani&lt;BR /&gt;91330 Yerres - France&lt;BR /&gt;Phone +33169484216&lt;BR /&gt;Fax +33169481420&lt;BR /&gt;--------------------------------------------------&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.freescale.com/files/community_files/16BITCOMM/2556_ethereal.jpg" rel="nofollow" target="_self"&gt;ethereal.jpg&lt;/A&gt;&lt;/P&gt;&lt;DIV class="message-edit-history"&gt;&lt;SPAN class="edit-author"&gt;Message Edited by t.dowe on&lt;/SPAN&gt; &lt;SPAN class="local-date"&gt;2009-10-21&lt;/SPAN&gt; &lt;SPAN class="local-time"&gt;12:18 AM&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Oct 2006 19:41:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12NE64-OpenTCP-Java-Applet/m-p/134666#M2114</guid>
      <dc:creator>MatthieuSIMON</dc:creator>
      <dc:date>2006-10-31T19:41:41Z</dc:date>
    </item>
    <item>
      <title>Re: MC9S12NE64 OpenTCP Java Applet</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12NE64-OpenTCP-Java-Applet/m-p/134667#M2115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;There are some RST's in your ethereal dump - are you sure your webserver can handle multiple connections?&lt;BR /&gt;Also there's an incorrect TCP checksum. This should normally not happen because an ethernet card throws away damaged packets (wrong CRC, you should not see this as an incorrect TCP checksum).&lt;BR /&gt;&lt;BR /&gt;Matthieu SIMON wrote:&lt;BR /&gt;&amp;gt; The simplest way was to create a java applet which connects to target by TCP protocol&lt;BR /&gt;&amp;gt; to send parameters but maybe there's another way, any suggestions ?&lt;BR /&gt;&lt;BR /&gt;I think the simplest way is using an HTML FORM and submit button. You need neither multiple connections nor a JVM on the browser for this.&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Oct 2006 23:15:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12NE64-OpenTCP-Java-Applet/m-p/134667#M2115</guid>
      <dc:creator>pittbull</dc:creator>
      <dc:date>2006-10-31T23:15:43Z</dc:date>
    </item>
    <item>
      <title>Re: MC9S12NE64 OpenTCP Java Applet</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12NE64-OpenTCP-Java-Applet/m-p/134668#M2116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Turn off Java caching. Java will use the .class file from the local machine if there is a match to the filename. If the file is the wrong one or corrupted, things will not work correctly.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Nov 2006 04:14:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12NE64-OpenTCP-Java-Applet/m-p/134668#M2116</guid>
      <dc:creator>DrSeuss</dc:creator>
      <dc:date>2006-11-14T04:14:53Z</dc:date>
    </item>
    <item>
      <title>Re: MC9S12NE64 OpenTCP Java Applet</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12NE64-OpenTCP-Java-Applet/m-p/134669#M2117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hi Matthieu SIMON&lt;BR /&gt;Which TCP/IP STACK are you using for loading webpages.&lt;BR /&gt;I have loaded OPEN TCP/IP STACK in my NE64.&lt;BR /&gt;I am not able to load index.htm file.&lt;BR /&gt;Is there any settings to be done in that code.&lt;BR /&gt;If there is any please let me know.&lt;BR /&gt;Thanks and Regards&lt;BR /&gt;Ram Mohan&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jan 2007 22:26:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12NE64-OpenTCP-Java-Applet/m-p/134669#M2117</guid>
      <dc:creator>rammohank</dc:creator>
      <dc:date>2007-01-09T22:26:26Z</dc:date>
    </item>
  </channel>
</rss>

