Skip to Content
author's profile photo Former Member
Former Member

Deployment fails during stub generation

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Nov 18, 2005 at 09:39 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.