XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Conferences Close Tree View
+ Stylus Studio Feature Requests (1192)
+ Stylus Studio Technical Forum (14621)
- Website Feedback (249)
-> - Pasar Stylus Studio a otra PC (1)
-> + 'Find' functionality - annoyin... (2)
-> - Pinterest contact info (1)
-> - Chrome seems to post duplicate... (1)
-> - SSDN was under attack (1)
-> + Add SS to Wikipedia comparison... (2)
-> - can't uninstall StylusStudio (1)
-> - cannot get evaluation key (1)
-> + difficult (7)
-> - difficult (1)
-> - License Authentication Failed. (1)
-> + Msg for SSDN Admin (2)
-> - Where is there a Changelog for... (1)
-> - Stylus Studio amount of dedica... (1)
-> + Problems with Evaluation Key (3)
-> + AUP Upgrade to the Studio 2011... (2)
-> + Forum thread list: Add name to... (2)
-> + OSs Supported by Current Versi... (2)
-> + not able to email to stylusstu... (6)
-> + HTML to XSLT (2)
-> - Validate XML (1)
-> + Order of website search result... (2)
-> + ver 2010 download size (3)
-> + A system error occured while s... (2)
-> - email digest URLs (1)
-> + Questions on Licensing per use... (2)
-> + Unable to download Stylus Stud... (5)
-> + Contace Email Not Working (2)
-> + Phone Number (3)
-> + Can't find a form on the site ... (2)
-> + XSLT WYSIWYG (3)
-> - What powers this board? (1)
-> - Flash Demo on your site needs ... (1)
-> + error on opening Stylus Studio (6)
-> + Disappearing message contents ... (3)
-> + Inconsistent usage of quotes i... (5)
-> + Updates . Build version (web p... (4)
-> + ide.chm file (2)
-> + XmlDex list (2)
-> - Search options? (1)
-> + Endless loop in upload of atta... (7)
-> + http://www.stylusstudio.com/co... (3)
-> - From AOL/Google Sponsored Link... (1)
-> + Evaluation key not sent to my ... (2)
-> + New to this|| MySQL (3)
-> + trialware problem (2)
-> + Page Missing Link (2)
-> + email gateway only one way now... (3)
-> + XSLT Stylesheet Editor (2)
-> + Registering Stylus Studio (2)
-> + New to all this! (3)
-> + DTD Parser page - under constr... (2)
-> + fop component (2)
-> + Problem in converting XML Sche... (2)
-> - Problems with the java binding... (3)
-> ->Problems with the java bi...
-> ->Problems with the java bi...
-> + Questions/suggestions about th... (3)
-> + XML RECORD (2)
-> + SSDN Performance (2)
-> + X12 to XML (837) (7)
-> + Please describe summary of enh... (2)
-> + trailware problems (6)
-> + Typo in File upload window (2)
-> + Video plays too quickly (4)
-> + Privacy policy violated (3)
-> - Developer Network User Info di... (1)
-> + email postings to 'stylus-stud... (2)
-> + Possible to URL decode content... (4)
-> + What email address do I send p... (2)
-> + Error When Attempting to (2)
-> + Editing posts & a suggestion. (3)
-> - July Newsletter: The Stylus St... (1)
-> + Document Wizards: dtd to xml ... (2)
-> + Help documents not helpful (3)
-> - New Stylus Scoop Newsletter (1)
-> + How do I unsubscribe from your... (3)
-> - SSDN is now faster (1)
-> + Topic is truncated when doing ... (2)
-> + Posting on your conference boa... (2)
-> - What a scoop!! February Newsle... (1)
-> - Auto log out is VERY frustrati... (1)
-> - Focus on XQuery - Stylus Scoop... (1)
-> + Probs on competitive upgrade p... (2)
-> - December Newsletter - Focus on... (1)
-> + both pointers for xquery tutor... (4)
-> - Product Review: Stylus Studio ... (1)
-> - Thread deletion (1)
-> + Evaluation download (5)
-> - New Stylus Studio Ad - Solving... (1)
-> - October Stylus Studio Newslett... (1)
-> - New Parent treenode - most vie... (1)
-> + thanks for extra work (2)
-> + navigation javascript issues (4)
-> - The Stylus Scoop September Iss... (1)
-> + View thread by user (2)
-> + Folder marked as read (2)
-> - XML technology talk with Dr. M... (1)
-> + Set a thread flag to "review" (4)
-> - Stylus Studio Website now in B... (1)
-> + American date time format (4)
-> + Topics and their Date time sta... (2)
-> + Your website - great (2)
-> + Stylus Studio T-Shirts Have Be... (2)
-> - Links now working in SSDN XML ... (1)
-> + post text box way to narrow (3)
-- [1-20] [21-40] [41-60] Next
+ XSLT Help and Discussion (7625)
+ XQuery Help and Discussion (2017)
+ Stylus Studio FAQs (159)
+ Stylus Studio Code Samples & Utilities (364)
+ Stylus Studio Announcements (113)
Topic  
Postnext
Michael PongracSubject: Problems with the java binding code generation from schema.
Author: Michael Pongrac
Date: 24 Jul 2006 08:54 AM
Originally Posted: 24 Jul 2006 08:52 AM
Could you post this to SEDAN?
http://www.stylusstudio.com/SSDN/

-----Original Message-----
From: Pongrac, Michael [mailto:]
Sent: Monday, July 24, 2006 7:51 AM
To: Larry Kim
Subject: AW: Thank you for attending today's webinar

Hello again Mr. Kim,

It seems as though there are problems with the code generation features as well. I took the schema definition Satzdaten2.xsd and tried to generate the Java bindings and here are the results:

Compiler
Classpath:"c:\win16app\jintegra\lib\jintegra.jar";"c:\win16app\jintegra\
lib\jintegra.jar";"c:\win16app\jintegra\lib\jintegra.jar";"c:\win16app\j
integra\lib\jintegra.jar";"D:\ERSA\Entwicklung\StylusStudio\final
test\java";"C:\Programme\Stylus Studio 2006 Release 3 XML Enterprise Edition\bin\lib\jaxb\jaxb\lib\jaxb-api.jar";"C:\Programme\Stylus Studio
2006 Release 3 XML Enterprise
Edition\bin\lib\jaxb\jaxb\lib\jaxb-impl.jar";"C:\Programme\Stylus Studio
2006 Release 3 XML Enterprise
Edition\bin\lib\jaxb\jaxb\lib\jaxb-libs.jar";"C:\Programme\Stylus Studio
2006 Release 3 XML Enterprise
Edition\bin\lib\jaxb\jwsdp-shared\lib\jax-qname.jar";"C:\Programme\Stylu
s Studio 2006 Release 3 XML Enterprise
Edition\bin\lib\jaxb\jwsdp-shared\lib\namespace.jar";"C:\Programme\Stylu
s Studio 2006 Release 3 XML Enterprise
Edition\bin\lib\jaxb\jwsdp-shared\lib\relaxngDatatype.jar"
Compiling...
Version.java
Satz.java
Modus.java
Main.java
KonfigurationDatenType.java
KonfigurationDaten.java
GeschwZX005BMmX002FSX005D.java
GeschwXX002FYX005BMmX002FSX005D.java
Firma.java
EndpositionZX005BMmX005D.java
EndpositionYX005BMmX005D.java
EndpositionXX005BMmX005D.java
DosierungX005BX0025X005D.java
DatensaetzeType.java
Datensaetze.java
DateiInfoType.java
DateiInfo.java
AbsenkzeitX005BSX005D.java
AbsenkwertX005BX0025X005D.java
VersionImpl.java
SatzImpl.java
ModusImpl.java
KonfigurationDatenTypeImpl.java
KonfigurationDatenImpl.java
JAXBVersion.java
GeschwZX005BMmX002FSX005DImpl.java
GeschwXX002FYX005BMmX002FSX005DImpl.java
FirmaImpl.java
EndpositionZX005BMmX005DImpl.java
EndpositionYX005BMmX005DImpl.java
EndpositionXX005BMmX005DImpl.java
DosierungX005BX0025X005DImpl.java
DatensatzImpl.java
DatensaetzeTypeImpl.java
DatensaetzeImpl.java
DateiInfoTypeImpl.java
DateiInfoImpl.java
AbsenkzeitX005BSX005DImpl.java
AbsenkwertX005BX0025X005DImpl.java
XMLSerializer.java
XMLSerializable.java
ValidatorImpl.java
D:\ERSA\ENTWIC~1\STYLUS~1\FINALT~1\java\Satzdaten2\impl\runtime\Validati
onContext.java:110: warning: [unchecked] unchecked call to add(E) as a member of the raw type java.util.HashSet
if(!IDs.add(value)) {
^
D:\ERSA\ENTWIC~1\STYLUS~1\FINALT~1\java\Satzdaten2\impl\runtime\Validati
onContext.java:127: warning: [unchecked] unchecked call to put(K,V) as a member of the raw type java.util.HashMap
IDREFs.put(value,referer);
^
D:\ERSA\ENTWIC~1\STYLUS~1\FINALT~1\java\Satzdaten2\impl\runtime\Namespac
eContextImpl.java:162: warning: [unchecked] unchecked call to put(K,V) as a member of the raw type java.util.Map
decls.put( prefix, namespaceUri );
^
D:\ERSA\ENTWIC~1\STYLUS~1\FINALT~1\java\Satzdaten2\impl\runtime\Namespac
eContextImpl.java:163: warning: [unchecked] unchecked call to put(K,V) as a member of the raw type java.util.Map
reverseDecls.put( namespaceUri, prefix );
^
D:\ERSA\ENTWIC~1\STYLUS~1\FINALT~1\java\Satzdaten2\impl\runtime\Namespac
eContextImpl.java:178: warning: [unchecked] unchecked call to put(K,V) as a member of the raw type java.util.Map
decls.put( prefix, namespaceUri );
^
D:\ERSA\ENTWIC~1\STYLUS~1\FINALT~1\java\Satzdaten2\impl\runtime\Namespac
eContextImpl.java:179: warning: [unchecked] unchecked call to put(K,V) as a member of the raw type java.util.Map
reverseDecls.put( namespaceUri, prefix );
^
D:\ERSA\ENTWIC~1\STYLUS~1\FINALT~1\java\Satzdaten2\impl\runtime\Namespac
eContextImpl.java:221: warning: [unchecked] unchecked call to add(E) as a member of the raw type java.util.Set
if(prefix!=null) s.add(prefix);
^
D:\ERSA\ENTWIC~1\STYLUS~1\FINALT~1\java\Satzdaten2\impl\runtime\Namespac
eContextImpl.java:224: warning: [unchecked] unchecked call to add(E) as a member of the raw type java.util.Set
s.add("");
^
D:\ERSA\ENTWIC~1\STYLUS~1\FINALT~1\java\Satzdaten2\impl\runtime\Namespac
eContextImpl.java:227: warning: [unchecked] unchecked call to add(E) as a member of the raw type java.util.Set
s.add(e.nextElement());
^
D:\ERSA\ENTWIC~1\STYLUS~1\FINALT~1\java\Satzdaten2\impl\runtime\GrammarI
nfoFacade.java:87: warning: [unchecked] unchecked call to add(E) as a member of the raw type java.util.ArrayList
probePointList.add( points[j] );
^
D:\ERSA\ENTWIC~1\STYLUS~1\FINALT~1\java\Satzdaten2\impl\runtime\GrammarI
nfoFacade.java:92: warning: [unchecked] unchecked call to
<T>toArray(T[]) as a member of the raw type java.util.ArrayList
return (String[])probePointList.toArray( new String[
probePointList.size() ] );
^ D:\ERSA\ENTWIC~1\STYLUS~1\FINALT~1\java\Satzdaten2\impl\runtime\GrammarI
nfoFacade.java:173: warning: [unchecked] unchecked call to add(E) as a member of the raw type java.util.ArrayList
gis.add( grammarInfo );
^
D:\ERSA\ENTWIC~1\STYLUS~1\FINALT~1\java\Satzdaten2\impl\runtime\GrammarI
nfoFacade.java:186: warning: [unchecked] unchecked call to
<T>toArray(T[]) as a member of the raw type java.util.ArrayList
(GrammarInfo[])(gis.toArray( new GrammarInfo[ gis.size() ] )
) );
^ D:\ERSA\ENTWIC~1\STYLUS~1\FINALT~1\java\Satzdaten2\impl\runtime\SAXMarsh
aller.java:344: warning: [unchecked] unchecked call to add(E) as a member of the raw type java.util.Set
objectsWithId.add(owner);
^
D:\ERSA\ENTWIC~1\STYLUS~1\FINALT~1\java\Satzdaten2\impl\runtime\SAXMarsh
aller.java:348: warning: [unchecked] unchecked call to add(E) as a member of the raw type java.util.Set
idReferencedObjects.add(obj);
^
D:\ERSA\ENTWIC~1\STYLUS~1\FINALT~1\java\Satzdaten2\impl\runtime\SAXMarsh
aller.java:361: warning: [unchecked] unchecked call to
removeAll(java.util.Collection<?>) as a member of the raw type java.util.Set
idReferencedObjects.removeAll(objectsWithId);
^
D:\ERSA\ENTWIC~1\STYLUS~1\FINALT~1\java\Satzdaten2\impl\runtime\SAXUnmar
shallerHandlerImpl.java:295: warning: [unchecked] unchecked conversion
found : java.util.List
required: java.util.List<? extends T>
getAllPrefixesInList(uri)).iterator();
^
D:\ERSA\ENTWIC~1\STYLUS~1\FINALT~1\java\Satzdaten2\impl\runtime\SAXUnmar
shallerHandlerImpl.java:294: warning: [unchecked] unchecked method
invocation: <T>unmodifiableList(java.util.List<? extends T>) in java.util.Collections is applied to (java.util.List)

return Collections.unmodifiableList(
^ D:\ERSA\ENTWIC~1\STYLUS~1\FINALT~1\java\Satzdaten2\impl\runtime\SAXUnmar
shallerHandlerImpl.java:302: warning: [unchecked] unchecked call to
add(E) as a member of the raw type java.util.List
a.add(XMLConstants.XML_NS_PREFIX);
^
D:\ERSA\ENTWIC~1\STYLUS~1\FINALT~1\java\Satzdaten2\impl\runtime\SAXUnmar
shallerHandlerImpl.java:306: warning: [unchecked] unchecked call to
add(E) as a member of the raw type java.util.List
a.add(XMLConstants.XMLNS_ATTRIBUTE);
^
D:\ERSA\ENTWIC~1\STYLUS~1\FINALT~1\java\Satzdaten2\impl\runtime\SAXUnmar
shallerHandlerImpl.java:316: warning: [unchecked] unchecked call to
add(E) as a member of the raw type java.util.List
a.add(nsBind[i]);
^
D:\ERSA\ENTWIC~1\STYLUS~1\FINALT~1\java\Satzdaten2\impl\runtime\SAXUnmar
shallerHandlerImpl.java:525: warning: [unchecked] unchecked call to
put(K,V) as a member of the raw type java.util.Hashtable
idmap.put( id, getCurrentHandler().owner() );
^
22 warnings


Here is the schema definition:

<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSpy v2006 rel. 3 sp1 (http://www.altova.com) by Michael Pongrac (ERSA GmbH) -->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
<xs:element name="KonfigurationDaten">
<xs:complexType>
<xs:sequence>
<xs:element ref="DateiInfo" maxOccurs="unbounded"/>
<xs:element ref="Datensaetze"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="DateiInfo">
<xs:complexType>
<xs:sequence>
<xs:element ref="Firma"/>
<xs:element ref="Version"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="Firma" type="xs:string"/>
<xs:element name="Version" type="xs:NCName"/>
<xs:element name="Datensaetze">
<xs:complexType>
<xs:sequence>
<xs:element ref="Datensatz" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="Datensatz">
<xs:complexType>
<xs:sequence>
<xs:element ref="Satz"/>
<xs:sequence minOccurs="0">
<xs:choice maxOccurs="unbounded">
<xs:element ref="Dosierung__x005B__x0025__x005D_"/>
<xs:element ref="Endposition_X__x005B_mm_x005D_"/>
<xs:element ref="Endposition_Y__x005B_mm_x005D_"/>
<xs:element ref="Geschw._X_x002F_Y__x005B_mm_x002F_s_x005D_"/>
<xs:element ref="Modus"/>
<xs:element ref="Z_während_Fahrt__x005B_mm_x005D_"/>
</xs:choice>
<xs:element ref="Endposition_Z__x005B_mm_x005D_"/>
<xs:element ref="Geschw._Z__x005B_mm_x002F_s_x005D_"/>
<xs:element ref="Wellenhöhe__x005B__x0025__x005D_"/>
<xs:element ref="Lötzeit__x005B_s_x005D_"/>
</xs:sequence>
<xs:sequence minOccurs="0">
<xs:element ref="Absenkwert__x005B__x0025__x005D_"/>
<xs:element ref="Absenkzeit__x005B_s_x005D_"/>
</xs:sequence>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="Satz" type="xs:integer"/>
<xs:element name="Dosierung__x005B__x0025__x005D_" type="xs:integer"/>
<xs:element name="Endposition_X__x005B_mm_x005D_" type="xs:decimal"/>
<xs:element name="Endposition_Y__x005B_mm_x005D_" type="xs:integer"/>
<xs:element name="Geschw._X_x002F_Y__x005B_mm_x002F_s_x005D_" type="xs:integer"/>
<xs:element name="Modus" type="xs:integer"/>
<xs:element name="Z_während_Fahrt__x005B_mm_x005D_" type="xs:decimal"/>
<xs:element name="Endposition_Z__x005B_mm_x005D_" type="xs:decimal"/>
<xs:element name="Geschw._Z__x005B_mm_x002F_s_x005D_" type="xs:integer"/>
<xs:element name="Wellenhöhe__x005B__x0025__x005D_" type="xs:integer"/>
<xs:element name="Lötzeit__x005B_s_x005D_" type="xs:decimal"/>
<xs:element name="Absenkwert__x005B__x0025__x005D_" type="xs:integer"/>
<xs:element name="Absenkzeit__x005B_s_x005D_" type="xs:integer"/>
</xs:schema>



Java 5.0 with option -source 1.4

Postnext
Ivan PedruzziSubject: Problems with the java binding code generation from schema.
Author: Ivan Pedruzzi
Date: 24 Jul 2006 10:03 AM

Hi Michael,

What you see are not errors but warnings; starting with Java 1.5 all built-in collections are Generic based, JAXB generates code compatible with 1.4 therefore you may see

"class Foo uses unchecked or unsafe operations."

The Java code still compiles and executes fine.
When adding the following compiler option you get a more verbose description.

-Xlint:unchecked

Hope this helps
Ivan Pedruzzi
Stylus Studio Team

Posttop
Michael PongracSubject: Problems with the java binding code generation from schema.
Author: Michael Pongrac
Date: 24 Jul 2006 10:06 AM
It helps some. Thanks.

   
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.