java.lang.NoClassDefFoundError: Could not initialize class sun.net.www.protocol.http.HttpURLConnection

tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Getting an error as "Could not initialize class sun.net.www.protocol.http.HttpURLConnection" in ZK Framework

    Stack Overflow | 1 month ago | Anubhav Mishra
    java.lang.NoClassDefFoundError: Could not initialize class sun.net.www.protocol.http.HttpURLConnection
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    Listbox with paging. If dynamically in custom renderer call row.detach(), and then on client select last row, ZK throws java.lang.NullPointerException or java.lang.IndexOutOfBoundsException. Please see example: http://zkfiddle.org/sample/1esfv0m/41-Another-new-ZK-fiddle#source-3 1) java.lang.NullPointerException at org.zkoss.zul.Listbox.setSelectedIndex(Listbox.java:929) at org.zkoss.zul.Listbox.selectItem(Listbox.java:953) at org.zkoss.zul.Listbox.service(Listbox.java:3396) at org.zkoss.zk.ui.impl.DesktopImpl.service(DesktopImpl.java:699) at org.zkoss.zk.ui.impl.UiEngineImpl.execUpdate(UiEngineImpl.java:1193) at org.zkoss.zk.au.http.DHtmlUpdateServlet.process(DHtmlUpdateServlet.java:558) at org.zkoss.zk.au.http.DHtmlUpdateServlet.doGet(DHtmlUpdateServlet.java:456) at org.zkoss.zk.au.http.DHtmlUpdateServlet.doPost(DHtmlUpdateServlet.java:464) at javax.servlet.http.HttpServlet.service(HttpServlet.java:595) at javax.servlet.http.HttpServlet.service(HttpServlet.java:668) .. 2) java.lang.IndexOutOfBoundsException: Index: -1, Size: 3 at java.util.ArrayList.get(ArrayList.java:352) at org.zkoss.zul.ListModelList.getElementAt(ListModelList.java:150) at org.zkoss.zul.Listbox.service(Listbox.java:3423) at org.zkoss.zk.ui.impl.DesktopImpl.service(DesktopImpl.java:708) at org.zkoss.zk.ui.impl.UiEngineImpl.execUpdate(UiEngineImpl.java:1204) at org.zkoss.zk.au.http.DHtmlUpdateServlet.process(DHtmlUpdateServlet.java:601) at org.zkoss.zk.au.http.DHtmlUpdateServlet.doGet(DHtmlUpdateServlet.java:483) at org.zkoss.zk.au.http.DHtmlUpdateServlet.doPost(DHtmlUpdateServlet.java:492) at javax.servlet.http.HttpServlet.service(HttpServlet.java:595) at javax.servlet.http.HttpServlet.service(HttpServlet.java:668) ...

    ZK-Tracker | 2 years ago | emorozovs
    java.lang.NullPointerException
  4. 0

    Listbox with paging. If dynamically in custom renderer call row.detach(), and then on client select last row, ZK throws java.lang.NullPointerException or java.lang.IndexOutOfBoundsException. Please see example: http://zkfiddle.org/sample/1esfv0m/41-Another-new-ZK-fiddle#source-3 1) java.lang.NullPointerException at org.zkoss.zul.Listbox.setSelectedIndex(Listbox.java:929) at org.zkoss.zul.Listbox.selectItem(Listbox.java:953) at org.zkoss.zul.Listbox.service(Listbox.java:3396) at org.zkoss.zk.ui.impl.DesktopImpl.service(DesktopImpl.java:699) at org.zkoss.zk.ui.impl.UiEngineImpl.execUpdate(UiEngineImpl.java:1193) at org.zkoss.zk.au.http.DHtmlUpdateServlet.process(DHtmlUpdateServlet.java:558) at org.zkoss.zk.au.http.DHtmlUpdateServlet.doGet(DHtmlUpdateServlet.java:456) at org.zkoss.zk.au.http.DHtmlUpdateServlet.doPost(DHtmlUpdateServlet.java:464) at javax.servlet.http.HttpServlet.service(HttpServlet.java:595) at javax.servlet.http.HttpServlet.service(HttpServlet.java:668) .. 2) java.lang.IndexOutOfBoundsException: Index: -1, Size: 3 at java.util.ArrayList.get(ArrayList.java:352) at org.zkoss.zul.ListModelList.getElementAt(ListModelList.java:150) at org.zkoss.zul.Listbox.service(Listbox.java:3423) at org.zkoss.zk.ui.impl.DesktopImpl.service(DesktopImpl.java:708) at org.zkoss.zk.ui.impl.UiEngineImpl.execUpdate(UiEngineImpl.java:1204) at org.zkoss.zk.au.http.DHtmlUpdateServlet.process(DHtmlUpdateServlet.java:601) at org.zkoss.zk.au.http.DHtmlUpdateServlet.doGet(DHtmlUpdateServlet.java:483) at org.zkoss.zk.au.http.DHtmlUpdateServlet.doPost(DHtmlUpdateServlet.java:492) at javax.servlet.http.HttpServlet.service(HttpServlet.java:595) at javax.servlet.http.HttpServlet.service(HttpServlet.java:668) ...

    ZK-Tracker | 2 years ago | emorozovs
    java.lang.NullPointerException
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.NoClassDefFoundError

    Could not initialize class sun.net.www.protocol.http.HttpURLConnection

    at sun.net.www.protocol.http.Handler.openConnection()
  2. Java RT
    URL.openConnection
    1. sun.net.www.protocol.http.Handler.openConnection(Unknown Source)
    2. sun.net.www.protocol.http.Handler.openConnection(Unknown Source)
    3. java.net.URL.openConnection(Unknown Source)
    3 frames
  3. org.zkoss.zkex
    DesktopInit$RTInfoService.service
    1. org.zkoss.zkex.rt.Runtime.sendError(Unknown Source)
    2. org.zkoss.zkex.rt.Runtime.sendError(Unknown Source)
    3. org.zkoss.zkex.rt.Runtime.init(Unknown Source)
    4. org.zkoss.zkex.init.DesktopInit$RTInfoService.service(Unknown Source)
    4 frames
  4. ZK Kernel
    DHtmlUpdateServlet.doPost
    1. org.zkoss.zk.ui.impl.DesktopImpl.service(DesktopImpl.java:750)
    2. org.zkoss.zk.ui.impl.UiEngineImpl.execUpdate(UiEngineImpl.java:1317)
    3. org.zkoss.zk.au.http.DHtmlUpdateServlet.process(DHtmlUpdateServlet.java:606)
    4. org.zkoss.zk.au.http.DHtmlUpdateServlet.doGet(DHtmlUpdateServlet.java:482)
    5. org.zkoss.zk.au.http.DHtmlUpdateServlet.doPost(DHtmlUpdateServlet.java:490)
    5 frames
  5. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:648)
    2. javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
    2 frames
  6. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
    2 frames
  7. Tomcat WS
    WsFilter.doFilter
    1. org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
    1 frame
  8. Glassfish Core
    CoyoteAdapter.service
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
    3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212)
    4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
    5. org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
    6. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)
    7. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
    8. org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616)
    9. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
    10. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:509)
    10 frames
  9. Grizzly HTTP
    NioEndpoint$SocketProcessor.run
    1. org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1104)
    2. org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:684)
    3. org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1520)
    4. org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1476)
    4 frames
  10. Java RT
    ThreadPoolExecutor$Worker.run
    1. java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    2. java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    2 frames
  11. Tomcat Util
    TaskThread$WrappingRunnable.run
    1. org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
    1 frame
  12. Java RT
    Thread.run
    1. java.lang.Thread.run(Unknown Source)
    1 frame