[infinispan-issues] [JBoss JIRA] (ISPN-2132) CLONE - Getting java.lang.StackOverflowError in org.infinispan.transaction.xa.TransactionXaAdapter.toString(TransactionXaAdapter.java:215)

Paul Jackson (JIRA) jira-events at lists.jboss.org
Mon Jul 9 06:36:12 EDT 2012


    [ https://issues.jboss.org/browse/ISPN-2132?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12704922#comment-12704922 ] 

Paul Jackson commented on ISPN-2132:
------------------------------------

What sort of test case would you require? I think at the very least this would be an ear file to deploy to weblogic and a client jar to do the remote call. I'm not sure how easy this will be to do.

The issue appears to be in the logging : the toString method of TransactionXaAdapter calls LocalTransaction.toString which calls the weblogic transaction.toString, which is in turn calling the TransactionXaAdapter.toString method.

                
> CLONE - Getting java.lang.StackOverflowError in org.infinispan.transaction.xa.TransactionXaAdapter.toString(TransactionXaAdapter.java:215)
> ------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: ISPN-2132
>                 URL: https://issues.jboss.org/browse/ISPN-2132
>             Project: Infinispan
>          Issue Type: Bug
>          Components: Transactions
>    Affects Versions: 5.0.1.FINAL, 5.1.5.FINAL
>         Environment: Weblogic Server 10.3.5 running on Windows
>            Reporter: Paul Jackson
>            Assignee: Mircea Markus
>             Fix For: 5.2.0.ALPHA2, 5.2.0.FINAL
>
>
> Hi,
>    I am getting a StackOverFlowError when I call remote EJB's that return an exception. The EJBs are running in Weblogic configured to use the LLR XA transaction optimization. We are currently using version 5.0.1-FINAL. I have tried the latest 5.1.5-FINAL version and the problem still occurs.
> The top of the stacktrace is:
>  javax.ejb.EJBException: EJB encountered System Exception: : java.lang.StackOverflowError
> 	at java.lang.Integer.toUnsignedString(Integer.java:245)
> 	at java.lang.Integer.toHexString(Integer.java:174)
> 	at weblogic.transaction.internal.XAResourceHelper.xidToString(XAResourceHelper.java:26)
> 	at weblogic.transaction.internal.XAResourceHelper.xidToString(XAResourceHelper.java:21)
> 	at weblogic.transaction.internal.XidImpl.toString(XidImpl.java:151)
> 	at java.lang.String.valueOf(String.java:2826)
> 	at java.lang.StringBuffer.append(StringBuffer.java:219)
> 	at weblogic.transaction.internal.TransactionImpl.toString(TransactionImpl.java:965)
> 	at java.lang.String.valueOf(String.java:2826)
> 	at java.lang.StringBuilder.append(StringBuilder.java:115)
> 	at org.infinispan.transaction.LocalTransaction.toString(LocalTransaction.java:159)
> 	at org.infinispan.transaction.xa.LocalXaTransaction.toString(LocalXaTransaction.java:66)
> 	at java.lang.String.valueOf(String.java:2826)
> 	at java.lang.StringBuilder.append(StringBuilder.java:115)
> 	at org.infinispan.transaction.xa.TransactionXaAdapter.toString(TransactionXaAdapter.java:214)
> 	at java.lang.String.valueOf(String.java:2826)
> 	at java.lang.StringBuffer.append(StringBuffer.java:219)
> 	at weblogic.transaction.internal.XAServerResourceInfo.toString(XAServerResourceInfo.java:151)
> 	at weblogic.transaction.internal.TransactionImpl.toString(TransactionImpl.java:985)
> 	at java.lang.String.valueOf(String.java:2826)
> 	at java.lang.StringBuilder.append(StringBuilder.java:115)
> 	at org.infinispan.transaction.LocalTransaction.toString(LocalTransaction.java:159)
> 	at org.infinispan.transaction.xa.LocalXaTransaction.toString(LocalXaTransaction.java:66)
> 	at java.lang.String.valueOf(String.java:2826)
> 	at java.lang.StringBuilder.append(StringBuilder.java:115)
> 	at org.infinispan.transaction.xa.TransactionXaAdapter.toString(TransactionXaAdapter.java:214)
> 	at java.lang.String.valueOf(String.java:2826)
> 	at java.lang.StringBuffer.append(StringBuffer.java:219)
> 	at weblogic.transaction.internal.XAServerResourceInfo.toString(XAServerResourceInfo.java:151)
> 	at weblogic.transaction.internal.TransactionImpl.toString(TransactionImpl.java:985)
> 	at java.lang.String.valueOf(String.java:2826)
> 	at java.lang.StringBuilder.append(StringBuilder.java:115)
> 	at org.infinispan.transaction.LocalTransaction.toString(LocalTransaction.java:159)
> 	at org.infinispan.transaction.xa.LocalXaTransaction.toString(LocalXaTransaction.java:66)
> 	at java.lang.String.valueOf(String.java:2826)
> 	at java.lang.StringBuilder.append(StringBuilder.java:115)
> 	at org.infinispan.transaction.xa.TransactionXaAdapter.toString(TransactionXaAdapter.java:214)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the infinispan-issues mailing list