Hi Chethiya, On Tue, Oct 23, 2012 at 12:30 AM, Chethiya Abeysinghe <[email protected]>wrote:
> Hi, > > I did following change to the RDBMS sample in DSS 3.0 to do the $subject > and it started giving following error. Any clue on what's happening here. > If you have a close look at the sources, #_getServiceClient is not a method exposed by the code-gened RDBMSSample interface (which only carries the methods exposed by the service) rather it's exposed by the abstract class org.apache.axis2.client.Stub. So use an instance of RDBMSStub instead. :) > > > Index: src/org/wso2/carbon/dataservices/samples/RDBMSSample.java > =================================================================== > --- src/org/wso2/carbon/dataservices/samples/RDBMSSample.java (revision > 142211) > +++ src/org/wso2/carbon/dataservices/samples/RDBMSSample.java (working > copy) > @@ -28,6 +28,7 @@ > String epr = "http://" + HOST_IP + ":" + HOST_HTTP_PORT + > "/services/samples/RDBMSSample"; > org.wso2.carbon.dataservices.samples.rdbms_sample.RDBMSSample stub = > new RDBMSSampleStub(epr); > + /* > Customer[] customers = stub.customersInBoston(); > System.out.println("EPR: " + epr + "\n"); > System.out.println("Customers:-"); > @@ -46,6 +47,33 @@ > Employee empl = stub.employeesByNumber(1002)[0]; > System.out.println("\tName: " + empl.getFirstName() + " " + > empl.getLastName()); > System.out.println("\tEmployee Number: " + empl.getEmail()); > + > + */ > + > + System.out.println("\nBoxcar test------"); > + > + Employee empl = stub.employeesByNumber(1002)[0]; > + System.out.println("\tEmployee Number: 1002 - " + empl.getFirstName()); > + System.out.println("\tEmployee Salary: " + empl.getSalary()); > + > + > + stub._getServiceClient().getOptions().setManageSession(true); > + System.out.println("\tsub._getServiceClient"); > + > + > + stub.begin_boxcar(); > + System.out.println("\tbegin boxcar"); > + stub.incrementEmployeeSalary(5000.0, 1002); > + System.out.println("\tincrementemp"); > + stub.end_boxcar(); > + System.out.println("\tend_box"); > + > + > + empl = stub.employeesByNumber(1002)[0]; > + System.out.println("\tEmployee Number: 1002 - " + empl.getFirstName()); > + System.out.println("\tEmployee Salary: " + empl.getSalary()); > + > + > } > > } > > And the error is: > > > Chethiyas-MacBook-Pro:clients chethiya$ mvn clean install > -Dmaven.test.skip=true > [INFO] Scanning for projects... > [INFO] > > [INFO] > ------------------------------------------------------------------------ > [INFO] Building DataServices Clients 3.0.0 > [INFO] > ------------------------------------------------------------------------ > [INFO] > [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ > dataservice-client-samples --- > [INFO] Deleting > /Users/chethiya/wso2/carbon/branch/4.0.0/platform/products/dss/3.0.0/modules/samples/clients/target > [INFO] > [INFO] --- incremental-build-plugin:1.3:incremental-build (default) @ > dataservice-client-samples --- > [INFO] Verifying module descriptor ... > [INFO] Pom descriptor modification detected. > [INFO] Deleting > /Users/chethiya/wso2/carbon/branch/4.0.0/platform/products/dss/3.0.0/modules/samples/clients/target > [INFO] > [INFO] --- maven-antrun-plugin:1.1:run (generate-code) @ > dataservice-client-samples --- > [INFO] Executing tasks > [java] Retrieving document at 'wsdl/RDBMSSample.wsdl'. > [java] Retrieving document at 'wsdl/DTPSampleService.wsdl'. > [java] Retrieving document at 'wsdl/NestedQuerySample.wsdl'. > [java] Retrieving document at 'wsdl/FileService.wsdl'. > [java] Retrieving document at 'wsdl/EventingSample.wsdl'. > [java] Retrieving document at 'wsdl/BatchRequestSample.wsdl'. > [java] Retrieving document at 'wsdl/CSVSampleService.wsdl'. > [java] Retrieving document at 'wsdl/ExcelSampleService.wsdl'. > [java] Retrieving document at 'wsdl/GSpreadSample.wsdl'. > [java] Retrieving document at 'wsdl/SecureDataService.wsdl'. > [java] Retrieving document at 'wsdl/FaultDBService.wsdl'. > [INFO] Executed tasks > [INFO] > [INFO] --- build-helper-maven-plugin:1.7:add-source (add-source) @ > dataservice-client-samples --- > [INFO] Source directory: > /Users/chethiya/wso2/carbon/branch/4.0.0/platform/products/dss/3.0.0/modules/samples/clients/target/generated/src > added. > [INFO] > [INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ > dataservice-client-samples --- > [INFO] Using 'UTF-8' encoding to copy filtered resources. > [INFO] skip non existing resourceDirectory > /Users/chethiya/wso2/carbon/branch/4.0.0/platform/products/dss/3.0.0/modules/samples/clients/src/main/resources > [INFO] > [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ > dataservice-client-samples --- > [INFO] Compiling 204 source files to > /Users/chethiya/wso2/carbon/branch/4.0.0/platform/products/dss/3.0.0/modules/samples/clients/target/classes > [INFO] ------------------------------------------------------------- > [ERROR] COMPILATION ERROR : > [INFO] ------------------------------------------------------------- > [ERROR] > /Users/chethiya/wso2/carbon/branch/4.0.0/platform/products/dss/3.0.0/modules/samples/clients/src/org/wso2/carbon/dataservices/samples/RDBMSSample.java:[60,6] > cannot find symbol > symbol : method _getServiceClient() > location: interface > org.wso2.carbon.dataservices.samples.rdbms_sample.RDBMSSample > [INFO] 1 error > [INFO] ------------------------------------------------------------- > [INFO] > ------------------------------------------------------------------------ > [INFO] BUILD FAILURE > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: 50.653s > [INFO] Finished at: Mon Oct 22 13:55:09 CDT 2012 > [INFO] Final Memory: 19M/528M > [INFO] > ------------------------------------------------------------------------ > [ERROR] Failed to execute goal > org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile > (default-compile) on project dataservice-client-samples: Compilation failure > [ERROR] > /Users/chethiya/wso2/carbon/branch/4.0.0/platform/products/dss/3.0.0/modules/samples/clients/src/org/wso2/carbon/dataservices/samples/RDBMSSample.java:[60,6] > cannot find symbol > [ERROR] symbol : method _getServiceClient() > [ERROR] location: interface > org.wso2.carbon.dataservices.samples.rdbms_sample.RDBMSSample > [ERROR] -> [Help 1] > [ERROR] > [ERROR] To see the full stack trace of the errors, re-run Maven with the > -e switch. > [ERROR] Re-run Maven using the -X switch to enable full debug logging. > [ERROR] > [ERROR] For more information about the errors and possible solutions, > please read the following articles: > [ERROR] [Help 1] > http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException > Chethiyas-MacBook-Pro:clients chethiya$ > > -- > Chethiya Abeysinghe > Software Engineer; WSO2, Inc.; http://wso2.com/ > email: [email protected] phone: +94 777444891 > blog: chethiya3000.blogspot.com > > > > _______________________________________________ > Dev mailing list > [email protected] > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- Prabath Abeysekara Software Engineer WSO2 Inc. Email: [email protected] <[email protected]> Mobile: +94774171471 <http://harshana05.blogspot.com/>
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
