aspose file tools*
The moose likes JSF and the fly likes java.lang.IllegalArgumentException: port out of range:67001 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "java.lang.IllegalArgumentException: port out of range:67001" Watch "java.lang.IllegalArgumentException: port out of range:67001" New topic
Author

java.lang.IllegalArgumentException: port out of range:67001

Nishtha Sharma
Greenhorn

Joined: Mar 15, 2013
Posts: 4
Help !!

I am facing the below error while running the script. The script is trying to invoke a webservice..and its succesfull in invoking the webservice. At the end.. its printing the sucessful msgs also, just its throwing some rrors with LOG UTILS in between. Please have a look and suggest..

java.lang.IllegalArgumentException: port out of range:67001
java.lang.NullPointerException
at com.drivelogic.services.logging.LogConfig.isDevMode(LogConfig.java:89)
at com.drivelogic.services.logging.DlLogger.isTraceLog(DlLogger.java:277)
at com.drivelogic.services.logging.DlLogger.log(DlLogger.java:55)
at com.drivelogic.common.util.LogUtils.log(LogUtils.java:114)
at com.drivelogic.common.util.LogUtils.fine(LogUtils.java:252)
at com.cccis.frm.reprocess.util.PublishUtil.invokeWebService(PublishUtil.java:304)
at com.cccis.frm.reprocess.batch.SOABatchReprocessor.reprocess(SOABatchReprocessor.java:137)
at com.cccis.frm.reprocess.batch.SOABatchReprocessor.main(SOABatchReprocessor.java:56)
java.lang.IllegalArgumentException: port out of range:-2
at java.net.InetSocketAddress.<init>(InetSocketAddress.java:83)
at weblogic.socket.SocketMuxer.newSocket(SocketMuxer.java:373)
at weblogic.socket.SocketMuxer.newClientSocket(SocketMuxer.java:383)
at weblogic.socket.ChannelSocketFactory.createSocket(ChannelSocketFactory.java:86)
at weblogic.socket.BaseAbstractMuxableSocket.createSocket(BaseAbstractMuxableSocket.java:133)
at weblogic.rjvm.t3.MuxableSocketT3.newSocketWithRetry(MuxableSocketT3.java:214)
at weblogic.rjvm.t3.MuxableSocketT3.connect(MuxableSocketT3.java:383)
at weblogic.rjvm.t3.ConnectionFactoryT3.createConnection(ConnectionFactoryT3.java:34)
at weblogic.rjvm.ConnectionManager.createConnection(ConnectionManager.java:1784)
at weblogic.rjvm.ConnectionManager.findOrCreateConnection(ConnectionManager.java:1424)
at weblogic.rjvm.ConnectionManager.bootstrap(ConnectionManager.java:443)
at weblogic.rjvm.ConnectionManager.bootstrap(ConnectionManager.java:321)
at weblogic.rjvm.RJVMManager.findOrCreateRemoteInternal(RJVMManager.java:254)
at weblogic.rjvm.RJVMManager.findOrCreate(RJVMManager.java:197)
at weblogic.rjvm.RJVMFinder.findOrCreateRemoteServer(RJVMFinder.java:238)
at weblogic.rjvm.RJVMFinder.findOrCreateRemoteCluster(RJVMFinder.java:316)
at weblogic.rjvm.RJVMFinder.findOrCreateInternal(RJVMFinder.java:205)
at weblogic.rjvm.RJVMFinder.findOrCreate(RJVMFinder.java:170)
at weblogic.rjvm.ServerURL.findOrCreateRJVM(ServerURL.java:153)
at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:353)
at weblogic.jndi.Environment.getContext(Environment.java:315)
at weblogic.jndi.Environment.getContext(Environment.java:285)
at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:117)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
at javax.naming.InitialContext.init(InitialContext.java:223)
at javax.naming.InitialContext.<init>(InitialContext.java:197)
at com.drivelogic.services.logging.QueueHandler.send(QueueHandler.java:60)
at com.drivelogic.services.logging.DlLogger.log(DlLogger.java:66)
at com.drivelogic.common.util.LogUtils.log(LogUtils.java:114)
at com.drivelogic.common.util.LogUtils.fine(LogUtils.java:252)
at com.cccis.frm.reprocess.util.PublishUtil.invokeWebService(PublishUtil.java:304)
at com.cccis.frm.reprocess.batch.SOABatchReprocessor.reprocess(SOABatchReprocessor.java:137)
at com.cccis.frm.reprocess.batch.SOABatchReprocessor.main(SOABatchReprocessor.java:56)
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16011
    
  19

We will need more information, I'm afraid. All I can tell you is that 67001 is greater than the system's maximum allowable port number of 65536, but I can't tell who/what decided to use that port number.


Customer surveys are for companies who didn't pay proper attention to begin with.
Nishtha Sharma
Greenhorn

Joined: Mar 15, 2013
Posts: 4
where would be this port number mentioned ? Will it be in my code?

Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16011
    
  19

This appears to be coming from a third-party package called "drivelogic". 67001 might not be the actual port number it's attempting to use. It might be looking for "-2", where some parts of the system see the high-order bit as a sign bit and others do not. Negative port numbers are invalid, however.
Nishtha Sharma
Greenhorn

Joined: Mar 15, 2013
Posts: 4
I'm not sure where in the code the port no being used. any other suggestions/way out?
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16011
    
  19

I don't know anything about drivelogic. Never heard of it before. The best I can suggest is to find someone who has.
Manoj Paul
Ranch Hand

Joined: Jan 18, 2007
Posts: 112
Hi Nishtha,
Did you got a way out?

I am facing similar problems but for different port, snapshot below:

java.lang.IllegalArgumentException: IllegalArgumentException invoking: port out of range:-1
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.mapException(HTTPConduit.java:1359)
at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1348)
at org.apache.cxf.transport.http.netty.client.NettyHttpConduit$NettyWrappedOutputStream.close(NettyHttpConduit.java:153)
at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56)
at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:638)
at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:307)
at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:514)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:423)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:326)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:279)
at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:96)
at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:137)
at com.sun.proxy.$Proxy42.getDeductibleGroup(Unknown Source)
at My.main.org.MyUnit.main(MyUnit.java:69)
Caused by: java.lang.IllegalArgumentException: port out of range:-1
at java.net.InetSocketAddress.checkPort(Unknown Source)
at java.net.InetSocketAddress.<init>(Unknown Source)
at org.apache.cxf.transport.http.netty.client.NettyHttpConduit$NettyWrappedOutputStream.connect(NettyHttpConduit.java:293)
at org.apache.cxf.transport.http.netty.client.NettyHttpConduit$NettyWrappedOutputStream.setupWrappedStream(NettyHttpConduit.java:243)
at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleHeadersTrustCaching(HTTPConduit.java:1302)
at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.onFirstWrite(HTTPConduit.java:1258)
at org.apache.cxf.io.AbstractWrappedOutputStream.write(AbstractWrappedOutputStream.java:47)
at org.apache.cxf.io.AbstractThresholdOutputStream.write(AbstractThresholdOutputStream.java:69)
at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1315)


Any suggestion/help will be appreciated.
Paul, GGN
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java.lang.IllegalArgumentException: port out of range:67001