[ 
http://issues.apache.org/jira/browse/TUSCANY-333?page=comments#action_12383375 
] 

Jean-Sebastien Delfino commented on TUSCANY-333:
------------------------------------------------

Now getting a different error:

SEVERE: Servlet.service() for servlet LoginServlet threw exception
org.osoa.sca.ServiceUnavailableException: org.osoa.sca.ServiceRuntimeException: 
org.apache.axis2.AxisFault: Failed to get customer profile'null' ; nested 
exception is: 
        java.lang.RuntimeException: SQL Exception: An attempt was made to get a 
data value of type 'VARCHAR' from a data value of type 'null'.
        at 
bigbank.webclient.services.account.AccountServiceComponentImpl.getCustomerProfile(AccountServiceComponentImpl.java:78)
        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 
org.apache.tuscany.container.java.invocation.AbstractJavaComponentInvoker.invokeTarget(AbstractJavaComponentInvoker.java:58)
        at 
org.apache.tuscany.container.java.invocation.AbstractJavaComponentInvoker.invoke(AbstractJavaComponentInvoker.java:67)
        at 
org.apache.tuscany.core.wire.impl.InvokerInterceptor.invoke(InvokerInterceptor.java:39)
        at 
org.apache.tuscany.core.wire.jdk.JDKInvocationHandler.invoke(JDKInvocationHandler.java:112)
        at $Proxy19.getCustomerProfile(Unknown Source)
        at 
bigbank.webclient.services.profile.AccountLoginServiceImpl.login(AccountLoginServiceImpl.java:36)
        at bigbank.webclient.ui.LoginServlet.login(LoginServlet.java:90)
        at bigbank.webclient.ui.LoginServlet.doPost(LoginServlet.java:65)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
        at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
        at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
        at org.apache.tuscany.tomcat.TuscanyValve.invoke(TuscanyValve.java:87)
        at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
        at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
        at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
        at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
        at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
        at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
        at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
        at 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
        at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
        at java.lang.Thread.run(Thread.java:595)
Caused by: org.osoa.sca.ServiceRuntimeException: org.apache.axis2.AxisFault: 
Failed to get customer profile'null' ; nested exception is: 
        java.lang.RuntimeException: SQL Exception: An attempt was made to get a 
data value of type 'VARCHAR' from a data value of type 'null'.
        at 
org.apache.tuscany.binding.axis2.externalservice.Axis2ServiceInvoker.invoke(Axis2ServiceInvoker.java:56)
        at 
org.apache.tuscany.core.extension.ExternalServiceTargetInvoker.doInvoke(ExternalServiceTargetInvoker.java:84)
        at 
org.apache.tuscany.core.extension.ExternalServiceTargetInvoker.invokeTarget(ExternalServiceTargetInvoker.java:77)
        at 
org.apache.tuscany.core.extension.ExternalServiceTargetInvoker.invoke(ExternalServiceTargetInvoker.java:93)
        at 
org.apache.tuscany.core.wire.impl.InvokerInterceptor.invoke(InvokerInterceptor.java:39)
        at 
org.apache.tuscany.core.wire.jdk.JDKInvocationHandler.invoke(JDKInvocationHandler.java:112)
        at $Proxy19.getCustomerProfile(Unknown Source)
        at 
bigbank.webclient.services.account.AccountServiceComponentImpl.getCustomerProfile(AccountServiceComponentImpl.java:76)
        ... 29 more
Caused by: org.apache.axis2.AxisFault: Failed to get customer profile'null' ; 
nested exception is: 
        java.lang.RuntimeException: SQL Exception: An attempt was made to get a 
data value of type 'VARCHAR' from a data value of type 'null'.
        at 
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:287)
        at 
org.apache.tuscany.binding.axis2.externalservice.Axis2OperationInvoker.invokeOperation(Axis2OperationInvoker.java:81)
        at 
org.apache.tuscany.binding.axis2.externalservice.Axis2ServiceInvoker.invoke(Axis2ServiceInvoker.java:53)
        ... 36 more
Caused by: java.lang.Exception: org.apache.axis2.AxisFault: Failed to get 
customer profile'null' ; nested exception is: 
        java.lang.RuntimeException: SQL Exception: An attempt was made to get a 
data value of type 'VARCHAR' from a data value of type 'null'.; nested 
exception is: 
        java.rmi.RemoteException: Failed to get customer profile'null' ; nested 
exception is: 
        java.lang.RuntimeException: SQL Exception: An attempt was made to get a 
data value of type 'VARCHAR' from a data value of type 'null'.
        at org.apache.axis2.AxisFault.makeFault(AxisFault.java:318)
        at 
org.apache.tuscany.binding.axis2.entrypoint.WebServiceEntryPointInOutSyncMessageReceiver.invokeBusinessLogic(WebServiceEntryPointInOutSyncMessageReceiver.java:88)
        at 
org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:37)
        at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:454)
        at 
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284)
        at 
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:136)
        at 
org.apache.tuscany.binding.axis2.entrypoint.WebServiceEntryPointServlet.doPost(WebServiceEntryPointServlet.java:101)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
        at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
        at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
        at org.apache.tuscany.tomcat.TuscanyValve.invoke(TuscanyValve.java:87)
        at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
        at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
        at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
        at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
        at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
        at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
        at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
        at 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
        at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
        at java.lang.Thread.run(Thread.java:595)
Caused by: java.rmi.RemoteException: Failed to get customer profile'null' ; 
nested exception is: 
        java.lang.RuntimeException: SQL Exception: An attempt was made to get a 
data value of type 'VARCHAR' from a data value of type 'null'.
        at 
bigbank.account.services.accountdata.AccountDataServiceDASImpl.getCustomerProfile(AccountDataServiceDASImpl.java:90)
        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 
org.apache.tuscany.container.java.invocation.AbstractJavaComponentInvoker.invokeTarget(AbstractJavaComponentInvoker.java:58)
        at 
org.apache.tuscany.container.java.invocation.AbstractJavaComponentInvoker.invoke(AbstractJavaComponentInvoker.java:67)
        at 
org.apache.tuscany.core.wire.impl.InvokerInterceptor.invoke(InvokerInterceptor.java:39)
        at 
org.apache.tuscany.core.wire.jdk.JDKInvocationHandler.invoke(JDKInvocationHandler.java:112)
        at $Proxy21.getCustomerProfile(Unknown Source)
        at 
bigbank.account.services.account.AccountServiceImpl.getCustomerProfile(AccountServiceImpl.java:187)
        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 
org.apache.tuscany.container.java.invocation.AbstractJavaComponentInvoker.invokeTarget(AbstractJavaComponentInvoker.java:58)
        at 
org.apache.tuscany.container.java.invocation.AbstractJavaComponentInvoker.invoke(AbstractJavaComponentInvoker.java:67)
        at 
org.apache.tuscany.core.wire.impl.InvokerInterceptor.invoke(InvokerInterceptor.java:39)
        at 
org.apache.tuscany.core.wire.jdk.JDKInvocationHandler.invoke(JDKInvocationHandler.java:112)
        at $Proxy18.getCustomerProfile(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 
org.apache.tuscany.binding.axis2.entrypoint.WebServiceEntryPointInOutSyncMessageReceiver.invokeBusinessLogic(WebServiceEntryPointInOutSyncMessageReceiver.java:61)
        ... 22 more
Caused by: java.lang.RuntimeException: SQL Exception: An attempt was made to 
get a data value of type 'VARCHAR' from a data value of type 'null'.
        at 
org.apache.tuscany.das.rdb.impl.ReadCommandImpl.executeQuery(ReadCommandImpl.java:79)
        at 
bigbank.account.services.accountdata.AccountDataServiceDASImpl.getCustomerProfile(AccountDataServiceDASImpl.java:79)
        ... 46 more
Caused by: SQL Exception: An attempt was made to get a data value of type 
'VARCHAR' from a data value of type 'null'.
        at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown Source)
        at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown Source)
        at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Unknown 
Source)
        at org.apache.derby.impl.jdbc.EmbedConnection.newSQLException(Unknown 
Source)
        at org.apache.derby.impl.jdbc.ConnectionChild.newSQLException(Unknown 
Source)
        at 
org.apache.derby.impl.jdbc.EmbedPreparedStatement.dataTypeConversion(Unknown 
Source)
        at org.apache.derby.impl.jdbc.EmbedPreparedStatement.setObject(Unknown 
Source)
        at 
org.apache.tuscany.das.rdb.impl.Statement.setParameters(Statement.java:157)
        at 
org.apache.tuscany.das.rdb.impl.Statement.executeQuery(Statement.java:48)
        at 
org.apache.tuscany.das.rdb.impl.ReadCommandImpl.executeQuery(ReadCommandImpl.java:75)
        ... 47 more

        at org.apache.axis2.AxisFault.<init>(AxisFault.java:159)
        ... 39 more


> BigBank intermittently  gets ClassCastException
> -----------------------------------------------
>
>          Key: TUSCANY-333
>          URL: http://issues.apache.org/jira/browse/TUSCANY-333
>      Project: Tuscany
>         Type: Bug

>   Components: Java BigBank Scenario
>     Versions: Java-M1
>     Reporter: Rick Rineholt
>     Assignee: ant elder
>     Priority: Critical
>      Fix For: Java-M1
>  Attachments: 333.patch
>
> I have noticed this behavior but it's really hard to repro.  I have  debugged 
> it once and it occured in the sun proxyy code I think right after 
> JDKInvocationHandler.invoke call.  The only regular pattern I've been able to 
> see if there is a previous un releated exception like an invalid user name is 
> entered that generates an expected exception it seems sometimes after this, 
> this exception continues to get thrown for any activity. Once this happens it 
> seems the only cure is to recycle TC server.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to