From: David W. <da...@de...> - 2008-04-18 22:25:48
|
Hi, I'm trying to get an applet working, but it chokes on this code: try { interp = new Interp(); Base64Cmd.load(interp); HttpCmd.load(interp); RMSCmd.load(interp); } catch (Exception e) { f.append(e.toString()); } Specifically, on the HttpCmd code, even though the whole thing is in a try/catch block. Known bug? If not, I can send code that reproduces it. Thanks, -- David N. Welton http://www.welton.it/davidw/ http://www.dedasys.com/ |
From: Vlad S. <ska...@gm...> - 2008-04-19 00:55:02
|
David I don't know if this is a bug or not. Can you send a small project preferably with source so I can reproduce the problem. If code can be made public attach it to bug created here http://sourceforge.net/tracker/?group_id=30014 Also please add more description to English word "choke". Does it work in standard java application (not applet) can you try it from webstart? Regards, Vlad PS If you are opening connection in applet to http host other then one the request comes from then you application will "choke". You will catch exception java.security.AccessControlException: access denied (java.net.SocketPermission ...) And this is not a bug but documented feature of java applets security! See http://www.microemu.org/applet.html second line after title. On 4/18/08, David Welton <da...@de...> wrote: > > Hi, > > I'm trying to get an applet working, but it chokes on this code: > > try { > interp = new Interp(); > Base64Cmd.load(interp); > HttpCmd.load(interp); > RMSCmd.load(interp); > } catch (Exception e) { > f.append(e.toString()); > } > > Specifically, on the HttpCmd code, even though the whole thing is in a > try/catch block. > > Known bug? If not, I can send code that reproduces it. > > Thanks, > -- > David N. Welton > > http://www.welton.it/davidw/ > > http://www.dedasys.com/ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Microemulator-users mailing list > Mic...@li... > https://lists.sourceforge.net/lists/listinfo/microemulator-users > -- Vlad |
From: David W. <da...@de...> - 2008-04-19 10:55:19
|
> David > I don't know if this is a bug or not. Can you send a small project > preferably with source so I can reproduce the problem. > If code can be made public attach it to bug created here > http://sourceforge.net/tracker/?group_id=30014 Ok, I created a bug, and pointed to the source code that's causing the problem. I realize that it's a pain/impossible for you to download all of Hecl, compile it, etc... so just let me know what I can provide to help out. http://sourceforge.net/tracker/index.php?func=detail&aid=1946452&group_id=30014&atid=397809 > Also please add more description to English word "choke". Sorry, was late and I was tired:-) "Doesn't load", but right now it's crashing my browser so much I can't even get the stack trace. I'll add that to the bug if I do. > Does it work in standard java application (not applet) can you try it from > webstart? Works great in standard Java. MicroEmulator is really cool! > If you are opening connection in applet to http host other then one the > request comes from then you application will "choke". > You will catch exception java.security.AccessControlException: access > denied (java.net.SocketPermission ...) > And this is not a bug but documented feature of java applets security! See > http://www.microemu.org/applet.html second line after title. That's not the problem, as far as I know, unless even having networking classes built in is problematic. It doesn't even load. BTW, I created a patch a long time ago, and will need to update it for the latest code - is there any interest in something like this? https://sourceforge.net/tracker/index.php?func=detail&aid=1472632&group_id=30014&atid=397811 Thanks! -- David N. Welton http://www.welton.it/davidw/ http://www.dedasys.com/ |
From: Vlad S. <ska...@gm...> - 2008-06-05 05:42:03
|
Hi David Sorry it took me an extremely long time to come back to your problem. Does bug still exists? I see that MicroEmulator working fine on your website http://www.hecl.org/applet/ As to "Provide a hook to call midlet methods from Javascript" this is a nice feature. But now we are not adding new stuff because MicroEmulator is migrating to apache harmony.. Regards, Vlad On 4/19/08, David Welton <da...@de...> wrote: > > > David > > I don't know if this is a bug or not. Can you send a small project > > preferably with source so I can reproduce the problem. > > If code can be made public attach it to bug created here > > http://sourceforge.net/tracker/?group_id=30014 > > > Ok, I created a bug, and pointed to the source code that's causing the > problem. I realize that it's a pain/impossible for you to download > all of Hecl, compile it, etc... so just let me know what I can provide > to help out. > > > http://sourceforge.net/tracker/index.php?func=detail&aid=1946452&group_id=30014&atid=397809 > > > > Also please add more description to English word "choke". > > > Sorry, was late and I was tired:-) "Doesn't load", but right now it's > crashing my browser so much I can't even get the stack trace. I'll > add that to the bug if I do. > > > > Does it work in standard java application (not applet) can you try it > from > > webstart? > > > Works great in standard Java. MicroEmulator is really cool! > > > > If you are opening connection in applet to http host other then one the > > request comes from then you application will "choke". > > You will catch exception java.security.AccessControlException: access > > denied (java.net.SocketPermission ...) > > > And this is not a bug but documented feature of java applets > security! See > > http://www.microemu.org/applet.html second line after title. > > > That's not the problem, as far as I know, unless even having > networking classes built in is problematic. It doesn't even load. > > BTW, I created a patch a long time ago, and will need to update it for > the latest code - is there any interest in something like this? > > > https://sourceforge.net/tracker/index.php?func=detail&aid=1472632&group_id=30014&atid=397811 > > > Thanks! > -- > David N. Welton > > http://www.welton.it/davidw/ > > http://www.dedasys.com/ > -- Vlad |
From: David W. <da...@de...> - 2008-06-05 14:06:43
|
> Sorry it took me an extremely long time to come back to your problem. Does > bug still exists? > I see that MicroEmulator working fine on your website > http://www.hecl.org/applet/ Yeah, I hacked it. The problem still exists though, as far as I can tell. > As to "Provide a hook to call midlet methods from Javascript" this is a > nice feature. But now we are not adding new stuff because MicroEmulator is > migrating to apache harmony.. Cool! That's great news:-) I'm a member of the ASF myself, so welcome aboard! When do you think you'll open things up again to changes? -- David N. Welton http://www.welton.it/davidw/ http://www.dedasys.com/ |