You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "ant elder (JIRA)" <de...@tuscany.apache.org> on 2008/10/20 12:24:44 UTC

[jira] Updated: (TUSCANY-2616) when calling executedQuery() on "Command typed object" a noSuchMethodError is thrown

     [ https://issues.apache.org/jira/browse/TUSCANY-2616?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

ant elder updated TUSCANY-2616:
-------------------------------

    Fix Version/s: Java-DAS-Next

> when calling executedQuery() on "Command typed object" a noSuchMethodError is thrown
> ------------------------------------------------------------------------------------
>
>                 Key: TUSCANY-2616
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-2616
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java DAS RDB
>         Environment: Windows XP, Eclipse Ganymede Runtime Environment, Java 1.5.09, Tuscany Version beta2
>            Reporter: Oliver Stöcker
>            Priority: Blocker
>             Fix For: Java-DAS-Next
>
>
> following code is been copied from tuscanys 'ResultSetDrivenDataObjectTypes' page
> <code>
> DAS das = DAS.FACTORY.createDAS(this.getConnection());
> Command readCustomers = das.createCommand("select * from CUSTOMER where LASTNAME='Williams'");
> DataObject root = readCustomers.executeQuery();
> </code>
> the last line of code leads to the above mentioned error
> (These lines of code I ran in a TestCase based class, thats why the JUnit Classes appear at the end. I also tired is as simple java application)
> the error line in GraphBuilderMetadata class is:
> <code>
> private HelperContext helperContext = HelperProvider.getInstance().getDefaultContext();   
> </code>
> Stacktrace as follows:
> java.lang.NoSuchMethodError: commonj.sdo.impl.HelperProvider.getInstance()Lcommonj/sdo/impl/HelperProvider;
> 	at org.apache.tuscany.das.rdb.graphbuilder.impl.GraphBuilderMetadata.<init>(GraphBuilderMetadata.java:57)
> 	at org.apache.tuscany.das.rdb.impl.ReadCommandImpl.buildGraph(ReadCommandImpl.java:295)
> 	at org.apache.tuscany.das.rdb.impl.ReadCommandImpl.executeQuery(ReadCommandImpl.java:277)
> 	at org.sopera.ostoecker.devel.mt.prototype.test.RelationalDASTest.testDAS(RelationalDASTest.java:59)
> 	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 junit.framework.TestCase.runTest(TestCase.java:168)
> 	at junit.framework.TestCase.runBare(TestCase.java:134)
> 	at junit.framework.TestResult$1.protect(TestResult.java:110)
> 	at junit.framework.TestResult.runProtected(TestResult.java:128)
> 	at junit.framework.TestResult.run(TestResult.java:113)
> 	at junit.framework.TestCase.run(TestCase.java:124)
> 	at junit.framework.TestSuite.runTest(TestSuite.java:232)
> 	at junit.framework.TestSuite.run(TestSuite.java:227)
> 	at org.junit.internal.runners.OldTestClassRunner.run(OldTestClassRunner.java:76)
> 	at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:45)
> 	at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
> 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
> 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
> 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
> 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.