Hi,
Below in blue is the erro that i get when i am trying to build and below that in bold black i have pasted my binding file.
I notice that if I use a constant attribute in value this error occurs.Wen I use
field attribute and not the constant attribute it works perfectly fine.
Can anybody help me please.I am stuck with this for the last 4-5 days.
Regards,
Chetan
-------------------------------------------------------- ERROR --------------------------------------------
jibx:taskdef:
jibx:bind:
[echo] Running Jibx binding compiler.
BUILD SUCCESSFUL
Total time: 12 seconds
Finished at: Mon Sep 11 10:05:26 BST 2006
C:\test-ground\siml-new>maven tigger:compile
__ __
| \/ |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \ ~ intelligent projects ~
|_| |_\__,_|\_/\___|_||_| v. 1.0.2
jibx:taskdef:
jibx:bind:
[echo] Running Jibx binding compiler.
Error running binding compiler
*** Error during code generation - please report this error on the JiBX users li
st so that the condition can be caught during validation ***
java.lang.IllegalStateException: Internal error: Too few values on stack
full stack:
at org.jibx.binding.classes.MethodBuilder.verifyStackDepth(MethodBuilder
.java:432)
at org.jibx.binding.classes.MethodBuilder.appendPOP(MethodBuilder.java:1
341)
at org.jibx.binding.def.ValueChild.genUnmarshal(ValueChild.java:503)
at org.jibx.binding.def.ValueChild.genContentUnmarshal(ValueChild.java:6
80)
at org.jibx.binding.def.NestedStructure.genContentUnmarshal(NestedStruct
ure.java:153)
at org.jibx.binding.def.ElementWrapper.genContentUnmarshal(ElementWrappe
r.java:272)
at org.jibx.binding.def.NestedStructure.genContentUnmarshal(NestedStruct
ure.java:153)
at org.jibx.binding.def.ElementWrapper.genContentUnmarshal(ElementWrappe
r.java:272)
at org.jibx.binding.def.NestedStructure.genContentUnmarshal(NestedStruct
ure.java:153)
at org.jibx.binding.def.ObjectBinding.genUnmarshalContentCall(ObjectBind
ing.java:736)
at org.jibx.binding.def.ObjectBinding.genContentUnmarshal(ObjectBinding.
java:875)
at org.jibx.binding.def.ElementWrapper.genContentUnmarshal(ElementWrappe
r.java:272)
at org.jibx.binding.def.MappingDefinition.generateCode(MappingDefinition
.java:541)
at org.jibx.binding.def.DefinitionContext.generateCode(DefinitionContext
.java:600)
at org.jibx.binding.def.BindingDefinition.generateCode(BindingDefinition
.java:578)
at org.jibx.binding.Compile.compile(Compile.java:303)
at org.jibx.binding.ant.CompileTask.execute(CompileTask.java:248)
at org.apache.tools.ant.Task.perform(Task.java:341)
at org.apache.commons.jelly.tags.ant.AntTag.doTag(AntTag.java:185)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233)
at org.apache.commons.jelly.tags.core.OtherwiseTag.doTag(OtherwiseTag.ja
va:87)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233)
at org.apache.commons.jelly.tags.core.ChooseTag.doTag(ChooseTag.java:84)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
at org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(MavenGoalTa
g.java:79)
at org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.perfor
mAction(MavenGoalTag.java:110)
at com.werken.werkz.Goal.fire(Goal.java:639)
at com.werken.werkz.Goal.attain(Goal.java:575)
at com.werken.werkz.WerkzProject.attainGoal(WerkzProject.java:193)
at org.apache.maven.jelly.tags.werkz.MavenAttainGoalTag.doTag(MavenAttai
nGoalTag.java:127)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233)
at com.werken.werkz.jelly.PostGoalTag$1.firePostGoal(PostGoalTag.java:87
)
at com.werken.werkz.Goal.firePostGoalCallbacks(Goal.java:710)
at com.werken.werkz.Goal.fire(Goal.java:654)
at com.werken.werkz.Goal.attain(Goal.java:575)
at com.werken.werkz.WerkzProject.attainGoal(WerkzProject.java:193)
at org.apache.maven.jelly.tags.werkz.MavenAttainGoalTag.doTag(MavenAttai
nGoalTag.java:127)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
at org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(MavenGoalTa
g.java:79)
at org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.perfor
mAction(MavenGoalTag.java:110)
at com.werken.werkz.Goal.fire(Goal.java:639)
at com.werken.werkz.Goal.attain(Goal.java:575)
at org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:
671)
at org.apache.maven.MavenSession.attainGoals(MavenSession.java:263)
at org.apache.maven.cli.App.doMain(App.java:488)
at org.apache.maven.cli.App.main(App.java:1239)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.werken.forehead.Forehead.run(Forehead.java:551)
at com.werken.forehead.Forehead.main(Forehead.java:581)
BUILD FAILED
File...... C:\java\maven-repository\unpacked\maven-jibx-plugin-1.2\plugin.jelly
Element... ant:jibx
Line...... 26
Column.... 78
JiBXException in JiBX binding compilation
Total time: 22 seconds
Finished at: Mon Sep 11 10:06:15 BST 2006
---------------------------------------------------------------- BINDING FILE ------------------------------------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<binding>
<mapping name="SETT" class="com.jpmorgan.pathclear.siml.common.domainobjects.SecuritiesSettlement">
<structure name="SecuritiesSettlement">
<!-- <value name="settlementDomain" field="settlementDomain"/> -->
<value name="settlementDomain" constant="38"/>
<structure field="messageInfo"/>
<structure name="settlementEventContext">
<!-- <value name="settlementId" field="settlementId"/> -->
<value name="settlementId" constant="SID"/>
<value name="settlementVersion" field="settlementVersion"/>
<!-- <value name="settlementVersion" constant="001"/> -->
<value name="transactionStatus" field="transactionStatus"/>
<!-- <value name="transactionStatus" constant="NEW"/> -->
<value name="settlementType" field="settlementType"/>
<!-- <value name="settlementType" constant="FAIL"/> -->
<value name="settDepot" field="settDepot"/>
<value name="ownerSPN" field="ownerSPN"/>
<value name="counterpartyAccount" field="counterpartyAccount"/>
<value name="counterpartySPN" field="counterpartySPN"/>
<structure name="settledTransactionContext">
<value name="transactionId" field="transactionId"/>
<value name="transactionDomain" field="transactionDomain"/>
<value name="transactionVersion" field="transactionVersion"/>
<value name="settSystemtradeId" field="settSystemtradeId"/>
<value name="settSystemTradeVersion" field="settSystemTradeVersion"/>
<!-- <value name="settSystemTradeVersion" constant="001"/> -->
<value name="transactionType" field="transactionType"/>
<value name="linkTradeReference" field="linkTradeReference"/>
<!-- <value name="linkTradeReference" constant=""/> -->
<value name="contractualSettlementDate" field="contractualSettlementDate"/>
<value name="ownerBookId" field="ownerBookId"/>
<value name="fullySettledInd" field="fullySettledInd"/>
<!-- <value name="fullySettledInd" constant=""/> -->
<structure name="settledInstrumentContext">
<structure field="instrumentInfo"/>
</structure>
<structure name="cashSettlementContext">
<structure field="cashInfo"/>
</structure>
<structure name="failedSettlement">
<value name="settlementMethod" field="settlementMethod"/>
</structure>
</structure>
</structure>
</structure>
</mapping>
<mapping name="settledInstrumentContext" class="com.jpmorgan.pathclear.siml.common.domainobjects.InstrumentInfo">
<value name="instrument" field="instrument"/>
<value name="receiveOrDeliver" field="receiveOrDeliver"/>
<value name="nominal" field="nominal"/>
<value name="actualSettlementDate" field="actualSettlementDate"/>
</mapping>
<mapping name="cashSettlementContext" class="com.jpmorgan.pathclear.siml.common.domainobjects.CashInfo">
<value name="cashAmountCurrency" field="cashAmountCurrency"/>
<value name="receiveOrDeliver" field="receiveOrDeliver"/>
<value name="cashAmount" field="cashAmount"/>
<value name="actualSettlementDate" field="actualSettlementDate"/>
</mapping>
<mapping name="messageInfo" class="com.jpmorgan.pathclear.siml.common.domainobjects.MessageInfo">
<value name="messageId" field="messageId"/>
<value name="msgDate" field="msgDate"/>
<value name="messageVersion" field="messageVersion"/>
</mapping>
</binding>
This transmission may contain information that is privileged,
confidential, legally privileged, and/or exempt from disclosure
under applicable law. If you are not the intended recipient, you
are hereby notified that any disclosure, copying, distribution, or
use of the information contained herein (including any reliance
thereon) is STRICTLY PROHIBITED. Although this transmission and
any attachments are believed to be free of any virus or other
defect that might affect any computer system into which it is
received and opened, it is the responsibility of the recipient to
ensure that it is virus free and no responsibility is accepted by
JPMorgan Chase & Co., its subsidiaries and affiliates, as
applicable, for any loss or damage arising in any way from its use.
If you received this transmission in error, please immediately
contact the sender and destroy the material in its entirety,
whether in electronic or hard copy format. Thank you.
------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ jibx-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jibx-users
