java.lang.NullPointerException

Google Groups | Abel Adane | 3 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    internal system error

    Google Groups | 3 months ago | Abel Adane
    java.lang.NullPointerException
  2. 0

    NullPointerException

    Google Groups | 3 months ago | abel adane
    java.lang.NullPointerException
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    While trying to add a top-level community, or a sub-community to our DSpace community, we received an Internal Server Error. Looking through the logs, I noticed that trying to add a community causes Oracle to throw a ORA-0001 error: 2011-01-07 09:14:32,848 WARN org.dspace.app.webui.servlet.DSpaceServlet @ blensch@georgiasouthern.edu:session_id=1232A007BC7400C3524C38F490C87A6B:ip_addr=141.x.x.x:database_error:java.sql.SQLException\colon; ORA-00001\colon; unique constraint (DSPACE_USER.SYS_C007905) violated java.sql.SQLException: ORA-00001: unique constraint (DSPACE_USER.SYS_C007905) violated at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112) at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:331) at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:288) at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:745) at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:219) at oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:970) at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1190) at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3370) at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3454) at org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:102) at org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:102) at org.dspace.storage.rdbms.DatabaseManager.execute(DatabaseManager.java:1429) at org.dspace.storage.rdbms.DatabaseManager.update(DatabaseManager.java:781) at org.dspace.handle.HandleManager.createHandle(HandleManager.java:172) at org.dspace.content.Community.create(Community.java:205) at org.dspace.content.Community.createSubcommunity(Community.java:845) at org.dspace.app.webui.servlet.admin.EditCommunitiesServlet.processConfirmEditCommunity(EditCommunitiesServlet.java:520) at org.dspace.app.webui.servlet.admin.EditCommunitiesServlet.doDSPost(EditCommunitiesServlet.java:237) at org.dspace.app.webui.servlet.DSpaceServlet.processRequest(DSpaceServlet.java:147) at org.dspace.app.webui.servlet.DSpaceServlet.doPost(DSpaceServlet.java:105) at javax.servlet.http.HttpServlet.service(HttpServlet.java:710) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at org.dspace.app.webui.filter.RegisteredOnlyFilter.doFilter(RegisteredOnlyFilter.java:98) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at org.dspace.utils.servlet.DSpaceWebappServletFilter.doFilter(DSpaceWebappServletFilter.java:112) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:875) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685) at java.lang.Thread.run(Thread.java:636) Has anyone else seen this error before, or lend any insight on how to fix this problem? We only have a handful of communities and items installed on the server, so I wouldn't think we would be out of ID's or have problems with duplicate community names. Thanks.

    Sakai JIRA | 6 years ago | Bert Lensch
    java.sql.SQLException: ORA-00001: unique constraint (DSPACE_USER.SYS_C007905) violated
  5. 0

    While trying to add a top-level community, or a sub-community to our DSpace community, we received an Internal Server Error. Looking through the logs, I noticed that trying to add a community causes Oracle to throw a ORA-0001 error: 2011-01-07 09:14:32,848 WARN org.dspace.app.webui.servlet.DSpaceServlet @ blensch@georgiasouthern.edu:session_id=1232A007BC7400C3524C38F490C87A6B:ip_addr=141.x.x.x:database_error:java.sql.SQLException\colon; ORA-00001\colon; unique constraint (DSPACE_USER.SYS_C007905) violated java.sql.SQLException: ORA-00001: unique constraint (DSPACE_USER.SYS_C007905) violated at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112) at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:331) at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:288) at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:745) at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:219) at oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:970) at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1190) at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3370) at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3454) at org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:102) at org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:102) at org.dspace.storage.rdbms.DatabaseManager.execute(DatabaseManager.java:1429) at org.dspace.storage.rdbms.DatabaseManager.update(DatabaseManager.java:781) at org.dspace.handle.HandleManager.createHandle(HandleManager.java:172) at org.dspace.content.Community.create(Community.java:205) at org.dspace.content.Community.createSubcommunity(Community.java:845) at org.dspace.app.webui.servlet.admin.EditCommunitiesServlet.processConfirmEditCommunity(EditCommunitiesServlet.java:520) at org.dspace.app.webui.servlet.admin.EditCommunitiesServlet.doDSPost(EditCommunitiesServlet.java:237) at org.dspace.app.webui.servlet.DSpaceServlet.processRequest(DSpaceServlet.java:147) at org.dspace.app.webui.servlet.DSpaceServlet.doPost(DSpaceServlet.java:105) at javax.servlet.http.HttpServlet.service(HttpServlet.java:710) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at org.dspace.app.webui.filter.RegisteredOnlyFilter.doFilter(RegisteredOnlyFilter.java:98) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at org.dspace.utils.servlet.DSpaceWebappServletFilter.doFilter(DSpaceWebappServletFilter.java:112) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:875) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685) at java.lang.Thread.run(Thread.java:636) Has anyone else seen this error before, or lend any insight on how to fix this problem? We only have a handful of communities and items installed on the server, so I wouldn't think we would be out of ID's or have problems with duplicate community names. Thanks.

    Sakai JIRA | 6 years ago | Bert Lensch
    java.sql.SQLException: ORA-00001: unique constraint (DSPACE_USER.SYS_C007905) violated

    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.dspace.storage.rdbms.DatabaseManager.queryTable()
    2. DSpace Kernel :: API and Implementation
      HandleManager.resolveToObject
      1. org.dspace.storage.rdbms.DatabaseManager.queryTable(DatabaseManager.java:230)
      2. org.dspace.storage.rdbms.DatabaseManager.querySingleTable(DatabaseManager.java:381)
      3. org.dspace.storage.rdbms.DatabaseManager.findByUnique(DatabaseManager.java:546)
      4. org.dspace.handle.HandleManager.findHandleInternal(HandleManager.java:535)
      5. org.dspace.handle.HandleManager.resolveToObject(HandleManager.java:322)
      5 frames
    3. org.dspace.app
      DSpaceServlet.doGet
      1. org.dspace.app.webui.servlet.HandleServlet.doDSGet(HandleServlet.java:128)
      2. org.dspace.app.webui.servlet.DSpaceServlet.processRequest(DSpaceServlet.java:119)
      3. org.dspace.app.webui.servlet.DSpaceServlet.doGet(DSpaceServlet.java:67)
      3 frames
    4. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:620)
      2. javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
      2 frames
    5. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:606)
      4 frames
    6. Glassfish Core
      SecurityUtil$1.run
      1. org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:277)
      2. org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:274)
      2 frames
    7. Java RT
      Subject.doAsPrivileged
      1. java.security.AccessController.doPrivileged(Native Method)
      2. javax.security.auth.Subject.doAsPrivileged(Subject.java:536)
      2 frames
    8. Glassfish Core
      ApplicationFilterChain$1.run
      1. org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:309)
      2. org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:169)
      3. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:297)
      4. org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
      5. org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:191)
      6. org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:187)
      6 frames
    9. Java RT
      AccessController.doPrivileged
      1. java.security.AccessController.doPrivileged(Native Method)
      1 frame
    10. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:186)
      1 frame
    11. DSpace Kernel :: API and Implementation
      NegotiationFilter.doFilter
      1. org.dspace.rdf.negotiation.NegotiationFilter.doFilter(NegotiationFilter.java:59)
      1 frame
    12. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:606)
      4 frames
    13. Glassfish Core
      SecurityUtil$1.run
      1. org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:277)
      2. org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:274)
      2 frames
    14. Java RT
      Subject.doAsPrivileged
      1. java.security.AccessController.doPrivileged(Native Method)
      2. javax.security.auth.Subject.doAsPrivileged(Subject.java:536)
      2 frames
    15. Glassfish Core
      ApplicationFilterChain$1.run
      1. org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:309)
      2. org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:249)
      3. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
      4. org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
      5. org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:191)
      6. org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:187)
      6 frames
    16. Java RT
      AccessController.doPrivileged
      1. java.security.AccessController.doPrivileged(Native Method)
      1 frame
    17. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:186)
      1 frame
    18. DSpace Services Framework :: API and Implementation
      DSpaceWebappServletFilter.doFilter
      1. org.dspace.utils.servlet.DSpaceWebappServletFilter.doFilter(DSpaceWebappServletFilter.java:78)
      1 frame
    19. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor52.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      3. java.lang.reflect.Method.invoke(Method.java:606)
      3 frames
    20. Glassfish Core
      SecurityUtil$1.run
      1. org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:277)
      2. org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:274)
      2 frames
    21. Java RT
      Subject.doAsPrivileged
      1. java.security.AccessController.doPrivileged(Native Method)
      2. javax.security.auth.Subject.doAsPrivileged(Subject.java:536)
      2 frames
    22. Glassfish Core
      ApplicationFilterChain$1.run
      1. org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:309)
      2. org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:249)
      3. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
      4. org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
      5. org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:191)
      6. org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:187)
      6 frames
    23. Java RT
      AccessController.doPrivileged
      1. java.security.AccessController.doPrivileged(Native Method)
      1 frame
    24. Glassfish Core
      CoyoteAdapter.service
      1. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:186)
      2. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
      3. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
      4. org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
      5. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
      6. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
      7. org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
      8. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
      9. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
      9 frames
    25. Grizzly HTTP
      JIoEndpoint$SocketProcessor.run
      1. org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1041)
      2. org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
      3. org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:313)
      3 frames
    26. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      3. java.lang.Thread.run(Thread.java:745)
      3 frames