3 Replies Latest reply on Mar 25, 2010 6:51 AM by Nick Belaevski

    CDK dies with a NullPointerException

    Paulo Pinto Novice

      Hi everyone,

       

      I am trying to use the CDK to generate a new component and currently it dies with a NullPointerException with reading the document configuration file.

       

      java.lang.NullPointerException
              at java.lang.Class.forName0(Native Method)
              at java.lang.Class.forName(Class.java:242)
              at org.ajax4jsf.builder.component.ComponentPropertyProcessor.getType(ComponentPropertyProcessor.java:84)
              at org.ajax4jsf.builder.component.ComponentPropertyProcessor.getField(ComponentPropertyProcessor.java:61)
              at org.ajax4jsf.builder.component.ComponentPropertyProcessor.process(ComponentPropertyProcessor.java:51)
              at org.ajax4jsf.builder.component.ComponentModelBuilder.build(ComponentModelBuilder.java:102)
              at org.ajax4jsf.builder.generator.ComponentGenerator2.createFiles(ComponentGenerator2.java:57)
              at org.ajax4jsf.builder.mojo.GenerateMojo.execute(GenerateMojo.java:105)
              at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:483)
              at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:678)
              at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:540)
              at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:519)
              at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:371)
              at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:332)
              at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:181)
              at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:356)
              at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:137)
              at org.apache.maven.cli.MavenCli.main(MavenCli.java:356)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:585)
              at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
              at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
              at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
              at org.codehaus.classworlds.Launcher.main(Launcher.java:375)

       

      How can I get more information about what the error might be?

       

      Thanks in advance,

      Paulo