java.lang.IllegalArgumentException: port out of range:-1

runawfe | alignat | 5 years ago
  1. 0

    Ошибка синхронизации ...

    runawfe | 5 years ago | alignat
    java.lang.IllegalArgumentException: port out of range:-1
  2. 0

    DZone

    dzone.com | 1 year ago
    java.lang.IllegalArgumentException: port out of range:-1
  3. 0

    FULL PRODUCT VERSION : java version "1.8.0_51" Java(TM) SE Runtime Environment (build 1.8.0_51-b16) Java HotSpot(TM) Client VM (build 25.51-b03, mixed mode) ADDITIONAL OS VERSION INFORMATION : Windows 7 Professional SP1 EXTRA RELEVANT SYSTEM CONFIGURATION : Internet access only via proxy server. Internet Explorer 11. Configured with auto proxy (proxy PAC) Java Control Panel network settings configured to use browser settings. Webstart application hosted on a local server (not internet), i.e. does not require proxy access. A DESCRIPTION OF THE PROBLEM : We have a Java webstart application which has been digitally signed with a trusted certificate (Entrust). The certificate has an OCSP revocation url http://ocsp.entrust.net, which is hosted on the internet and will require access via a proxy server. Downloading and starting the application performs a certificate revocation check (OCSP). This check fails with a NullPointerException, resulting in the application failing to start with an on-screen message "Failed to validate certificate." Previously reported as https://bugs.openjdk.java.net/browse/JDK-8074258 (closed) STEPS TO FOLLOW TO REPRODUCE THE PROBLEM : 1. From a client PC that has no direct access to the internet. 2. Configure default browser to use an auto-proxy file, not configured directly with a proxy address. 3. Update Network Settings in Java Control Panel to use broswer settings 4. Ensure Java Control Panel advanced settings are set for revocation checks: a) Check for signed code certificate revocation using "Both CRLs and OCSP" b) Perform signed code certificate revocation checks on "All certificates in the chain of trust" 5. Run a JNLP application which is signed with a trusted certificate. EXPECTED VERSUS ACTUAL BEHAVIOR : EXPECTED - Application downloads, verifies and starts. ACTUAL - Application downloads and fails to verify the certificate. Webstart message displayed: "Failed to validate certificate. The application will not be executed.". Clicking the More Information button displays the Exception stack trace: java.lang.NullPointerException at com.sun.deploy.net.proxy.DeployProxySelector.select(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection$6.run(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection$6.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.AccessController.doPrivileged(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.getOutputStream0(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.access$100(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection$8.run(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection$8.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.AccessController.doPrivileged(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(Unknown Source) at sun.security.provider.certpath.OCSP.check(Unknown Source) at sun.security.provider.certpath.OCSP.check(Unknown Source) at sun.security.provider.certpath.OCSP.check(Unknown Source) at com.sun.deploy.security.RevocationChecker.checkOCSP(Unknown Source) at com.sun.deploy.security.RevocationChecker.check(Unknown Source) at com.sun.deploy.security.TrustDecider.checkRevocationStatus(Unknown Source) at com.sun.deploy.security.TrustDecider.getValidationState(Unknown Source) at com.sun.deploy.security.TrustDecider.validateChain(Unknown Source) at com.sun.deploy.security.TrustDecider.isAllPermissionGranted(Unknown Source) at com.sun.javaws.security.AppPolicy.grantUnrestrictedAccess(Unknown Source) at com.sun.javaws.security.JNLPSignedResourcesHelper.checkSignedResourcesHelper(Unknown Source) at com.sun.javaws.security.JNLPSignedResourcesHelper.checkSignedResources(Unknown Source) at com.sun.javaws.Launcher.prepareResources(Unknown Source) at com.sun.javaws.Launcher.prepareAllResources(Unknown Source) at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source) at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source) at com.sun.javaws.Launcher.launch(Unknown Source) at com.sun.javaws.Main.launchApp(Unknown Source) at com.sun.javaws.Main.continueInSecureThread(Unknown Source) at com.sun.javaws.Main.access$000(Unknown Source) at com.sun.javaws.Main$1.run(Unknown Source) at java.lang.Thread.run(Unknown Source) ERROR MESSAGES/STACK TRACES THAT OCCUR : Extracts from javaws trace log: Log started: Mon, 20 Jul 2015 10:52:49 +0100 Java Web Start 11.51.2.16 Using JRE version 1.8.0_51-b16 Java HotSpot(TM) Client VM basic: Java part started basic: jnlpx.jvm: C:\Program Files (x86)\Java\jre1.8.0_51\bin\javaw.exe basic: jnlpx.splashport: 56943 basic: jnlpx.remove: true basic: jnlpx.heapsize: null network: Loading user-defined proxy configuration ... network: Done. network: Browser is IE.HTTP network: Browser is IE network: Loading proxy configuration from Internet Explorer ... network: Auto config URL: http://pac.exacc.com network: Done. network: Loading auto proxy configuration ... cache: CacheEntry IP mismatch: 10.182.94.53 != 10.183.42.14 network: Cache entry not found [url: http://pac.exacc.com/, version: null] network: Downloading auto proxy file from http://pac.exacc.com network: Downloading resource: http://pac.exacc.com Content-Length: 17,894 Content-Encoding: null network: Wrote URL http://pac.exacc.com to File C:\Users\rl\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\53\59225f35-105fe20f-temp cache: Adding MemoryCache entry: http://pac.exacc.com/ network: Done. ui: missing resource: java.util.MissingResourceException: Can't find resource for bundle com.sun.deploy.resources.Deployment, key Proxy Configuration: Automatic Proxy Configuration URL: http://pac.exacc.com network: Proxy Configuration: Automatic Proxy Configuration URL: http://pac.exacc.com basic: Using Cp1252 to encode arguments. basic: Running JVMParams: [JVMParameters: isSecure: true, args: "-Djava.security.debug=certpath" "-Xmx64m"] -> [JVMParameters: isSecure: true, args: "-Djava.security.debug=certpath"] network: Created version ID: 1.6.0.45 network: Created version ID: 1.6 ... ... security: The OCSP support is enabled security: The CRL support is enabled certpath: connecting to OCSP service at: http://ocsp.entrust.net java.lang.IllegalArgumentException: port out of range:-1 at java.net.InetSocketAddress.checkPort(Unknown Source) at java.net.InetSocketAddress.<init>(Unknown Source) at com.sun.deploy.net.proxy.DynamicProxyManager$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at com.sun.deploy.net.proxy.DynamicProxyManager.getProxy(Unknown Source) at com.sun.deploy.net.proxy.DynamicProxyManager.getProxyList(Unknown Source) at com.sun.deploy.net.proxy.DeployProxySelector.select(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection$6.run(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection$6.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.AccessController.doPrivileged(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.getOutputStream0(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.access$100(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection$8.run(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection$8.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.AccessController.doPrivileged(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(Unknown Source) at sun.security.provider.certpath.OCSP.check(Unknown Source) at sun.security.provider.certpath.OCSP.check(Unknown Source) at sun.security.provider.certpath.OCSP.check(Unknown Source) at com.sun.deploy.security.RevocationChecker.checkOCSP(Unknown Source) at com.sun.deploy.security.RevocationChecker.check(Unknown Source) at com.sun.deploy.security.TrustDecider.checkRevocationStatus(Unknown Source) at com.sun.deploy.security.TrustDecider.getValidationState(Unknown Source) at com.sun.deploy.security.TrustDecider.validateChain(Unknown Source) at com.sun.deploy.security.TrustDecider.isAllPermissionGranted(Unknown Source) at com.sun.javaws.security.AppPolicy.grantUnrestrictedAccess(Unknown Source) at com.sun.javaws.security.JNLPSignedResourcesHelper.checkSignedResourcesHelper(Unknown Source) at com.sun.javaws.security.JNLPSignedResourcesHelper.checkSignedResources(Unknown Source) at com.sun.javaws.Launcher.prepareResources(Unknown Source) at com.sun.javaws.Launcher.prepareAllResources(Unknown Source) at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source) at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source) at com.sun.javaws.Launcher.launch(Unknown Source) at com.sun.javaws.Main.launchApp(Unknown Source) at com.sun.javaws.Main.continueInSecureThread(Unknown Source) at com.sun.javaws.Main.access$000(Unknown Source) at com.sun.javaws.Main$1.run(Unknown Source) at java.lang.Thread.run(Unknown Source) cache: Cancel delay cleanup: URL: http://rjj3:5000/GUI/images/ApplicationIcon.gif | C:\Users\lambertonr\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\37\7d3838e5-4f8a7e11.idx cache: registerReference: com.sun.deploy.cache.MemoryCache$CachedResourceReference@88add689: 2 cache: registerReference: com.sun.deploy.cache.MemoryCache$CachedResourceReference@88add689: 3 ... REPRODUCIBILITY : This bug can be reproduced always. CUSTOMER SUBMITTED WORKAROUND : 1. Disable OCSP revocation check in the Java control panel. or 2. Change the Network Settings in the Java Control Panel to manually specify the proxy server instead of using the browser settings.

    JDK Bug System | 1 year ago | Webbug Group
    java.lang.IllegalArgumentException: port out of range:-1
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Port out of range:-1

    GitHub | 2 years ago | chfstudio
    org.springframework.web.socket.sockjs.SockJsException: Uncaught failure in SockJS request, uri=http://url:80/MyProject/stomp/042/ku4dmhdo/xhr; nested exception is org.springframework.web.socket.sockjs.SockJsException: Uncaught failure for request http://url:80/MyProject/stomp/042/ku4dmhdo/xhr; nested exception is java.lang.IllegalArgumentException: port out of range:-1
  6. 0

    [Redis] 2.2.0 broken because of the out of range port

    GitHub | 2 years ago | jfarcand
    java.lang.IllegalArgumentException: port out of range:-1
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.IllegalArgumentException

    port out of range:-1

    at java.net.InetSocketAddress.checkPort()
  2. Java RT
    InetSocketAddress.<init>
    1. java.net.InetSocketAddress.checkPort(Unknown Source)
    2. java.net.InetSocketAddress.<init>(Unknown Source)
    2 frames
  3. org.jboss.remoting
    Client.invoke
    1. org.jboss.remoting.transport.socket.SocketClientInvoker.createSocket(SocketClientInvoker.java:183)
    2. org.jboss.remoting.transport.socket.MicroSocketClientInvoker.getConnection(MicroSocketClientInvoker.java:827)
    3. org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:569)
    4. org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:122)
    5. org.jboss.remoting.Client.invoke(Client.java:1634)
    6. org.jboss.remoting.Client.invoke(Client.java:548)
    6 frames
  4. JBoss Application Server Server
    ClientContainer.invoke
    1. org.jboss.invocation.unified.interfaces.UnifiedInvokerProxy.invoke(UnifiedInvokerProxy.java:184)
    2. org.jboss.invocation.InvokerInterceptor.invokeInvoker(InvokerInterceptor.java:365)
    3. org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:197)
    4. org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:61)
    5. org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:70)
    6. org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:184)
    7. org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:100)
    7 frames
  5. com.sun.proxy
    $Proxy0.create
    1. com.sun.proxy.$Proxy0.create(Unknown Source)
    1 frame
  6. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    4. java.lang.reflect.Method.invoke(Unknown Source)
    4 frames
  7. org.jbpm.ui
    WFEConnectionPreferencePage$1.widgetSelected
    1. org.jbpm.ui.sync.WFEServerConnector.getService(Unknown Source)
    2. org.jbpm.ui.sync.WFEServerConnector.connect(Unknown Source)
    3. org.jbpm.ui.pref.WFEConnectionPreferencePage$1.widgetSelected(Unknown Source)
    3 frames
  8. RWT
    Display.readAndDispatch
    1. org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:228)
    2. org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
    3. org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
    4. org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3880)
    5. org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3473)
    5 frames
  9. JFace
    Window.open
    1. org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
    2. org.eclipse.jface.window.Window.open(Window.java:801)
    2 frames
  10. org.jbpm.ui
    SyncUIHelper$1.linkActivated
    1. org.jbpm.ui.sync.SyncUIHelper.openConnectionSettingsDialog(Unknown Source)
    2. org.jbpm.ui.sync.SyncUIHelper$1.linkActivated(Unknown Source)
    2 frames
  11. Eclipse Forms
    AbstractHyperlink$4.handleEvent
    1. org.eclipse.ui.forms.widgets.AbstractHyperlink.handleActivate(AbstractHyperlink.java:233)
    2. org.eclipse.ui.forms.widgets.AbstractHyperlink.handleMouseUp(AbstractHyperlink.java:327)
    3. org.eclipse.ui.forms.widgets.AbstractHyperlink.access$2(AbstractHyperlink.java:311)
    4. org.eclipse.ui.forms.widgets.AbstractHyperlink$4.handleEvent(AbstractHyperlink.java:125)
    4 frames
  12. RWT
    Display.readAndDispatch
    1. org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
    2. org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
    3. org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3880)
    4. org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3473)
    4 frames
  13. JFace
    Window.open
    1. org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
    2. org.eclipse.jface.window.Window.open(Window.java:801)
    2 frames
  14. org.jbpm.ui
    DesignerSwimlaneEditorPage$ChangeSwimlaneSelectionListener.widgetSelected
    1. org.jbpm.ui.editor.DesignerSwimlaneEditorPage$ChangeSwimlaneSelectionListener.widgetSelected(Unknown Source)
    1 frame
  15. RWT
    Display.readAndDispatch
    1. org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:228)
    2. org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
    3. org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
    4. org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3880)
    5. org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3473)
    5 frames
  16. Eclipse UI
    Workbench$5.run
    1. org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2405)
    2. org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
    3. org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221)
    4. org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
    4 frames
  17. Databinding
    Realm.runWithDefault
    1. org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
    1 frame
  18. Eclipse UI
    Workbench.createAndRunWorkbench
    1. org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:493)
    1 frame
  19. Eclipse UI
    PlatformUI.createAndRunWorkbench
    1. org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
    1 frame
  20. ru.runa.jbpm
    Application.start
    1. ru.runa.jbpm.ui.Application.start(Unknown Source)
    1 frame
  21. Equinox Container
    EclipseAppHandle.run
    1. org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)
    1 frame
  22. Eclipse OSGi
    EclipseStarter.run
    1. org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
    2. org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
    3. org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:368)
    4. org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
    4 frames
  23. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    4. java.lang.reflect.Method.invoke(Unknown Source)
    4 frames
  24. Equinox
    Main.run
    1. org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)
    2. org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
    3. org.eclipse.equinox.launcher.Main.run(Main.java:1311)
    3 frames