jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • JiBX
  • JIBX-311

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

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: JiBX 1.2
  • Fix Version/s: None
  • Component/s: maven plugin
  • Labels:
    None
  • Environment:
    Hide
    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
    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 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

Description

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] ------------------------------------------------------------------------

  • Options
    • Sort By Name
    • Sort By Date
    • Ascending
    • Descending
    • Download All

Attachments

  1. XML File
    pom.xml
    08/Jul/09 10:53 AM
    4 kB
    Bruce Lossini

Activity

  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Bruce Lossini added a comment - 08/Jul/09 10:53 AM

POM.XML file for the SU that I am having the reported issue with

Show
Bruce Lossini added a comment - 08/Jul/09 10:53 AM POM.XML file for the SU that I am having the reported issue with

People

  • Assignee:
    Don Corley
    Reporter:
    Bruce Lossini
Vote (0)
Watch (1)

Dates

  • Created:
    08/Jul/09 10:50 AM
    Updated:
    30/Apr/10 1:05 PM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.