| Author |
Message |
![[Post New]](/community/templates/default/images/icon_minipost_new.gif) 12/03/2009 03:18:55
|
nissane@hotmail.com
Joined: 12/03/2009 03:11:01
Messages: 18
Offline
|
I am getting this exception when I try to run unit tests. Can you lead me in the right direction?
Thanks...
INFO: Interceptor has thrown exception, unwinding now
org.apache.cxf.interceptor.Fault: Could not send Message.
at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:64)
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:220)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:296)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:242)
at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:17
at $Proxy51.testCall(Unknown Source)
at org.marketcetera.util.ws.stateless.ClientServerTestBase.calls(ClientServerTestBase.java:12
at org.marketcetera.util.ws.stateless.StatelessClientServerTest.calls(StatelessClientServerTest.java:22)
at org.marketcetera.util.ws.stateless.StatelessClientServerTest.basics(StatelessClientServerTest.java:40)
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:597)
at org.junit.internal.runners.TestMethod.invoke(TestMethod.java:59)
at org.junit.internal.runners.MethodRoadie.runTestMethod(MethodRoadie.java:9
at org.junit.internal.runners.MethodRoadie$2.run(MethodRoadie.java:79)
at org.junit.internal.runners.MethodRoadie.runBeforesThenTestThenAfters(MethodRoadie.java:87)
at org.junit.internal.runners.MethodRoadie.runTest(MethodRoadie.java:77)
at org.junit.internal.runners.MethodRoadie.run(MethodRoadie.java:42)
at org.junit.internal.runners.JUnit4ClassRunner.invokeTestMethod(JUnit4ClassRunner.java:8
at org.junit.internal.runners.JUnit4ClassRunner.runMethods(JUnit4ClassRunner.java:51)
at org.junit.internal.runners.JUnit4ClassRunner$1.run(JUnit4ClassRunner.java:44)
at org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:27)
at org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:37)
at org.junit.internal.runners.JUnit4ClassRunner.run(JUnit4ClassRunner.java:42)
at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:165)
at org.apache.maven.surefire.Surefire.run(Surefire.java:107)
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:597)
at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:289)
at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1005)
Caused by: java.io.IOException: Not Found
at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:1962)
at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1865)
at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:66)
at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:593)
at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)
... 35 more
|
|
|
 |
![[Post New]](/community/templates/default/images/icon_minipost_new.gif) 17/03/2009 21:07:14
|
tlerios
Joined: 26/02/2009 21:28:28
Messages: 22
Offline
|
That can happen:
* if you have a service already running on your computer on port 9000 (e.g. a web server) and therefore the embedded web server in our code (and unit tests) for Web Services cannot use that port.
* if you don't have anything running but your firewall settings are such that either our Web Service server cannot bind to port 9000 or it can, but the web service client cannot connect to port 9000.
Consider re-running the unit tests after making sure you have no web server running on your machine and turning off all firewalls (incl. Windows firewall, assuming you are on Windows) and any extra anti-virus-provided firewall (e.g. Norton or TrendNet). If the tests pass under this setting, then you will need to figure out (on your own) how to reconfigure your system to get METC to run concurrently with your other software (e.g. assign your web server to another port or add exception rules to firewalls). If the tests still don't pass with all web servers (if any) and firewalls turned off, then please run "netstat -a" in a command-prompt window and post the output.
Good luck!
|
|
|
 |
![[Post New]](/community/templates/default/images/icon_minipost_new.gif) 25/03/2009 18:10:24
|
nissane@hotmail.com
Joined: 12/03/2009 03:11:01
Messages: 18
Offline
|
Can you just explain exactly what is running here? Are the units tests attempting to connect to a port on a webserver on MarketCetera's servers? or is it trying to connect to something running on the local's pc port 9000?
Thanks.
|
|
|
 |
![[Post New]](/community/templates/default/images/icon_minipost_new.gif) 25/03/2009 21:14:50
|
tlerios
Joined: 26/02/2009 21:28:28
Messages: 22
Offline
|
The unit test starts a local server on port 9000. It also starts a local client (on a dynamically, Windows-chosen port) that connects to that local server.
|
|
|
 |
![[Post New]](/community/templates/default/images/icon_minipost_new.gif) 05/04/2009 03:03:17
|
nissane@hotmail.com
Joined: 12/03/2009 03:11:01
Messages: 18
Offline
|
I turned off windows firewall (I am running Vista). I still can't get the unit tests to pass. I am still getting the same error. Below is the output of netstat -a. Any help is appreciated. Thank You...
Proto Local Address Foreign Address State
TCP 0.0.0.0:135 Burns:0 LISTENING
TCP 0.0.0.0:445 Burns:0 LISTENING
TCP 0.0.0.0:912 Burns:0 LISTENING
TCP 0.0.0.0:2804 Burns:0 LISTENING
TCP 0.0.0.0:2869 Burns:0 LISTENING
TCP 0.0.0.0:3306 Burns:0 LISTENING
TCP 0.0.0.0:5225 Burns:0 LISTENING
TCP 0.0.0.0:5357 Burns:0 LISTENING
TCP 0.0.0.0:5800 Burns:0 LISTENING
TCP 0.0.0.0:5900 Burns:0 LISTENING
TCP 0.0.0.0:8882 Burns:0 LISTENING
TCP 0.0.0.0:49152 Burns:0 LISTENING
TCP 0.0.0.0:49153 Burns:0 LISTENING
TCP 0.0.0.0:49154 Burns:0 LISTENING
TCP 0.0.0.0:49155 Burns:0 LISTENING
TCP 0.0.0.0:49182 Burns:0 LISTENING
TCP 0.0.0.0:57933 Burns:0 LISTENING
TCP 0.0.0.0:64536 Burns:0 LISTENING
TCP 127.0.0.1:2804 Burns:49180 ESTABLISHED
TCP 127.0.0.1:3306 Burns:58321 TIME_WAIT
TCP 127.0.0.1:5354 Burns:0 LISTENING
TCP 127.0.0.1:5354 Burns:52892 ESTABLISHED
TCP 127.0.0.1:5354 Burns:56962 ESTABLISHED
TCP 127.0.0.1:5354 Burns:56963 ESTABLISHED
TCP 127.0.0.1:5354 Burns:56964 ESTABLISHED
TCP 127.0.0.1:5354 Burns:56965 ESTABLISHED
TCP 127.0.0.1:5354 Burns:56966 ESTABLISHED
TCP 127.0.0.1:27015 Burns:0 LISTENING
TCP 127.0.0.1:27015 Burns:49177 ESTABLISHED
TCP 127.0.0.1:27015 Burns:56948 ESTABLISHED
TCP 127.0.0.1:27015 Burns:56959 ESTABLISHED
TCP 127.0.0.1:27015 Burns:56960 ESTABLISHED
TCP 127.0.0.1:27015 Burns:56988 FIN_WAIT_2
TCP 127.0.0.1:49177 Burns:27015 ESTABLISHED
TCP 127.0.0.1:49180 Burns:2804 ESTABLISHED
TCP 127.0.0.1:52892 Burns:5354 ESTABLISHED
TCP 127.0.0.1:56948 Burns:27015 ESTABLISHED
TCP 127.0.0.1:56959 Burns:27015 ESTABLISHED
TCP 127.0.0.1:56960 Burns:27015 ESTABLISHED
TCP 127.0.0.1:56962 Burns:5354 ESTABLISHED
TCP 127.0.0.1:56963 Burns:5354 ESTABLISHED
TCP 127.0.0.1:56964 Burns:5354 ESTABLISHED
TCP 127.0.0.1:56965 Burns:5354 ESTABLISHED
TCP 127.0.0.1:56966 Burns:5354 ESTABLISHED
TCP 127.0.0.1:56988 Burns:27015 CLOSE_WAIT
TCP 127.0.0.1:58322 Burns:3306 TIME_WAIT
TCP 127.0.0.1:58323 Burns:3306 TIME_WAIT
TCP 127.0.0.1:58324 Burns:27015 TIME_WAIT
TCP 127.0.0.1:58351 Burns:27015 TIME_WAIT
TCP 192.168.10.112:139 Burns:0 LISTENING
TCP 192.168.10.112:5225 FRINK:3478 ESTABLISHED
TCP 192.168.10.112:49159 MUSICDRIVE:microsoft-ds ESTABLISHED
TCP 192.168.10.112:53531 FRINK:5225 ESTABLISHED
TCP 192.168.10.112:53916 FRINK:microsoft-ds ESTABLISHED
TCP 192.168.10.112:58156 209.44.127.208:http CLOSE_WAIT
TCP 192.168.10.112:58158 209.44.127.208:http CLOSE_WAIT
TCP 192.168.10.112:58159 209.44.127.208:http CLOSE_WAIT
TCP 192.168.10.112:58160 209.44.127.208:http CLOSE_WAIT
TCP 192.168.10.112:58161 209.44.127.208:http CLOSE_WAIT
TCP 192.168.10.112:58162 209.44.127.208:http CLOSE_WAIT
TCP 192.168.10.112:58328 qb-in-f102:http CLOSE_WAIT
TCP 192.168.10.112:58331 qb-in-f102:http CLOSE_WAIT
TCP 192.168.10.112:58332 qb-in-f102:http ESTABLISHED
TCP 192.168.10.112:58333 qb-in-f102:http CLOSE_WAIT
TCP 192.168.10.112:58334 qb-in-f147:http ESTABLISHED
TCP 192.168.10.112:58335 qb-in-f147:http ESTABLISHED
TCP 192.168.10.112:58342 qb-in-f166:http CLOSE_WAIT
TCP 192.168.10.112:58343 qb-in-f156:http ESTABLISHED
TCP 192.168.10.112:58344 qb-in-f156:http ESTABLISHED
TCP 192.168.10.112:58345 qb-in-f166:http CLOSE_WAIT
TCP 192.168.10.112:58346 qb-in-f166:http CLOSE_WAIT
TCP 192.168.10.112:58347 qb-in-f166:http CLOSE_WAIT
TCP 192.168.10.112:58352 72.14.205.118:http ESTABLISHED
TCP 192.168.10.112:58353 rr:http ESTABLISHED
TCP 192.168.10.112:58354 rr:http TIME_WAIT
TCP 192.168.10.112:58355 rr:http TIME_WAIT
TCP 192.168.10.112:58356 rr:http TIME_WAIT
TCP 192.168.10.112:58357 rr:http TIME_WAIT
TCP 192.168.10.112:58358 rr:http TIME_WAIT
TCP 192.168.10.112:58359 upload:http ESTABLISHED
TCP 192.168.10.112:58360 rr:http ESTABLISHED
TCP 192.168.10.112:58361 upload:http ESTABLISHED
TCP 192.168.10.112:58362 rr:http ESTABLISHED
TCP 192.168.10.112:58363 upload:http ESTABLISHED
TCP 192.168.10.112:58364 rr:http ESTABLISHED
TCP 192.168.10.112:58365 rr:http ESTABLISHED
TCP 192.168.10.112:58366 upload:http ESTABLISHED
TCP 192.168.10.112:58367 rr:http ESTABLISHED
TCP 192.168.10.112:58368 ec2-75-101-146-144:http ESTABLISHED
TCP 192.168.126.1:139 Burns:0 LISTENING
TCP 192.168.127.1:139 Burns:0 LISTENING
TCP [::]:135 Burns:0 LISTENING
TCP [::]:445 Burns:0 LISTENING
TCP [::]:2869 Burns:0 LISTENING
TCP [::]:5357 Burns:0 LISTENING
TCP [::]:49152 Burns:0 LISTENING
TCP [::]:49153 Burns:0 LISTENING
TCP [::]:49154 Burns:0 LISTENING
TCP [::]:49155 Burns:0 LISTENING
TCP [::]:49182 Burns:0 LISTENING
TCP [::]:57933 Burns:0 LISTENING
TCP [::]:64536 Burns:0 LISTENING
TCP [::1]:49156 Burns:0 LISTENING
UDP 0.0.0.0:123 *:*
UDP 0.0.0.0:500 *:*
UDP 0.0.0.0:1434 *:*
UDP 0.0.0.0:3702 *:*
UDP 0.0.0.0:3702 *:*
UDP 0.0.0.0:4500 *:*
UDP 0.0.0.0:5355 *:*
UDP 0.0.0.0:51562 *:*
UDP 0.0.0.0:51939 *:*
UDP 0.0.0.0:53128 *:*
UDP 0.0.0.0:54274 *:*
UDP 0.0.0.0:56913 *:*
UDP 0.0.0.0:57794 *:*
UDP 0.0.0.0:58067 *:*
UDP 0.0.0.0:59342 *:*
UDP 0.0.0.0:63270 *:*
UDP 0.0.0.0:64536 *:*
UDP 127.0.0.1:1900 *:*
UDP 127.0.0.1:49273 *:*
UDP 127.0.0.1:51258 *:*
UDP 127.0.0.1:51938 *:*
UDP 127.0.0.1:51941 *:*
UDP 127.0.0.1:51942 *:*
UDP 127.0.0.1:52094 *:*
UDP 127.0.0.1:54594 *:*
UDP 127.0.0.1:55668 *:*
UDP 127.0.0.1:56055 *:*
UDP 127.0.0.1:57392 *:*
UDP 127.0.0.1:57393 *:*
UDP 127.0.0.1:57750 *:*
UDP 127.0.0.1:57751 *:*
UDP 127.0.0.1:64248 *:*
UDP 127.0.0.1:64982 *:*
UDP 192.168.10.112:137 *:*
UDP 192.168.10.112:138 *:*
UDP 192.168.10.112:1900 *:*
UDP 192.168.10.112:1900 *:*
UDP 192.168.10.112:5353 *:*
UDP 192.168.10.112:51935 *:*
UDP 192.168.10.112:60454 *:*
UDP 192.168.126.1:137 *:*
UDP 192.168.126.1:138 *:*
UDP 192.168.126.1:1900 *:*
UDP 192.168.126.1:5353 *:*
UDP 192.168.126.1:51936 *:*
UDP 192.168.127.1:137 *:*
UDP 192.168.127.1:138 *:*
UDP 192.168.127.1:1900 *:*
UDP 192.168.127.1:5353 *:*
UDP 192.168.127.1:51937 *:*
UDP [::]:123 *:*
UDP [::]:500 *:*
UDP [::]:1434 *:*
UDP [::]:3702 *:*
UDP [::]:3702 *:*
UDP [::]:5355 *:*
UDP [::]:51940 *:*
UDP [::]:63271 *:*
UDP [::]:64536 *:*
UDP [::1]:1900 *:*
UDP [::1]:51933 *:*
UDP [fe80::100:7f:fffe%9]:1900 *:*
UDP [fe80::100:7f:fffe%9]:51934 *:*
UDP [fe80::75f8:5299:6d85:b4b9%13]:1900 *:*
UDP [fe80::75f8:5299:6d85:b4b9%13]:51931 *:*
UDP [fe80::954f:3f12:468:3cd9%15]:1900 *:*
UDP [fe80::954f:3f12:468:3cd9%15]:51932 *:*
UDP [fe80::a049:5555:66c5:b3b2%8]:1900 *:*
UDP [fe80::a049:5555:66c5:b3b2%8]:51930 *:*
|
|
|
 |
![[Post New]](/community/templates/default/images/icon_minipost_new.gif) 05/04/2009 16:53:47
|
tlerios
Joined: 26/02/2009 21:28:28
Messages: 22
Offline
|
Did you also turn off all anti-virus programs (some have firewalls distinct from the Windows firewall), such as Norton Internet Security, ZoneAlarm, etc?
Also, are you a user with administrative privileges?
Another option to try is disabling the User Account Control and see if this works.
I am certain the underlying problem is that you are unable to start the web services server (which the unit test tries to do). From your netstat listing, it's also clear that port 9000 is not in use by another application; it is available and the web services server should be able to use it. Therefore there is something at the OS level (e.g. a security restriction or an OS extensions like a firewall inside an anti-virus program) that's causing the failure.
I use XP, and things work fine for me (though I realize this is hardly a consolation for you).
This message was edited 1 time. Last update was at 05/04/2009 17:05:35
|
|
|
 |
![[Post New]](/community/templates/default/images/icon_minipost_new.gif) 17/07/2009 18:05:13
|
tomarmstrong
Joined: 25/06/2009 12:34:56
Messages: 5
Offline
|
I am having a similar problem below is the result of netstat -a on my machine, any help would bee appreciated. I am running windows vista and have firewalls turned off. I believe the output below indicates that the computer is listening on port 9000, does this mean that the port is in use?
Active Connections
Proto Local Address Foreign Address State
TCP 0.0.0.0:135 FCCapital1-PC:0 LISTENING
TCP 0.0.0.0:445 FCCapital1-PC:0 LISTENING
TCP 0.0.0.0:3306 FCCapital1-PC:0 LISTENING
TCP 0.0.0.0:5357 FCCapital1-PC:0 LISTENING
TCP 0.0.0.0:6000 FCCapital1-PC:0 LISTENING
TCP 0.0.0.0:8882 FCCapital1-PC:0 LISTENING
TCP 0.0.0.0:49152 FCCapital1-PC:0 LISTENING
TCP 0.0.0.0:49153 FCCapital1-PC:0 LISTENING
TCP 0.0.0.0:49158 FCCapital1-PC:0 LISTENING
TCP 0.0.0.0:49163 FCCapital1-PC:0 LISTENING
TCP 0.0.0.0:49164 FCCapital1-PC:0 LISTENING
TCP 0.0.0.0:49733 FCCapital1-PC:0 LISTENING
TCP 127.0.0.1:6000 FCCapital1-PC:49192 ESTABLISHED
TCP 127.0.0.1:6000 FCCapital1-PC:49193 ESTABLISHED
TCP 127.0.0.1:6000 FCCapital1-PC:49194 ESTABLISHED
TCP 127.0.0.1:6000 FCCapital1-PC:49303 ESTABLISHED
TCP 127.0.0.1:9000 FCCapital1-PC:0 LISTENING
TCP 127.0.0.1:10080 FCCapital1-PC:0 LISTENING
TCP 127.0.0.1:10080 FCCapital1-PC:49727 ESTABLISHED
TCP 127.0.0.1:10080 FCCapital1-PC:49734 TIME_WAIT
TCP 127.0.0.1:10080 FCCapital1-PC:49736 TIME_WAIT
TCP 127.0.0.1:10080 FCCapital1-PC:49744 ESTABLISHED
TCP 127.0.0.1:13128 FCCapital1-PC:0 LISTENING
TCP 127.0.0.1:18080 FCCapital1-PC:0 LISTENING
TCP 127.0.0.1:49154 FCCapital1-PC:49155 ESTABLISHED
TCP 127.0.0.1:49155 FCCapital1-PC:49154 ESTABLISHED
TCP 127.0.0.1:49156 FCCapital1-PC:49157 ESTABLISHED
TCP 127.0.0.1:49157 FCCapital1-PC:49156 ESTABLISHED
TCP 127.0.0.1:49159 FCCapital1-PC:49160 ESTABLISHED
TCP 127.0.0.1:49160 FCCapital1-PC:49159 ESTABLISHED
TCP 127.0.0.1:49161 FCCapital1-PC:49162 ESTABLISHED
TCP 127.0.0.1:49162 FCCapital1-PC:49161 ESTABLISHED
TCP 127.0.0.1:49167 FCCapital1-PC:49168 ESTABLISHED
TCP 127.0.0.1:49168 FCCapital1-PC:49167 ESTABLISHED
TCP 127.0.0.1:49169 FCCapital1-PC:49170 ESTABLISHED
TCP 127.0.0.1:49170 FCCapital1-PC:49169 ESTABLISHED
TCP 127.0.0.1:49191 FCCapital1-PC:0 LISTENING
TCP 127.0.0.1:49192 FCCapital1-PC:6000 ESTABLISHED
TCP 127.0.0.1:49193 FCCapital1-PC:6000 ESTABLISHED
TCP 127.0.0.1:49194 FCCapital1-PC:6000 ESTABLISHED
TCP 127.0.0.1:49197 FCCapital1-PC:49198 ESTABLISHED
TCP 127.0.0.1:49198 FCCapital1-PC:49197 ESTABLISHED
TCP 127.0.0.1:49205 FCCapital1-PC:49206 ESTABLISHED
TCP 127.0.0.1:49206 FCCapital1-PC:49205 ESTABLISHED
TCP 127.0.0.1:49303 FCCapital1-PC:6000 ESTABLISHED
TCP 127.0.0.1:49727 FCCapital1-PC:10080 ESTABLISHED
TCP 127.0.0.1:49744 FCCapital1-PC:10080 ESTABLISHED
TCP 192.168.0.103:139 FCCapital1-PC:0 LISTENING
TCP 192.168.0.103:445 trading1-PC:50544 ESTABLISHED
TCP 192.168.0.103:49166 acodron-PC:netbios-ssn ESTABLISHED
TCP 192.168.0.103:49728 qw-in-f102:http ESTABLISHED
TCP 192.168.0.103:49745 ec2-75-101-146-144:http ESTABLISHED
TCP [::]:135 FCCapital1-PC:0 LISTENING
TCP [::]:445 FCCapital1-PC:0 LISTENING
TCP [::]:5357 FCCapital1-PC:0 LISTENING
TCP [::]:49152 FCCapital1-PC:0 LISTENING
TCP [::]:49153 FCCapital1-PC:0 LISTENING
TCP [::]:49158 FCCapital1-PC:0 LISTENING
TCP [::]:49163 FCCapital1-PC:0 LISTENING
TCP [::]:49164 FCCapital1-PC:0 LISTENING
TCP [::]:49733 FCCapital1-PC:0 LISTENING
UDP 0.0.0.0:123 *:*
UDP 0.0.0.0:259 *:*
UDP 0.0.0.0:500 *:*
UDP 0.0.0.0:2746 *:*
UDP 0.0.0.0:3702 *:*
UDP 0.0.0.0:3702 *:*
UDP 0.0.0.0:4500 *:*
UDP 0.0.0.0:5355 *:*
UDP 0.0.0.0:18234 *:*
UDP 0.0.0.0:55003 *:*
UDP 0.0.0.0:55004 *:*
UDP 0.0.0.0:57586 *:*
UDP 127.0.0.1:1900 *:*
UDP 127.0.0.1:51394 *:*
UDP 127.0.0.1:52094 *:*
UDP 127.0.0.1:54169 *:*
UDP 127.0.0.1:54170 *:*
UDP 127.0.0.1:54171 *:*
UDP 127.0.0.1:54172 *:*
UDP 127.0.0.1:54173 *:*
UDP 127.0.0.1:58011 *:*
UDP 192.168.0.103:137 *:*
UDP 192.168.0.103:138 *:*
UDP 192.168.0.103:1900 *:*
UDP 192.168.0.103:51393 *:*
UDP [::]:123 *:*
UDP [::]:500 *:*
UDP [::]:3702 *:*
UDP [::]:3702 *:*
UDP [::]:5355 *:*
UDP [::]:57587 *:*
UDP [::1]:1900 *:*
UDP [::1]:51391 *:*
UDP [fe80::ffff:ffff:fffe%9]:1900 *:*
UDP [fe80::ffff:ffff:fffe%9]:51392 *:*
UDP [fe80::55c9:40fb:554e:fe37%12]:1900 *:*
UDP [fe80::55c9:40fb:554e:fe37%12]:51389 *:*
UDP [fe80::c152:4809:c3f9:c498%8]:1900 *:*
UDP [fe80::c152:4809:c3f9:c498%8]:51390 *:*
|
|
|
 |
![[Post New]](/community/templates/default/images/icon_minipost_new.gif) 17/07/2009 19:11:45
|
tlerios
Joined: 26/02/2009 21:28:28
Messages: 22
Offline
|
Yes, your netstat output indicates that port 9000 is in use. Hence the unit tests for web services will fail (the port number is hardcoded for the test).
You may still run the ORS if you change its web services port to an unused one (alter its configuration file; see the README.html inside the conf/ directory of the ORS for instructions).
|
|
|
 |
![[Post New]](/community/templates/default/images/icon_minipost_new.gif) 20/07/2009 13:22:41
|
tomarmstrong
Joined: 25/06/2009 12:34:56
Messages: 5
Offline
|
Hi,
Okay I have looked at the config but I've tried many different ports and am unable to get it to work, how can I test for sure that a port is open or find a list of ports? I've searched around on the internet but have so far found nothing helpful.
Thanks,
-Tom
|
|
|
 |
![[Post New]](/community/templates/default/images/icon_minipost_new.gif) 20/07/2009 19:51:15
|
tlerios
Joined: 26/02/2009 21:28:28
Messages: 22
Offline
|
If a port is not listed on netstat -a, it is open.
You cannot get the unit test to pass by changing configuration options. The unit test uses 9000 hardcoded, period. Your only option to get the unit test to pass is to terminate the process that is using that port (I don't know how you can do that), and re-run the test.
As for running the ORS using a different port, set metc.ws.port to a different value than 9000. You do that by putting a line in user.properties in the ORS's conf/ subdir. Be sure to change Photon's preference as well, otherwise Photon will still use 9000.
|
|
|
 |
![[Post New]](/community/templates/default/images/icon_minipost_new.gif) 21/07/2009 12:37:57
|
tomarmstrong
Joined: 25/06/2009 12:34:56
Messages: 5
Offline
|
In order to work around this I have tried to build without running the tests (mvn -DskipTests=true install) however I now get a "FATAL ERROR caused by: java.lang.OutOfMemory"
I have tried increasing the amount of memory available to java with the command java -Xmx256m, java -Xmx512m, etc. but I always get the same error.
Any ideas?
|
|
|
 |
![[Post New]](/community/templates/default/images/icon_minipost_new.gif) 21/07/2009 22:06:05
|
tlerios
Joined: 26/02/2009 21:28:28
Messages: 22
Offline
|
Please post your question in a new thread, as this problem is unrelated to available ports. Also, please review
http://www.marketcetera.org/confluence/display/MDN/Building+Marketcetera+Platform
which discusses how to set MAVEN_OPTS in such a manner as necessary to increase the memory available to Java.
Thank you.
|
|
|
 |
|
|