cancel
Showing results for 
Search instead for 
Did you mean: 

Deployment fails during stub generation

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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