Error when create an issue in Redmine

Daniel Cunha, modified 10 Years ago.

Error when create an issue in Redmine

Youngling Posts: 2 Join Date: 8/9/10 Recent Posts
When I try to create issue in Redmine, this log is shown on tomcat console. This error is displayed after I enter data in Redmine window (Issue Management System:, Summary *:, Issue Type:, Importance:, ...)

ERROR IssueBean:510 -
de.verit.klaros.service.issuemanagement.IssueManagementException: java.lang.Null
PointerException
        at de.verit.klaros.service.issuemanagement.mylyn.redmine.RedmineIssueMan
agementService.storeIssue(RedmineIssueManagementService.java:203)
        at de.verit.klaros.service.issuemanagement.mylyn.MylynIssueManagementSer
vice.createIssue(MylynIssueManagementService.java:243)
        at de.verit.klaros.web.beans.pages.execute.IssueBean.saveIssue(IssueBean
.java:499)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)
        at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocation
Context.java:32)
        at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocation
Context.java:56)
        at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackI
nterceptor.java:28)
        at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocation
Context.java:68)
        at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterc
eptor.java:77)
        at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocation
Context.java:68)
        at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodConte
xtInterceptor.java:44)
        at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocation
Context.java:68)
        at org.jboss.seam.core.SynchronizationInterceptor.aroundInvoke(Synchroni
zationInterceptor.java:32)
        at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocation
Context.java:68)
        at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:
107)
        at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(Java
BeanInterceptor.java:185)
        at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanIntercept
or.java:103)
        at de.verit.klaros.web.beans.pages.execute.IssueBean_$$_javassist_seam_5
7.saveIssue(IssueBean_$$_javassist_seam_57.java)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:335
)
        at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:348
)
        at org.jboss.el.parser.AstPropertySuffix.invoke(AstPropertySuffix.java:5
8)
        at org.jboss.el.parser.AstValue.invoke(AstValue.java:96)
        at org.jboss.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:27
6)
        at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.ja
va:68)
        at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(Met
hodBindingMethodExpressionAdapter.java:88)
        at com.sun.faces.application.ActionListenerImpl.processAction(ActionList
enerImpl.java:102)
        at javax.faces.component.UICommand.broadcast(UICommand.java:387)
        at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:475)

        at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:7
56)
        at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicat
ionPhase.java:82)
        at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
        at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)

        at de.verit.klaros.web.beans.application.lifecycle.LifecycleImpl.execute
(LifecycleImpl.java:52)
        at com.icesoft.faces.webapp.http.core.JsfLifecycleExecutor.apply(JsfLife
cycleExecutor.java:18)
        at com.icesoft.faces.webapp.http.core.ReceiveSendUpdates.renderCycle(Rec
eiveSendUpdates.java:132)
        at com.icesoft.faces.webapp.http.core.ReceiveSendUpdates.service(Receive
SendUpdates.java:74)
        at com.icesoft.faces.webapp.http.core.RequestVerifier.service(RequestVer
ifier.java:31)
        at com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.se
rvice(PathDispatcherServer.java:24)
        at com.icesoft.faces.webapp.http.servlet.BasicAdaptingServlet.service(Ba
sicAdaptingServlet.java:16)
        at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDisp
atcher.java:23)
        at com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(Sessi
onDispatcher.java:53)
        at com.icesoft.faces.webapp.http.servlet.SessionVerifier.service(Session
Verifier.java:26)
        at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDisp
atcher.java:23)
        at com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet
.java:131)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        at de.verit.klaros.web.servlet.ExceptionHandlingPersistentFacesServlet.s
ervice(ExceptionHandlingPersistentFacesServlet.java:51)
        at com.icesoft.faces.webapp.xmlhttp.BlockingServlet.service(BlockingServ
let.java:56)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:233)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:191)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:102)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:298)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:857)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
ss(Http11Protocol.java:588)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:48
9)
        at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.NullPointerException
        at org.svenk.redmine.core.client.AbstractRedmineClient.createTicket_arou
ndBody7$advice(AbstractRedmineClient.java:43)
        at org.svenk.redmine.core.client.AbstractRedmineClient.createTicket(Abst
ractRedmineClient.java:1)
        at org.svenk.redmine.core.KlarosRedmineTaskDataHandler.postTaskData(Klar
osRedmineTaskDataHandler.java:293)
        at de.verit.klaros.service.issuemanagement.mylyn.redmine.RedmineIssueMan
agementService.storeIssue(RedmineIssueManagementService.java:190)
        ... 66 more
thumbnail
Torsten Stolpmann, modified 10 Years ago.

RE: Error when create an issue in Redmine

Jedi Council Member Posts: 755 Join Date: 2/12/09 Recent Posts
Hi Daniel,

thanks for the feedback. I assume that you are using Klaros 3.0.3.

From the error line I would blind guess that the project name you have set for your issue management system does not exist in your Redmine installation or has been misspelled. Can you make sure that this match?

If that does not solve your problem, can you please state which version of Redmine you are using?

Nonetheless a NullPointerException should not happen in any case, so I opened KLAROS-931 (Error when creating an issue in Redmine) to track this.

Regards,

Torsten
Daniel Cunha, modified 10 Years ago.

RE: Error when create an issue in Redmine

Youngling Posts: 2 Join Date: 8/9/10 Recent Posts
Hi Torsten

Torsten Stolpmann:

thanks for the feedback. I assume that you are using Klaros 3.0.3.


I was using "Klaros 3.0.1 - Build 638", but I tested "Klaros 3.0.3 - Build 661". The problem happened in the same line.

ERROR IssueBean:510 -
de.verit.klaros.service.issuemanagement.IssueManagementException: java.lang.Null
PointerException
        at de.verit.klaros.service.issuemanagement.mylyn.redmine.RedmineIssueMan
agementService.storeIssue(RedmineIssueManagementService.java:203)
        at de.verit.klaros.service.issuemanagement.mylyn.MylynIssueManagementSer
vice.createIssue(MylynIssueManagementService.java:243)


Torsten Stolpmann:

From the error line I would blind guess that the project name you have set for your issue management system does not exist in your Redmine installation or has been misspelled. Can you make sure that this match?


The project name in Redmine was correct.

Torsten Stolpmann:

If that does not solve your problem, can you please state which version of Redmine you are using?


I'm using Redmine 0.9.3.

Regards,

Daniel Cunha
thumbnail
Torsten Stolpmann, modified 10 Years ago.

RE: Error when create an issue in Redmine

Jedi Council Member Posts: 755 Join Date: 2/12/09 Recent Posts
Hi Daniel,

did you follow the instruction regarding the installation of the Redmine WS-API Plugin mentioned in the documentation here?

Is the plugin showing up correctly in your Redmine installation? Is the redmine log file showing useful information?

Hope this helps.

Regards,

Torsten
Julius Ræstad, modified 13 Years ago.

RE: Error when create an issue in Redmine

Youngling Posts: 3 Join Date: 3/29/11 Recent Posts
Hi,

We are having a simular problem.

This is our environment;

Klaros v3.3.2 - Build 967
Redmine v1.1.2.stable
Mylyn v2.7.1.stable

When we try to create an issue we get a java.lang.NullPointerException in the log. The issue is created in Redmine, but there is no link in Klaros to the issue when looking in the "Issues by test case" view.

2011-03-29 13:41:05: ERROR, de.verit.klaros.web.beans.pages.execute.IssueBean, http-18080-4
de.verit.klaros.service.issuemanagement.IssueManagementException: java.lang.NullPointerException
    at de.verit.klaros.service.issuemanagement.mylyn.redmine.RedmineIssueManagementService.storeIssue(RedmineIssueManagementService.java:233) ~[klaros-mylyn-3.3.2.jar:3.3.2]
    at de.verit.klaros.service.issuemanagement.mylyn.MylynIssueManagementService.createIssue(MylynIssueManagementService.java:234) ~[klaros-mylyn-3.3.2.jar:3.3.2]
    at de.verit.klaros.web.service.issuemanagement.IssueManagementPersistentService.saveIssue(IssueManagementPersistentService.java:298) ~[IssueManagementPersistentService.class:na]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_24]
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[na:1.6.0_24]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[na:1.6.0_24]
    at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_24]
    at org.jboss.seam.util.Reflections.invoke(Reflections.java:22) [jboss-seam-2.2.1.Final.jar:2.2.1.Final]
    at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:32) [jboss-seam-2.2.1.Final.jar:2.2.1.Final]
    at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56) [jboss-seam-2.2.1.Final.jar:2.2.1.Final]
    at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28) [jboss-seam-2.2.1.Final.jar:2.2.1.Final]
    at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) [jboss-seam-2.2.1.Final.jar:2.2.1.Final]
    at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:77) [jboss-seam-2.2.1.Final.jar:2.2.1.Final]
    at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) [jboss-seam-2.2.1.Final.jar:2.2.1.Final]
    at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44) [jboss-seam-2.2.1.Final.jar:2.2.1.Final]
    at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) [jboss-seam-2.2.1.Final.jar:2.2.1.Final]
    at org.jboss.seam.core.SynchronizationInterceptor.aroundInvoke(SynchronizationInterceptor.java:32) [jboss-seam-2.2.1.Final.jar:2.2.1.Final]
    at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) [jboss-seam-2.2.1.Final.jar:2.2.1.Final]
    at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107) [jboss-seam-2.2.1.Final.jar:2.2.1.Final]
    at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:185) [jboss-seam-2.2.1.Final.jar:2.2.1.Final]
    at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:103) [jboss-seam-2.2.1.Final.jar:2.2.1.Final]
    at de.verit.klaros.web.service.issuemanagement.IssueManagementPersistentService_$$_javassist_seam_87.saveIssue(IssueManagementPersistentService_$$_javassist_seam_87.java) ~[IssueManagementPersistentService.class:na]
    at de.verit.klaros.web.beans.pages.execute.IssueBean.saveIssue(IssueBean.java:460) ~[IssueBean.class:na]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_24]
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[na:1.6.0_24]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[na:1.6.0_24]
    at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_24]
    at org.jboss.seam.util.Reflections.invoke(Reflections.java:22) [jboss-seam-2.2.1.Final.jar:2.2.1.Final]
    at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:32) [jboss-seam-2.2.1.Final.jar:2.2.1.Final]
    at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56) [jboss-seam-2.2.1.Final.jar:2.2.1.Final]
    at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28) [jboss-seam-2.2.1.Final.jar:2.2.1.Final]
    at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) [jboss-seam-2.2.1.Final.jar:2.2.1.Final]
    at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:77) [jboss-seam-2.2.1.Final.jar:2.2.1.Final]
    at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) [jboss-seam-2.2.1.Final.jar:2.2.1.Final]
    at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44) [jboss-seam-2.2.1.Final.jar:2.2.1.Final]
    at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) [jboss-seam-2.2.1.Final.jar:2.2.1.Final]
    at org.jboss.seam.core.SynchronizationInterceptor.aroundInvoke(SynchronizationInterceptor.java:32) [jboss-seam-2.2.1.Final.jar:2.2.1.Final]
    at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) [jboss-seam-2.2.1.Final.jar:2.2.1.Final]
    at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107) [jboss-seam-2.2.1.Final.jar:2.2.1.Final]
    at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:185) [jboss-seam-2.2.1.Final.jar:2.2.1.Final]
    at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:103) [jboss-seam-2.2.1.Final.jar:2.2.1.Final]
    at de.verit.klaros.web.beans.pages.execute.IssueBean_$$_javassist_seam_86.saveIssue(IssueBean_$$_javassist_seam_86.java) [IssueBean.class:na]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_24]
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[na:1.6.0_24]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[na:1.6.0_24]
    at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_24]
    at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:335) [jboss-el-1.0_02.CR5.jar:1.0_02.CR5]
    at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:348) [jboss-el-1.0_02.CR5.jar:1.0_02.CR5]
    at org.jboss.el.parser.AstPropertySuffix.invoke(AstPropertySuffix.java:58) [jboss-el-1.0_02.CR5.jar:1.0_02.CR5]
    at org.jboss.el.parser.AstValue.invoke(AstValue.java:96) [jboss-el-1.0_02.CR5.jar:1.0_02.CR5]
    at org.jboss.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276) [jboss-el-1.0_02.CR5.jar:1.0_02.CR5]
    at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68) [icefaces-facelets-1.8.2.jar:na]
    at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:88) [jsf-api-1.2_14.jar:1.2_14-b01-FCS]
    at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102) [jsf-impl-1.2_14.jar:1.2_14-b01-FCS]
    at javax.faces.component.UICommand.broadcast(UICommand.java:387) [jsf-api-1.2_14.jar:1.2_14-b01-FCS]
    at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:475) [jsf-api-1.2_14.jar:1.2_14-b01-FCS]
    at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:756) [jsf-api-1.2_14.jar:1.2_14-b01-FCS]
    at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82) [jsf-impl-1.2_14.jar:1.2_14-b01-FCS]
    at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100) [jsf-impl-1.2_14.jar:1.2_14-b01-FCS]
    at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118) [jsf-impl-1.2_14.jar:1.2_14-b01-FCS]
    at de.verit.klaros.web.beans.application.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:52) [LifecycleImpl.class:na]
    at com.icesoft.faces.webapp.http.core.JsfLifecycleExecutor.apply(JsfLifecycleExecutor.java:18) [icefaces-1.8.2-1.jar:na]
    at com.icesoft.faces.webapp.http.core.ReceiveSendUpdates.renderCycle(ReceiveSendUpdates.java:132) [icefaces-1.8.2-1.jar:na]
    at com.icesoft.faces.webapp.http.core.ReceiveSendUpdates.service(ReceiveSendUpdates.java:74) [icefaces-1.8.2-1.jar:na]
    at com.icesoft.faces.webapp.http.core.RequestVerifier.service(RequestVerifier.java:31) [icefaces-1.8.2-1.jar:na]
    at com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.service(PathDispatcherServer.java:24) [icefaces-1.8.2-1.jar:na]
    at com.icesoft.faces.webapp.http.servlet.BasicAdaptingServlet.service(BasicAdaptingServlet.java:16) [icefaces-1.8.2-1.jar:na]
    at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:23) [icefaces-1.8.2-1.jar:na]
    at com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(SessionDispatcher.java:53) [icefaces-1.8.2-1.jar:na]
    at com.icesoft.faces.webapp.http.servlet.SessionVerifier.service(SessionVerifier.java:26) [icefaces-1.8.2-1.jar:na]
    at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:23) [icefaces-1.8.2-1.jar:na]
    at com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:131) [icefaces-1.8.2-1.jar:na]
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) [servlet-api.jar:na]
    at de.verit.klaros.web.servlet.ExceptionHandlingPersistentFacesServlet.service(ExceptionHandlingPersistentFacesServlet.java:49) [ExceptionHandlingPersistentFacesServlet.class:na]
    at com.icesoft.faces.webapp.xmlhttp.BlockingServlet.service(BlockingServlet.java:56) [icefaces-1.8.2-1.jar:na]
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) [catalina.jar:6.0.32]
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [catalina.jar:6.0.32]
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) [catalina.jar:6.0.32]
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) [catalina.jar:6.0.32]
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) [catalina.jar:6.0.32]
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [catalina.jar:6.0.32]
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [catalina.jar:6.0.32]
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) [catalina.jar:6.0.32]
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859) [tomcat-coyote.jar:6.0.32]
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588) [tomcat-coyote.jar:6.0.32]
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) [tomcat-coyote.jar:6.0.32]
    at java.lang.Thread.run(Thread.java:662) [na:1.6.0_24]
Caused by: java.lang.NullPointerException: null
    at net.sf.redmine_mylyn.internal.core.client.Client.createIssue(Client.java:118) ~[mylyn-core-0.1.0.201102202050.jar:na]
    at net.sf.redmine_mylyn.core.KlarosRedmineTaskDataHandler.postTaskData(KlarosRedmineTaskDataHandler.java:154) ~[klaros-mylyn-3.3.2.jar:3.3.2]
    at de.verit.klaros.service.issuemanagement.mylyn.redmine.RedmineIssueManagementService.storeIssue(RedmineIssueManagementService.java:226) ~[klaros-mylyn-3.3.2.jar:3.3.2]
    ... 86 common frames omitted


The redmine log indicates that the issue has been created and everything is fine:

Processing MylynConnector::InformationController#token to xml (for 192.168.0.111 at 2011-03-29 14:50:40) [GET]
  Parameters: {"format"=>"xml", "action"=>"token", "controller"=>"MylynConnector::Information"}
Completed in 21ms (View: 0, DB: 4) | 200 OK [http://redmine.miros.local/mylyn/token]


Processing IssuesController#create to xml (for 192.168.0.111 at 2011-03-29 14:50:40) [POST]
  Parameters: {"format"=>"xml", "action"=>"create", "issue"=>{"start_date"=>"", "estimated_hours"=>"0.0", "parent_issue_id"=>"", "priority_id"=>"3", "project_id"=>"1", "fixed_version_id"=>"", "assigned_to_id"=>"", "done_ratio"=>"0", "subject"=>"lager en feil pÃ¥ step 3 i case 3", "category_id"=>"", "tracker_id"=>"1", "due_date"=>"", "status_id"=>"1", "description"=>"---\nhttp://klaros-web/browse.jsp?type=testCaseResult&uuid=e45a58c9-55e6-4a66-b364-07ac6322edfa"}, "controller"=>"issues"}
Sending email notification to: J----@---.no
Rendering issues/show (created)
Completed in 108ms (View: 12, DB: 10) | 201 Created [http://redmine/issues.xml]


Any ideas?

-Julius
thumbnail
Torsten Stolpmann, modified 13 Years ago.

RE: Error when create an issue in Redmine

Jedi Council Member Posts: 755 Join Date: 2/12/09 Recent Posts
Hi Julius,

did you enable the the Authentication required flag for Redmine as shown in the manual here?

The date of the redmine log entry shown does not match the date of the Klaros log entry, so those may not be related.

Hope this helps, regards

Torsten
Julius Ræstad, modified 13 Years ago.

RE: Error when create an issue in Redmine

Youngling Posts: 3 Join Date: 3/29/11 Recent Posts
Torsten, thank you for the quick reply!

Yes, we have enabled the Authentication flag in Redmine. We also use LDAP integration, may that be a problem?

I realize that the log entries I have added does not correlate in time, so I added the correct one (as you see they are quite similar).


Processing MylynConnector::InformationController#token to xml (for 192.168.0.111 at 2011-03-29 13:41:04) [GET]
  Parameters: {"format"=>"xml", "action"=>"token", "controller"=>"MylynConnector::Information"}
Completed in 20ms (View: 0, DB: 4) | 200 OK [http://redmine.local/mylyn/token]


Processing IssuesController#create to xml (for 192.168.0.111 at 2011-03-29 13:41:04) [POST]
  Parameters: {"format"=>"xml", "action"=>"create", "issue"=>{"start_date"=>"", "estimated_hours"=>"0.0", "parent_issue_id"=>"", "priority_id"=>"3", "project_id"=>"6", "fixed_version_id"=>"3", "assigned_to_id"=>"", "done_ratio"=>"0", "subject"=>"ny test atter igjen", "category_id"=>"", "tracker_id"=>"1", "due_date"=>"", "status_id"=>"1", "description"=>"---\nhttp://miraculix:18080/klaros-web/browse.jsp?type=testCaseResult&uuid=a853a8c3-984f-4cc2-a939-89b92572c371"}, "controller"=>"issues"}
Sending email notification to: ---@----.no
Rendering issues/show (created)
Completed in 120ms (View: 10, DB: 17) | 201 Created [http://redmine.local/issues.xml]



-Julius
thumbnail
Torsten Stolpmann, modified 13 Years ago.

RE: Error when create an issue in Redmine

Jedi Council Member Posts: 755 Join Date: 2/12/09 Recent Posts
Julius,

can you give me a step by step description of what you are doing to reproduce this error (after a klaros restart)?

Is there anything special about your network setup (Apache URL rewrites)?

I do not think that LDAP is the culprit here.

Thanks,

Torsten
Julius Ræstad, modified 13 Years ago.

RE: Error when create an issue in Redmine

Youngling Posts: 3 Join Date: 3/29/11 Recent Posts
Torsten,

We had a restart of the Apache tomcat service which runs the application, and our administrator deleted some old test runs from the database (to prepare for actual usage of Klaros).

Now everything is working just fine.

I'm sorry that I do not have more details on what caused the problem or what fixed it, but we are happy that everything is working!

I will get back to you if we experience anything similar in the future.

Thank you for all your help!

-Julius
Mark A Ramos, modified 12 Years ago.

RE: Error when create an issue in Redmine

Youngling Posts: 2 Join Date: 12/9/11 Recent Posts
Hello,

I am also experiencing a problem with the integration. I successfully validated the credentials and tried to Create an Issue. Upon creating, it produces 2 Issues in Redmine as you can see in one of my attached files. But then the response in Klaros is NPE. I set this up in a VM using Redmine 1.2.2.stable (MySQL) BitNami stack and added Mylyn Connector plugin 2.7.5.stable. This was also setup using openjdk-6 and openjdk-7 under ubuntu server 11.10.

What could possibly the problem? Is there something I can do to help out like check the source code? Do I need to install oracle-jdk7? I really liked how this app was designed and I am proposing this to the company I'm with. I hope you could help me out with the Redmine Integration as this is one of the Key selling points I am looking at.

Many Thanks!

Mark
Mark A Ramos, modified 12 Years ago.

RE: Error when create an issue in Redmine

Youngling Posts: 2 Join Date: 12/9/11 Recent Posts
Just currently tested with oracle-jdk-7 same NPE.


Dec 09, 2011 9:28:54 AM com.sun.faces.lifecycle.RenderResponsePhase execute
INFO: WARNING: FacesMessage(s) have been enqueued, but may not have been displayed.
sourceId=null[severity=(INFO 0), summary=(Welcome, admin), detail=(Welcome, admin)]
2011-12-09 09:30:47: ERROR, de.verit.klaros.web.beans.pages.execute.IssueBean, http-18081-5
de.verit.klaros.service.issuemanagement.IssueManagementException: java.lang.NullPointerException
    at de.verit.klaros.service.issuemanagement.mylyn.redmine.RedmineIssueManagementService.storeIssue(RedmineIssueManagementService.java:244) ~[klaros-mylyn-3.4.7.jar:3.4.7]
    at de.verit.klaros.service.issuemanagement.mylyn.MylynIssueManagementService.createIssue(MylynIssueManagementService.java:256) ~[klaros-mylyn-3.4.7.jar:3.4.7]
    at de.verit.klaros.service.issuemanagement.connection.IssueManagementConnectionImpl.createIssue(IssueManagementConnectionImpl.java:234) ~[klaros-mylyn-3.4.7.jar:3.4.7]
    at de.verit.klaros.web.service.issuemanagement.IssueManagementPersistentService.saveIssue(IssueManagementPersistentService.java:267) ~[IssueManagementPersistentService.class:na]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0]
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[na:1.7.0]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0]
    at java.lang.reflect.Method.invoke(Method.java:601) ~[na:1.7.0]
    at org.jboss.seam.util.Reflections.invoke(Reflections.java:22) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
    at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:32) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
    at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
    at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
    at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
    at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:77) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
    at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
    at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
    at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
    at org.jboss.seam.core.SynchronizationInterceptor.aroundInvoke(SynchronizationInterceptor.java:32) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
    at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
    at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
    at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:185) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
    at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:103) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
    at de.verit.klaros.web.service.issuemanagement.IssueManagementPersistentService_$$_javassist_seam_82.saveIssue(IssueManagementPersistentService_$$_javassist_seam_82.java) ~[IssueManagementPersistentService.class:na]
    at de.verit.klaros.web.beans.pages.execute.IssueBean.saveIssue(IssueBean.java:464) ~[IssueBean.class:na]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0]
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[na:1.7.0]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0]
    at java.lang.reflect.Method.invoke(Method.java:601) ~[na:1.7.0]
    at org.jboss.seam.util.Reflections.invoke(Reflections.java:22) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
    at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:32) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
    at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
    at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
    at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
    at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:77) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
    at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
    at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
    at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
    at org.jboss.seam.core.SynchronizationInterceptor.aroundInvoke(SynchronizationInterceptor.java:32) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
    at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
    at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
    at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:185) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
    at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:103) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
    at de.verit.klaros.web.beans.pages.execute.IssueBean_$$_javassist_seam_81.saveIssue(IssueBean_$$_javassist_seam_81.java) [IssueBean.class:na]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0]
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[na:1.7.0]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0]
    at java.lang.reflect.Method.invoke(Method.java:601) ~[na:1.7.0]
    at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:335) [jboss-el-1.0_02.CR5.jar:1.0_02.CR5]
    at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:348) [jboss-el-1.0_02.CR5.jar:1.0_02.CR5]
    at org.jboss.el.parser.AstPropertySuffix.invoke(AstPropertySuffix.java:58) [jboss-el-1.0_02.CR5.jar:1.0_02.CR5]
    at org.jboss.el.parser.AstValue.invoke(AstValue.java:96) [jboss-el-1.0_02.CR5.jar:1.0_02.CR5]
    at org.jboss.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276) [jboss-el-1.0_02.CR5.jar:1.0_02.CR5]
    at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68) [icefaces-facelets-1.8.2.jar:na]
    at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:88) [jsf-api-1.2_14.jar:1.2_14-b01-FCS]
    at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102) [jsf-impl-1.2_14.jar:1.2_14-b01-FCS]
    at javax.faces.component.UICommand.broadcast(UICommand.java:387) [jsf-api-1.2_14.jar:1.2_14-b01-FCS]
    at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:475) [jsf-api-1.2_14.jar:1.2_14-b01-FCS]
    at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:756) [jsf-api-1.2_14.jar:1.2_14-b01-FCS]
    at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82) [jsf-impl-1.2_14.jar:1.2_14-b01-FCS]
    at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100) [jsf-impl-1.2_14.jar:1.2_14-b01-FCS]
    at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118) [jsf-impl-1.2_14.jar:1.2_14-b01-FCS]
    at de.verit.klaros.web.beans.application.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:54) [LifecycleImpl.class:na]
    at com.icesoft.faces.webapp.http.core.JsfLifecycleExecutor.apply(JsfLifecycleExecutor.java:18) [icefaces-1.8.2-1.jar:na]
    at com.icesoft.faces.webapp.http.core.ReceiveSendUpdates.renderCycle(ReceiveSendUpdates.java:132) [icefaces-1.8.2-1.jar:na]
    at com.icesoft.faces.webapp.http.core.ReceiveSendUpdates.service(ReceiveSendUpdates.java:74) [icefaces-1.8.2-1.jar:na]
    at com.icesoft.faces.webapp.http.core.RequestVerifier.service(RequestVerifier.java:31) [icefaces-1.8.2-1.jar:na]
    at com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.service(PathDispatcherServer.java:24) [icefaces-1.8.2-1.jar:na]
    at com.icesoft.faces.webapp.http.servlet.BasicAdaptingServlet.service(BasicAdaptingServlet.java:16) [icefaces-1.8.2-1.jar:na]
    at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:23) [icefaces-1.8.2-1.jar:na]
    at com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(SessionDispatcher.java:53) [icefaces-1.8.2-1.jar:na]
    at com.icesoft.faces.webapp.http.servlet.SessionVerifier.service(SessionVerifier.java:26) [icefaces-1.8.2-1.jar:na]
    at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:23) [icefaces-1.8.2-1.jar:na]
    at com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:131) [icefaces-1.8.2-1.jar:na]
    at javax.servlet.http.HttpServlet.service(HttpServlet.java) [servlet-api.jar:na]
    at de.verit.klaros.web.servlet.ExceptionHandlingPersistentFacesServlet.service(ExceptionHandlingPersistentFacesServlet.java:51) [ExceptionHandlingPersistentFacesServlet.class:na]
    at com.icesoft.faces.webapp.xmlhttp.BlockingServlet.service(BlockingServlet.java:56) [icefaces-1.8.2-1.jar:na]
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java) [catalina.jar:6.0.33]
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java) [catalina.jar:6.0.33]
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java) [catalina.jar:6.0.33]
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java) [catalina.jar:6.0.33]
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java) [catalina.jar:6.0.33]
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java) [catalina.jar:6.0.33]
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java) [catalina.jar:6.0.33]
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java) [catalina.jar:6.0.33]
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java) [tomcat-coyote.jar:6.0.33]
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java) [tomcat-coyote.jar:6.0.33]
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java) [tomcat-coyote.jar:6.0.33]
    at java.lang.Thread.run(Thread.java:722) [na:1.7.0]
Caused by: java.lang.NullPointerException: null
    at net.sf.redmine_mylyn.internal.core.client.Client.createIssue(Client.java:121) ~[mylyn-core-0.2.0.201103230840.jar:na]
    at net.sf.redmine_mylyn.core.KlarosRedmineTaskDataHandler.postTaskData(KlarosRedmineTaskDataHandler.java:154) ~[klaros-mylyn-3.4.7.jar:3.4.7]
    at de.verit.klaros.service.issuemanagement.mylyn.redmine.RedmineIssueManagementService.storeIssue(RedmineIssueManagementService.java:237) ~[klaros-mylyn-3.4.7.jar:3.4.7]
    ... 87 common frames omitted
thumbnail
Torsten Stolpmann, modified 12 Years ago.

RE: Error when create an issue in Redmine

Jedi Council Member Posts: 755 Join Date: 2/12/09 Recent Posts
Hi Mark,

first of all many, many thanks for this incredibly detailed bug report which really helps a quick analysis. From what I gather from the stacktrace the exception occurs, when the newly created issue is deserialized from the response stream in the underlying connector code we are using, which is sadly enough swallowing the underlying exception and returning the null reference.

We will have to setup a Redmine 1.2.2 instance of our own to try reproducing this, maybe we will have to update the connector implementation to a newer version for this to work. Do you have similar problems with a less recent version of Redmine?

Will follow up once we have our checks done.

Regards,

Torsten
thumbnail
Torsten Stolpmann, modified 12 Years ago.

RE: Error when create an issue in Redmine

Jedi Council Member Posts: 755 Join Date: 2/12/09 Recent Posts
Hi Mark,

we can confirm this error and opened issue KLAROS-1462 to track this. A fix is already available towards the upcoming 3.4.8 release.

In the mean time you may try the following:

- Shut down Klaros
- Delete <Installation Directory>/webapps/klaros/WEB-INF/libs/jaxb-impl-2.1.3.jar
- Restart Klaros

Apparently our supplied jaxb implementation silently interferes with the Java builtin implementation here.

Thanks again for your high quality feedback on this.

May I cite you as a issue reporting role model? emoticon

Regards,

Torsten
thumbnail
Torsten Stolpmann, modified 12 Years ago.

RE: Error when create an issue in Redmine

Jedi Council Member Posts: 755 Join Date: 2/12/09 Recent Posts
Hi Mark,

we have just released Klaros 3.4.8 which should solve that issue.

If possible, please confirm that this is working for you.

Regards,

Torsten
thumbnail
Torsten Stolpmann, modified 1 Year ago.

RE: Error when create an issue in Redmine

Jedi Council Member Posts: 755 Join Date: 2/12/09 Recent Posts
Quick reminder: As of Klaros version 4.12 the native Redmine API is used and the installation of a Redmine plugin is no longer required.