java.lang.NullPointerException

Pentaho BI Platform Tracking | Thomas Morgner | 4 years ago
  1. 0

    The repository reports itself as empty. When trying to acces the 'public' directory, the list for children is <null>. If a node has no children, please set an empty list created via "Collections.emptyList()" - this ensures that client code does not have to constantly check for <null> values. That is error prone and makes code ugly to read and debug. Code: String url = "http://localhost:8080/pentaho"; final ClientConfig config = new DefaultClientConfig(); config.getProperties().put(ClientConfig.PROPERTY_FOLLOW_REDIRECTS, true); Client client = Client.create(config); client.addFilter(new HTTPBasicAuthFilter("joe", "password")); final WebResource resource = client.resource(url + "/api/repo/files/children?depth=-1&filter=*"); final RepositoryFileTreeDto tree = resource.path("").accept(MediaType.APPLICATION_XML_TYPE).get(RepositoryFileTreeDto.class); printDebugInfo(tree); final List<RepositoryFileTreeDto> children = tree.getChildren(); for (int i = 0; i < children.size(); i++) { final RepositoryFileTreeDto child = children.get(i); printDebugInfo(child); } private void printDebugInfo(final RepositoryFileTreeDto tree) { System.out.println ("FileTreeDto: " + tree); System.out.println (" - childs: " + tree.getChildren().size()); System.out.println ("FileDto: " + tree.getFile()); System.out.println (" - Name: " + tree.getFile().getName()); System.out.println (" - Last-Modified-Date: " + tree.getFile().getLastModifiedDate()); System.out.println (" - Description: " + tree.getFile().getDescription()); System.out.println(" - Title: " + tree.getFile().getTitle()); } Output: FileTreeDto: RepositoryFileTreeDto [file=RepositoryFileDto [id=9c9216bc-2fc5-460f-af91-eff7a319d425, name=, path=/, folder=true, size=0, createdDate=Fri Nov 30 13:08:08 UTC 2012, creatorId=null, deletedDate=null, description=null, descriptionMapEntries=null, hidden=false, lastModifiedDate=null, locale=de_DE, lockDate=null, lockMessage=null, lockOwner=null, locked=false, originalParentFolderPath=null, owner=null, ownerType=-1, title=, titleMapEntries=null, versionId=null, versioned=false], children=[RepositoryFileTreeDto [file=RepositoryFileDto [id=b648ddbb-6391-41f9-a9e9-a5d199d1ea2c, name=home, path=/home, folder=true, size=0, createdDate=Fri Nov 30 13:08:09 UTC 2012, creatorId=null, deletedDate=null, description=null, descriptionMapEntries=null, hidden=false, lastModifiedDate=null, locale=de_DE, lockDate=null, lockMessage=null, lockOwner=null, locked=false, originalParentFolderPath=null, owner=null, ownerType=-1, title=home, titleMapEntries=null, versionId=null, versioned=false], children=[RepositoryFileTreeDto [file=RepositoryFileDto [id=f5ae5c29-16eb-4e03-b64a-98c1ddcc048c, name=joe, path=/home/joe, folder=true, size=0, createdDate=Fri Nov 30 13:08:10 UTC 2012, creatorId=null, deletedDate=null, description=null, descriptionMapEntries=null, hidden=false, lastModifiedDate=null, locale=de_DE, lockDate=null, lockMessage=null, lockOwner=null, locked=false, originalParentFolderPath=null, owner=null, ownerType=-1, title=joe, titleMapEntries=null, versionId=null, versioned=false], children=null], RepositoryFileTreeDto [file=RepositoryFileDto [id=dcd35b9c-1782-4168-85c0-3dea30ca218a, name=pat, path=/home/pat, folder=true, size=0, createdDate=Fri Nov 30 13:08:10 UTC 2012, creatorId=null, deletedDate=null, description=null, descriptionMapEntries=null, hidden=false, lastModifiedDate=null, locale=de_DE, lockDate=null, lockMessage=null, lockOwner=null, locked=false, originalParentFolderPath=null, owner=null, ownerType=-1, title=pat, titleMapEntries=null, versionId=null, versioned=false], children=null], RepositoryFileTreeDto [file=RepositoryFileDto [id=99f64dbb-ab85-4f56-8dc0-333de74a241f, name=sadmin, path=/home/sadmin, folder=true, size=0, createdDate=Fri Nov 30 13:08:09 UTC 2012, creatorId=null, deletedDate=null, description=null, descriptionMapEntries=null, hidden=false, lastModifiedDate=null, locale=de_DE, lockDate=null, lockMessage=null, lockOwner=null, locked=false, originalParentFolderPath=null, owner=null, ownerType=-1, title=sadmin, titleMapEntries=null, versionId=null, versioned=false], children=null], RepositoryFileTreeDto [file=RepositoryFileDto [id=5cadf0fa-10a9-4db4-a1db-1e4408c98421, name=suzy, path=/home/suzy, folder=true, size=0, createdDate=Fri Nov 30 13:08:10 UTC 2012, creatorId=null, deletedDate=null, description=null, descriptionMapEntries=null, hidden=false, lastModifiedDate=null, locale=de_DE, lockDate=null, lockMessage=null, lockOwner=null, locked=false, originalParentFolderPath=null, owner=null, ownerType=-1, title=suzy, titleMapEntries=null, versionId=null, versioned=false], children=null], RepositoryFileTreeDto [file=RepositoryFileDto [id=b3ebce31-1bd4-429e-b021-fa5d91aeb9cc, name=tiffany, path=/home/tiffany, folder=true, size=0, createdDate=Fri Nov 30 13:08:10 UTC 2012, creatorId=null, deletedDate=null, description=null, descriptionMapEntries=null, hidden=false, lastModifiedDate=null, locale=de_DE, lockDate=null, lockMessage=null, lockOwner=null, locked=false, originalParentFolderPath=null, owner=null, ownerType=-1, title=tiffany, titleMapEntries=null, versionId=null, versioned=false], children=null]]], RepositoryFileTreeDto [file=RepositoryFileDto [id=54bbb89c-0370-4fe2-9a0a-c565f4bd618b, name=public, path=/public, folder=true, size=0, createdDate=Fri Nov 30 13:08:08 UTC 2012, creatorId=null, deletedDate=null, description=null, descriptionMapEntries=null, hidden=false, lastModifiedDate=null, locale=de_DE, lockDate=null, lockMessage=null, lockOwner=null, locked=false, originalParentFolderPath=null, owner=null, ownerType=-1, title=public, titleMapEntries=null, versionId=null, versioned=false], children=null]]] - childs: 2 FileDto: RepositoryFileDto [id=9c9216bc-2fc5-460f-af91-eff7a319d425, name=, path=/, folder=true, size=0, createdDate=Fri Nov 30 13:08:08 UTC 2012, creatorId=null, deletedDate=null, description=null, descriptionMapEntries=null, hidden=false, lastModifiedDate=null, locale=de_DE, lockDate=null, lockMessage=null, lockOwner=null, locked=false, originalParentFolderPath=null, owner=null, ownerType=-1, title=, titleMapEntries=null, versionId=null, versioned=false] - Name: - Last-Modified-Date: null - Description: null - Title: FileTreeDto: RepositoryFileTreeDto [file=RepositoryFileDto [id=b648ddbb-6391-41f9-a9e9-a5d199d1ea2c, name=home, path=/home, folder=true, size=0, createdDate=Fri Nov 30 13:08:09 UTC 2012, creatorId=null, deletedDate=null, description=null, descriptionMapEntries=null, hidden=false, lastModifiedDate=null, locale=de_DE, lockDate=null, lockMessage=null, lockOwner=null, locked=false, originalParentFolderPath=null, owner=null, ownerType=-1, title=home, titleMapEntries=null, versionId=null, versioned=false], children=[RepositoryFileTreeDto [file=RepositoryFileDto [id=f5ae5c29-16eb-4e03-b64a-98c1ddcc048c, name=joe, path=/home/joe, folder=true, size=0, createdDate=Fri Nov 30 13:08:10 UTC 2012, creatorId=null, deletedDate=null, description=null, descriptionMapEntries=null, hidden=false, lastModifiedDate=null, locale=de_DE, lockDate=null, lockMessage=null, lockOwner=null, locked=false, originalParentFolderPath=null, owner=null, ownerType=-1, title=joe, titleMapEntries=null, versionId=null, versioned=false], children=null], RepositoryFileTreeDto [file=RepositoryFileDto [id=dcd35b9c-1782-4168-85c0-3dea30ca218a, name=pat, path=/home/pat, folder=true, size=0, createdDate=Fri Nov 30 13:08:10 UTC 2012, creatorId=null, deletedDate=null, description=null, descriptionMapEntries=null, hidden=false, lastModifiedDate=null, locale=de_DE, lockDate=null, lockMessage=null, lockOwner=null, locked=false, originalParentFolderPath=null, owner=null, ownerType=-1, title=pat, titleMapEntries=null, versionId=null, versioned=false], children=null], RepositoryFileTreeDto [file=RepositoryFileDto [id=99f64dbb-ab85-4f56-8dc0-333de74a241f, name=sadmin, path=/home/sadmin, folder=true, size=0, createdDate=Fri Nov 30 13:08:09 UTC 2012, creatorId=null, deletedDate=null, description=null, descriptionMapEntries=null, hidden=false, lastModifiedDate=null, locale=de_DE, lockDate=null, lockMessage=null, lockOwner=null, locked=false, originalParentFolderPath=null, owner=null, ownerType=-1, title=sadmin, titleMapEntries=null, versionId=null, versioned=false], children=null], RepositoryFileTreeDto [file=RepositoryFileDto [id=5cadf0fa-10a9-4db4-a1db-1e4408c98421, name=suzy, path=/home/suzy, folder=true, size=0, createdDate=Fri Nov 30 13:08:10 UTC 2012, creatorId=null, deletedDate=null, description=null, descriptionMapEntries=null, hidden=false, lastModifiedDate=null, locale=de_DE, lockDate=null, lockMessage=null, lockOwner=null, locked=false, originalParentFolderPath=null, owner=null, ownerType=-1, title=suzy, titleMapEntries=null, versionId=null, versioned=false], children=null], RepositoryFileTreeDto [file=RepositoryFileDto [id=b3ebce31-1bd4-429e-b021-fa5d91aeb9cc, name=tiffany, path=/home/tiffany, folder=true, size=0, createdDate=Fri Nov 30 13:08:10 UTC 2012, creatorId=null, deletedDate=null, description=null, descriptionMapEntries=null, hidden=false, lastModifiedDate=null, locale=de_DE, lockDate=null, lockMessage=null, lockOwner=null, locked=false, originalParentFolderPath=null, owner=null, ownerType=-1, title=tiffany, titleMapEntries=null, versionId=null, versioned=false], children=null]]] - childs: 5 FileDto: RepositoryFileDto [id=b648ddbb-6391-41f9-a9e9-a5d199d1ea2c, name=home, path=/home, folder=true, size=0, createdDate=Fri Nov 30 13:08:09 UTC 2012, creatorId=null, deletedDate=null, description=null, descriptionMapEntries=null, hidden=false, lastModifiedDate=null, locale=de_DE, lockDate=null, lockMessage=null, lockOwner=null, locked=false, originalParentFolderPath=null, owner=null, ownerType=-1, title=home, titleMapEntries=null, versionId=null, versioned=false] - Name: home - Last-Modified-Date: null - Description: null - Title: home FileTreeDto: RepositoryFileTreeDto [file=RepositoryFileDto [id=54bbb89c-0370-4fe2-9a0a-c565f4bd618b, name=public, path=/public, folder=true, size=0, createdDate=Fri Nov 30 13:08:08 UTC 2012, creatorId=null, deletedDate=null, description=null, descriptionMapEntries=null, hidden=false, lastModifiedDate=null, locale=de_DE, lockDate=null, lockMessage=null, lockOwner=null, locked=false, originalParentFolderPath=null, owner=null, ownerType=-1, title=public, titleMapEntries=null, versionId=null, versioned=false], children=null] java.lang.NullPointerException at org.pentaho.reporting.libraries.pensol.JCRRepositoryTest.printDebugInfo(JCRRepositoryTest.java:93) at org.pentaho.reporting.libraries.pensol.JCRRepositoryTest.testJCRRepository(JCRRepositoryTest.java:72) 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:139) at com.intellij.junit3.JUnit3IdeaTestRunner.startRunnerWithArgs(JUnit3IdeaTestRunner.java:52) at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:199) at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:62) 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:120)

    Pentaho BI Platform Tracking | 4 years ago | Thomas Morgner
    java.lang.NullPointerException
  2. 0

    The repository reports itself as empty. When trying to acces the 'public' directory, the list for children is <null>. If a node has no children, please set an empty list created via "Collections.emptyList()" - this ensures that client code does not have to constantly check for <null> values. That is error prone and makes code ugly to read and debug. Code: String url = "http://localhost:8080/pentaho"; final ClientConfig config = new DefaultClientConfig(); config.getProperties().put(ClientConfig.PROPERTY_FOLLOW_REDIRECTS, true); Client client = Client.create(config); client.addFilter(new HTTPBasicAuthFilter("joe", "password")); final WebResource resource = client.resource(url + "/api/repo/files/children?depth=-1&filter=*"); final RepositoryFileTreeDto tree = resource.path("").accept(MediaType.APPLICATION_XML_TYPE).get(RepositoryFileTreeDto.class); printDebugInfo(tree); final List<RepositoryFileTreeDto> children = tree.getChildren(); for (int i = 0; i < children.size(); i++) { final RepositoryFileTreeDto child = children.get(i); printDebugInfo(child); } private void printDebugInfo(final RepositoryFileTreeDto tree) { System.out.println ("FileTreeDto: " + tree); System.out.println (" - childs: " + tree.getChildren().size()); System.out.println ("FileDto: " + tree.getFile()); System.out.println (" - Name: " + tree.getFile().getName()); System.out.println (" - Last-Modified-Date: " + tree.getFile().getLastModifiedDate()); System.out.println (" - Description: " + tree.getFile().getDescription()); System.out.println(" - Title: " + tree.getFile().getTitle()); } Output: FileTreeDto: RepositoryFileTreeDto [file=RepositoryFileDto [id=9c9216bc-2fc5-460f-af91-eff7a319d425, name=, path=/, folder=true, size=0, createdDate=Fri Nov 30 13:08:08 UTC 2012, creatorId=null, deletedDate=null, description=null, descriptionMapEntries=null, hidden=false, lastModifiedDate=null, locale=de_DE, lockDate=null, lockMessage=null, lockOwner=null, locked=false, originalParentFolderPath=null, owner=null, ownerType=-1, title=, titleMapEntries=null, versionId=null, versioned=false], children=[RepositoryFileTreeDto [file=RepositoryFileDto [id=b648ddbb-6391-41f9-a9e9-a5d199d1ea2c, name=home, path=/home, folder=true, size=0, createdDate=Fri Nov 30 13:08:09 UTC 2012, creatorId=null, deletedDate=null, description=null, descriptionMapEntries=null, hidden=false, lastModifiedDate=null, locale=de_DE, lockDate=null, lockMessage=null, lockOwner=null, locked=false, originalParentFolderPath=null, owner=null, ownerType=-1, title=home, titleMapEntries=null, versionId=null, versioned=false], children=[RepositoryFileTreeDto [file=RepositoryFileDto [id=f5ae5c29-16eb-4e03-b64a-98c1ddcc048c, name=joe, path=/home/joe, folder=true, size=0, createdDate=Fri Nov 30 13:08:10 UTC 2012, creatorId=null, deletedDate=null, description=null, descriptionMapEntries=null, hidden=false, lastModifiedDate=null, locale=de_DE, lockDate=null, lockMessage=null, lockOwner=null, locked=false, originalParentFolderPath=null, owner=null, ownerType=-1, title=joe, titleMapEntries=null, versionId=null, versioned=false], children=null], RepositoryFileTreeDto [file=RepositoryFileDto [id=dcd35b9c-1782-4168-85c0-3dea30ca218a, name=pat, path=/home/pat, folder=true, size=0, createdDate=Fri Nov 30 13:08:10 UTC 2012, creatorId=null, deletedDate=null, description=null, descriptionMapEntries=null, hidden=false, lastModifiedDate=null, locale=de_DE, lockDate=null, lockMessage=null, lockOwner=null, locked=false, originalParentFolderPath=null, owner=null, ownerType=-1, title=pat, titleMapEntries=null, versionId=null, versioned=false], children=null], RepositoryFileTreeDto [file=RepositoryFileDto [id=99f64dbb-ab85-4f56-8dc0-333de74a241f, name=sadmin, path=/home/sadmin, folder=true, size=0, createdDate=Fri Nov 30 13:08:09 UTC 2012, creatorId=null, deletedDate=null, description=null, descriptionMapEntries=null, hidden=false, lastModifiedDate=null, locale=de_DE, lockDate=null, lockMessage=null, lockOwner=null, locked=false, originalParentFolderPath=null, owner=null, ownerType=-1, title=sadmin, titleMapEntries=null, versionId=null, versioned=false], children=null], RepositoryFileTreeDto [file=RepositoryFileDto [id=5cadf0fa-10a9-4db4-a1db-1e4408c98421, name=suzy, path=/home/suzy, folder=true, size=0, createdDate=Fri Nov 30 13:08:10 UTC 2012, creatorId=null, deletedDate=null, description=null, descriptionMapEntries=null, hidden=false, lastModifiedDate=null, locale=de_DE, lockDate=null, lockMessage=null, lockOwner=null, locked=false, originalParentFolderPath=null, owner=null, ownerType=-1, title=suzy, titleMapEntries=null, versionId=null, versioned=false], children=null], RepositoryFileTreeDto [file=RepositoryFileDto [id=b3ebce31-1bd4-429e-b021-fa5d91aeb9cc, name=tiffany, path=/home/tiffany, folder=true, size=0, createdDate=Fri Nov 30 13:08:10 UTC 2012, creatorId=null, deletedDate=null, description=null, descriptionMapEntries=null, hidden=false, lastModifiedDate=null, locale=de_DE, lockDate=null, lockMessage=null, lockOwner=null, locked=false, originalParentFolderPath=null, owner=null, ownerType=-1, title=tiffany, titleMapEntries=null, versionId=null, versioned=false], children=null]]], RepositoryFileTreeDto [file=RepositoryFileDto [id=54bbb89c-0370-4fe2-9a0a-c565f4bd618b, name=public, path=/public, folder=true, size=0, createdDate=Fri Nov 30 13:08:08 UTC 2012, creatorId=null, deletedDate=null, description=null, descriptionMapEntries=null, hidden=false, lastModifiedDate=null, locale=de_DE, lockDate=null, lockMessage=null, lockOwner=null, locked=false, originalParentFolderPath=null, owner=null, ownerType=-1, title=public, titleMapEntries=null, versionId=null, versioned=false], children=null]]] - childs: 2 FileDto: RepositoryFileDto [id=9c9216bc-2fc5-460f-af91-eff7a319d425, name=, path=/, folder=true, size=0, createdDate=Fri Nov 30 13:08:08 UTC 2012, creatorId=null, deletedDate=null, description=null, descriptionMapEntries=null, hidden=false, lastModifiedDate=null, locale=de_DE, lockDate=null, lockMessage=null, lockOwner=null, locked=false, originalParentFolderPath=null, owner=null, ownerType=-1, title=, titleMapEntries=null, versionId=null, versioned=false] - Name: - Last-Modified-Date: null - Description: null - Title: FileTreeDto: RepositoryFileTreeDto [file=RepositoryFileDto [id=b648ddbb-6391-41f9-a9e9-a5d199d1ea2c, name=home, path=/home, folder=true, size=0, createdDate=Fri Nov 30 13:08:09 UTC 2012, creatorId=null, deletedDate=null, description=null, descriptionMapEntries=null, hidden=false, lastModifiedDate=null, locale=de_DE, lockDate=null, lockMessage=null, lockOwner=null, locked=false, originalParentFolderPath=null, owner=null, ownerType=-1, title=home, titleMapEntries=null, versionId=null, versioned=false], children=[RepositoryFileTreeDto [file=RepositoryFileDto [id=f5ae5c29-16eb-4e03-b64a-98c1ddcc048c, name=joe, path=/home/joe, folder=true, size=0, createdDate=Fri Nov 30 13:08:10 UTC 2012, creatorId=null, deletedDate=null, description=null, descriptionMapEntries=null, hidden=false, lastModifiedDate=null, locale=de_DE, lockDate=null, lockMessage=null, lockOwner=null, locked=false, originalParentFolderPath=null, owner=null, ownerType=-1, title=joe, titleMapEntries=null, versionId=null, versioned=false], children=null], RepositoryFileTreeDto [file=RepositoryFileDto [id=dcd35b9c-1782-4168-85c0-3dea30ca218a, name=pat, path=/home/pat, folder=true, size=0, createdDate=Fri Nov 30 13:08:10 UTC 2012, creatorId=null, deletedDate=null, description=null, descriptionMapEntries=null, hidden=false, lastModifiedDate=null, locale=de_DE, lockDate=null, lockMessage=null, lockOwner=null, locked=false, originalParentFolderPath=null, owner=null, ownerType=-1, title=pat, titleMapEntries=null, versionId=null, versioned=false], children=null], RepositoryFileTreeDto [file=RepositoryFileDto [id=99f64dbb-ab85-4f56-8dc0-333de74a241f, name=sadmin, path=/home/sadmin, folder=true, size=0, createdDate=Fri Nov 30 13:08:09 UTC 2012, creatorId=null, deletedDate=null, description=null, descriptionMapEntries=null, hidden=false, lastModifiedDate=null, locale=de_DE, lockDate=null, lockMessage=null, lockOwner=null, locked=false, originalParentFolderPath=null, owner=null, ownerType=-1, title=sadmin, titleMapEntries=null, versionId=null, versioned=false], children=null], RepositoryFileTreeDto [file=RepositoryFileDto [id=5cadf0fa-10a9-4db4-a1db-1e4408c98421, name=suzy, path=/home/suzy, folder=true, size=0, createdDate=Fri Nov 30 13:08:10 UTC 2012, creatorId=null, deletedDate=null, description=null, descriptionMapEntries=null, hidden=false, lastModifiedDate=null, locale=de_DE, lockDate=null, lockMessage=null, lockOwner=null, locked=false, originalParentFolderPath=null, owner=null, ownerType=-1, title=suzy, titleMapEntries=null, versionId=null, versioned=false], children=null], RepositoryFileTreeDto [file=RepositoryFileDto [id=b3ebce31-1bd4-429e-b021-fa5d91aeb9cc, name=tiffany, path=/home/tiffany, folder=true, size=0, createdDate=Fri Nov 30 13:08:10 UTC 2012, creatorId=null, deletedDate=null, description=null, descriptionMapEntries=null, hidden=false, lastModifiedDate=null, locale=de_DE, lockDate=null, lockMessage=null, lockOwner=null, locked=false, originalParentFolderPath=null, owner=null, ownerType=-1, title=tiffany, titleMapEntries=null, versionId=null, versioned=false], children=null]]] - childs: 5 FileDto: RepositoryFileDto [id=b648ddbb-6391-41f9-a9e9-a5d199d1ea2c, name=home, path=/home, folder=true, size=0, createdDate=Fri Nov 30 13:08:09 UTC 2012, creatorId=null, deletedDate=null, description=null, descriptionMapEntries=null, hidden=false, lastModifiedDate=null, locale=de_DE, lockDate=null, lockMessage=null, lockOwner=null, locked=false, originalParentFolderPath=null, owner=null, ownerType=-1, title=home, titleMapEntries=null, versionId=null, versioned=false] - Name: home - Last-Modified-Date: null - Description: null - Title: home FileTreeDto: RepositoryFileTreeDto [file=RepositoryFileDto [id=54bbb89c-0370-4fe2-9a0a-c565f4bd618b, name=public, path=/public, folder=true, size=0, createdDate=Fri Nov 30 13:08:08 UTC 2012, creatorId=null, deletedDate=null, description=null, descriptionMapEntries=null, hidden=false, lastModifiedDate=null, locale=de_DE, lockDate=null, lockMessage=null, lockOwner=null, locked=false, originalParentFolderPath=null, owner=null, ownerType=-1, title=public, titleMapEntries=null, versionId=null, versioned=false], children=null] java.lang.NullPointerException at org.pentaho.reporting.libraries.pensol.JCRRepositoryTest.printDebugInfo(JCRRepositoryTest.java:93) at org.pentaho.reporting.libraries.pensol.JCRRepositoryTest.testJCRRepository(JCRRepositoryTest.java:72) 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:139) at com.intellij.junit3.JUnit3IdeaTestRunner.startRunnerWithArgs(JUnit3IdeaTestRunner.java:52) at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:199) at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:62) 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:120)

    Pentaho BI Platform Tracking | 4 years ago | Thomas Morgner
    java.lang.NullPointerException
  3. 0

    Android: Saving Map State in Google map

    Stack Overflow | 11 months ago | Junie Negentien
    java.lang.RuntimeException: Unable to resume activity {com.ourThesis.junieNegentien2015/com.ourThesis.junieNegentien2015.MainActivity}: java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at org.pentaho.reporting.libraries.pensol.JCRRepositoryTest.printDebugInfo()
    2. org.pentaho.reporting
      JCRRepositoryTest.testJCRRepository
      1. org.pentaho.reporting.libraries.pensol.JCRRepositoryTest.printDebugInfo(JCRRepositoryTest.java:93)
      2. org.pentaho.reporting.libraries.pensol.JCRRepositoryTest.testJCRRepository(JCRRepositoryTest.java:72)
      2 frames
    3. Java RT
      DelegatingMethodAccessorImpl.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      3 frames
    4. com.intellij.junit3
      JUnit3IdeaTestRunner.startRunnerWithArgs
      1. com.intellij.junit3.JUnit3IdeaTestRunner.doRun(JUnit3IdeaTestRunner.java:139)
      2. com.intellij.junit3.JUnit3IdeaTestRunner.startRunnerWithArgs(JUnit3IdeaTestRunner.java:52)
      2 frames
    5. IDEA
      JUnitStarter.main
      1. com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:199)
      2. com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:62)
      2 frames
    6. Java RT
      NativeMethodAccessorImpl.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      2 frames
    7. IDEA
      AppMain.main
      1. com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)
      1 frame