You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by "Jean-Louis MONTEIRO (JIRA)" <ji...@apache.org> on 2019/08/05 15:39:00 UTC

[jira] [Commented] (TOMEE-2604) Derby TCK setup not finding StoredProc

    [ https://issues.apache.org/jira/browse/TOMEE-2604?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16900158#comment-16900158 ] 

Jean-Louis MONTEIRO commented on TOMEE-2604:
--------------------------------------------

Fix pushed. Issue was with the exec maven plugin which is by default including all runtime dependencies. The dbprocedures jar is referenced as a system dependency so it does not get included.

> Derby TCK setup not finding StoredProc
> --------------------------------------
>
>                 Key: TOMEE-2604
>                 URL: https://issues.apache.org/jira/browse/TOMEE-2604
>             Project: TomEE
>          Issue Type: Sub-task
>            Reporter: Jean-Louis MONTEIRO
>            Assignee: Jean-Louis MONTEIRO
>            Priority: Major
>
> When running jakarta EE 8 TCK, there is a ClassNotFoundException happening because the stored procs can't be found.
>  
> To reproduce, you can run this `./runtests --web tomee-plus com.sun.ts.tests.jdbc.ee.callStmt.callStmt1.callStmtClient1`
>  
> You should see in javatest.log
>  
> {code:java}
> 07-30-2019 17:54:03: ERROR: java.sql.SQLSyntaxErrorException: The class 'com.sun.ts.lib.tests.jdbc.CS_Procs' does not exist or is inaccessible. This can happen if the class is not public.
> at org.apache.derby.client.am.SQLExceptionFactory40.getSQLException(Unknown Source)
> at org.apache.derby.client.am.SqlException.getSQLException(Unknown Source)
> at org.apache.derby.client.am.Connection.prepareCall(Unknown Source)
> at com.sun.ts.tests.jdbc.ee.callStmt.callStmt1.callStmtClient1.testGetBigDecimal01(callStmtClient1.java:135)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at com.sun.ts.lib.harness.EETest.run(EETest.java:596)
> at com.sun.ts.lib.harness.ServiceEETest.run(ServiceEETest.java:115)
> at com.sun.ts.tests.common.vehicle.EmptyVehicleRunner.run(EmptyVehicleRunner.java:40)
> at com.sun.ts.lib.harness.ServiceEETest.run(ServiceEETest.java:105)
> at com.sun.ts.lib.harness.EETest.getPropsReady(EETest.java:486)
> at com.sun.ts.lib.harness.ServiceEETest.run(ServiceEETest.java:209)
> at com.sun.ts.lib.harness.EETest.run(EETest.java:285)
> at com.sun.ts.tests.common.vehicle.VehicleClient.main(VehicleClient.java:38)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at org.apache.openejb.client.Main.invoke(Main.java:132)
> at org.apache.openejb.client.Main.main(Main.java:100)
> Caused by: org.apache.derby.client.am.SqlException: The class 'com.sun.ts.lib.tests.jdbc.CS_Procs' does not exist or is inaccessible. This can happen if the class is not public.
> at org.apache.derby.client.am.Statement.completeSqlca(Unknown Source)
> at org.apache.derby.client.net.NetStatementReply.parsePrepareError(Unknown Source)
> at org.apache.derby.client.net.NetStatementReply.parsePRPSQLSTTreply(Unknown Source)
> at org.apache.derby.client.net.NetStatementReply.readPrepare(Unknown Source)
> at org.apache.derby.client.net.StatementReply.readPrepare(Unknown Source)
> at org.apache.derby.client.net.NetStatement.readPrepare_(Unknown Source)
> at org.apache.derby.client.am.Statement.readPrepare(Unknown Source)
> at org.apache.derby.client.am.PreparedStatement.readPrepareDescribeInput(Unknown Source)
> at org.apache.derby.client.am.PreparedStatement.flowPrepareDescribeInputOutput(Unknown Source)
> at org.apache.derby.client.am.PreparedStatement.prepare(Unknown Source)
> at org.apache.derby.client.am.Connection.prepareCallX(Unknown Source)
> ... 20 more
> Caused by: org.apache.derby.client.am.SqlException: Java exception: 'com.sun.ts.lib.tests.jdbc.CS_Procs: java.lang.ClassNotFoundException'.
> ... 31 more
> {code}
>  
>  
>  
>  
>  



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)