Kevin Stembridge

Greenhorn
+ Follow
since Feb 16, 2002
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Kevin Stembridge

Hi all,
Is it possible to pass system properties to a JNLP launched application when invoking javaws?

I have an application that invokes javaws via Runtime.getRuntime().exec() to launch a JNLP application and I need to be able to pass system properties from the current JVM to the launched application.

Or is there any other way to pass the info?

Thanks for any help.

Kevin
16 years ago
Hi folks,
My apologies if I'm not in the right forum for this question.

I have a page with a form that accepts arbritrary user input in a textarea. If i enter a pound sign (�) and then submit the form, the server receives the characters A� (with a circumflex over the A). My pages are encoded in UTF-8 and have the appropriate meta tag for that charset. The UTF-8 hex code for the pound sign is C2A3, but this is obviously getting split into 2 separate characters C2 for the Acircumflex and A3 for the pound.

I don't know if this is a browser issue, a server issue or an application code issue. I've tested with the 4 combinations of JBoss vs Geronimo and Firefox vs Opera and the problem occurs in all those tests.

Thanks in advance for any help.

Kevin
18 years ago
JSP
Hi,
Does anyone know what happens behind the scenes in the event-dispatching thread when a RuntimeException occurs?

For example, when a RuntimeException is being thrown from within an actionPerformed method, the GUI shows no effect but the stack trace is printed to System.err. Is there anyway that I can intercept all runtime exceptions on the event thread without having to put catch clauses in all my event listener methods?

Cheers,
Kevin
18 years ago
Thanks Nate,
That worked perfectly! Runs without any trouble now.

Cheers,
Kevin
18 years ago
Hi,
I'm new to RMI and thought I'd start with Sun's RMI tutorial that comes with the documentation download in jdk1.5.

I am following this tutorial word for word, even using their supplied source code without modification and I get a ClassNotFoundException when running the Server class. The beginning of the stack trace is pasted below.

This is the link to the tutorial that I'm following:
JDK 1.5 RMI Tutorial

To save you looking it up, this is the source code that is failing. The exception is thrown from the following line:

registry.bind("Hello", stub);



I'm running jdk1.5.0_02 on a linux machine.

Partial Stack trace:
Server exception: java.rmi.ServerException: RemoteEx ception occurred in server thread; nested exception is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested excep tion is:
java.lang.ClassNotFoundException: example.hello.Hello
java.rmi.ServerException: RemoteException occurred in server thread; nested exce ption is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested excep tion is:
java.lang.ClassNotFoundException: example.hello.Hello
at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:385 )
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:240)
at sun.rmi.transport.Transport$1.run(Transport.java:153)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:4 60)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport .java:701)
at java.lang.Thread.run(Thread.java:595)
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Stream RemoteCall.java:247)
at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java: 223)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:343)
at sun.rmi.registry.RegistryImpl_Stub.bind(Unknown Source)
at example.hello.Server.main(Server.java:24)
18 years ago
Thanks Nathaniel,
I followed your second suggestion and made a call to response.sendRedirect() just before returning from the Struts Action class.
Worked a treat
Thanks very much.
Thanks Nathaniel,
I followed your second suggestion and made a call to response.sendRedirect() just before returning from the Struts Action class.
Worked a treat
Thanks very much.
19 years ago
Hi Folks,
I'm working on a Struts-based web application that's giving me a bit of grief when the page is refreshed.
For certain actions the user can perform, records are inserted into a database. If the user then refreshes the page, the same action gets performed and another record gets inserted.
How can I ensure that, after submitting an action, the page is not left in a state where the same action will be executed again by refreshing the screen?
Cheers,
Kevin
19 years ago
Hi Folks,
I'm working on a Struts-based web application that's giving me a bit of grief when the page is refreshed.
For certain actions the user can perform, records are inserted into a database. If the user then refreshes the page, the same action gets performed and another record gets inserted.
How can I ensure that, after submitting an action, the page is not left in a state where the same action will be executed again by refreshing the screen?
Cheers,
Kevin