java.lang.NullPointerException

Hibernate JIRA | Susan Javurek | 2 years ago
  1. 0

    We've set up injection as follows: {code} <bean id="datasource" class="org.apache.commons.dbcp.BasicDataSource"> <property name="driverClassName" value="com.teradata.jdbc.TeraDriver" /> <!--property name="url" value="$(DB_URL)" /--> <property name="url" value="jdbc:mysql://localhost/hibernate-test" /> <property name="username" value="root" /> <property name="password" value="XXX" /> </bean> <service interface="javax.sql.DataSource" ref="datasource"> <service-properties> <entry key="osgi.jndi.service.name" value="jdbc/datasource" /> </service-properties> </service> {code} And in our hibernate config: {code} <session-factory> <property name="hibernate.connection.datasource">osgi:service/javax.sql.DataSource/(osgi.jndi.service.name=jdbc/datasource)</property> {code} This is results in the error [1]. The test case is based on the unmanaged-native osgi demo provided with hibernate. [1] ERROR {code} 17:29:44,934 | INFO | l Console Thread | Console | 16 - org.apache.karaf.shell.console - 2.3.0.redhat-611423 | Exception caught while executing command java.lang.NullPointerException at org.hibernate.osgitest.HibernateUtil.getSession(HibernateUtil.java:39)[344:org.hibernate.osgi.unmanaged-native:1.0.0] at org.hibernate.osgitest.DataPointServiceImpl.add(DataPointServiceImpl.java:42)[344:org.hibernate.osgi.unmanaged-native:1.0.0] at org.hibernate.osgitest.command.AddCommand.execute(AddCommand.java:40)[344:org.hibernate.osgi.unmanaged-native:1.0.0] at org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:35)[16:org.apache.karaf.shell.console:2.3.0.redhat-611423] at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)[18:org.apache.felix.gogo.runtime:0.11.0.redhat-611423] at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)[18:org.apache.felix.gogo.runtime:0.11.0.redhat-611423] at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)[18:org.apache.felix.gogo.runtime:0.11.0.redhat-611423] at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[18:org.apache.felix.gogo.runtime:0.11.0.redhat-611423] at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)[18:org.apache.felix.gogo.runtime:0.11.0.redhat-611423] at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)[18:org.apache.felix.gogo.runtime:0.11.0.redhat-611423] at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)[18:org.apache.felix.gogo.runtime:0.11.0.redhat-611423] at org.apache.karaf.shell.console.jline.Console.run(Console.java:189)[16:org.apache.karaf.shell.console:2.3.0.redhat-611423] at org.apache.karaf.shell.console.jline.DelayedStarted.run(DelayedStarted.java:61)[16:org.apache.karaf.shell.console:2.3.0.redhat-611423] 17:29:44,934 | DEBUG | lixDispatchQueue | osgi | 282 - org.hibernate.osgi - 4.2.9.Final | FrameworkEvent ERROR - org.hibernate.osgi org.osgi.framework.ServiceException: Service factory exception: Error parsing JNDI name [osgi:service/javax.sql.DataSource/(osgi.jndi.service.name=jdbc/adwTeraDS)] at org.apache.felix.framework.ServiceRegistrationImpl.getFactoryUnchecked(ServiceRegistrationImpl.java:349)[org.apache.felix.framework-4.0.3.redhat-610379.jar:] at org.apache.felix.framework.ServiceRegistrationImpl.access$100(ServiceRegistrationImpl.java:47)[org.apache.felix.framework-4.0.3.redhat-610379.jar:] at org.apache.felix.framework.ServiceRegistrationImpl$1.call(ServiceRegistrationImpl.java:249)[org.apache.felix.framework-4.0.3.redhat-610379.jar:] at org.apache.felix.framework.Felix.runInContext(Felix.java:2188)[org.apache.felix.framework-4.0.3.redhat-610379.jar:] at org.apache.felix.framework.ServiceRegistrationImpl.getService(ServiceRegistrationImpl.java:238)[org.apache.felix.framework-4.0.3.redhat-610379.jar:] at org.apache.felix.framework.ServiceRegistry.getService(ServiceRegistry.java:328)[org.apache.felix.framework-4.0.3.redhat-610379.jar:] at org.apache.felix.framework.Felix.getService(Felix.java:3819)[org.apache.felix.framework-4.0.3.redhat-610379.jar:] at org.apache.felix.framework.BundleContextImpl.getService(BundleContextImpl.java:470)[org.apache.felix.framework-4.0.3.redhat-610379.jar:] at org.hibernate.osgitest.HibernateUtil.getSessionFactory(HibernateUtil.java:49)[344:org.hibernate.osgi.unmanaged-native:1.0.0] at org.hibernate.osgitest.HibernateUtil.getSession(HibernateUtil.java:39)[344:org.hibernate.osgi.unmanaged-native:1.0.0] at org.hibernate.osgitest.DataPointServiceImpl.add(DataPointServiceImpl.java:42)[344:org.hibernate.osgi.unmanaged-native:1.0.0] at org.hibernate.osgitest.command.AddCommand.execute(AddCommand.java:40)[344:org.hibernate.osgi.unmanaged-native:1.0.0] at org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:35)[16:org.apache.karaf.shell.console:2.3.0.redhat-611423] at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)[18:org.apache.felix.gogo.runtime:0.11.0.redhat-611423] at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)[18:org.apache.felix.gogo.runtime:0.11.0.redhat-611423] at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)[18:org.apache.felix.gogo.runtime:0.11.0.redhat-611423] at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[18:org.apache.felix.gogo.runtime:0.11.0.redhat-611423] at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)[18:org.apache.felix.gogo.runtime:0.11.0.redhat-611423] at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)[18:org.apache.felix.gogo.runtime:0.11.0.redhat-611423] at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)[18:org.apache.felix.gogo.runtime:0.11.0.redhat-611423] at org.apache.karaf.shell.console.jline.Console.run(Console.java:189)[16:org.apache.karaf.shell.console:2.3.0.redhat-611423] at org.apache.karaf.shell.console.jline.DelayedStarted.run(DelayedStarted.java:61)[16:org.apache.karaf.shell.console:2.3.0.redhat-611423] Caused by: org.hibernate.service.jndi.JndiException: Error parsing JNDI name [osgi:service/javax.sql.DataSource/(osgi.jndi.service.name=jdbc/adwTeraDS)] at org.hibernate.service.jndi.internal.JndiServiceImpl.parseName(JndiServiceImpl.java:92)[280:org.hibernate.core:4.2.9.Final] at org.hibernate.service.jndi.internal.JndiServiceImpl.locate(JndiServiceImpl.java:63)[280:org.hibernate.core:4.2.9.Final] at org.hibernate.service.jdbc.connections.internal.DatasourceConnectionProviderImpl.configure(DatasourceConnectionProviderImpl.java:116)[280:org.hibernate.core:4.2.9.Final] at org.hibernate.service.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:76)[280:org.hibernate.core:4.2.9.Final] at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:158)[280:org.hibernate.core:4.2.9.Final] at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:130)[280:org.hibernate.core:4.2.9.Final] at org.hibernate.engine.jdbc.internal.JdbcServicesImpl.buildJdbcConnectionAccess(JdbcServicesImpl.java:223)[280:org.hibernate.core:4.2.9.Final] at org.hibernate.engine.jdbc.internal.JdbcServicesImpl.configure(JdbcServicesImpl.java:89)[280:org.hibernate.core:4.2.9.Final] at org.hibernate.service.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:76)[280:org.hibernate.core:4.2.9.Final] at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:158)[280:org.hibernate.core:4.2.9.Final] at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:130)[280:org.hibernate.core:4.2.9.Final] at org.hibernate.cfg.Configuration.buildTypeRegistrations(Configuration.java:1825)[280:org.hibernate.core:4.2.9.Final] at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1783)[280:org.hibernate.core:4.2.9.Final] at org.hibernate.osgi.OsgiSessionFactoryService.getService(OsgiSessionFactoryService.java:115)[282:org.hibernate.osgi:4.2.9.Final] at org.apache.felix.framework.ServiceRegistrationImpl.getFactoryUnchecked(ServiceRegistrationImpl.java:345)[org.apache.felix.framework-4.0.3.redhat-610379.jar:] ... 21 more Caused by: javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:662)[:1.7.0_51] at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:307)[:1.7.0_51] at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:344)[:1.7.0_51] at javax.naming.InitialContext.getNameParser(InitialContext.java:499)[:1.7.0_51] at org.hibernate.service.jndi.internal.JndiServiceImpl.parseName(JndiServiceImpl.java:86)[280:org.hibernate.core:4.2.9.Final] ... 35 more 17:30:43,841 | DEBUG | l Console Thread | Console | 16 - org.apache.karaf.shell.console - 2.3.0.redhat-611423 | Unknown command entered org.apache.felix.gogo.runtime.CommandNotFoundException: Command not found: osgi:servicelist at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:474)[18:org.apache.felix.gogo.runtime:0.11.0.redhat-611423] at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)[18:org.apache.felix.gogo.runtime:0.11.0.redhat-611423] at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[18:org.apache.felix.gogo.runtime:0.11.0.redhat-611423] at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)[18:org.apache.felix.gogo.runtime:0.11.0.redhat-611423] at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)[18:org.apache.felix.gogo.runtime:0.11.0.redhat-611423] at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)[18:org.apache.felix.gogo.runtime:0.11.0.redhat-611423] at org.apache.karaf.shell.console.jline.Console.run(Console.java:189)[16:org.apache.karaf.shell.console:2.3.0.redhat-611423] at org.apache.karaf.shell.console.jline.DelayedStarted.run(DelayedStarted.java:61)[16:org.apache.karaf.shell.console:2.3.0.redhat-611423] {code}

    Hibernate JIRA | 2 years ago | Susan Javurek
    java.lang.NullPointerException
  2. 0

    We've set up injection as follows: {code} <bean id="datasource" class="org.apache.commons.dbcp.BasicDataSource"> <property name="driverClassName" value="com.teradata.jdbc.TeraDriver" /> <!--property name="url" value="$(DB_URL)" /--> <property name="url" value="jdbc:mysql://localhost/hibernate-test" /> <property name="username" value="root" /> <property name="password" value="XXX" /> </bean> <service interface="javax.sql.DataSource" ref="datasource"> <service-properties> <entry key="osgi.jndi.service.name" value="jdbc/datasource" /> </service-properties> </service> {code} And in our hibernate config: {code} <session-factory> <property name="hibernate.connection.datasource">osgi:service/javax.sql.DataSource/(osgi.jndi.service.name=jdbc/datasource)</property> {code} This is results in the error [1]. The test case is based on the unmanaged-native osgi demo provided with hibernate. [1] ERROR {code} 17:29:44,934 | INFO | l Console Thread | Console | 16 - org.apache.karaf.shell.console - 2.3.0.redhat-611423 | Exception caught while executing command java.lang.NullPointerException at org.hibernate.osgitest.HibernateUtil.getSession(HibernateUtil.java:39)[344:org.hibernate.osgi.unmanaged-native:1.0.0] at org.hibernate.osgitest.DataPointServiceImpl.add(DataPointServiceImpl.java:42)[344:org.hibernate.osgi.unmanaged-native:1.0.0] at org.hibernate.osgitest.command.AddCommand.execute(AddCommand.java:40)[344:org.hibernate.osgi.unmanaged-native:1.0.0] at org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:35)[16:org.apache.karaf.shell.console:2.3.0.redhat-611423] at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)[18:org.apache.felix.gogo.runtime:0.11.0.redhat-611423] at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)[18:org.apache.felix.gogo.runtime:0.11.0.redhat-611423] at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)[18:org.apache.felix.gogo.runtime:0.11.0.redhat-611423] at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[18:org.apache.felix.gogo.runtime:0.11.0.redhat-611423] at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)[18:org.apache.felix.gogo.runtime:0.11.0.redhat-611423] at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)[18:org.apache.felix.gogo.runtime:0.11.0.redhat-611423] at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)[18:org.apache.felix.gogo.runtime:0.11.0.redhat-611423] at org.apache.karaf.shell.console.jline.Console.run(Console.java:189)[16:org.apache.karaf.shell.console:2.3.0.redhat-611423] at org.apache.karaf.shell.console.jline.DelayedStarted.run(DelayedStarted.java:61)[16:org.apache.karaf.shell.console:2.3.0.redhat-611423] 17:29:44,934 | DEBUG | lixDispatchQueue | osgi | 282 - org.hibernate.osgi - 4.2.9.Final | FrameworkEvent ERROR - org.hibernate.osgi org.osgi.framework.ServiceException: Service factory exception: Error parsing JNDI name [osgi:service/javax.sql.DataSource/(osgi.jndi.service.name=jdbc/adwTeraDS)] at org.apache.felix.framework.ServiceRegistrationImpl.getFactoryUnchecked(ServiceRegistrationImpl.java:349)[org.apache.felix.framework-4.0.3.redhat-610379.jar:] at org.apache.felix.framework.ServiceRegistrationImpl.access$100(ServiceRegistrationImpl.java:47)[org.apache.felix.framework-4.0.3.redhat-610379.jar:] at org.apache.felix.framework.ServiceRegistrationImpl$1.call(ServiceRegistrationImpl.java:249)[org.apache.felix.framework-4.0.3.redhat-610379.jar:] at org.apache.felix.framework.Felix.runInContext(Felix.java:2188)[org.apache.felix.framework-4.0.3.redhat-610379.jar:] at org.apache.felix.framework.ServiceRegistrationImpl.getService(ServiceRegistrationImpl.java:238)[org.apache.felix.framework-4.0.3.redhat-610379.jar:] at org.apache.felix.framework.ServiceRegistry.getService(ServiceRegistry.java:328)[org.apache.felix.framework-4.0.3.redhat-610379.jar:] at org.apache.felix.framework.Felix.getService(Felix.java:3819)[org.apache.felix.framework-4.0.3.redhat-610379.jar:] at org.apache.felix.framework.BundleContextImpl.getService(BundleContextImpl.java:470)[org.apache.felix.framework-4.0.3.redhat-610379.jar:] at org.hibernate.osgitest.HibernateUtil.getSessionFactory(HibernateUtil.java:49)[344:org.hibernate.osgi.unmanaged-native:1.0.0] at org.hibernate.osgitest.HibernateUtil.getSession(HibernateUtil.java:39)[344:org.hibernate.osgi.unmanaged-native:1.0.0] at org.hibernate.osgitest.DataPointServiceImpl.add(DataPointServiceImpl.java:42)[344:org.hibernate.osgi.unmanaged-native:1.0.0] at org.hibernate.osgitest.command.AddCommand.execute(AddCommand.java:40)[344:org.hibernate.osgi.unmanaged-native:1.0.0] at org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:35)[16:org.apache.karaf.shell.console:2.3.0.redhat-611423] at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)[18:org.apache.felix.gogo.runtime:0.11.0.redhat-611423] at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)[18:org.apache.felix.gogo.runtime:0.11.0.redhat-611423] at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)[18:org.apache.felix.gogo.runtime:0.11.0.redhat-611423] at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[18:org.apache.felix.gogo.runtime:0.11.0.redhat-611423] at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)[18:org.apache.felix.gogo.runtime:0.11.0.redhat-611423] at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)[18:org.apache.felix.gogo.runtime:0.11.0.redhat-611423] at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)[18:org.apache.felix.gogo.runtime:0.11.0.redhat-611423] at org.apache.karaf.shell.console.jline.Console.run(Console.java:189)[16:org.apache.karaf.shell.console:2.3.0.redhat-611423] at org.apache.karaf.shell.console.jline.DelayedStarted.run(DelayedStarted.java:61)[16:org.apache.karaf.shell.console:2.3.0.redhat-611423] Caused by: org.hibernate.service.jndi.JndiException: Error parsing JNDI name [osgi:service/javax.sql.DataSource/(osgi.jndi.service.name=jdbc/adwTeraDS)] at org.hibernate.service.jndi.internal.JndiServiceImpl.parseName(JndiServiceImpl.java:92)[280:org.hibernate.core:4.2.9.Final] at org.hibernate.service.jndi.internal.JndiServiceImpl.locate(JndiServiceImpl.java:63)[280:org.hibernate.core:4.2.9.Final] at org.hibernate.service.jdbc.connections.internal.DatasourceConnectionProviderImpl.configure(DatasourceConnectionProviderImpl.java:116)[280:org.hibernate.core:4.2.9.Final] at org.hibernate.service.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:76)[280:org.hibernate.core:4.2.9.Final] at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:158)[280:org.hibernate.core:4.2.9.Final] at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:130)[280:org.hibernate.core:4.2.9.Final] at org.hibernate.engine.jdbc.internal.JdbcServicesImpl.buildJdbcConnectionAccess(JdbcServicesImpl.java:223)[280:org.hibernate.core:4.2.9.Final] at org.hibernate.engine.jdbc.internal.JdbcServicesImpl.configure(JdbcServicesImpl.java:89)[280:org.hibernate.core:4.2.9.Final] at org.hibernate.service.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:76)[280:org.hibernate.core:4.2.9.Final] at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:158)[280:org.hibernate.core:4.2.9.Final] at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:130)[280:org.hibernate.core:4.2.9.Final] at org.hibernate.cfg.Configuration.buildTypeRegistrations(Configuration.java:1825)[280:org.hibernate.core:4.2.9.Final] at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1783)[280:org.hibernate.core:4.2.9.Final] at org.hibernate.osgi.OsgiSessionFactoryService.getService(OsgiSessionFactoryService.java:115)[282:org.hibernate.osgi:4.2.9.Final] at org.apache.felix.framework.ServiceRegistrationImpl.getFactoryUnchecked(ServiceRegistrationImpl.java:345)[org.apache.felix.framework-4.0.3.redhat-610379.jar:] ... 21 more Caused by: javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:662)[:1.7.0_51] at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:307)[:1.7.0_51] at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:344)[:1.7.0_51] at javax.naming.InitialContext.getNameParser(InitialContext.java:499)[:1.7.0_51] at org.hibernate.service.jndi.internal.JndiServiceImpl.parseName(JndiServiceImpl.java:86)[280:org.hibernate.core:4.2.9.Final] ... 35 more 17:30:43,841 | DEBUG | l Console Thread | Console | 16 - org.apache.karaf.shell.console - 2.3.0.redhat-611423 | Unknown command entered org.apache.felix.gogo.runtime.CommandNotFoundException: Command not found: osgi:servicelist at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:474)[18:org.apache.felix.gogo.runtime:0.11.0.redhat-611423] at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)[18:org.apache.felix.gogo.runtime:0.11.0.redhat-611423] at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[18:org.apache.felix.gogo.runtime:0.11.0.redhat-611423] at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)[18:org.apache.felix.gogo.runtime:0.11.0.redhat-611423] at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)[18:org.apache.felix.gogo.runtime:0.11.0.redhat-611423] at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)[18:org.apache.felix.gogo.runtime:0.11.0.redhat-611423] at org.apache.karaf.shell.console.jline.Console.run(Console.java:189)[16:org.apache.karaf.shell.console:2.3.0.redhat-611423] at org.apache.karaf.shell.console.jline.DelayedStarted.run(DelayedStarted.java:61)[16:org.apache.karaf.shell.console:2.3.0.redhat-611423] {code}

    Hibernate JIRA | 2 years ago | Susan Javurek
    java.lang.NullPointerException
  3. 0

    Android: Saving Map State in Google map

    Stack Overflow | 11 months ago | Junie Negentien
    java.lang.RuntimeException: Unable to resume activity {com.ourThesis.junieNegentien2015/com.ourThesis.junieNegentien2015.MainActivity}: java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    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.hibernate.osgitest.HibernateUtil.getSession()
    2. org.hibernate.osgitest
      AddCommand.execute
      1. org.hibernate.osgitest.HibernateUtil.getSession(HibernateUtil.java:39)[344:org.hibernate.osgi.unmanaged-native:1.0.0]
      2. org.hibernate.osgitest.DataPointServiceImpl.add(DataPointServiceImpl.java:42)[344:org.hibernate.osgi.unmanaged-native:1.0.0]
      3. org.hibernate.osgitest.command.AddCommand.execute(AddCommand.java:40)[344:org.hibernate.osgi.unmanaged-native:1.0.0]
      3 frames
    3. Apache Karaf :: Shell :: Console
      AbstractCommand.execute
      1. org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:35)[16:org.apache.karaf.shell.console:2.3.0.redhat-611423]
      1 frame
    4. Apache Felix Gogo Runtime
      CommandSessionImpl.execute
      1. org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)[18:org.apache.felix.gogo.runtime:0.11.0.redhat-611423]
      2. org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)[18:org.apache.felix.gogo.runtime:0.11.0.redhat-611423]
      3. org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)[18:org.apache.felix.gogo.runtime:0.11.0.redhat-611423]
      4. org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[18:org.apache.felix.gogo.runtime:0.11.0.redhat-611423]
      5. org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)[18:org.apache.felix.gogo.runtime:0.11.0.redhat-611423]
      6. org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)[18:org.apache.felix.gogo.runtime:0.11.0.redhat-611423]
      7. org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)[18:org.apache.felix.gogo.runtime:0.11.0.redhat-611423]
      7 frames
    5. Apache Karaf :: Shell :: Console
      DelayedStarted.run
      1. org.apache.karaf.shell.console.jline.Console.run(Console.java:189)[16:org.apache.karaf.shell.console:2.3.0.redhat-611423]
      2. org.apache.karaf.shell.console.jline.DelayedStarted.run(DelayedStarted.java:61)[16:org.apache.karaf.shell.console:2.3.0.redhat-611423]
      2 frames