[ 
http://jira.codehaus.org/browse/JIBX-324?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dennis Sosnoski resolved JIBX-324.
----------------------------------

         Assignee: Dennis Sosnoski
       Resolution: Fixed
    Fix Version/s: JiBX 1.2.2

Due to use of get-method and set-method attributes on a <value> customization. 
Added test case for this.

> NPE in ValueCustom.fillType()
> -----------------------------
>
>                 Key: JIBX-324
>                 URL: http://jira.codehaus.org/browse/JIBX-324
>             Project: JiBX
>          Issue Type: Bug
>          Components: core
>    Affects Versions: JiBX 1.2.1
>         Environment: java 6, linux
>            Reporter: Jean-Pierre Ragey
>            Assignee: Dennis Sosnoski
>             Fix For: JiBX 1.2.2
>
>
> I had a NullPointerException when Maven+Jibx2Wsdl converted a simple class 
> with a custom mapping; stacktrace is:
> [echo] Converting Java code to WSDL, xsd and binding.xml
>      [java] Exception in thread "main" java.lang.NullPointerException
>      [java]   at 
> org.jibx.custom.classes.ValueCustom.fillType(ValueCustom.java:491)
>      [java]   at 
> org.jibx.custom.classes.ClassCustom.apply(ClassCustom.java:831)
>      [java]   at 
> org.jibx.custom.classes.PackageCustom.apply(PackageCustom.java:147)
>      [java]   at 
> org.jibx.custom.classes.GlobalCustom.fillClasses(GlobalCustom.java:469)
>      [java]   at 
> org.jibx.ws.wsdl.tools.WsdlGeneratorCommandLine.applyOverrides(WsdlGeneratorCommandLine.java:187)
>      [java]   at 
> org.jibx.custom.CustomizationCommandLineBase.processArgs(CustomizationCommandLineBase.java:186)
>      [java]   at org.jibx.ws.wsdl.tools.Jibx2Wsdl.main(Jibx2Wsdl.java:552)
> Looking into the source code (fresh CVS checkout), I found the following 
> lines:
> ClassCustom.apply(), line 830+:
>                 ValueCustom cust = (ValueCustom)namemap.get(name);
>                 cust.fillType(null, req, style);
> and ValueCustom.fillType(), line 490+:
>     /* package */void fillType(IClass info, Boolean req, Integer style) {
>         String type = info.getName();
> So the ClassCustom line 831 call always leads a NPE, as info is null...

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

        

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
jibx-devs mailing list
jibx-devs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-devs

Reply via email to