Issue Type: Bug Bug
Affects Versions: JiBX 1.2.4
Assignee: Unassigned
Created: 18/Jan/13 3:09 AM
Description:

I'm mapping only one interface with auto-generate stubs (force-classes="true")
NPE occurred upon ANT JiBX compile(bind).

Details (after debugging):
In org.jibx.binding.Compile.java, line 208:
BoundClass.reset()
This call first loads BoundClass and inits its s_mungeName static field, but resets it at once in reset() method!
Lather that causes NPE at org.jibx.binding.classes.ClassFile line 242:
String fname = name.replace('.', File.separatorChar)+".class";
(because name is null!)
that in turn because of org.jibx.binding.classes.BoundClass line 401:
mname = s_mungeName;
where s_mungeName is null.

Stack trace:
Thread [main] (Suspended (breakpoint at line 242 in ClassFile))
ClassFile.<init>(String, File, ClassFile, int, String[]) line: 242
BoundClass.getInstance(ClassFile, BoundClass) line: 411
BoundClass.getInstance(String, BoundClass) line: 443
ObjectBinding.<init>(IContainer, IContextObj, String, String, String, String, String, String) line: 294
BindingBuilder.unmarshalObjectBinding(UnmarshallingContext, IContextObj, IContainer, String) line: 1077
BindingBuilder.unmarshalMapping(UnmarshallingContext, IContainer, ArrayList, boolean) line: 1815
BindingBuilder.unmarshalMappings(UnmarshallingContext, IContainer, ArrayList, boolean) line: 1170
BindingBuilder.unmarshalBindingDefinition(UnmarshallingContext, String, URL) line: 2169
Utility.loadBinding(String, String, InputStream, URL, boolean) line: 300
Utility.loadFileBinding(String, boolean) line: 420
Compile.compile(String[], String[]) line: 217
CompileTask.execute() line: 248
UnknownElement.execute() line: 291
GeneratedMethodAccessor4.invoke(Object, Object[]) line: not available
DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: 25
Method.invoke(Object, Object...) line: 597
DispatchUtils.execute(Object) line: 106
UnknownElement(Task).perform() line: 348
Target.execute() line: 392
Target.performTasks() line: 413
Project.executeSortedTargets(Vector) line: 1399
Project.executeTarget(String) line: 1368
EclipseDefaultExecutor(DefaultExecutor).executeTargets(Project, String[]) line: 41
EclipseDefaultExecutor.executeTargets(Project, String[]) line: 32
Project.executeTargets(Vector) line: 1251
InternalAntRunner.run(List) line: 424
InternalAntRunner.main(String[]) line: 138

Project: JiBX
Priority: Major Major
Reporter: No Matter
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
------------------------------------------------------------------------------
Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and
much more. Get web development skills now with LearnDevNow -
350+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122812
_______________________________________________
jibx-devs mailing list
jibx-devs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-devs

Reply via email to