Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Error which i cant work out solution for

 
nikil shar
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,
am not sure which forum to put this question in but i get an error in my javascript code which i cant work out a solution to since i dont know whats causing this error. The error thrown is :

2009-03-13 16:55:22,051 INFO [org.jboss.resource.connectionmanager.CachedConnectionManager] Closing a connection for you. Please close them yourself: org.jboss.resource.adapter.jdbc.WrappedConnection@7e3d2c
java.lang.Exception: STACKTRACE
at org.jboss.resource.connectionmanager.CachedConnectionManager.registerConnection(CachedConnectionManager.java:282)
at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:506)
at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:814)
at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:102)
at com.gtnet.pk.jdbc.JdbcConnectionManager.getJdbcConnection(JdbcConnectionManager.java:103)
at com.gtnet.pk.ecmas.extensions.GtEvaluator.getJdbcConnection(GtEvaluator.java:246)
at com.gtnet.pk.ecmas.extensions.jdbc.FetchConstructor.doConstruct(FetchConstructor.java:93)
at FESI.Interpreter.EcmaScriptEvaluateVisitor.visit(EcmaScriptEvaluateVisitor.java:909)
at FESI.AST.ASTAllocationExpression.jjtAccept(ASTAllocationExpression.java:26)
at FESI.Interpreter.EcmaScriptEvaluateVisitor.visit(EcmaScriptEvaluateVisitor.java:1270)
at FESI.AST.ASTAssignmentExpression.jjtAccept(ASTAssignmentExpression.java:26)
at FESI.Interpreter.EcmaScriptEvaluateVisitor.visit(EcmaScriptEvaluateVisitor.java:372)
at com.gtnet.pk.ecmas.extensions.GTEvaluateVisitor.visit(GTEvaluateVisitor.java:28)
at com.gtnet.pk.ecmas.extensions.DebugEvaluateVisitor.visit(DebugEvaluateVisitor.java:21)
at FESI.AST.ASTStatement.jjtAccept(ASTStatement.java:26)
at FESI.Interpreter.EcmaScriptEvaluateVisitor.visit(EcmaScriptEvaluateVisitor.java:352)
at FESI.AST.ASTStatementList.jjtAccept(ASTStatementList.java:26)
at FESI.Interpreter.EcmaScriptEvaluateVisitor.evaluateFunction(EcmaScriptEvaluateVisitor.java:200)
at FESI.Interpreter.Evaluator.evaluateFunction(Evaluator.java:803)
at com.gtnet.pk.ecmas.extensions.GtEvaluator.evaluateFunction(GtEvaluator.java:637)
at com.gtnet.pk.ecmas.extensions.GtFunctionObject.callFunction(GtFunctionObject.java:48)
at com.gtnet.pk.ecmas.extensions.ObjectDefinitionConstructor.callProcedure(ObjectDefinitionConstructor.java:628)
at com.gtnet.pk.ecmas.extensions.ObjectDefinitionConstructor.callProcedure(ObjectDefinitionConstructor.java:509)
at com.gtnet.pk.ecmas.extensions.ObjectDefinitionConstructor.callStaticUserDefinedMethod(ObjectDefinitionConstructor.java:90)
at com.gtnet.pk.ecmas.extensions.TypeDefinitionConstructor.doIndirectCall(TypeDefinitionConstructor.java:384)
at FESI.Interpreter.EcmaScriptEvaluateVisitor.visit(EcmaScriptEvaluateVisitor.java:812)
at FESI.AST.ASTCompositeReference.jjtAccept(ASTCompositeReference.java:26)
at FESI.Interpreter.EcmaScriptEvaluateVisitor.visit(EcmaScriptEvaluateVisitor.java:1270)
at FESI.AST.ASTAssignmentExpression.jjtAccept(ASTAssignmentExpression.java:26)
at FESI.Interpreter.EcmaScriptEvaluateVisitor.visit(EcmaScriptEvaluateVisitor.java:372)
at com.gtnet.pk.ecmas.extensions.GTEvaluateVisitor.visit(GTEvaluateVisitor.java:28)
at com.gtnet.pk.ecmas.extensions.DebugEvaluateVisitor.visit(DebugEvaluateVisitor.java:21)
at FESI.AST.ASTStatement.jjtAccept(ASTStatement.java:26)
at FESI.Interpreter.EcmaScriptEvaluateVisitor.visit(EcmaScriptEvaluateVisitor.java:352)
at FESI.AST.ASTStatementList.jjtAccept(ASTStatementList.java:26)
at FESI.Interpreter.EcmaScriptEvaluateVisitor.visit(EcmaScriptEvaluateVisitor.java:372)
at com.gtnet.pk.ecmas.extensions.GTEvaluateVisitor.visit(GTEvaluateVisitor.java:28)
at com.gtnet.pk.ecmas.extensions.DebugEvaluateVisitor.visit(DebugEvaluateVisitor.java:21)
at FESI.AST.ASTStatement.jjtAccept(ASTStatement.java:26)
at FESI.Interpreter.EcmaScriptEvaluateVisitor.visit(EcmaScriptEvaluateVisitor.java:415)
at FESI.AST.ASTIfStatement.jjtAccept(ASTIfStatement.java:26)
at FESI.Interpreter.EcmaScriptEvaluateVisitor.visit(EcmaScriptEvaluateVisitor.java:372)
at com.gtnet.pk.ecmas.extensions.GTEvaluateVisitor.visit(GTEvaluateVisitor.java:28)
at com.gtnet.pk.ecmas.extensions.DebugEvaluateVisitor.visit(DebugEvaluateVisitor.java:21)
at FESI.AST.ASTStatement.jjtAccept(ASTStatement.java:26)
at FESI.Interpreter.EcmaScriptEvaluateVisitor.visit(EcmaScriptEvaluateVisitor.java:352)
at FESI.AST.ASTStatementList.jjtAccept(ASTStatementList.java:26)
at FESI.Interpreter.EcmaScriptEvaluateVisitor.evaluateFunction(EcmaScriptEvaluateVisitor.java:200)
at FESI.Interpreter.Evaluator.evaluateFunction(Evaluator.java:803)
at com.gtnet.pk.ecmas.extensions.GtEvaluator.evaluateFunction(GtEvaluator.java:637)
at com.gtnet.pk.ecmas.extensions.GtFunctionObject.callFunction(GtFunctionObject.java:48)
at com.gtnet.pk.ecmas.extensions.ObjectDefinitionConstructor.callProcedure(ObjectDefinitionConstructor.java:628)
at com.gtnet.pk.ecmas.extensions.ObjectDefinitionConstructor.callProcedure(ObjectDefinitionConstructor.java:509)
at com.gtnet.pk.ecmas.extensions.ObjectDefinitionConstructor.callStaticUserDefinedMethod(ObjectDefinitionConstructor.java:90)
at com.gtnet.pk.ecmas.extensions.TypeDefinitionConstructor.doIndirectCall(TypeDefinitionConstructor.java:384)
at FESI.Interpreter.EcmaScriptEvaluateVisitor.visit(EcmaScriptEvaluateVisitor.java:812)
at FESI.AST.ASTCompositeReference.jjtAccept(ASTCompositeReference.java:26)
at FESI.Interpreter.EcmaScriptEvaluateVisitor.visit(EcmaScriptEvaluateVisitor.java:1270)
at FESI.AST.ASTAssignmentExpression.jjtAccept(ASTAssignmentExpression.java:26)
at FESI.Interpreter.EcmaScriptEvaluateVisitor.visit(EcmaScriptEvaluateVisitor.java:372)
at com.gtnet.pk.ecmas.extensions.GTEvaluateVisitor.visit(GTEvaluateVisitor.java:28)
at com.gtnet.pk.ecmas.extensions.DebugEvaluateVisitor.visit(DebugEvaluateVisitor.java:21)
at FESI.AST.ASTStatement.jjtAccept(ASTStatement.java:26)
at FESI.Interpreter.EcmaScriptEvaluateVisitor.visit(EcmaScriptEvaluateVisitor.java:352)
at FESI.AST.ASTStatementList.jjtAccept(ASTStatementList.java:26)
at FESI.Interpreter.EcmaScriptEvaluateVisitor.visit(EcmaScriptEvaluateVisitor.java:372)
at com.gtnet.pk.ecmas.extensions.GTEvaluateVisitor.visit(GTEvaluateVisitor.java:28)
at com.gtnet.pk.ecmas.extensions.DebugEvaluateVisitor.visit(DebugEvaluateVisitor.java:21)
at FESI.AST.ASTStatement.jjtAccept(ASTStatement.java:26)
at FESI.Interpreter.EcmaScriptEvaluateVisitor.visit(EcmaScriptEvaluateVisitor.java:415)
at FESI.AST.ASTIfStatement.jjtAccept(ASTIfStatement.java:26)
at FESI.Interpreter.EcmaScriptEvaluateVisitor.visit(EcmaScriptEvaluateVisitor.java:372)
at com.gtnet.pk.ecmas.extensions.GTEvaluateVisitor.visit(GTEvaluateVisitor.java:28)
at com.gtnet.pk.ecmas.extensions.DebugEvaluateVisitor.visit(DebugEvaluateVisitor.java:21)
at FESI.AST.ASTStatement.jjtAccept(ASTStatement.java:26)
at FESI.Interpreter.EcmaScriptEvaluateVisitor.visit(EcmaScriptEvaluateVisitor.java:352)
at FESI.AST.ASTStatementList.jjtAccept(ASTStatementList.java:26)
at FESI.Interpreter.EcmaScriptEvaluateVisitor.evaluateFunction(EcmaScriptEvaluateVisitor.java:200)
at FESI.Interpreter.Evaluator.evaluateFunction(Evaluator.java:803)
at com.gtnet.pk.ecmas.extensions.GtEvaluator.evaluateFunction(GtEvaluator.java:637)
at com.gtnet.pk.ecmas.extensions.GtFunctionObject.callFunction(GtFunctionObject.java:48)
at com.gtnet.pk.ecmas.extensions.ObjectDefinitionPrototype.callProcedureImpl(ObjectDefinitionPrototype.java:209)
at com.gtnet.pk.ecmas.extensions.ObjectDefinitionPrototype.callProcedure(ObjectDefinitionPrototype.java:196)
at com.gtnet.pk.nav.KernelSession.internalAction(KernelSession.java:2344)
at com.gtnet.pk.nav.KernelSession.fireEvent(KernelSession.java:2154)
at com.gtnet.pk.nav.KernelSession.runOnEvent(KernelSession.java:1205)
at com.gtnet.pk.nav.KernelSession.handleEventImpl(KernelSession.java:1098)
at com.gtnet.pk.nav.KernelSession.handleEvent(KernelSession.java:1058)
at com.gtnet.pk.comms.ClientSession.handleClientEvent(ClientSession.java:1962)
at com.gtnet.pk.comms.ClientSession.onInput(ClientSession.java:1843)
at com.gtnet.j2ee.components.ejb.GTProcessEngineEJB.onInput(GTProcessEngineEJB.java:168)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.ejb.StatefulSessionContainer$ContainerInterceptor.invoke(StatefulSessionContainer.java:948)
at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:118)
at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:185)
at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84)
at org.jboss.ejb.plugins.AbstractTxInterceptorBMT.invokeNext(AbstractTxInterceptorBMT.java:144)
at org.jboss.ejb.plugins.TxInterceptorBMT.invoke(TxInterceptorBMT.java:62)
at org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.invoke(StatefulSessionInstanceInterceptor.java:269)
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
at org.jboss.ejb.StatefulSessionContainer.internalInvoke(StatefulSessionContainer.java:416)
at org.jboss.ejb.Container.invoke(Container.java:700)
at sun.reflect.GeneratedMethodAccessor36.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:101)
at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:90)
at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:46)
at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:45)
at org.jboss.proxy.ejb.StatefulSessionInterceptor.invoke(StatefulSessionInterceptor.java:104)
at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:85)
at $Proxy43.onInput(Unknown Source)
at com.gtnet.j2ee.comms.ClientController.onInput(ClientController.java:43)
at com.gtnet.win.OnInputEventProcessor.processEvent(OnInputEventProcessor.java:30)
at com.gtnet.j2ee.comms.UniversalController.pumpOneEvent(UniversalController.java:804)
at com.gtnet.j2ee.comms.UniversalController.processEventQueue(UniversalController.java:788)
at com.gtnet.j2ee.comms.UniversalController.pumpEvents(UniversalController.java:754)
at com.gtnet.j2ee.comms.UniversalController.run(UniversalController.java:1071)
at java.lang.Thread.run(Thread.java:534)

.
.
.

2009-03-13 16:55:22,129 ERROR [org.jboss.ejb.plugins.LogInterceptor] Unexpected Error:
java.lang.StackOverflowError
at com.gtnet.pk.ecmas.extensions.GTDecimalPrototype.getDefaultValue(GTDecimalPrototype.java:287)
at FESI.Data.ESObject.getDefaultValue(ESObject.java:499)
at FESI.Data.ESObject.toESPrimitive(ESObject.java:667)
at FESI.Interpreter.EcmaScriptEvaluateVisitor.equal(EcmaScriptEvaluateVisitor.java:310)
at FESI.Interpreter.EcmaScriptEvaluateVisitor.equal(EcmaScriptEvaluateVisitor.java:310)




and the code around which this error is thrown is :

if(objCampaign.intCampaignID == 0){

.
.
.



The code is simple, have checked i am not calling methods on object when they are null etc and when i comment this one line out it works.

Have double checked that all the connections to the db which i have open is closed, at least from my codes point of view i call the 'close()' method.

Any suggestions as to whats wrong ???



many thanks in advance.
 
kiran mathew
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
2009-03-13 16:55:22,051 INFO [org.jboss.resource.connectionmanager.CachedConnectionManager] Closing a connection for you. Please close them yourself: org.jboss.resource.adapter.jdbc.WrappedConnection@7e3d2c


This warning is displayed by JBoss when you are not closing the database connections, statements or resultset properly. If its not closed Jboss closes it. This can be a problem if you are deploying the code in some other server, say tomcat since tomcat wouldnot close it for you.


2009-03-13 16:55:22,129 ERROR [org.jboss.ejb.plugins.LogInterceptor] Unexpected Error:
java.lang.StackOverflowError
at com.gtnet.pk.ecmas.extensions.GTDecimalPrototype.getDefaultValue(GTDecimalPrototype.java:287)

You need to investigate further into this also.

 
nikil shar
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok i understand that some db connection might be open, but what i dont understand is why does it error at this particular line of code ??

i mean at this point the db query has returned, i have signalled to the server to close the db connection by calling 'close()' and the 'objCampaign' object has been populated with the results of the query. So why would it error when i try and read the 'objCampaign.intCampaignID' ??
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!