I have an EJB that contains the method below:
public void sign(java.io.File inputfile)
When I have clustering turned on for this EJB and when I pass in a valid File Object (the file exists and is readable), I get the following exception:
java.lang.ExceptionInInitializerError: java.io.FileNotFoundException: C:/TEMP/test.pdf (No such file or directory)
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:240)
at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:215)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:117)
at org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unknown Source)
at org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxyHA.invoke(JRMPInvokerProxyHA.java:163)
at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:108)
at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:77)
at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:80)
at org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(StatelessSessionInterceptor.java:111)
at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:76)
at $Proxy15.sign(Unknown Source)
If I turn clustering off, everything works fine.
I am using JBoss 3.0.7.
Any help will be greatly appreciated.
Thanks,
Dan