[Registry-dev] [jira] Closed: (REGISTRY-318) NPE occurs when
restoring deleted resource.
Krishantha Samaraweera (JIRA)
jira at wso2.org
Mon May 26 00:32:47 PDT 2008
[ https://wso2.org/jira/browse/REGISTRY-318?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Krishantha Samaraweera closed REGISTRY-318.
-------------------------------------------
Assignee: (was: Chathura Ekanayake)
Estimated Complexity: Unknown (was: Advanced)
Verification done. Couldn't find the NPE now.
> NPE occurs when restoring deleted resource.
> -------------------------------------------
>
> Key: REGISTRY-318
> URL: https://wso2.org/jira/browse/REGISTRY-318
> Project: WSO2 Registry
> Issue Type: Bug
> Components: versioning
> Affects Versions: 1.1
> Environment: WinXP, apache-tomcat-6.0.14,jdk-1_5_0_13,IE 7.0
> Reporter: Krishantha Samaraweera
> Attachments: restore_exception.JPG
>
>
> NPE occurs when restoring deleted resource.
> How to recreate:
> 1.add a collection c1
> 2.add a resource (r1) to c1 collection.
> 3.Enable versioning.
> 4.Add an another resource (r2) to c1 collection.
> 5.Now delete resource r1
> 6.Enable versioning.
> 7.Then go to versions pages of c1 and restore the deleted resource.
> Exception:
> ============
> May 14, 2008 3:18:10 PM org.apache.catalina.core.StandardWrapperValve invoke
> SEVERE: Servlet.service() for servlet WebServlet threw exception
> java.lang.NullPointerException
> at org.wso2.registry.jdbc.VersionRepository.restoreSnapshotNetwork(VersionRepository.java:201)
> at org.wso2.registry.jdbc.VersionRepository.restoreSnapshotNetwork(VersionRepository.java:269)
> at org.wso2.registry.jdbc.VersionRepository.restoreVersion(VersionRepository.java:159)
> at org.wso2.registry.jdbc.TransactionalJDBCRegistry.restoreVersion(TransactionalJDBCRegistry.java:337)
> at org.wso2.registry.jdbc.NonTransactionalJDBCRegistry.restoreVersion(NonTransactionalJDBCRegistry.java:488)
> at org.wso2.registry.jdbc.JDBCRegistry.restoreVersion(JDBCRegistry.java:426)
> at org.wso2.registry.session.UserRegistry.restoreVersion(UserRegistry.java:283)
> at org.wso2.registry.web.utils.ResourcesUtil.restoreVersion(ResourcesUtil.java:93)
> at org.wso2.registry.web.ControllerServlet.doGet(ControllerServlet.java:736)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
> at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)
> at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
> at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)
> at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
> at java.lang.Thread.run(Thread.java:595)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://wso2.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the Registry-dev
mailing list