Issue Type: Bug Bug
Affects Versions: JiBX 1.2.1
Assignee: Unassigned
Components: JiBX/OTA
Created: 27/Aug/13 6:34 AM
Description:

Hi,

I used the codegen to generate the java classes from xsd and prepared the jar and placed in another dependent project and using the maven pom or ant build script,try to generate the binding xml and bind the binding xml and java classes of jar,returning error with nullpointer exception failed to identify the root error.

The pom generated the binding xml using the binding xml,but failed during the bind the binding xml and the java classes.

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.2</version>
<executions>
<execution>
<id>XSD creation with customization</id>
<phase>process-classes</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<tasks>
<java fork="true" failonerror="true"
classname="org.jibx.binding.generator.BindGen">
<classpath>
<path refid="maven.dependency.classpath" />
<path refid="maven.compile.classpath" />
<path refid="maven.runtime.classpath" />
<path refid="maven.test.classpath" />
<path refid="maven.plugin.classpath" />
</classpath>
<arg value="-t" />
<arg value="$

{project.build.directory}/jibx" />
<arg value="com.pokitdoc.ohp.schema834.X12005010X220A1834A1" /> <!--provide the package -->
</java>
</tasks>
</configuration>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.11</version>
</dependency>
<dependency>
<groupId>org.jibx</groupId>
<artifactId>jibx-tools</artifactId>
<version>1.2.1</version>
</dependency>
<dependency>
<groupId>org.jibx</groupId>
<artifactId>jibx-run</artifactId>
<version>1.2.1</version>
</dependency>
<dependency>
<groupId>org.jibx</groupId>
<artifactId>jibx-extras</artifactId>
<version>1.2.1</version>
</dependency>
<dependency>
<groupId>com.thoughtworks.qdox</groupId>
<artifactId>qdox</artifactId>
<version>1.10</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId>org.jibx</groupId>
<artifactId>maven-jibx-plugin</artifactId>
<version>1.2.1</version>
<executions>
<execution>
<phase>process-classes</phase>
<goals>
<goal>bind</goal>
</goals>
</execution>
</executions>
<configuration>
<!-- work only with relative paths ${project.build.directory}

would
not work -->
<directory>target/jibx</directory>
</configuration>
</plugin>

Project: JiBX
Priority: Major Major
Reporter: Ramesh Yakkala
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and 
AppDynamics. Performance Central is your source for news, insights, 
analysis and resources for efficient Application Performance Management. 
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________
jibx-devs mailing list
jibx-devs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-devs

Reply via email to