It's all about the answers!

Ask a question

NullPointerException upon loading the /rm application


Dan Sevcenco (5021923) | asked Feb 16 '12, 3:45 a.m.
As the title says, I am getting the NullPointerException error (partial stack trace below). The application is installed fresh and the first time I attempted to load the /rm context in the browser I got this problem.

Any ideas? What should I be looking for?

Thank you,
Dan

================================

2012-02-16 03:30:44,204 ERROR er.services.contextRoot.ContextRootRedirectService - Server Error: Entry
java.lang.NullPointerException
at com.ibm.rdm.fronting.server.util.ConfigImpl.getJFSServiceFor(ConfigImpl.java:2056)
at com.ibm.rdm.fronting.server.core.internal.RRSRestServiceBase.service(RRSRestServiceBase.java:110)
at com.ibm.team.jfs.app.servlet.AppContainerServlet.dispatchRequest(AppContainerServlet.java:152)
at com.ibm.team.jfs.app.servlet.AppContainerServlet.service(AppContainerServlet.java:295)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
at org.eclipse.equinox.http.servlet.internal.ServletRegistration.handleRequest(ServletRegistration.java:90)
at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:111)
at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:59)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
at org.eclipse.equinox.servletbridge.BridgeServlet.service(BridgeServlet.java:120)
at com.ibm.team.repository.server.servletbridge.JazzServlet.service(JazzServlet.java:76)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)

5 answers



permanent link
Chris Horning (2711) | answered Mar 16 '12, 9:46 a.m.
JAZZ DEVELOPER
As the title says, I am getting the NullPointerException error (partial stack trace below). The application is installed fresh and the first time I attempted to load the /rm context in the browser I got this problem.

Any ideas? What should I be looking for?

Thank you,
Dan

================================

2012-02-16 03:30:44,204 ERROR er.services.contextRoot.ContextRootRedirectService - Server Error: Entry
java.lang.NullPointerException
at com.ibm.rdm.fronting.server.util.ConfigImpl.getJFSServiceFor(ConfigImpl.java:2056)
at com.ibm.rdm.fronting.server.core.internal.RRSRestServiceBase.service(RRSRestServiceBase.java:110)
at com.ibm.team.jfs.app.servlet.AppContainerServlet.dispatchRequest(AppContainerServlet.java:152)
at com.ibm.team.jfs.app.servlet.AppContainerServlet.service(AppContainerServlet.java:295)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
at org.eclipse.equinox.http.servlet.internal.ServletRegistration.handleRequest(ServletRegistration.java:90)
at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:111)
at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:59)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
at org.eclipse.equinox.servletbridge.BridgeServlet.service(BridgeServlet.java:120)
at com.ibm.team.repository.server.servletbridge.JazzServlet.service(JazzServlet.java:76)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)


Hi Dan
Has this error been resolved? Which version of the application are you using?

permanent link
praveen patidar (8613344) | answered Apr 12 '12, 10:14 a.m.
Hello
I am also getting the same error. Please confirm whether the code will work with version 2.x if yes. The where can I get the updated code for 3.x

I have got Code from
https://jazz.net/wiki/bin/view/Main/RationalRequirementsComposer2SampleCode

My server details

RRC 3.0.1.1
Basic Authentication

test.properties
I have provided the details as below
repository.url=https://xxx.xxx.com/rm
repository.userId=<name>
repository.password=<Pwd>
project.name=<Project>
artifacts.delete=false



=====ERROR LOG==============


java.lang.NullPointerException
at com.ibm.rdm.client.api.Repository.getJFSBaseUrl(Repository.java:360)
at com.ibm.rdm.client.api.Repository.getJfsRepository(Repository.java:349)
at com.ibm.rdm.client.api.Repository.getUserUrl(Repository.java:319)
at com.ibm.rdm.client.api.Repository.getProjectsUrl(Repository.java:342)
at com.ibm.rdm.client.api.Repository.getProjectsWithException(Repository.java:242)
at com.ibm.rdm.client.api.Repository.getProjects(Repository.java:229)
at com.ibm.rdm.client.api.Repository.getProject(Repository.java:367)
at com.ibm.rdm.sample.service.NativeArtifactCreationService.executeService(NativeArtifactCreationService.java:46)
at com.ibm.rdm.sample.service.BaseService.execute(BaseService.java:68)
at com.ibm.rdm.sample.tests.RequirementExample.main(RequirementExample.java:91)
java.lang.RuntimeException: com.ibm.rdm.client.api.util.AuthenticationException
at com.ibm.rdm.client.api.Repository.getUserUrl(Repository.java:335)
at com.ibm.rdm.client.api.Repository.getProjectsUrl(Repository.java:342)
at com.ibm.rdm.client.api.Repository.getProjectsWithException(Repository.java:242)
at com.ibm.rdm.client.api.Repository.getProjects(Repository.java:229)
at com.ibm.rdm.client.api.Repository.getProject(Repository.java:367)
at com.ibm.rdm.sample.service.NativeArtifactCreationService.executeService(NativeArtifactCreationService.java:46)
at com.ibm.rdm.sample.service.BaseService.execute(BaseService.java:68)
at com.ibm.rdm.sample.tests.RequirementExample.main(RequirementExample.java:91)
Caused by: com.ibm.rdm.client.api.util.AuthenticationException
... 8 more
Exception in thread "main" java.lang.NullPointerException
at com.ibm.rdm.sample.service.NativeArtifactCreationService.executeService(NativeArtifactCreationService.java:48)
at com.ibm.rdm.sample.service.BaseService.execute(BaseService.java:68)
at com.ibm.rdm.sample.tests.RequirementExample.main(RequirementExample.java:91)

permanent link
Rosa Naranjo (2.9k11623) | answered Apr 17 '12, 11:23 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
Praveen

Please see Jared's reply in this thread: https://jazz.net/forums/viewtopic.php?p=58856#58856

There is no 301x version of the 2x sample code. The only API published for RRC 301x is the OSLC-RM v2 API.

Hello
I am also getting the same error. Please confirm whether the code will work with version 2.x if yes. The where can I get the updated code for 3.x

I have got Code from
https://jazz.net/wiki/bin/view/Main/RationalRequirementsComposer2SampleCode

My server details

RRC 3.0.1.1
Basic Authentication

test.properties
I have provided the details as below
repository.url=https://*.*.com/rm
repository.userId=<name>
repository.password=<Pwd>
project.name=<Project>
artifacts.delete=false



=====ERROR LOG==============


java.lang.NullPointerException
at com.ibm.rdm.client.api.Repository.getJFSBaseUrl(Repository.java:360)
at com.ibm.rdm.client.api.Repository.getJfsRepository(Repository.java:349)
at com.ibm.rdm.client.api.Repository.getUserUrl(Repository.java:319)
at com.ibm.rdm.client.api.Repository.getProjectsUrl(Repository.java:342)
at com.ibm.rdm.client.api.Repository.getProjectsWithException(Repository.java:242)
at com.ibm.rdm.client.api.Repository.getProjects(Repository.java:229)
at com.ibm.rdm.client.api.Repository.getProject(Repository.java:367)
at com.ibm.rdm.sample.service.NativeArtifactCreationService.executeService(NativeArtifactCreationService.java:46)
at com.ibm.rdm.sample.service.BaseService.execute(BaseService.java:68)
at com.ibm.rdm.sample.tests.RequirementExample.main(RequirementExample.java:91)
java.lang.RuntimeException: com.ibm.rdm.client.api.util.AuthenticationException
at com.ibm.rdm.client.api.Repository.getUserUrl(Repository.java:335)
at com.ibm.rdm.client.api.Repository.getProjectsUrl(Repository.java:342)
at com.ibm.rdm.client.api.Repository.getProjectsWithException(Repository.java:242)
at com.ibm.rdm.client.api.Repository.getProjects(Repository.java:229)
at com.ibm.rdm.client.api.Repository.getProject(Repository.java:367)
at com.ibm.rdm.sample.service.NativeArtifactCreationService.executeService(NativeArtifactCreationService.java:46)
at com.ibm.rdm.sample.service.BaseService.execute(BaseService.java:68)
at com.ibm.rdm.sample.tests.RequirementExample.main(RequirementExample.java:91)
Caused by: com.ibm.rdm.client.api.util.AuthenticationException
... 8 more
Exception in thread "main" java.lang.NullPointerException
at com.ibm.rdm.sample.service.NativeArtifactCreationService.executeService(NativeArtifactCreationService.java:48)
at com.ibm.rdm.sample.service.BaseService.execute(BaseService.java:68)
at com.ibm.rdm.sample.tests.RequirementExample.main(RequirementExample.java:91)

permanent link
Canberk Akduygu (99237371) | answered Apr 19 '12, 8:48 a.m.
As the title says, I am getting the NullPointerException error (partial stack trace below). The application is installed fresh and the first time I attempted to load the /rm context in the browser I got this problem.

Any ideas? What should I be looking for?

Thank you,
Dan

================================

2012-02-16 03:30:44,204 ERROR er.services.contextRoot.ContextRootRedirectService - Server Error: Entry
java.lang.NullPointerException
at com.ibm.rdm.fronting.server.util.ConfigImpl.getJFSServiceFor(ConfigImpl.java:2056)
at com.ibm.rdm.fronting.server.core.internal.RRSRestServiceBase.service(RRSRestServiceBase.java:110)
at com.ibm.team.jfs.app.servlet.AppContainerServlet.dispatchRequest(AppContainerServlet.java:152)
at com.ibm.team.jfs.app.servlet.AppContainerServlet.service(AppContainerServlet.java:295)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
at org.eclipse.equinox.http.servlet.internal.ServletRegistration.handleRequest(ServletRegistration.java:90)
at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:111)
at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:59)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
at org.eclipse.equinox.servletbridge.BridgeServlet.service(BridgeServlet.java:120)
at com.ibm.team.repository.server.servletbridge.JazzServlet.service(JazzServlet.java:76)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)


I got this error after RRC 2.x migration with Oracle Database. Everything seems to be fine. No problem occured during export and import but after tomcat is started. I had this message while navigation the online migration page.

I am using CLM 3.0.1.2

permanent link
Canberk Akduygu (99237371) | answered Apr 19 '12, 3:01 p.m.
I also want to say that I had this problem after my customer has created a keystore for SSL and I didn't know that. So during the migration the keystore parameter also propagated to my new server.xml but there's no keystore file in my new installation.

During the server startup server had an error message about this issue and I had this message on UI, I corrected the keystore issue and solved the problem.

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.