Results 1 to 5 of 5
  1. #1
    Marcus is offline Member
    Join Date
    Jun 2007
    Posts
    92
    Rep Power
    0

    Exclamation java.lang.StackOverflowError Exception

    I am modifying an application and this throwing tom me the java.lang.StackOverflowError exception in my WebSphere.
    The application invokes a service with RMI (remote method invocation).
    the exact line of the method that sends the exception is

    Java Code:
    Object $result = ref.invoke(this, $method_approve_0, new java.lang. Object[] {$param_ServiceContext_1, $param_CreditCardDetails_2}, -8032042095988443398L);
    this is the line that the approve() methos is invoked.

    Stack trace is:
    Java Code:
    2005-11-04 12-36-46-646 : CCI:0a8ca248.1131129406526.1.
    -7980862930925633594:null : DEBUG : env.cci.server.CreditCardServiceProxy Entering getCreditCardService()
    2005-11-04 12-36-46-646 : CCI:0a8ca248.1131129406526.1.-7980862930925633594:null : DEBUG : env.cci.server.CreditCardServiceProxy Entering initialize()
    2005-11-04 12-36-46-646 : CCI:0a8ca248.1131129406526.1.-7980862930925633594:null : DEBUG : env.cci.server.CreditCardServiceProxy Entering getRemoteReference()
    2005-11-04 12-36-46-686 : CCI:0a8ca248.1131129406526.1.-7980862930925633594:null : DEBUG : env.cci.server.CreditCardServiceProxy Leaving getRemoteReference()
    2005-11-04 12-36-46-686 : CCI:0a8ca248.1131129406526.1.-7980862930925633594:null : DEBUG : env.cci.server.CreditCardServiceProxy Leaving initialize()
    2005-11-04 12-36-46-686 : CCI:0a8ca248.1131129406526.1.-7980862930925633594:null : DEBUG : env.cci.server.CreditCardServiceProxy Leaving getCreditCardService()
    2005-11-04 12-36-46-706 : CCI:0a8ca248.1131129406526.1.-7980862930925633594:null : DEBUG : env.cci.server.CreditCardServiceProxy Entering approve()
    2005-11-04 12-36-46-856 : CCI:0a8ca248.1131129406526.1.-7980862930925633594:null : ERROR : env.cci.server.CreditCardServiceProxy Caught RemoteException for RMI name: rmi://localhost/PPRCreditCardService
    java.rmi.ServerError: Error occurred in server thread; nested exception is:
        java.lang.StackOverflowError
    java.lang.StackOverflowError
        at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:257)
        at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:232)
        at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:135)
        at ca.mb.gov.env.cci.server.CreditCardServiceImpl_Stub.approve(CreditCardServiceImpl_Stub.java:71)
        at ca.mb.gov.env.cci.server.CreditCardServiceProxy.approve(CreditCardServiceProxy.java:94)
        at ca.mb.gov.env.cci.drivers.test.CCITest.main(CCITest.java:39)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.ibm.websphere.client.applicationclient.launchClient.createContainerAndLaunchApp(launchClient.java:616)
        at com.ibm.websphere.client.applicationclient.launchClient.main(launchClient.java:420)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:94)
    Albert:cool:

  2. #2
    Eric is offline Senior Member
    Join Date
    Jun 2007
    Posts
    111
    Rep Power
    0

    Default RE: java.lang.StackOverflowError Exception

    I have understood that generally the Exception java.lang.StackOverflowError occurs when it does an infinitive autoinvoke
    Did you prove with regenerating the Deployment and RMIC?

    (I don't remember exactly how it was in WSAD, now I am with Eclipse)

    Eric

  3. #3
    Join Date
    Mar 2012
    Posts
    2
    Rep Power
    0

    Default Re: java.lang.StackOverflowError Exception

    Hi,

    I just got the same error as below :-

    ************* End Display Current Environment *************
    [8/20/12 15:00:05:940 CDT] 00000015 SystemErr R Cannot load XSL files from C:\Program Files (x86)\IBM\SDP\runtimes\base_v7\plugins\com.ibm.ws. runtime.jar
    [8/20/12 15:00:05:942 CDT] 00000015 SystemErr R Cannot load XSL files from C:\Program Files (x86)\IBM\SDP\runtimes\base_v7\plugins\com.ibm.ws. runtime.jar
    [8/20/12 15:00:05:943 CDT] 00000015 SystemErr R Cannot load XSL files from C:\Program Files (x86)\IBM\SDP\runtimes\base_v7\plugins\com.ibm.ws. runtime.jar
    [8/20/12 15:00:05:947 CDT] 00000015 SystemErr R Cannot load XSL files from C:\Program Files (x86)\IBM\SDP\runtimes\base_v7\plugins\com.ibm.ws. runtime.jar
    [8/20/12 16:08:20:940 CDT] 00000020 SystemErr R 08/20 16:08:19 ERROR java.lang.StackOverflowError
    at java.util.AbstractMap.putAll(Unknown Source)
    at java.util.TreeMap.putAll(Unknown Source)
    at macromedia.asc.util.Multinames.checkDelegate(Multi names.java:43)
    at macromedia.asc.util.Multinames.put(Multinames.java :55)
    at macromedia.asc.util.Multinames.put(Multinames.java :13)
    at java.util.AbstractMap.putAll(Unknown Source)
    at java.util.TreeMap.putAll(Unknown Source)
    at macromedia.asc.util.Multinames.checkDelegate(Multi names.java:43)
    at macromedia.asc.util.Multinames.put(Multinames.java :55)
    at macromedia.asc.util.Multinames.put(Multinames.java :13)
    at java.util.AbstractMap.putAll(Unknown Source)
    at java.util.TreeMap.putAll(Unknown Source)
    at macromedia.asc.util.Multinames.checkDelegate(Multi names.java:43)
    at macromedia.asc.util.Multinames.put(Multinames.java :55)
    at macromedia.asc.util.Multinames.put(Multinames.java :13)
    at java.util.AbstractMap.putAll(Unknown Source)


    The solution that worked for me was to install the fix 11 for WAS 7.0

    See the link below:
    IBM PK71997: RAD CONSOLE SHOWS SYSTEMERROR "CANNNOT LOAD XSL FILE FROM COM.IBM.WS.RUNTIME.JAR" AFTER SERVER IS STARTED. - United States

    If you are using RAD or RSA I recommend you to run the IBM Installation Manager and pick the Updates instead of installing the WAS fix only . While installing instead of choosing everything choose only required thing.



    Thanks & Regards,
    Sridhar Goranti
    USA

  4. #4
    Join Date
    Mar 2012
    Posts
    2
    Rep Power
    0

    Default Re: java.lang.StackOverflowError Exception

    Hi,

    Still If you are facing the same problem in IBM Web Sphere 7 Application Server, you can increase the size of heap memory by specifying the min and max.

    -Xms1024m -Xmx1024m

    If you want to set the same at IBM Web Sphere 7 server level, open the admin console and below is path :-

    Application servers -> Server1 -> Process defination -> Java Vertual Machine
    for min / max heap size as :-
    min heap size: 250
    max heap size : 1024

    or both you can give it as : 1024 only. After that save it and restart the server to test it.


    Thanks & Regards,
    Sridhar Goranti
    USA

  5. #5
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,188
    Rep Power
    19

    Default Re: java.lang.StackOverflowError Exception

    Quote Originally Posted by Sridhar.Goranti View Post
    Hi,

    Still If you are facing the same problem ...
    More than 5 years after the question was asked? Don't be silly.

    db

    THREAD LOCKED
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. Replies: 2
    Last Post: 01-20-2014, 07:45 AM
  2. java.lang.StackOverflowError
    By eva in forum New To Java
    Replies: 3
    Last Post: 12-24-2007, 09:54 AM
  3. Replies: 1
    Last Post: 08-06-2007, 06:07 AM
  4. Replies: 1
    Last Post: 07-25-2007, 10:55 PM
  5. Replies: 1
    Last Post: 07-16-2007, 06:32 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •