[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jibx-users
Subject:    Re: [jibx-users] TypedArrayMapper of Strings
From:       "???e??? ?a???t?a???" <angel () talent ! gr>
Date:       2004-07-30 18:50:34
Message-ID: 004401c47666$18c238e0$0d00000a () angelino
[Download RAW message or body]

Hi Scott, are sure that this isn't what it says it is ?  a classpath issue ? Before \
looking at anything else, I'd make sure that this weird extremely long-named class \
that jiBX generates is actually on the classpath. 


If it's really not a classpath problem ... you're in trouble i suspect :}

Anyhow, hope I've helped out a bit at least ... 

Angel
O:]
  ----- Original Message ----- 
  From: Scott Stevenson 
  To: jibx-users@lists.sourceforge.net 
  Sent: Friday, July 30, 2004 7:30 PM
  Subject: [jibx-users] TypedArrayMapper of Strings


  I'm trying to write a binding that uses the org.jibx.extras.TypedArrayMapper to \
marshal/unmarchal an array of java.lang.String[].  The binding compiles OK, but I get \
the following exception when trying to run a test:

   

  ERRORwriteXMLFile, org.jibx.runtime.JiBXException: Unable to access binding \
information for class boeing.engineering.leangi3.metadata.ClassInfo

  Make sure classes generated by the binding compiler are available at runtime

  Root cause: java.lang.ClassNotFoundException: \
JiBX_U__cvsProjects_ltk_src_boeing_engineering_leangi3_metadata_bindingFactory

   

  Do I need a custom mapper for String to make this work, or could there be some \
other problem?

   

  Thanks in advance,

   

  Scott.

   

   

    <mapping class="java.lang.String[]" name="String[]"

        marshaller="org.jibx.extras.TypedArrayMapper" 

        unmarshaller="org.jibx.extras.TypedArrayMapper"/>

   


[Attachment #3 (text/html)]

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:o = 
"urn:schemas-microsoft-com:office:office" xmlns:w = 
"urn:schemas-microsoft-com:office:word"><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content=Word.Document name=ProgId>
<META content="MSHTML 6.00.2800.1400" name=GENERATOR>
<META content="Microsoft Word 10" name=Originator><LINK 
href="cid:filelist.xml@01C47628.92DFB3C0" rel=File-List><!--[if gte mso 9]><xml>
 <o:OfficeDocumentSettings>
  <o:DoNotRelyOnCSS/>
 </o:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <w:WordDocument>
  <w:SpellingState>Clean</w:SpellingState>
  <w:GrammarState>Clean</w:GrammarState>
  <w:DocumentKind>DocumentEmail</w:DocumentKind>
  <w:EnvelopeVis/>
  <w:Compatibility>
   <w:BreakWrappedTables/>
   <w:SnapToGridInCell/>
   <w:WrapTextWithPunct/>
   <w:UseAsianBreakRules/>
  </w:Compatibility>
  <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
 </w:WordDocument>
</xml><![endif]-->
<STYLE>@page Section1 {size: 8.5in 11.0in; margin: 1.0in 1.25in 1.0in 1.25in; \
mso-header-margin: .5in; mso-footer-margin: .5in; mso-paper-source: 0; } P.MsoNormal \
{  FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"; \
mso-style-parent: ""; mso-pagination: widow-orphan; mso-fareast-font-family: "Times \
New Roman" }
LI.MsoNormal {
	FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"; \
mso-style-parent: ""; mso-pagination: widow-orphan; mso-fareast-font-family: "Times \
New Roman" }
DIV.MsoNormal {
	FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"; \
mso-style-parent: ""; mso-pagination: widow-orphan; mso-fareast-font-family: "Times \
New Roman" }
A:link {
	COLOR: blue; TEXT-DECORATION: underline; text-underline: single
}
SPAN.MsoHyperlink {
	COLOR: blue; TEXT-DECORATION: underline; text-underline: single
}
A:visited {
	COLOR: purple; TEXT-DECORATION: underline; text-underline: single
}
SPAN.MsoHyperlinkFollowed {
	COLOR: purple; TEXT-DECORATION: underline; text-underline: single
}
SPAN.EmailStyle17 {
	COLOR: windowtext; FONT-FAMILY: Arial; mso-style-type: personal-compose; \
mso-style-noshow: yes; mso-ansi-font-size: 10.0pt; mso-bidi-font-size: 10.0pt; \
mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: \
Arial }
SPAN.SpellE {
	mso-style-name: ""; mso-spl-e: yes
}
SPAN.GramE {
	mso-style-name: ""; mso-gram-e: yes
}
DIV.Section1 {
	page: Section1
}
</STYLE>
<!--[if gte mso 10]>
<style>
 /* Style Definitions */ 
 table.MsoNormalTable
	{mso-style-name:"Table Normal";
	mso-tstyle-rowband-size:0;
	mso-tstyle-colband-size:0;
	mso-style-noshow:yes;
	mso-style-parent:"";
	mso-padding-alt:0in 5.4pt 0in 5.4pt;
	mso-para-margin:0in;
	mso-para-margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:10.0pt;
	font-family:"Times New Roman";}
</style>
<![endif]--></HEAD>
<BODY lang=EN-US style="tab-interval: .5in" vLink=purple link=blue 
bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi Scott, are sure that this isn't what it says it 
is ?&nbsp; a classpath issue ? Before looking at anything else, I'd make sure 
that this weird extremely long-named class that jiBX generates is actually on 
the&nbsp;classpath. </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>If it's really not a classpath problem ... you're 
in trouble i suspect :}</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Anyhow, hope I've helped out a bit at least ... 
</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Angel</FONT></DIV>
<DIV><FONT face=Arial size=2>O:]</FONT></DIV>
<BLOCKQUOTE dir=ltr 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 \
2px solid; MARGIN-RIGHT: 0px">  <DIV style="FONT: 10pt arial">----- Original Message \
----- </DIV>  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
  <A title=sstevenson2@sbcglobal.net 
  href="mailto:sstevenson2@sbcglobal.net">Scott Stevenson</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A 
  title=jibx-users@lists.sourceforge.net 
  href="mailto:jibx-users@lists.sourceforge.net">jibx-users@lists.sourceforge.net</A> \
  </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Friday, July 30, 2004 7:30 PM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> [jibx-users] TypedArrayMapper of 
  Strings</DIV>
  <DIV><BR></DIV>
  <DIV class=Section1>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">I’m trying to write a binding that 
  uses the <SPAN class=SpellE>org.jibx.extras.TypedArrayMapper</SPAN> to 
  marshal/<SPAN class=SpellE>unmarchal</SPAN> an array of <SPAN 
  class=SpellE><SPAN class=GramE>java.lang.String</SPAN></SPAN><SPAN 
  class=GramE>[</SPAN>]. <SPAN style="mso-spacerun: yes">&nbsp;</SPAN>The 
  binding compiles OK, but I get the following exception when trying to run a 
  test:<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <P class=MsoNormal><SPAN class=SpellE><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: \
Arial">ERRORwriteXMLFile</SPAN></FONT></SPAN><FONT   face=Arial size=2><SPAN \
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">, <SPAN   \
class=SpellE>org.jibx.runtime.JiBXException</SPAN>: Unable to access binding   \
information for class   \
boeing.engineering.leangi3.metadata.ClassInfo<o:p></o:p></SPAN></FONT></P>  <P \
class=MsoNormal><FONT face=Arial size=2><SPAN   style="FONT-SIZE: 10pt; FONT-FAMILY: \
Arial">Make sure classes generated by the   binding compiler are available at \
runtime<o:p></o:p></SPAN></FONT></P>  <P class=MsoNormal><FONT face=Arial \
size=2><SPAN   style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Root cause: <SPAN 
  class=SpellE>java.lang.ClassNotFoundException</SPAN>: 
  JiBX_U__cvsProjects_ltk_src_boeing_engineering_leangi3_metadata_bindingFactory<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Do I need a custom <SPAN 
  class=SpellE>mapper</SPAN> for String to make this work, or could there be 
  some other problem?<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Thanks in 
  advance,<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Scott…<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <P class=MsoNormal style="mso-layout-grid-align: none"><FONT 
  face="Courier New" size=2><SPAN 
  style="FONT-SIZE: 10pt; BACKGROUND: white; FONT-FAMILY: 'Courier New'; \
mso-highlight: white"><SPAN   style="mso-spacerun: yes">&nbsp; </SPAN>&lt;mapping \
class="<SPAN   class=SpellE><SPAN class=GramE>java.lang.String</SPAN></SPAN><SPAN 
  class=GramE>[</SPAN>]" name="String[]"</SPAN></FONT><FONT face="Courier New" 
  size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal style="mso-layout-grid-align: none"><FONT 
  face="Courier New" size=2><SPAN 
  style="FONT-SIZE: 10pt; BACKGROUND: white; FONT-FAMILY: 'Courier New'; \
mso-highlight: white"><SPAN   style="mso-spacerun: \
yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN   class=SpellE><SPAN \
class=GramE>marshaller</SPAN></SPAN>="<SPAN   \
class=SpellE>org.jibx.extras.TypedArrayMapper</SPAN>" </SPAN></FONT><FONT   \
face="Courier New" size=2><SPAN   style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier \
New'"><o:p></o:p></SPAN></FONT></P>  <P class=MsoNormal style="mso-layout-grid-align: \
none"><FONT   face="Courier New" size=2><SPAN 
  style="FONT-SIZE: 10pt; BACKGROUND: white; FONT-FAMILY: 'Courier New'; \
mso-highlight: white"><SPAN   style="mso-spacerun: \
yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN   \
class=SpellE>unmarshaller</SPAN>="<SPAN   \
class=SpellE>org.jibx.extras.TypedArrayMapper</SPAN>"/&gt;</SPAN></FONT><FONT   \
face="Courier New" size=2><SPAN   style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier \
New'"><o:p></o:p></SPAN></FONT></P>  <P class=MsoNormal><FONT face=Arial size=2><SPAN \
  style="FONT-SIZE: 10pt; FONT-FAMILY: \
Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P></DIV></BLOCKQUOTE></BODY></HTML>


-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic