Page 2 of 3 FirstFirst 123 LastLast
Results 21 to 40 of 41
  1. #21
    Webuser is offline Senior Member
    Join Date
    Dec 2008
    Posts
    526
    Rep Power
    0

    Question

    Quote Originally Posted by gafa View Post
    Oh, pa

    I never even thought it is such a deep problem. But yummy I am interested much :D
    As I was saying... It must be a test applet so provide us the problem piece of code plz.

  2. #22
    gafa's Avatar
    gafa is offline Senior Member
    Join Date
    Jun 2010
    Posts
    107
    Rep Power
    0

    Default

    Quote Originally Posted by Webuser View Post
    As I was saying... It must be a test applet so provide us the problem piece of code plz.
    OK... Later I'll publish the source files then :)

  3. #23
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    19

    Default

    Quote Originally Posted by Webuser View Post
    Eranga, did you succeed to download the jar as
    http://www.findata.info/chart/jars/stock1.jar

    cause I couldn't do this owing to my browser 404 :confused:
    Of course I'm able to download it, using the above link. But it's not well configured as I post the content.

  4. #24
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    19

    Default

    Quote Originally Posted by Webuser View Post
    @everybody
    Hey guys just let me know you succeed to download the class.class file cause I've got 404 only :(
    But I suppose it is a servlet... How you think?
    I can download it successfully without a problem, and also I've extracted the content and check. I would say that I found few class files which are named in a nuts way, like a.class, b.class, c.class......

  5. #25
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    19

  6. #26
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    16,585
    Rep Power
    23

    Default

    I've down loaded all the jar files and created a html file that will execute it. I changed the code= to be: code="ru.fmv.stock.ChartApplet"
    I guess some browsers don't expect the .class extension. They must append .class to what is given on the code= attribute
    The applet will load and executes but tries to connect to its codebase via a URL like:
    C:\Temp\StockApplet\select_stock.php?key=1z2wqfsda &s=3315&r=1&sd=2008-07-31&t=1000&l=1000
    And fails there

    The data in the above is from:
    <PARAM NAME="service" VALUE="select_stock.php">
    <PARAM NAME="messageService" VALUE="select_message.php"
    <PARAM NAME="key" VALUE="1z2wqfsda">

  7. #27
    Webuser is offline Senior Member
    Join Date
    Dec 2008
    Posts
    526
    Rep Power
    0

    Question

    Quote Originally Posted by Norm View Post
    I've down loaded all the jar files and created a html file that will execute it. I changed the code= to be: code="ru.fmv.stock.ChartApplet"
    I guess some browsers don't expect the .class extension. They must append .class to what is given on the code= attribute
    The applet will load and executes but tries to connect to its codebase via a URL like:

    And fails there

    The data in the above is from:
    Emm... This one

    C:\Temp\StockApplet\select_stock.php?key=1z2wqfsda &s=3315&r=1&sd=2008-07-31&t=1000&l=1000
    Maybe it should be requested from the same host - the host the applet is from I guess not the local C:\Temp... etc
    Perhaps that is the getCodeBase() problem :confused:

    @Norm
    Did you tried to sign it?
    Last edited by Webuser; 06-27-2010 at 02:01 AM.

  8. #28
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    16,585
    Rep Power
    23

    Default

    Did you tried to sign it
    No. The problem is that the code uses getCodeBase() to build the URL.
    Say String url = getCodeBase() + "select_stock.php?";
    The URL: C:\Temp\StockApplet\select_stock.php?
    has the path on my computer: C:\Temp\StockApplet\
    followed by the file:select_stock.php that is supposed to be at the site where the applet was loaded from. In my case, the applet was loaded from my computer.

  9. #29
    Webuser is offline Senior Member
    Join Date
    Dec 2008
    Posts
    526
    Rep Power
    0

    Default

    Quote Originally Posted by Norm View Post
    No. The problem is that the code uses getCodeBase() to build the URL.
    Say String url = getCodeBase() + "select_stock.php?";
    The URL: C:\Temp\StockApplet\select_stock.php?
    has the path on my computer: C:\Temp\StockApplet\
    followed by the file:select_stock.php that is supposed to be at the site where the applet was loaded from. In my case, the applet was loaded from my computer.
    Pretty cool :)
    So to make it work locally one should use a tricky thing :rolleyes:
    Actually I thought that too... Watch my previous post.

  10. #30
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    19

    Default

    Quote Originally Posted by Norm View Post
    I've down loaded all the jar files and created a html file that will execute it. I changed the code= to be: code="ru.fmv.stock.ChartApplet"
    I guess some browsers don't expect the .class extension. They must append .class to what is given on the code= attribute
    The applet will load and executes but tries to connect to its codebase via a URL like:

    And fails there

    The data in the above is from:
    Did you able to execute ChatApplet.class? I've tried but it fails.

  11. #31
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    16,585
    Rep Power
    23

    Default

    but it fails
    What do you see in the Java Console?
    My version displays a GUI and then fails because there is no one to communicate with.
    Here's what I get in the JC:
    Java Plug-in 1.6.0_20
    Using JRE version 1.6.0_20-b02 Java HotSpot(TM) Client VM
    User home directory = C:\Documents and Settings\Owner

    ...
    file:/C:/Temp/StockApplet/select_stock.php?key=1z2wqfsda&s=3315&r=1&sd=2008-07-31&t=1000&l=1000
    e - java.lang.reflect.InvocationTargetException
    java.lang.reflect.InvocationTargetException
    at java.awt.EventQueue.invokeAndWait(Unknown Source)
    at ru.fmv.stock.ChartApplet.init(Unknown Source)
    at sun.plugin2.applet.Plugin2Manager$AppletExecutionR unnable.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    Caused by: java.lang.RuntimeException: java.lang.RuntimeException: java.io.FileNotFoundException: C:\Temp\StockApplet\select_stock.php?key=1z2wqfsda &s=3315&r=1&sd=2008-07-31&t=1000&l=1000 (The filename, directory name, or volume label syntax is incorrect)
    at ru.fmv.stock.a.run(Unknown Source)
    at java.awt.event.InvocationEvent.dispatch(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForFilter s(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForFilter(U nknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarch y(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)
    Caused by: java.lang.RuntimeException: java.io.FileNotFoundException: C:\Temp\StockApplet\select_stock.php?key=1z2wqfsda &s=3315&r=1&sd=2008-07-31&t=1000&l=1000 (The filename, directory name, or volume label syntax is incorrect)
    at ru.fmv.stock.d.b.b(Unknown Source)
    at ru.fmv.stock.d.b.a(Unknown Source)
    ... 9 more
    Caused by: java.io.FileNotFoundException: C:\Temp\StockApplet\select_stock.php?key=1z2wqfsda &s=3315&r=1&sd=2008-07-31&t=1000&l=1000 (The filename, directory name, or volume label syntax is incorrect)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(Unknown Source)
    at java.io.FileInputStream.<init>(Unknown Source)
    at sun.net.http://www.protocol.file.FileURLConn...onnect(Unknown Source)
    at sun.net.http://www.protocol.file.FileURLConn...Stream(Unknown Source)
    at java.net.URL.openStream(Unknown Source)
    at ru.fmv.stock.f.c.b(Unknown Source)
    at ru.fmv.stock.e.a.a(Unknown Source)
    ... 11 more

  12. #32
    Webuser is offline Senior Member
    Join Date
    Dec 2008
    Posts
    526
    Rep Power
    0

    Default

    The IO thing

    Quote Originally Posted by Norm
    Caused by: java.lang.RuntimeException: java.lang.RuntimeException: java.io.FileNotFoundException: C:\Temp\StockApplet\select_stock.php?key=1z2wqfsda &s=3315&r=1&sd=2008-07-31&t=1000&l=1000 (The filename, directory name, or volume label syntax is incorrect)
    I think to make it work locally its inner code should be modified from getCodeBase() to an absolute one :) just like a

    @Norm
    Did you modified this and still has the error?
    Last edited by Webuser; 06-29-2010 at 03:14 PM.
    If my answer helped you. Please click my "REP" button and add a comment
    Have a Good Java Coding :)

  13. #33
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    16,585
    Rep Power
    23

    Default

    I don't have the source for this applet. I downloaded the html and jar files to test it and see what the problem was.

  14. #34
    Webuser is offline Senior Member
    Join Date
    Dec 2008
    Posts
    526
    Rep Power
    0

    Question

    @everybody

    Strange ... I tried to run the applet http://www.findata.info/chart/select_stock1.html today but now I can see this errors list only. Different errors day after day? What you think?

    java.lang.NullPointerException
    at sun.plugin2.applet.Plugin2Manager.findAppletJDKLev el(Unknown Source)
    at sun.plugin2.applet.Plugin2Manager.createApplet(Unk nown Source)
    at sun.plugin2.applet.Plugin2Manager$AppletExecutionR unnable.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    Exception: java.lang.NullPointerException
    PS I used IE 8...

  15. #35
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    16,585
    Rep Power
    23

    Default

    I think this has been mostly a waste of time.
    We're trying to debug a third party's code without their help or knowledge.

  16. #36
    Webuser is offline Senior Member
    Join Date
    Dec 2008
    Posts
    526
    Rep Power
    0

    Thumbs up

    @everybody

    Hey, guys... Today I just remembered a thing like a the Java cache bug... So then I deleted all my TEMP files and started the applet and it runs fine :rolleyes:
    watch it


    The console shows only the outer resource ref...

    Perhaps the problem is somewhere in overloaded java cache :cool:

    @Norm and @Eranga
    Did you try to clean your Java cache before running it? Please, guys, let me know if that helps you too...
    Last edited by Webuser; 06-30-2010 at 02:09 AM.
    If my answer helped you. Please click my "REP" button and add a comment
    Have a Good Java Coding :)

  17. #37
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    16,585
    Rep Power
    23

    Default

    I just went to the site without doing anything with IE8 and it worked.
    And also it worked with Chrome without my doing anything.

    My conclusion is that the programmer fixed his site.

  18. #38
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    19

    Default

    Quote Originally Posted by Webuser View Post
    @Norm and @Eranga
    Did you try to clean your Java cache before running it? Please, guys, let me know if that helps you too...
    I'm not. I'll check with another download.

  19. #39
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    16,585
    Rep Power
    23

    Default

    No, I have not cleared Java cache.

  20. #40
    gafa's Avatar
    gafa is offline Senior Member
    Join Date
    Jun 2010
    Posts
    107
    Rep Power
    0

    Default

    Wow, it works today! I've checked...

    I must choose another host for this applet :(

    Thank you all :)

Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. Replies: 2
    Last Post: 09-29-2009, 03:33 PM
  2. Applet & sql
    By gan5016 in forum Java Applets
    Replies: 19
    Last Post: 08-27-2009, 04:28 PM
  3. more help with my applet
    By vouslavous in forum Java Applets
    Replies: 5
    Last Post: 04-25-2009, 02:05 AM
  4. Calling another applet on click of button in one applet
    By niteshwar.bhardwaj in forum Java 2D
    Replies: 1
    Last Post: 02-19-2009, 12:54 PM
  5. Replies: 4
    Last Post: 06-08-2007, 06:15 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •