java.lang.NullPointerException

Oracle Community | kurtdz | 7 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Problem running a simple EJB application

    Stack Overflow | 7 years ago | PB_MLT
    java.lang.NullPointerException
  2. 0

    I'm unable to lunch any app-client using Web Start. I don't know in which "subcomponent" fill the bug, and maybe it should be a P1. Tested with both Glassfish 3.0 (as bundled with NetBean 6.8), GF 3.0.1 (file glassfish-v3u1-b01.zip), GF 3.1 (build 2010-01-24). After having deployed (using the CLI) the NetBeans sample LotteryAnnotation (but the same happens with a my custom EAR application), when I try to execute the appclient (using javaws) I receive this error message on console: java.io.IOException: Failed to read jar:http://localhost:8080/___JWSappclient/___app/LotteryAnnotation/glassfish/modules/gf-client-module.jar!/META-INF/inhabitants/default at com.sun.enterprise.module.single.ProxyModuleDefinition.readFully(ProxyModuleDefinition.java:112) at com.sun.enterprise.module.single.ProxyModuleDefinition.<init>(ProxyModuleDefinition.java:83) at com.sun.enterprise.module.single.ProxyModuleDefinition.<init>(ProxyModuleDefinition.java:73) at com.sun.enterprise.module.single.SingleModulesRegistry.<init>(SingleModulesRegistry.java:42) at com.sun.enterprise.module.single.SingleModulesRegistry.<init>(SingleModulesRegistry.java:30) at com.sun.enterprise.module.single.StaticModulesRegistry.<init>(StaticModulesRegistry.java:60) at org.glassfish.appclient.client.acc.ACCModulesManager.prepareHabitat(ACCModulesManager.java:147) at org.glassfish.appclient.client.acc.ACCModulesManager.initialize(ACCModulesManager.java:81) at org.glassfish.appclient.client.acc.AppClientContainerBuilder.prepareHabitatAndNaming(AppClientContainerBuilder.java:192) at org.glassfish.appclient.client.acc.AppClientContainerBuilder.newContainer(AppClientContainerBuilder.java:152) at org.glassfish.appclient.client.acc.AppClientContainerBuilder.newContainer(AppClientContainerBuilder.java:141) at org.glassfish.appclient.client.AppClientFacade.createContainerForJWSLaunch(AppClientFacade.java:469) at org.glassfish.appclient.client.AppClientFacade.createContainer(AppClientFacade.java:428) at org.glassfish.appclient.client.AppClientFacade.prepareACC(AppClientFacade.java:256) at org.glassfish.appclient.client.JWSAppClientContainerMain.main(JWSAppClientContainerMain.java:83) 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 com.sun.javaws.Launcher.executeApplication(Launcher.java:1302) at com.sun.javaws.Launcher.executeMainClass(Launcher.java:1248) at com.sun.javaws.Launcher.doLaunchApp(Launcher.java:1066) at com.sun.javaws.Launcher.run(Launcher.java:116) at java.lang.Thread.run(Thread.java:619) Caused by: java.io.EOFException at java.io.DataInputStream.readFully(DataInputStream.java:180) at java.io.DataInputStream.readFully(DataInputStream.java:152) at com.sun.enterprise.module.single.ProxyModuleDefinition.readFully(ProxyModuleDefinition.java:105) ... 23 more Error launching or running the application java.lang.NullPointerException java.lang.NullPointerException at com.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl.add(AbstractModulesRegistryImpl.java:448) at com.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl.add(AbstractModulesRegistryImpl.java:443) at com.sun.enterprise.module.single.SingleModulesRegistry.<init>(SingleModulesRegistry.java:48) at com.sun.enterprise.module.single.SingleModulesRegistry.<init>(SingleModulesRegistry.java:30) at com.sun.enterprise.module.single.StaticModulesRegistry.<init>(StaticModulesRegistry.java:60) at org.glassfish.appclient.client.acc.ACCModulesManager.prepareHabitat(ACCModulesManager.java:147) at org.glassfish.appclient.client.acc.ACCModulesManager.initialize(ACCModulesManager.java:81) at org.glassfish.appclient.client.acc.AppClientContainerBuilder.prepareHabitatAndNaming(AppClientContainerBuilder.java:192) at org.glassfish.appclient.client.acc.AppClientContainerBuilder.newContainer(AppClientContainerBuilder.java:152) at org.glassfish.appclient.client.acc.AppClientContainerBuilder.newContainer(AppClientContainerBuilder.java:141) at org.glassfish.appclient.client.AppClientFacade.createContainerForJWSLaunch(AppClientFacade.java:469) at org.glassfish.appclient.client.AppClientFacade.createContainer(AppClientFacade.java:428) at org.glassfish.appclient.client.AppClientFacade.prepareACC(AppClientFacade.java:256) at org.glassfish.appclient.client.JWSAppClientContainerMain.main(JWSAppClientContainerMain.java:83) 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 com.sun.javaws.Launcher.executeApplication(Launcher.java:1302) at com.sun.javaws.Launcher.executeMainClass(Launcher.java:1248) at com.sun.javaws.Launcher.doLaunchApp(Launcher.java:1066) at com.sun.javaws.Launcher.run(Launcher.java:116) at java.lang.Thread.run(Thread.java:619) What is the problem? Is there a work-around? Regards, Daniele

    Java.net JIRA | 7 years ago | dbenegiamo
    java.lang.NullPointerException
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    appclient doesn't work

    Oracle Community | 7 years ago | kurtdz
    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.NullPointerException

      No message provided

      at org.glassfish.appclient.client.acc.ACCLogger$1.run()
    2. org.glassfish.appclient
      ACCLogger$1.run
      1. org.glassfish.appclient.client.acc.ACCLogger$1.run(ACCLogger.java:149)
      1 frame
    3. Java RT
      AccessController.doPrivileged
      1. java.security.AccessController.doPrivileged(Native Method)
      1 frame