Jan Agermose wrote:
> This might not be a blackdown problem, but I need help now, and the IBM
> newsgroups seems down? and sun, well I have never gotten a response from
> them.
If you're seeing this on multiple platforms, it's not likely to be a Blackdown
problem, and
it doesn't seem all that likely to be a JDK1.2 or JDK1.3 problem. Add an
"e.printStackTrace()" to your rethrow code and examine the stderr output from your
server
process. You'll probably find a line in checkString() trying to use a null pointer.
With the Blackdown JDK, and possibly with others, the stack trace will be most useful
if you
disable JIT (java -Djava.compiler= ...) in the server so line numbers are reported in
the
traceback.
Nathan
>
>
> I have made a RMI server that forks a process to communicate with ispell
> to deliver a spellchecker to clients. I start ispell like
>
> Runtime.getRuntime().exec("/usr/bin/ispell -a");
>
> and then I get the in/out putstreams for communication. Finally i
> register with rmiregistry and run my client.
>
> On Java2 1.3 (IBM and SUN) linux RH6.1 this mostly results in a remote
> exception delivered to the client (if i catch a exception on the server
> I rethrow it like new RemoteException("mesg", e))
>
> The Exception on the client reads:
> java.rmi.ServerException: RemoteException occurred in server thread;
> nested exception is:
> java.rmi.RemoteException: checkString; nested exception is:
> java.lang.NullPointerException
> java.rmi.ServerException: RemoteException occurred in server thread;
> nested exception is:
> java.rmi.RemoteException: checkString; nested exception is:
> java.lang.NullPointerException
> java.rmi.RemoteException: checkString; nested exception is:
> java.lang.NullPointerException
> java.lang.NullPointerException
> at
>
>sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:248)
>
> at
> sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)
>
> at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:126)
> at SpellChecker$ISpellCheckerImpl_Stub.checkString(Unknown
> Source)
> at RMIClient.main(RMIClient.java:14)
>
> I am writing to you whith this problem, because running the server on
> ibm 1.1.8 works all the time. This makes me think that it is a
> problem/bug in ibm/sun 1.3?
>
> --
> Mvh Jan Agermose
>
> http://www.agermose.dk
>
> N?
> I@R ésS[h?«Ú-)îÆ·ª¹ë-?«ÚnV??Ú0?SàÂ+ajË>?ç-¡û§²æìr¸>y:è¹¹^
> ?íiËdj¹[*§$v?'org=
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]