on 09-15-2010 1:15 PM
When I execute these lines of code:
34: connection.connect();
35: JCoFunction function = connection.getFunction(Z_A_PROVIDE_TCURX);
36: if(function == null) {
37: throw new RuntimeException(Z_A_PROVIDE_TCURX + " not found in SAP.");
38: }
39: connection.executeFunction(function, false);
I keep getting the following Error:
java.lang.StackOverflowError
at com.sap.conn.jco.rt.SimpleSessionRefProvider.getCurrentSessionReference(SimpleSessionRefProvider.java:22)
at com.sap.conn.jco.rt.DefaultJCoRuntime.getRuntimeContext(DefaultJCoRuntime.java:159)
at com.sap.conn.jco.rt.RfcDestination.execute(RfcDestination.java:1168)
at com.sap.conn.jco.rt.RfcDestination.execute(RfcDestination.java:1156)
at com.sap.conn.jco.rt.AbapFunction.execute(AbapFunction.java:302)
at de.firstdata.dao.sap.impl.JcoConnection.executeFunction(JcoConnection.java:110)
at de.firstdata.dao.sap.impl.JcoConnection$$FastClassByCGLIB$$ea6a3f2f.invoke(<generated>)
at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:628)
at de.firstdata.dao.sap.impl.JcoConnection$$EnhancerByCGLIB$$60d0829.executeFunction(<generated>)
at de.firstdata.dao.sap.impl.JcoCurrencyManager.getCurrencyDecimalPlaces(JcoCurrencyManager.java:39)
Does someone know what's going on here?
de.firstdata.dao.sap.impl.JcoConnection.executeFunction(JcoConnection.java:110)
is the more interesting part to look at.
Which JCo version/patch level are you using?
What is your setting for -Xss?
Is there any thread switching in your application?
Did you register an own SessionReferenceProvider?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I solved the Problem with switching from the IBM JDK 1.5 SR10 to IBM JDK 1.5 SR3.
But regarding to your questions, here are my answers:
- I am using the Jco 3.0.3 for Intel. I do not use the -XSS setting, for what is that good for?
- The current code is running within a scheduler thread.
- I did not register an own SessionReferenceProvider.
User | Count |
---|---|
89 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
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.