[Registry-dev] [jira] Closed: (REGISTRY-290) Cannot import resource content from a URL due to an NPE at org.wso2.registry.utils.RegistryUtils.getPureResourcePath(RegistryUtils.java:72)

Krishantha Samaraweera (JIRA) jira at wso2.org
Thu May 15 22:21:17 PDT 2008


     [ https://wso2.org/jira/browse/REGISTRY-290?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Krishantha Samaraweera closed REGISTRY-290.
-------------------------------------------

    Assignee:     (was: Chathura Ekanayake)

verification done both in FF and IF. issue will be closed.

> Cannot import resource content from a URL due to an NPE at  org.wso2.registry.utils.RegistryUtils.getPureResourcePath(RegistryUtils.java:72)
> --------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: REGISTRY-290
>                 URL: https://wso2.org/jira/browse/REGISTRY-290
>             Project: WSO2 Registry
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1.1
>         Environment: winxp, jdk15
>            Reporter: Charitha Kankanamge
>            Priority: Critical
>
> Following NPE throws when trying to import resource from a valid URL repo.
> [ERROR] 69156 Failed to import resource /calculator.xsd. All database operations
>  will be rolled back. null
> java.lang.NullPointerException
>         at org.wso2.registry.utils.RegistryUtils.getPureResourcePath(RegistryUtils.java:72)
>         at org.wso2.registry.jdbc.Repository.get(Repository.java:83)
>         at org.wso2.registry.jdbc.handlers.filters.MediaTypeMatcher.handleImportChild(MediaTypeMatcher.java:146)
>         at org.wso2.registry.jdbc.handlers.HandlerManager.importChild(HandlerManager.java:170)
>         at org.wso2.registry.jdbc.TransactionalJDBCRegistry.importResource(TransactionalJDBCRegistry.java:225)
>         at org.wso2.registry.jdbc.NonTransactionalJDBCRegistry.importResource(NonTransactionalJDBCRegistry.java:287)
>         at org.wso2.registry.jdbc.JDBCRegistry.importResource(JDBCRegistry.java:387)
>         at org.wso2.registry.session.UserRegistry.importResource(UserRegistry.java:234)
>         at org.wso2.registry.web.actions.ResourceHandler.fetchURLResource(ResourceHandler.java:53)
>         at org.wso2.registry.web.ControllerServlet.doPost(ControllerServlet.java:355)
>         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:290)
>         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:228)
>         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:104)
>         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216)
>         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
>         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:634)
>         at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445)
>         at java.lang.Thread.run(Thread.java:595)
> Steps to reproduce:
> ================
> 1. Log in to registry UI as admin
> 2. Click on add resource and select URL import option
> 3. Enter http://ww2.wso2.org/~charitha/calculator.xsd as the resource 

-- 
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