on 11-15-2005 10:25 AM
Hi all,
I am currently migrating a J2EE application from WLS to SAP NW 6.40. After solving a couple of issues
with my DDs, I am currently on a halt concerning the following stack trace. It occurs during deployment
with the SDM.
Caught exception during application deployment from SAP J2EE Engine's deploy service:
java.rmi.RemoteException: Cannot deploy application myCompany.com/myApp..
Reason: Errors while compiling:C:/usr/sap/J2E/JC00/j2ee/cluster/server0/apps/myCompany.com/myApp/EJBContainer/temp/temp1131986579437/com/myApp/server/ServiceProviderRemote_Stub.java:148: cannot resolve symbol
symbol : variable inn
location: class com.myApp.server.ServiceProviderRemote_Stub
Object[] params = new Object[]{p4_replicateWithStreams(inn,outt,_param0)};
^
compiling:C:/usr/sap/J2E/JC00/j2ee/cluster/server0/apps/myCompany.com/myApp/EJBContainer/temp/temp1131986579437/com/myApp/server/ServiceProviderRemote_Stub.java:148: cannot resolve symbol
symbol : variable outt
location: class com.myApp.server.ServiceProviderRemote_Stub
Object[] params = new Object[]{p4_replicateWithStreams(inn,outt,_param0)};
^
compiling:C:/usr/sap/J2E/JC00/j2ee/cluster/server0/apps/myCompany.com/myApp/EJBContainer/temp/temp1131986579437/com/myApp/server/ServiceProviderRemote_Stub.java:149: cannot resolve symbol
symbol : variable inn
location: class com.myApp.server.ServiceProviderRemote_Stub
Class[] p = new Class[]{(Class) p4_replicateWithStreams(inn,outt,java.lang.StringBuffer.class)};
^
C:/usr/sap/J2E/JC00/j2ee/cluster/server0/apps/myCompany.com/myApp/EJBContainer/temp/temp1131986579437/com/myApp/server/ServiceProviderRemote_Stub.java:149: cannot resolve symbol
symbol : variable outt
location: class com.myApp.server.ServiceProviderRemote_Stub
Class[] p = new Class[]{(Class) p4_replicateWithStreams(inn,outt,java.lang.StringBuffer.class)};
^
4 errors
; nested exception is: com.sap.engine.services.ejb.exceptions.deployment.EJBFileGenerationException:
Errors while C:/usr/sap/J2E/JC00/j2ee/cluster/server0/apps/myCompany.com/myApp/EJBContainer/temp/temp1131986579437/com/myApp/server/ServiceProviderRemote_Stub.java:148: cannot resolve symbol
Unfortunately, I cannot examine the generated stub because the temporary deployment directory has been
cleaned up when this Exception occurs. Did anybody happen to run into a similar problem during
migration?
Ok, some news. I found the setting for SDM to keep deployed files on failure and was able to take a look at the problem. It's no wonder that I can't deploy because the generated stub is simply uncompilable.
The objects inn and outt used for the method call are simply not generated by the SAP generator, therefore the compilation error.
regards
Marcel
Hi,
for everybody who is interested. I figured out what the problem is. The method in the remote interface to be generated takes a java.lang.StringBuffer argument. The SAP generator seems to have problems generating source for methods with this object as argument. I changed the method signature from StringBuffer to Object and it works.
StringBuffer is supposed to work because it is an IIOP/RMI compatible object.
regards
Marcel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.