I have committed my changes in rev. 1324614. Now the tests should all pass.
Jacopo On Apr 11, 2012, at 9:48 AM, Jacopo Cappellato wrote: > Actually, I am reviewing the changes I did and I may be able to commit them > and fix the tests. > > Jacopo > > On Apr 11, 2012, at 9:24 AM, Jacopo Cappellato wrote: > >> Jacques, >> >> what a mess... I think we need to be more accurate here. >> >> The tests are failing since your commit 1311214 with the new test port >> numbers; I didn't follow the details and so I don't know exactly your >> reasoning behind this change and most of all why it was urgent. >> However, the changes below fixes the tests (but of course they cannot be >> committed in this form): >> >> Index: framework/common/servicedef/services_test.xml >> =================================================================== >> --- framework/common/servicedef/services_test.xml (revision 1311693) >> +++ framework/common/servicedef/services_test.xml (working copy) >> @@ -83,20 +83,20 @@ >> <service name="groupTest" engine="group" location="testGroup" invoke=""/> >> >> <service name="testHttp" engine="http" >> - location="http://localhost:8080/webtools/control/httpService" >> invoke="testScv"> >> + location="http://localhost:8081/webtools/control/httpService" >> invoke="testScv"> >> <description>HTTP service wrapper around the test >> service</description> >> <attribute name="message" type="String" mode="IN" optional="true"/> >> <attribute name="resp" type="String" mode="OUT"/> >> </service> >> >> <service name="testSoap" engine="soap" export="true" >> - location="http://localhost:8080/webtools/control/SOAPService" >> invoke="testSOAPScv"> >> + location="http://localhost:8081/webtools/control/SOAPService" >> invoke="testSOAPScv"> >> <description>SOAP service; calls the OFBiz test SOAP >> service</description> >> <implements service="testSOAPScv"/> >> </service> >> >> <service name="testSoapSimple" engine="soap" export="true" >> - location="http://localhost:8080/webtools/control/SOAPService" >> invoke="testScv"> >> + location="http://localhost:8081/webtools/control/SOAPService" >> invoke="testScv"> >> <description>simple SOAP service; calls the OFBiz test >> service</description> >> <implements service="testScv"/> >> </service> >> Index: framework/service/config/serviceengine.xml >> =================================================================== >> --- framework/service/config/serviceengine.xml (revision 1311693) >> +++ framework/service/config/serviceengine.xml (working copy) >> @@ -63,7 +63,7 @@ >> <engine name="ofbiz-workflow" >> class="org.ofbiz.workflow.WorkflowEngine"/> >> <engine name="workflow" >> class="org.ofbiz.shark.service.SharkServiceEngine"/> >> <engine name="xml-rpc-local" >> class="org.ofbiz.service.engine.XMLRPCClientEngine"> >> - <parameter name="url" >> value="http://localhost:8080/webtools/control/xmlrpc"/> >> + <parameter name="url" >> value="http://localhost:8081/webtools/control/xmlrpc"/> >> <parameter name="login" value="admin"/> >> <parameter name="password" value="ofbiz"/> >> </engine> >> Index: framework/service/src/org/ofbiz/service/test/XmlRpcTests.java >> =================================================================== >> --- framework/service/src/org/ofbiz/service/test/XmlRpcTests.java >> (revision 1311693) >> +++ framework/service/src/org/ofbiz/service/test/XmlRpcTests.java >> (working copy) >> @@ -37,7 +37,7 @@ >> >> public static final String module = XmlRpcTests.class.getName(); >> public static final String resource = "ServiceErrorUiLabels"; >> - public static final String url = >> "http://localhost:8080/webtools/control/xmlrpc"; >> + public static final String url = >> "http://localhost:8081/webtools/control/xmlrpc"; >> >> public XmlRpcTests(String name) { >> super(name); >> >> >> I am not sure how to implement properly the above changes... What if we >> revert your commit in the meantime? >> >> Jacopo >> >> >> >> On Apr 10, 2012, at 7:12 PM, Jacques Le Roux wrote: >> >>> You are right, this was only a failure. Hastily, I missed also 3 errors, >>> same reason I guess >>> >>> serviceteststestSOAPSimpleServiceErrorService did not return expected result >>> >>> org.ofbiz.service.GenericServiceException: Service did not return expected >>> result >>> at >>> org.ofbiz.service.engine.SOAPClientEngine.runSync(SOAPClientEngine.java:75) >>> at org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:396) >>> at org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:224) >>> at org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163) >>> at >>> org.ofbiz.service.test.ServiceSOAPTests.testSOAPSimpleService(ServiceSOAPTests.java:44) >>> at org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:146) >>> at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230) >>> at org.ofbiz.base.start.Start.startStartLoaders(Start.java:310) >>> at org.ofbiz.base.start.Start.start(Start.java:289) >>> at org.ofbiz.base.start.Start.main(Start.java:119) >>> 19.563 serviceteststestSOAPServiceErrorService did not return expected >>> result >>> >>> org.ofbiz.service.GenericServiceException: Service did not return expected >>> result >>> at >>> org.ofbiz.service.engine.SOAPClientEngine.runSync(SOAPClientEngine.java:75) >>> at org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:396) >>> at org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:224) >>> at org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163) >>> at >>> org.ofbiz.service.test.ServiceSOAPTests.testSOAPService(ServiceSOAPTests.java:55) >>> at org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:146) >>> at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230) >>> at org.ofbiz.base.start.Start.startStartLoaders(Start.java:310) >>> at org.ofbiz.base.start.Start.start(Start.java:289) >>> at org.ofbiz.base.start.Start.main(Start.java:119) >>> 4.531 serviceteststestXmlRpcRequestErrorFailed to read server's response: >>> Connection refused: connect >>> >>> org.apache.xmlrpc.XmlRpcException: Failed to read server's response: >>> Connection refused: connect >>> at >>> org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(XmlRpcStreamTransport.java:161) >>> at >>> org.apache.xmlrpc.client.XmlRpcHttpTransport.sendRequest(XmlRpcHttpTransport.java:115) >>> at >>> org.apache.xmlrpc.client.XmlRpcSunHttpTransport.sendRequest(XmlRpcSunHttpTransport.java:69) >>> at >>> org.apache.xmlrpc.client.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:56) >>> at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:167) >>> at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:137) >>> at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:126) >>> at org.ofbiz.service.test.XmlRpcTests.testXmlRpcRequest(XmlRpcTests.java:53) >>> at org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:146) >>> at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230) >>> at org.ofbiz.base.start.Start.startStartLoaders(Start.java:310) >>> at org.ofbiz.base.start.Start.start(Start.java:289) >>> at org.ofbiz.base.start.Start.main(Start.java:119) >>> Caused by: java.net.ConnectException: Connection refused: connect >>> at java.net.PlainSocketImpl.socketConnect(Native Method) >>> at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333) >>> at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195) >>> at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182) >>> at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366) >>> at java.net.Socket.connect(Socket.java:529) >>> at java.net.Socket.connect(Socket.java:478) >>> at sun.net.NetworkClient.doConnect(NetworkClient.java:163) >>> at sun.net.www.http.HttpClient.openServer(HttpClient.java:394) >>> at sun.net.www.http.HttpClient.openServer(HttpClient.java:529) >>> at sun.net.www.http.HttpClient.<init>(HttpClient.java:233) >>> at sun.net.www.http.HttpClient.New(HttpClient.java:306) >>> at sun.net.www.http.HttpClient.New(HttpClient.java:323) >>> at >>> sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:975) >>> at >>> sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:916) >>> at >>> sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:841) >>> at >>> sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1019) >>> at >>> org.apache.xmlrpc.client.XmlRpcSunHttpTransport.writeRequest(XmlRpcSunHttpTransport.java:104) >>> at >>> org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(XmlRpcStreamTransport.java:151) >>> Caused by: >>> java.net.ConnectException: Connection refused: connect >>> at java.net.PlainSocketImpl.socketConnect(Native Method) >>> at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333) >>> at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195) >>> at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182) >>> at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366) >>> at java.net.Socket.connect(Socket.java:529) >>> at java.net.Socket.connect(Socket.java:478) >>> at sun.net.NetworkClient.doConnect(NetworkClient.java:163) >>> at sun.net.www.http.HttpClient.openServer(HttpClient.java:394) >>> at sun.net.www.http.HttpClient.openServer(HttpClient.java:529) >>> at sun.net.www.http.HttpClient.<init>(HttpClient.java:233) >>> at sun.net.www.http.HttpClient.New(HttpClient.java:306) >>> at sun.net.www.http.HttpClient.New(HttpClient.java:323) >>> at >>> sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:975) >>> at >>> sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:916) >>> at >>> sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:841) >>> at >>> sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1019) >>> at >>> org.apache.xmlrpc.client.XmlRpcSunHttpTransport.writeRequest(XmlRpcSunHttpTransport.java:104) >>> at >>> org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(XmlRpcStreamTransport.java:151) >>> at >>> org.apache.xmlrpc.client.XmlRpcHttpTransport.sendRequest(XmlRpcHttpTransport.java:115) >>> at >>> org.apache.xmlrpc.client.XmlRpcSunHttpTransport.sendRequest(XmlRpcSunHttpTransport.java:69) >>> at >>> org.apache.xmlrpc.client.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:56) >>> at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:167) >>> at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:137) >>> at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:126) >>> at org.ofbiz.service.test.XmlRpcTests.testXmlRpcRequest(XmlRpcTests.java:53) >>> at org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:146) >>> at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230) >>> at org.ofbiz.base.start.Start.startStartLoaders(Start.java:310) >>> at org.ofbiz.base.start.Start.start(Start.java:289) >>> at org.ofbiz.base.start.Start.main(Start.java:119) >>> >>> Jacques >>> >>> >>> From: "Jacopo Cappellato" <[email protected]> >>>> ah I see... it is strange that you get just one test that is failing >>>> Jacopo >>>> On Apr 10, 2012, at 6:37 PM, Jacques Le Roux wrote: >>>>> I did not commit anything, as I said in a previous email (and you pointed >>>>> out also) I forgot to an clean-all load-demo >>>>> Jacques >>>>> From: "Jacopo Cappellato" <[email protected]> >>>>>> On Apr 10, 2012, at 5:32 PM, Jacques Le Roux wrote: >>>>>>> Only this one remains >>>>>> Jacques, I didn't see any commit yet >>>>>> Jacopo >>>> >> >
