[Carbon-jira] [jira] Closed: (CARBON-8275) G-Reg - java.lang.NullPointerException thrown when exporting files via Remote Registry API

Evanthika Amarasiri (JIRA) jira at wso2.org
Mon Mar 28 05:10:24 PDT 2011


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

Evanthika Amarasiri closed CARBON-8275.
---------------------------------------


Verified on the build given on 28-03-2011-wso2greg-4.0.0-SNAPSHOT. The test passed on the latest builds. The issue is fixed and will be closed.

> G-Reg - java.lang.NullPointerException thrown when exporting files via Remote Registry API
> ------------------------------------------------------------------------------------------
>
>                 Key: CARBON-8275
>                 URL: https://wso2.org/jira/browse/CARBON-8275
>             Project: WSO2 Carbon
>          Issue Type: Bug
>          Components: Registry
>    Affects Versions: 3.1.0
>         Environment: Operating System : Linux 2.6.32-21-generic, amd64
> Java Version     : 1.6.0_21
> Carbon Version   : 04-12-2010 - wso2greg-3.6.0
> Browser Version  : 3.6.8
>            Reporter: Evanthika Amarasiri
>            Assignee: Senaka Fernando
>             Fix For: 4.0.0
>
>
> The code used 
> ****************************************************************************************************************************************
>     public void testFileExport() throws RegistryException, FileNotFoundException {
>         File file = new File("./export/test-dir/test");
>         RegistryClientUtils.exportFromRegistry(file, "/evanthika-dbscripts", registry);
>         File f = new File("./export/test-dir/test/dbscripts/h2.sql");
>         assertTrue("File doesn't exist at the location", f.exists());
>         assertTrue("Resource contain not found", fileContainString("./export/test-dir/test/dbscripts/h2.sql", "CREATE"));
>     }
> Exception thrown
> ****************************************************************************************************************************************
> org.wso2.carbon.registry.core.exceptions.RegistryException: Failed to export from registry
> 	at org.wso2.carbon.registry.core.utils.RegistryClientUtils.exportFromRegistry(RegistryClientUtils.java:89)
> 	at org.wso2.carbon.app.test.registry.FileSystemImportExport.testFileExport(FileSystemImportExport.java:87)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at com.intellij.junit3.JUnit3IdeaTestRunner.doRun(JUnit3IdeaTestRunner.java:108)
> 	at com.intellij.junit3.JUnit3IdeaTestRunner.startRunnerWithArgs(JUnit3IdeaTestRunner.java:42)
> 	at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:192)
> 	at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:64)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at com.intellij.rt.execution.application.AppMain.main(AppMain.java:110)
> Caused by: java.lang.NullPointerException
> 	at org.wso2.carbon.registry.core.utils.RegistryClientUtils.processExport(RegistryClientUtils.java:150)
> 	at org.wso2.carbon.registry.core.utils.RegistryClientUtils.exportFromRegistry(RegistryClientUtils.java:86)
> 	... 22 more

-- 
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 Carbon-jira mailing list