Konrad Windszus created JCRVLT-430:
--------------------------------------

             Summary: Potential NPE in PackageTypeValidator.validate(...)
                 Key: JCRVLT-430
                 URL: https://issues.apache.org/jira/browse/JCRVLT-430
             Project: Jackrabbit FileVault
          Issue Type: Bug
    Affects Versions: 3.4.4
            Reporter: Konrad Windszus
             Fix For: 3.4.6


{code}
[ERROR] Failed to execute goal 
org.apache.jackrabbit:filevault-package-maven-plugin:1.1.2:validate-package 
(default-validate-package) on project bruker-aem.ui.apps: Execution 
default-validate-package of goal 
org.apache.jackrabbit:filevault-package-maven-plugin:1.1.2:validate-package 
failed: Exception in validator 'jackrabbit-packagetype' while validating file 
'...' (line 7, column 49): NullPointerException -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal 
org.apache.jackrabbit:filevault-package-maven-plugin:1.1.2:validate-package 
(default-validate-package) on project ...: Execution default-validate-package 
of goal 
org.apache.jackrabbit:filevault-package-maven-plugin:1.1.2:validate-package 
failed: Exception in validator 'jackrabbit-packagetype' while validating file 
'...' (line 7, column 49)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
(MojoExecutor.java:215)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
(MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
(MojoExecutor.java:148)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
(LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
(LifecycleModuleBuilder.java:81)
    at 
org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build
 (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute 
(LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke 
(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke 
(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:498)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced 
(Launcher.java:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch 
(Launcher.java:225)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode 
(Launcher.java:406)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main 
(Launcher.java:347)
Caused by: org.apache.maven.plugin.PluginExecutionException: Execution 
default-validate-package of goal 
org.apache.jackrabbit:filevault-package-maven-plugin:1.1.2:validate-package 
failed: Exception in validator 'jackrabbit-packagetype' while validating file 
'...' (line 7, column 49)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo 
(DefaultBuildPluginManager.java:148)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
(MojoExecutor.java:210)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
(MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
(MojoExecutor.java:148)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
(LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
(LifecycleModuleBuilder.java:81)
    at 
org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build
 (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute 
(LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke 
(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke 
(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:498)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced 
(Launcher.java:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch 
(Launcher.java:225)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode 
(Launcher.java:406)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main 
(Launcher.java:347)
Caused by: org.apache.jackrabbit.vault.validation.impl.util.ValidatorException: 
Exception in validator 'jackrabbit-packagetype' while validating file '...' 
(line 7, column 49)
    at 
org.apache.jackrabbit.vault.validation.impl.util.DocumentViewXmlContentHandler.startElement
 (DocumentViewXmlContentHandler.java:205)
    at 
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement 
(AbstractSAXParser.java:509)
    at 
com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement
 (AbstractXMLDocumentParser.java:182)
    at 
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement
 (XMLNSDocumentScannerImpl.java:351)
    at 
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl$NSContentDriver.scanRootElementHook
 (XMLNSDocumentScannerImpl.java:613)
    at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next
 (XMLDocumentFragmentScannerImpl.java:3132)
    at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next
 (XMLDocumentScannerImpl.java:852)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next 
(XMLDocumentScannerImpl.java:602)
    at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next 
(XMLNSDocumentScannerImpl.java:112)
    at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument
 (XMLDocumentFragmentScannerImpl.java:505)
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse 
(XML11Configuration.java:842)
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse 
(XML11Configuration.java:771)
    at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse 
(XMLParser.java:141)
    at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse 
(AbstractSAXParser.java:1213)
    at 
com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse 
(SAXParserImpl.java:643)
    at 
org.apache.jackrabbit.vault.validation.spi.impl.DocumentViewParserValidator.validateDocumentViewXml
 (DocumentViewParserValidator.java:154)
    at 
org.apache.jackrabbit.vault.validation.spi.impl.DocumentViewParserValidator.validateJcrData
 (DocumentViewParserValidator.java:89)
    at 
org.apache.jackrabbit.vault.validation.ValidationExecutor.validateGenericJcrData
 (ValidationExecutor.java:292)
    at 
org.apache.jackrabbit.vault.validation.ValidationExecutor.validateJcrRoot 
(ValidationExecutor.java:178)
    at 
org.apache.jackrabbit.filevault.maven.packaging.ValidatePackageMojo.validateInputStream
 (ValidatePackageMojo.java:129)
    at 
org.apache.jackrabbit.filevault.maven.packaging.ValidatePackageMojo.validateEntry
 (ValidatePackageMojo.java:115)
    at 
org.apache.jackrabbit.filevault.maven.packaging.ValidatePackageMojo.validateEntry
 (ValidatePackageMojo.java:112)
    at 
org.apache.jackrabbit.filevault.maven.packaging.ValidatePackageMojo.validateEntry
 (ValidatePackageMojo.java:112)
    at 
org.apache.jackrabbit.filevault.maven.packaging.ValidatePackageMojo.validateEntry
 (ValidatePackageMojo.java:112)
    at 
org.apache.jackrabbit.filevault.maven.packaging.ValidatePackageMojo.validateEntry
 (ValidatePackageMojo.java:112)
    at 
org.apache.jackrabbit.filevault.maven.packaging.ValidatePackageMojo.validateEntry
 (ValidatePackageMojo.java:112)
    at 
org.apache.jackrabbit.filevault.maven.packaging.ValidatePackageMojo.validateArchive
 (ValidatePackageMojo.java:103)
    at 
org.apache.jackrabbit.filevault.maven.packaging.ValidatePackageMojo.validateInputStream
 (ValidatePackageMojo.java:143)
    at 
org.apache.jackrabbit.filevault.maven.packaging.ValidatePackageMojo.validateEntry
 (ValidatePackageMojo.java:115)
    at 
org.apache.jackrabbit.filevault.maven.packaging.ValidatePackageMojo.validateEntry
 (ValidatePackageMojo.java:112)
    at 
org.apache.jackrabbit.filevault.maven.packaging.ValidatePackageMojo.validateEntry
 (ValidatePackageMojo.java:112)
    at 
org.apache.jackrabbit.filevault.maven.packaging.ValidatePackageMojo.validateEntry
 (ValidatePackageMojo.java:112)
    at 
org.apache.jackrabbit.filevault.maven.packaging.ValidatePackageMojo.validateEntry
 (ValidatePackageMojo.java:112)
    at 
org.apache.jackrabbit.filevault.maven.packaging.ValidatePackageMojo.validateArchive
 (ValidatePackageMojo.java:103)
    at 
org.apache.jackrabbit.filevault.maven.packaging.ValidatePackageMojo.validatePackage
 (ValidatePackageMojo.java:93)
    at 
org.apache.jackrabbit.filevault.maven.packaging.ValidatePackageMojo.doExecute 
(ValidatePackageMojo.java:74)
    at 
org.apache.jackrabbit.filevault.maven.packaging.AbstractValidateMojo.execute 
(AbstractValidateMojo.java:228)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo 
(DefaultBuildPluginManager.java:137)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
(MojoExecutor.java:210)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
(MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
(MojoExecutor.java:148)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
(LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
(LifecycleModuleBuilder.java:81)
    at 
org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build
 (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute 
(LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke 
(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke 
(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:498)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced 
(Launcher.java:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch 
(Launcher.java:225)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode 
(Launcher.java:406)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main 
(Launcher.java:347)
Caused by: java.lang.NullPointerException
    at 
org.apache.jackrabbit.vault.validation.spi.impl.PackageTypeValidator.validate 
(PackageTypeValidator.java:320)
    at 
org.apache.jackrabbit.vault.validation.spi.DocumentViewXmlValidator.validate 
(DocumentViewXmlValidator.java:73)
    at 
org.apache.jackrabbit.vault.validation.impl.util.DocumentViewXmlContentHandler.startElement
 (DocumentViewXmlContentHandler.java:199)
    at 
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement 
(AbstractSAXParser.java:509)
    at 
com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement
 (AbstractXMLDocumentParser.java:182)
    at 
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement
 (XMLNSDocumentScannerImpl.java:351)
    at 
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl$NSContentDriver.scanRootElementHook
 (XMLNSDocumentScannerImpl.java:613)
    at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next
 (XMLDocumentFragmentScannerImpl.java:3132)
    at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next
 (XMLDocumentScannerImpl.java:852)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next 
(XMLDocumentScannerImpl.java:602)
    at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next 
(XMLNSDocumentScannerImpl.java:112)
    at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument
 (XMLDocumentFragmentScannerImpl.java:505)
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse 
(XML11Configuration.java:842)
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse 
(XML11Configuration.java:771)
    at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse 
(XMLParser.java:141)
    at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse 
(AbstractSAXParser.java:1213)
    at 
com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse 
(SAXParserImpl.java:643)
    at 
org.apache.jackrabbit.vault.validation.spi.impl.DocumentViewParserValidator.validateDocumentViewXml
 (DocumentViewParserValidator.java:154)
    at 
org.apache.jackrabbit.vault.validation.spi.impl.DocumentViewParserValidator.validateJcrData
 (DocumentViewParserValidator.java:89)
    at 
org.apache.jackrabbit.vault.validation.ValidationExecutor.validateGenericJcrData
 (ValidationExecutor.java:292)
    at 
org.apache.jackrabbit.vault.validation.ValidationExecutor.validateJcrRoot 
(ValidationExecutor.java:178)
    at 
org.apache.jackrabbit.filevault.maven.packaging.ValidatePackageMojo.validateInputStream
 (ValidatePackageMojo.java:129)
    at 
org.apache.jackrabbit.filevault.maven.packaging.ValidatePackageMojo.validateEntry
 (ValidatePackageMojo.java:115)
    at 
org.apache.jackrabbit.filevault.maven.packaging.ValidatePackageMojo.validateEntry
 (ValidatePackageMojo.java:112)
    at 
org.apache.jackrabbit.filevault.maven.packaging.ValidatePackageMojo.validateEntry
 (ValidatePackageMojo.java:112)
    at 
org.apache.jackrabbit.filevault.maven.packaging.ValidatePackageMojo.validateEntry
 (ValidatePackageMojo.java:112)
    at 
org.apache.jackrabbit.filevault.maven.packaging.ValidatePackageMojo.validateEntry
 (ValidatePackageMojo.java:112)
    at 
org.apache.jackrabbit.filevault.maven.packaging.ValidatePackageMojo.validateEntry
 (ValidatePackageMojo.java:112)
    at 
org.apache.jackrabbit.filevault.maven.packaging.ValidatePackageMojo.validateArchive
 (ValidatePackageMojo.java:103)
    at 
org.apache.jackrabbit.filevault.maven.packaging.ValidatePackageMojo.validateInputStream
 (ValidatePackageMojo.java:143)
    at 
org.apache.jackrabbit.filevault.maven.packaging.ValidatePackageMojo.validateEntry
 (ValidatePackageMojo.java:115)
    at 
org.apache.jackrabbit.filevault.maven.packaging.ValidatePackageMojo.validateEntry
 (ValidatePackageMojo.java:112)
    at 
org.apache.jackrabbit.filevault.maven.packaging.ValidatePackageMojo.validateEntry
 (ValidatePackageMojo.java:112)
    at 
org.apache.jackrabbit.filevault.maven.packaging.ValidatePackageMojo.validateEntry
 (ValidatePackageMojo.java:112)
    at 
org.apache.jackrabbit.filevault.maven.packaging.ValidatePackageMojo.validateEntry
 (ValidatePackageMojo.java:112)
    at 
org.apache.jackrabbit.filevault.maven.packaging.ValidatePackageMojo.validateArchive
 (ValidatePackageMojo.java:103)
    at 
org.apache.jackrabbit.filevault.maven.packaging.ValidatePackageMojo.validatePackage
 (ValidatePackageMojo.java:93)
    at 
org.apache.jackrabbit.filevault.maven.packaging.ValidatePackageMojo.doExecute 
(ValidatePackageMojo.java:74)
    at 
org.apache.jackrabbit.filevault.maven.packaging.AbstractValidateMojo.execute 
(AbstractValidateMojo.java:228)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo 
(DefaultBuildPluginManager.java:137)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
(MojoExecutor.java:210)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
(MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
(MojoExecutor.java:148)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
(LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
(LifecycleModuleBuilder.java:81)
    at 
org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build
 (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute 
(LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke 
(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke 
(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:498)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced 
(Launcher.java:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch 
(Launcher.java:225)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode 
(Launcher.java:406)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main 
(Launcher.java:347)
{code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to