users@glassfish.java.net

Toplink - Invalid value for getLong() - 'String' in column 5

From: <glassfish_at_javadesktop.org>
Date: Mon, 12 Mar 2007 00:42:46 PST

Hi,

I'm getting the following error by toplink when when a collection of entities (named 'Attribute') being loaded by Toplink,

Here are some details about the entities:
class Attribute {
  Collection<AttributeValue> values;

 @OneToMany(cascade = {mappedBy="attribute", fetch=FetchType.EAGER)
  public List<AttributeValue> getValues() {
     return values;
  }
}

...
@Entity @Inheritance(strategy=InheritanceType.SINGLE_TABLE)
@DiscriminatorColumn(name="VALUE_TYPE")
class AttributeValue {
  ...
  ...
  @Transient
  public abstract String getAsString();
        
  @Transient
  public abstract Long getAsLong();
        
  @Transient
  public abstract Integer getAsInt();

  // and some other not interstring methods
}

now I have few entities inherited from AttributeValue entity:

here's an example:
@DiscriminatorValue("LONG")
public AttributeValueLong {
  private Long value;

  public void setValue(Long value) {
                this.value = value;
  }

  @Column(name="VALUE")
  public Long getValue() {
        return value;
  }
}


Or a String one:
@DiscriminatorValue("STRING")
public AttributeValueString {
  private String value;

  public void setValue(String value) {
                this.value = value;
  }

  @Column(name="VALUE")
  public String getValue() {
        return value;
  }
}


I could see that the table rows created perfectly with the correct value in the Discriminator Column, but when the collection being loaded, I get the above mentioned error,


I think it didnt happen when I used 'InheritanceType.TABLE_PER_CLASS', it started when I used 'InheritanceType.SINGLE_TABLE'.


I'm not sure why, but looks like toplink tries to load the values as long instead of as string.


For instance, I could see this error:
java.sql.SQLException: Invalid value for getLong() - 'rofl' in column 5

While in the table I see the corresponding row as:
5 | STRING | 21 | rofl

As the Discriminator value is 'STRING' the corresponding entity is 'AttributeValueString' entity which returns the value as String.


Here's the full stack trace, just in case:


[#|2007-03-07T15:08:39.735+0200|WARNING|sun-appserver9.1|oracle.toplink.essentials.session.file:/opt/glassfish/domains/domain1/applications/j2ee-apps/edm/lib/entities.jar-pu1.sql|_ThreadID=16;_ThreadName=p: thread-pool-1; w: 4;_RequestID=7cf8d15f-fea6-45f3-b49f-65bb2e8e0ccc;|
java.sql.SQLException: Invalid value for getLong() - 'ASDFASDF' in column 5
        at com.mysql.jdbc.ResultSet.getLongFromString(ResultSet.java:2632)
        at com.mysql.jdbc.ResultSet.getNativeLong(ResultSet.java:3902)
        at com.mysql.jdbc.ResultSet.getLong(ResultSet.java:2588)
        at oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.getObjectThroughOptimizedDataConversion(DatabaseAccessor.java:971)
        at oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.getObject(DatabaseAccessor.java:904)
        at oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.fetchRow(DatabaseAccessor.java:746)
        at oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.basicExecuteCall(DatabaseAccessor.java:532)
        at oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.executeCall(DatabaseAccessor.java:437)
        at oracle.toplink.essentials.threetier.ServerSession.executeCall(ServerSession.java:465)
        at oracle.toplink.essentials.internal.queryframework.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:213)
        at oracle.toplink.essentials.internal.queryframework.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:199)
        at oracle.toplink.essentials.internal.queryframework.DatasourceCallQueryMechanism.executeSelectCall(DatasourceCallQueryMechanism.java:270)
        at oracle.toplink.essentials.internal.queryframework.DatasourceCallQueryMechanism.selectAllRows(DatasourceCallQueryMechanism.java:600)
        at oracle.toplink.essentials.internal.queryframework.ExpressionQueryMechanism.selectAllRowsFromTable(ExpressionQueryMechanism.java:2217)
        at oracle.toplink.essentials.internal.queryframework.ExpressionQueryMechanism.selectAllRows(ExpressionQueryMechanism.java:2195)
        at oracle.toplink.essentials.queryframework.ReadAllQuery.executeObjectLevelReadQuery(ReadAllQuery.java:302)
        at oracle.toplink.essentials.queryframework.ObjectLevelReadQuery.executeDatabaseQuery(ObjectLevelReadQuery.java:709)
        at oracle.toplink.essentials.queryframework.DatabaseQuery.execute(DatabaseQuery.java:609)
        at oracle.toplink.essentials.queryframework.ObjectLevelReadQuery.execute(ObjectLevelReadQuery.java:677)
        at oracle.toplink.essentials.internal.sessions.AbstractSession.internalExecuteQuery(AbstractSession.java:1815)
        at oracle.toplink.essentials.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:937)
        at oracle.toplink.essentials.internal.indirection.NoIndirectionPolicy.valueFromQuery(NoIndirectionPolicy.java:235)
        at oracle.toplink.essentials.mappings.ForeignReferenceMapping.valueFromRowInternal(ForeignReferenceMapping.java:953)
        at oracle.toplink.essentials.mappings.ForeignReferenceMapping.valueFromRow(ForeignReferenceMapping.java:890)
        at oracle.toplink.essentials.mappings.DatabaseMapping.readFromRowIntoObject(DatabaseMapping.java:1007)
        at oracle.toplink.essentials.internal.descriptors.ObjectBuilder.buildAttributesIntoObject(ObjectBuilder.java:266)
        at oracle.toplink.essentials.internal.descriptors.ObjectBuilder.buildObject(ObjectBuilder.java:554)
        at oracle.toplink.essentials.internal.descriptors.ObjectBuilder.buildObject(ObjectBuilder.java:374)
        at oracle.toplink.essentials.internal.descriptors.ObjectBuilder.buildObjectsInto(ObjectBuilder.java:645)
        at oracle.toplink.essentials.internal.queryframework.DatabaseQueryMechanism.buildObjectsFromRows(DatabaseQueryMechanism.java:165)
        at oracle.toplink.essentials.queryframework.ReadAllQuery.executeObjectLevelReadQuery(ReadAllQuery.java:312)
        at oracle.toplink.essentials.queryframework.ObjectLevelReadQuery.executeDatabaseQuery(ObjectLevelReadQuery.java:709)
        at oracle.toplink.essentials.queryframework.DatabaseQuery.execute(DatabaseQuery.java:609)
        at oracle.toplink.essentials.queryframework.ObjectLevelReadQuery.execute(ObjectLevelReadQuery.java:677)
        at oracle.toplink.essentials.internal.sessions.AbstractSession.internalExecuteQuery(AbstractSession.java:1815)
        at oracle.toplink.essentials.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:937)
        at oracle.toplink.essentials.internal.indirection.QueryBasedValueHolder.instantiate(QueryBasedValueHolder.java:86)
        at oracle.toplink.essentials.internal.indirection.QueryBasedValueHolder.instantiate(QueryBasedValueHolder.java:76)
        at oracle.toplink.essentials.internal.indirection.DatabaseValueHolder.getValue(DatabaseValueHolder.java:90)
        at oracle.toplink.essentials.internal.indirection.UnitOfWorkValueHolder.instantiateImpl(UnitOfWorkValueHolder.java:160)
        at oracle.toplink.essentials.internal.indirection.UnitOfWorkValueHolder.instantiate(UnitOfWorkValueHolder.java:232)
        at oracle.toplink.essentials.internal.indirection.DatabaseValueHolder.getValue(DatabaseValueHolder.java:90)
        at oracle.toplink.essentials.indirection.IndirectList.buildDelegate(IndirectList.java:193)
        at oracle.toplink.essentials.indirection.IndirectList.getDelegate(IndirectList.java:315)
        at oracle.toplink.essentials.indirection.IndirectList$1.<init>(IndirectList.java:410)
        at oracle.toplink.essentials.indirection.IndirectList.iterator(IndirectList.java:409)
        at edentity.ejb.impl.AccountBean.loadVirtualAccountAttribute(AccountBean.java:337)
        at sun.reflect.GeneratedMethodAccessor3239.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at com.sun.enterprise.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1055)
        at com.sun.enterprise.security.SecurityUtil.invoke(SecurityUtil.java:163)
        at com.sun.ejb.containers.BaseContainer.invokeTargetBeanMethod(BaseContainer.java:2846)
        at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:3930)
        at com.sun.ejb.containers.EJBObjectInvocationHandler.invoke(EJBObjectInvocationHandler.java:190)
        at com.sun.ejb.containers.EJBObjectInvocationHandlerDelegate.invoke(EJBObjectInvocationHandlerDelegate.java:64)
        at $Proxy357.loadVirtualAccountAttribute(Unknown Source)
        at sun.reflect.GeneratedMethodAccessor3238.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.privateInvoke(StubInvocationHandlerImpl.java:204)
        at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.invoke(StubInvocationHandlerImpl.java:123)
        at com.sun.corba.ee.impl.presentation.rmi.bcel.BCELStubBase.invoke(BCELStubBase.java:196)
        at edentity.ejb.interfaces.__AccountManagerRemote_Remote_DynamicStub.loadVirtualAccountAttribute(__AccountManagerRemote_Remote_DynamicStub.java)
        at edentity.ejb.interfaces._AccountManagerRemote_Wrapper.loadVirtualAccountAttribute(edentity.ejb.interfaces._AccountManagerRemote_Wrapper.java)
        at edentity.actions.tools.AccountTools.getVirtualAccountAttribute(AccountTools.java:143)
        at gjdk.edentity.actions.tools.CreateAccountTools_GroovyReflector.invoke(Unknown Source)
        at groovy.lang.MetaMethod.invoke(MetaMethod.java:111)
        at org.codehaus.groovy.runtime.MetaClassHelper.doMethodInvoke(MetaClassHelper.java:584)
        at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:345)
        at org.codehaus.groovy.runtime.Invoker.invokeMethod(Invoker.java:144)
        at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:104)
        at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethod(ScriptBytecodeAdapter.java:85)
        at QflowCreateAccountAction.buildQuery(script1173272918750.groovy:15)
        at edentity.actions.jdbc.JdbcTargetSystemAction.execute(JdbcTargetSystemAction.java:109)
        at edentity.actions.Action.__execute__(Action.java:197)
        at edentity.ejb.impl.TaskBean.executeActionInTask(TaskBean.java:315)
        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:585)
        at com.sun.enterprise.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1055)
        at com.sun.enterprise.security.SecurityUtil.invoke(SecurityUtil.java:163)
        at com.sun.ejb.containers.BaseContainer.invokeTargetBeanMethod(BaseContainer.java:2846)
        at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:3930)
        at com.sun.ejb.containers.EJBObjectInvocationHandler.invoke(EJBObjectInvocationHandler.java:190)
        at com.sun.ejb.containers.EJBObjectInvocationHandlerDelegate.invoke(EJBObjectInvocationHandlerDelegate.java:64)
        at $Proxy353.executeActionInTask(Unknown Source)
        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:585)
        at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.privateInvoke(StubInvocationHandlerImpl.java:204)
        at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.invoke(StubInvocationHandlerImpl.java:123)
        at com.sun.corba.ee.impl.presentation.rmi.bcel.BCELStubBase.invoke(BCELStubBase.java:196)
        at edentity.ejb.interfaces.__TaskManagerRemote_Remote_DynamicStub.executeActionInTask(__TaskManagerRemote_Remote_DynamicStub.java)
        at edentity.ejb.interfaces._TaskManagerRemote_Wrapper.executeActionInTask(edentity.ejb.interfaces._TaskManagerRemote_Wrapper.java)
        at edentity.tasks.BasicTaskExecuter.executeActionInTask(BasicTaskExecuter.java:34)
        at edentity.tasks.CreateAccountTaskExecuter.execute(CreateAccountTaskExecuter.java:50)
        at edentity.ejb.impl.MDBTaskExecuter.onMessage(MDBTaskExecuter.java:75)
        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:585)
        at com.sun.enterprise.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1055)
        at com.sun.enterprise.security.SecurityUtil.invoke(SecurityUtil.java:163)
        at com.sun.ejb.containers.BaseContainer.invokeTargetBeanMethod(BaseContainer.java:2846)
        at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:3930)
        at com.sun.ejb.containers.MessageBeanContainer.deliverMessage(MessageBeanContainer.java:996)
        at com.sun.ejb.containers.MessageBeanListenerImpl.deliverMessage(MessageBeanListenerImpl.java:61)
        at com.sun.enterprise.connectors.inflow.MessageEndpointInvocationHandler.invoke(MessageEndpointInvocationHandler.java:166)
        at $Proxy404.onMessage(Unknown Source)
        at com.sun.messaging.jms.ra.OnMessageRunner.run(OnMessageRunner.java:230)
        at com.sun.enterprise.connectors.work.OneWork.doWork(OneWork.java:63)
        at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:502)
|#]

[#|2007-03-07T15:08:39.751+0200|WARNING|sun-appserver9.1|oracle.toplink.essentials.session.file:/opt/glassfish/domains/domain1/applications/j2ee-apps/edm/lib/entities.jar-pu1.sql|_ThreadID=16;_ThreadName=p: thread-pool-1; w: 4;_RequestID=7cf8d15f-fea6-45f3-b49f-65bb2e8e0ccc;|
java.sql.SQLException: Invalid value for getLong() - 'rofl' in column 5
        at com.mysql.jdbc.ResultSet.getLongFromString(ResultSet.java:2632)
        at com.mysql.jdbc.ResultSet.getNativeLong(ResultSet.java:3902)
        at com.mysql.jdbc.ResultSet.getLong(ResultSet.java:2588)
        at oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.getObjectThroughOptimizedDataConversion(DatabaseAccessor.java:971)
        at oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.getObject(DatabaseAccessor.java:904)
        at oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.fetchRow(DatabaseAccessor.java:746)
        at oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.basicExecuteCall(DatabaseAccessor.java:532)
        at oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.executeCall(DatabaseAccessor.java:437)
        at oracle.toplink.essentials.threetier.ServerSession.executeCall(ServerSession.java:465)
        at oracle.toplink.essentials.internal.queryframework.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:213)
        at oracle.toplink.essentials.internal.queryframework.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:199)
        at oracle.toplink.essentials.internal.queryframework.DatasourceCallQueryMechanism.executeSelectCall(DatasourceCallQueryMechanism.java:270)
        at oracle.toplink.essentials.internal.queryframework.DatasourceCallQueryMechanism.selectAllRows(DatasourceCallQueryMechanism.java:600)
        at oracle.toplink.essentials.internal.queryframework.ExpressionQueryMechanism.selectAllRowsFromTable(ExpressionQueryMechanism.java:2217)
        at oracle.toplink.essentials.internal.queryframework.ExpressionQueryMechanism.selectAllRows(ExpressionQueryMechanism.java:2195)
        at oracle.toplink.essentials.queryframework.ReadAllQuery.executeObjectLevelReadQuery(ReadAllQuery.java:302)
        at oracle.toplink.essentials.queryframework.ObjectLevelReadQuery.executeDatabaseQuery(ObjectLevelReadQuery.java:709)
        at oracle.toplink.essentials.queryframework.DatabaseQuery.execute(DatabaseQuery.java:609)
        at oracle.toplink.essentials.queryframework.ObjectLevelReadQuery.execute(ObjectLevelReadQuery.java:677)
        at oracle.toplink.essentials.internal.sessions.AbstractSession.internalExecuteQuery(AbstractSession.java:1815)
        at oracle.toplink.essentials.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:937)
        at oracle.toplink.essentials.internal.indirection.NoIndirectionPolicy.valueFromQuery(NoIndirectionPolicy.java:235)
        at oracle.toplink.essentials.mappings.ForeignReferenceMapping.valueFromRowInternal(ForeignReferenceMapping.java:953)
        at oracle.toplink.essentials.mappings.ForeignReferenceMapping.valueFromRow(ForeignReferenceMapping.java:890)
        at oracle.toplink.essentials.mappings.DatabaseMapping.readFromRowIntoObject(DatabaseMapping.java:1007)
        at oracle.toplink.essentials.internal.descriptors.ObjectBuilder.buildAttributesIntoObject(ObjectBuilder.java:266)
        at oracle.toplink.essentials.internal.descriptors.ObjectBuilder.buildObject(ObjectBuilder.java:554)
        at oracle.toplink.essentials.internal.descriptors.ObjectBuilder.buildObject(ObjectBuilder.java:374)
        at oracle.toplink.essentials.internal.descriptors.ObjectBuilder.buildObjectsInto(ObjectBuilder.java:645)
        at oracle.toplink.essentials.internal.queryframework.DatabaseQueryMechanism.buildObjectsFromRows(DatabaseQueryMechanism.java:165)
        at oracle.toplink.essentials.queryframework.ReadAllQuery.executeObjectLevelReadQuery(ReadAllQuery.java:312)
        at oracle.toplink.essentials.queryframework.ObjectLevelReadQuery.executeDatabaseQuery(ObjectLevelReadQuery.java:709)
        at oracle.toplink.essentials.queryframework.DatabaseQuery.execute(DatabaseQuery.java:609)
        at oracle.toplink.essentials.queryframework.ObjectLevelReadQuery.execute(ObjectLevelReadQuery.java:677)
        at oracle.toplink.essentials.internal.sessions.AbstractSession.internalExecuteQuery(AbstractSession.java:1815)
        at oracle.toplink.essentials.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:937)
        at oracle.toplink.essentials.internal.indirection.QueryBasedValueHolder.instantiate(QueryBasedValueHolder.java:86)
        at oracle.toplink.essentials.internal.indirection.QueryBasedValueHolder.instantiate(QueryBasedValueHolder.java:76)
        at oracle.toplink.essentials.internal.indirection.DatabaseValueHolder.getValue(DatabaseValueHolder.java:90)
        at oracle.toplink.essentials.internal.indirection.UnitOfWorkValueHolder.instantiateImpl(UnitOfWorkValueHolder.java:160)
        at oracle.toplink.essentials.internal.indirection.UnitOfWorkValueHolder.instantiate(UnitOfWorkValueHolder.java:232)
        at oracle.toplink.essentials.internal.indirection.DatabaseValueHolder.getValue(DatabaseValueHolder.java:90)
        at oracle.toplink.essentials.indirection.IndirectList.buildDelegate(IndirectList.java:193)
        at oracle.toplink.essentials.indirection.IndirectList.getDelegate(IndirectList.java:315)
        at oracle.toplink.essentials.indirection.IndirectList$1.<init>(IndirectList.java:410)
        at oracle.toplink.essentials.indirection.IndirectList.iterator(IndirectList.java:409)
        at edentity.ejb.impl.AccountBean.loadVirtualAccountAttribute(AccountBean.java:337)
        at sun.reflect.GeneratedMethodAccessor3239.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at com.sun.enterprise.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1055)
        at com.sun.enterprise.security.SecurityUtil.invoke(SecurityUtil.java:163)
        at com.sun.ejb.containers.BaseContainer.invokeTargetBeanMethod(BaseContainer.java:2846)
        at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:3930)
        at com.sun.ejb.containers.EJBObjectInvocationHandler.invoke(EJBObjectInvocationHandler.java:190)
        at com.sun.ejb.containers.EJBObjectInvocationHandlerDelegate.invoke(EJBObjectInvocationHandlerDelegate.java:64)
        at $Proxy357.loadVirtualAccountAttribute(Unknown Source)
        at sun.reflect.GeneratedMethodAccessor3238.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.privateInvoke(StubInvocationHandlerImpl.java:204)
        at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.invoke(StubInvocationHandlerImpl.java:123)
        at com.sun.corba.ee.impl.presentation.rmi.bcel.BCELStubBase.invoke(BCELStubBase.java:196)
        at edentity.ejb.interfaces.__AccountManagerRemote_Remote_DynamicStub.loadVirtualAccountAttribute(__AccountManagerRemote_Remote_DynamicStub.java)
        at edentity.ejb.interfaces._AccountManagerRemote_Wrapper.loadVirtualAccountAttribute(edentity.ejb.interfaces._AccountManagerRemote_Wrapper.java)
        at edentity.actions.tools.AccountTools.getVirtualAccountAttribute(AccountTools.java:143)
        at gjdk.edentity.actions.tools.CreateAccountTools_GroovyReflector.invoke(Unknown Source)
        at groovy.lang.MetaMethod.invoke(MetaMethod.java:111)
        at org.codehaus.groovy.runtime.MetaClassHelper.doMethodInvoke(MetaClassHelper.java:584)
        at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:345)
        at org.codehaus.groovy.runtime.Invoker.invokeMethod(Invoker.java:144)
        at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:104)
        at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethod(ScriptBytecodeAdapter.java:85)
        at QflowCreateAccountAction.buildQuery(script1173272918750.groovy:15)
        at edentity.actions.jdbc.JdbcTargetSystemAction.execute(JdbcTargetSystemAction.java:109)
        at edentity.actions.Action.__execute__(Action.java:197)
        at edentity.ejb.impl.TaskBean.executeActionInTask(TaskBean.java:315)
        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:585)
        at com.sun.enterprise.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1055)
        at com.sun.enterprise.security.SecurityUtil.invoke(SecurityUtil.java:163)
        at com.sun.ejb.containers.BaseContainer.invokeTargetBeanMethod(BaseContainer.java:2846)
        at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:3930)
        at com.sun.ejb.containers.EJBObjectInvocationHandler.invoke(EJBObjectInvocationHandler.java:190)
        at com.sun.ejb.containers.EJBObjectInvocationHandlerDelegate.invoke(EJBObjectInvocationHandlerDelegate.java:64)
        at $Proxy353.executeActionInTask(Unknown Source)
        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:585)
        at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.privateInvoke(StubInvocationHandlerImpl.java:204)
        at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.invoke(StubInvocationHandlerImpl.java:123)
        at com.sun.corba.ee.impl.presentation.rmi.bcel.BCELStubBase.invoke(BCELStubBase.java:196)
        at edentity.ejb.interfaces.__TaskManagerRemote_Remote_DynamicStub.executeActionInTask(__TaskManagerRemote_Remote_DynamicStub.java)
        at edentity.ejb.interfaces._TaskManagerRemote_Wrapper.executeActionInTask(edentity.ejb.interfaces._TaskManagerRemote_Wrapper.java)
        at edentity.tasks.BasicTaskExecuter.executeActionInTask(BasicTaskExecuter.java:34)
        at edentity.tasks.CreateAccountTaskExecuter.execute(CreateAccountTaskExecuter.java:50)
        at edentity.ejb.impl.MDBTaskExecuter.onMessage(MDBTaskExecuter.java:75)
        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:585)
        at com.sun.enterprise.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1055)
        at com.sun.enterprise.security.SecurityUtil.invoke(SecurityUtil.java:163)
        at com.sun.ejb.containers.BaseContainer.invokeTargetBeanMethod(BaseContainer.java:2846)
        at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:3930)
        at com.sun.ejb.containers.MessageBeanContainer.deliverMessage(MessageBeanContainer.java:996)
        at com.sun.ejb.containers.MessageBeanListenerImpl.deliverMessage(MessageBeanListenerImpl.java:61)
        at com.sun.enterprise.connectors.inflow.MessageEndpointInvocationHandler.invoke(MessageEndpointInvocationHandler.java:166)
        at $Proxy404.onMessage(Unknown Source)
        at com.sun.messaging.jms.ra.OnMessageRunner.run(OnMessageRunner.java:230)
        at com.sun.enterprise.connectors.work.OneWork.doWork(OneWork.java:63)
        at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:502)








Thanks in advanced,

Asaf.
[Message sent by forum member 'trouby' (trouby)]

http://forums.java.net/jive/thread.jspa?messageID=207364