It's all about the answers!

Ask a question

NullPointerException processing POST request for com.ibm.tea


Thomas Schneider (5666) | asked May 04 '08, 1:29 p.m.
NullPointerException processing POST request for com.ibm.team.repository.service.internal.IServerStatusRestService.postStatusForServices()


Configuration:
Redhat rehl 4 with the latest patches installed.
WsAS 6.1.0.15
DB2 Express v9.1.0.4
Jazz 1.0M6a


I have just installed Jazz 1.0M6a and am not able to log on to jazz/admin. When you click on the login link it just refreshes the page and posts the following in the App Servers SystemOut.log

00000027 SystemOut O 11:58:26,199 WARN .team.repository.servlet.AbstractTeamServerServlet - NullPointerException processing POST request for com.ibm.team.repository.service.internal.IServerStatusRestService.postStatusForServices(). The request was made by user "{UnknownUserid}" from "sig-9-76-76-236.mts.ibm.com". The stacktrace hash is B5927F4E933582CF46BBFE8E9AE1D3712B09E9F9.
java.lang.NullPointerException
at java.io.StringReader.<init>(StringReader.java:54)
at com.ibm.team.repository.service.internal.ServerStatusRestService.postStatusForServices(ServerStatusRestService.java:244)
at sun.reflect.GeneratedMethodAccessor85.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:618)
at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.invoke(ExportProxyServiceRecord.java:375)
at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.access$0(ExportProxyServiceRecord.java:361)
at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord$ExportedServiceInvocationHandler.invoke(ExportProxyServiceRecord.java:55)
at $Proxy7.postStatusForServices(Unknown Source)
at sun.reflect.GeneratedMethodAccessor88.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:618)
at com.ibm.team.repository.servlet.AbstractTeamServerServlet.doModelledRestService(AbstractTeamServerServlet.java:490)
at com.ibm.team.repository.servlet.AbstractTeamServerServlet.service(AbstractTeamServerServlet.java:1359)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at org.eclipse.equinox.http.registry.internal.ServletManager$ServletWrapper.service(ServletManager.java:180)
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:75)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at org.eclipse.equinox.servletbridge.BridgeServlet.service(BridgeServlet.java:115)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1068)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:543)
at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:478)
at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:90)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:744)
at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1455)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:115)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:454)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:383)
at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:102)
at com.ibm.ws.ssl.channel.impl.SSLReadServiceContext$SSLReadCompletedCallback.complete(SSLReadServiceContext.java:1818)
at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:195)
at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:743)
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:873)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1473)


I have tried the following;
1. Completely deleting the WsAS 6.1 profile, dropping and recreating the Jazz tables. Once the jazz.war was installed and started I attempted to use the/jazz/setup link to complete the configuration and that just results in the GUEST user does not have authority and the jazz/admin login results in the same issues as indicated above.

2. I then attempted to configure bluepages authorization. This results in the same issues.

3. I can sign on from the Jazz client with ADMIN/ADMIN and configure the server and add users however I Am unable to authenticate with new users. I can connect to the project with ADMIN/ADMIN. The user has been added to JazzAdmins in the WsAS console.

The only way I was able to get this to work was to set the following parameters in the teamserver.properties
# indicates whether to allow guest access or not. If false, users must login through a secure
# https channel and also must exist as contributors in the repository.
com.ibm.team.repository.ws.allow.guest.access = true


# indicates whether to allow admin access or not.
com.ibm.team.repository.ws.allow.admin.access = true
# performs real authentication and forwards requests with the special header.
com.ibm.team.repository.ws.allow.identity.assertion = true

4. I have went through all of the defects and forums and have added the following to the teamserver.properties

LDAP
com.ibm.team.repository.ldap.findUsersByUserIdQuery=mail\=?1
com.ibm.team.repository.ldap.baseGroupDN=ou\=memberlist,ou\=ibmgroups,o\=ibm.com
com.ibm.team.repository.ldap.findGroupsForUserQuery=uniquemember\={USER-DN}
com.ibm.team.repository.ldap.membersOfGroup=uniquemember
com.ibm.team.repository.ldap.userAttributesMapping=userId\=mail,name\=cn,emailAddress\=mail
com.ibm.team.repository.ldap.registryLocation=ldap\://bluepages.ibm.com\:636
com.ibm.team.repository.ldap.groupMapping=JazzAdmins\=WAS_JazzAdmins,JazzUsers\=WAS_JazzUsers,JazzDWAdmins\=WAS_JazzDWAdmins,JazzGuests\=WAS_JazzGuests
com.ibm.team.repository.ldap.baseUserDN=ou\=bluepages,o\=ibm.com

Any suggestions would be appreciated.

2 answers



permanent link
Thomas Schneider (5666) | answered May 06 '08, 11:25 a.m.
I do not understand about the Jazz requirements for the LDAP groups since WebSphere provides a mechanism to map users to the Jazz roles it a bit redundant and unnecessary to have and maintain Jazz groups within the LDAP server.

If this is carry over from TomCat then I would suggest a separate war file that can be set up on WebSphere to utilize WebSpheres mapping of users to roles fro mthe root of the ldap server. This would make system administration much simpler and the configuration with WebSphere a lot easier.

I am still seeing issues with not being able to access 9443/jazz/setup and 9443/jazz/admin does not prompt for the signon when the login link is clicked.

permanent link
Thomas Schneider (5666) | answered May 08 '08, 11:31 a.m.
I am past this issue.

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.