maven-jibx-plugin 1.2 Binding Error due to issue with Value Object 
-------------------------------------------------------------------

                 Key: JIBX-311
                 URL: http://jira.codehaus.org/browse/JIBX-311
             Project: JiBX
          Issue Type: Bug
          Components: maven plugin
    Affects Versions: JiBX 1.2
         Environment: Maven version: 2.0.8
Java version: 1.5.0_15
OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows"
Apache ServiceMix ESB: 3.4.0.2-fuse 
Show ยป Maven version: 2.0.8 Java version: 1.5.0_15 OS name: "windows xp" 
version: "5.1" arch: "x86" Family: "windows" Apache ServiceMix ESB: 
3.4.0.2-fuse 
            Reporter: Bruce Lossini


I have a servicemix-bean that requires an XML mapping to a value object.  I 
created the appropriate XML mapping class and added it as a dependency to the 
POM.xml for that service unit.

The value object that respresents the mapping is in a common.jar that is in my 
local Maven repository and is clearly being read/found since it looks like it 
read the class to get the type of each field (see output below).  

I can resolve the issue by making a copy of the value object class and placing 
it within my SU src/main/java directory structure. But that means I need to 
maintain 2 identical copies of the same class in order to get this SU to build 
properly.  I tried several versions of the maven-jibx-plugin.  The last one I 
tried and is represented by the output below was 1.2.1.  Any help would be 
appreciated.  Thanks

[INFO] [jibx:bind {execution: default}]
[INFO] Running JiBX binding compiler (single-module mode) on 1 binding file(s)
Running binding compiler version jibx_1_2_1
binding TaskDistributionVOMapping:
 context (mp#=1) (cv#=0) (fm#=0)
  mapping class com.cvs.wlm.taskpub.domain.TaskDistributionVO to element 
taskDistVO
   context (cv#=0) (fm#=0)
   element wrapper taskDistVO
    object binding for com.cvs.wlm.taskpub.domain.TaskDistributionVO create 
class com.cvs.wlm.taskpub.domain.TaskDistributionVO
     structure ordered
      element data-source-id from property dataSourceID (java.lang.String)
      element task-id from property taskId (java.lang.Integer)
      element store-nbr from property storeNbr (java.lang.Integer)
      element district-nbr from property districtNbr (java.lang.Integer)
      element region-nbr from property regionNbr (java.lang.Integer)
      element area-nbr from property areaNbr (java.lang.Integer)
      element task-body from property taskBodyTask (java.lang.String)
      element publish-msg-id from property publishMsgId (java.lang.String)
      element last-update-date-time from property lastUpdtDtTme (java.util.Date)
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO]
*** Error during code generation for file 
'C:\autopublish\wlmtaskpub\wlm-rx-license-tracking-ds-bean-su\src\main\resources\TaskDistributionVOMapping.xml'
 - please enter a bug report for this error in Jira if the problem is not 
listed as fixed on the online status page ***


[INFO] ------------------------------------------------------------------------
[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException:
*** Error during code generation for file 
'C:\autopublish\wlmtaskpub\wlm-rx-license-tracking-ds-bean-su\src\main\resources\TaskDistributionVOMapping.xml'
 - please enter a bug report for this error in Jira if the problem is not 
listed as fixed on the online status page ***

        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:564)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:282)
        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)
Caused by: org.apache.maven.plugin.MojoExecutionException:
*** Error during code generation for file 
'C:\autopublish\wlmtaskpub\wlm-rx-license-tracking-ds-bean-su\src\main\resources\TaskDistributionVOMapping.xml'
 - please enter a bug report for this error in Jira if the problem is not 
listed as fixed on the online status page ***

        at org.jibx.maven.JibxMojo.compile(JibxMojo.java:225)
        at org.jibx.maven.JibxMojo.execute(JibxMojo.java:174)
        at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:447)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
        ... 16 more
Caused by: org.jibx.runtime.JiBXException:
*** Error during code generation for file 
'C:\autopublish\wlmtaskpub\wlm-rx-license-tracking-ds-bean-su\src\main\resources\TaskDistributionVOMapping.xml'
 - please enter a bug report for this error in Jira if the problem is not 
listed as fixed on the online status page ***

        at org.jibx.binding.Compile.compile(Compile.java:223)
        at org.jibx.maven.JibxMojo.compile(JibxMojo.java:222)
        ... 19 more
Caused by: java.lang.NullPointerException
        at 
org.jibx.binding.def.BindingDefinition.generateCode(BindingDefinition.java:975)
        at org.jibx.binding.Compile.compile(Compile.java:221)
        ... 20 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 19 seconds
[INFO] Finished at: Wed Jul 08 11:42:33 EDT 2009
[INFO] Final Memory: 20M/39M
[INFO] ------------------------------------------------------------------------


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
jibx-devs mailing list
jibx-devs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-devs

Reply via email to