[jira] [Created] (XMLBEANS-496) org.apache.xmlbeans.impl.values.XmlAnyTypeImpl cannot be cast to AttachmentType

2013-01-10 Thread Adinarayana (JIRA)
Adinarayana created XMLBEANS-496:


 Summary: org.apache.xmlbeans.impl.values.XmlAnyTypeImpl cannot be 
cast to AttachmentType
 Key: XMLBEANS-496
 URL: https://issues.apache.org/jira/browse/XMLBEANS-496
 Project: XMLBeans
  Issue Type: Bug
  Components: XmlObject
Affects Versions: Version 2.5
 Environment: Jboss7 application serverver and windows XP environment
Reporter: Adinarayana


I am getting above exception

here is my sample xsd e:
xsd:choice
xsd:element name=UploadMetadata 
type=AttachmentType /
xsd:element name=ExportMetadata 
type=AttachmentType /
/xsd:choice

xsd:complexType name=AttachmentType
xsd:sequence
xsd:element name=FileName type=xsd:string 
minOccurs=1 /
xsd:element name=FileType type=xsd:string 
minOccurs=1 /
xsd:element name=BinaryData type=xsd:base64Binary
minOccurs=1 /
/xsd:sequence
/xsd:complexType

it's failing in the following java code 

AttachmentType attachmentType = null;

if (upldMetadataReqType.isSetUploadMetadata()) {
//it's working for getUploadMetaData()
attachmentType = upldMetadataReqType.getUploadMetadata();
}else {

// getting the error when i am trying to access getExportmetadata()
attachmentType = upldMetadataReqType.getExportMetadata();
}


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

-
To unsubscribe, e-mail: dev-unsubscr...@xmlbeans.apache.org
For additional commands, e-mail: dev-h...@xmlbeans.apache.org



[GUMP@vmgump]: Project xml-xmlbeans-v1 (in module xml-xmlbeans) failed

2013-01-10 Thread Robert Burrell Donkin
To whom it may engage...

This is an automated request, but not an unsolicited one. For 
more information please visit http://gump.apache.org/nagged.html, 
and/or contact the folk at gene...@gump.apache.org.

Project xml-xmlbeans-v1 has an issue affecting its community integration.
This issue affects 4 projects,
 and has been outstanding for 303 runs.
The current state of this project is 'Failed', with reason 'Build Failed'.
For reference only, the following projects are affected by this:
- jmeter-svn :  Pure Java load testing and performance measurement tool.
   ...
- jmeter-test :  Pure Java load testing and performance measurement tool.
   ...
- rhino :  JavaScript for Java
- xml-xmlbeans-v1 :  XML Beans Object - Java Binding Tool


Full details are available at:
http://vmgump.apache.org/gump/public/xml-xmlbeans/xml-xmlbeans-v1/index.html

That said, some information snippets are provided here.

The following annotations (debug/informational/warning/error messages) were 
provided:
 -INFO- Failed with reason build failed
 -INFO- Failed to extract fallback artifacts from Gump Repository



The following work was performed:
http://vmgump.apache.org/gump/public/xml-xmlbeans/xml-xmlbeans-v1/gump_work/build_xml-xmlbeans_xml-xmlbeans-v1.html
Work Name: build_xml-xmlbeans_xml-xmlbeans-v1 (Type: Build)
Work ended in a state of : Failed
Elapsed: 1 min 48 secs
Command Line: /usr/lib/jvm/java-7-oracle/bin/java -Djava.awt.headless=true 
-Dbuild.sysclasspath=only 
-Xbootclasspath/p:/srv/gump/public/workspace/xml-xerces2/build/xercesImpl.jar:/srv/gump/public/workspace/xml-commons/java/external/build/xml-apis.jar
 org.apache.tools.ant.Main -Dgump.merge=/srv/gump/public/gump/work/merge.xml -f 
build.xml bootstrap 
[Working Directory: /srv/gump/public/workspace/xml-xmlbeans]
CLASSPATH: 
/usr/lib/jvm/java-7-oracle/lib/tools.jar:/srv/gump/public/workspace/xml-xmlbeans/build/classes/common:/srv/gump/public/workspace/xml-xmlbeans/build/classes/xmlinputstream:/srv/gump/public/workspace/xml-xmlbeans/build/classes/xmlpublic:/srv/gump/public/workspace/xml-xmlbeans/external/lib/oldxbean.jar:/srv/gump/public/workspace/xml-xmlbeans/build/private/classes/zipcompare:/srv/gump/public/workspace/xml-xmlbeans/build/private/lib/easypo.jar:/srv/gump/public/workspace/xml-xmlbeans/build/private/lib/schemas.jar:/srv/gump/public/workspace/xml-xmlbeans/build/private/lib/enumtest.jar:/srv/gump/public/workspace/xml-xmlbeans/build/private/lib/drt.jar:/srv/gump/public/workspace/xml-xmlbeans/build/private/lib/xstypes.jar:/srv/gump/public/workspace/ant/dist/lib/ant.jar:/srv/gump/public/workspace/ant/dist/lib/ant-launcher.jar:/srv/gump/public/workspace/ant/dist/lib/ant-jmf.jar:/srv/gump/public/workspace/ant/dist/lib/ant-junit.jar:/srv/gump/public/workspace/ant/dist/lib/ant-swin
 
g.jar:/srv/gump/public/workspace/ant/dist/lib/ant-apache-resolver.jar:/srv/gump/public/workspace/ant/dist/lib/ant-apache-xalan2.jar:/srv/gump/public/workspace/xml-commons/java/build/resolver.jar:/srv/gump/public/workspace/xml-commons/java/external/build/xml-apis-ext.jar:/srv/gump/packages/jaxen-1.1-beta-6/jaxen-1.1-beta-6.jar:/srv/gump/public/workspace/junit/dist/junit-11012013.jar:/srv/gump/public/workspace/junit/dist/junit-dep-11012013.jar
-
[javac] Compiling 1 source file to 
/srv/gump/public/workspace/xml-xmlbeans/build/private/classes/zipcompare
[javac] Note: 
/srv/gump/public/workspace/xml-xmlbeans/src/zipcompare/zipcompare/ZipCompare.java
 uses unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
 [java] Comparing build/ar/xbean.jar with build/private/lib/oldxbean.jar:
 [java] schema/system/sXMLCONFIG/nsconfigaebatype.xsb does not match
 [java] schema/system/sXMLTOOLS/definitions05ddelemtype.xsb does not match
 [java] schema/system/sXMLTOOLS/downloadedschemaentry5f6ftype.xsb does not 
match
 [java] schema/system/sXMLSCHEMA/all3c04type.xsb does not match
 [java] schema/system/sXMLSCHEMA/all82daelemtype.xsb does not match
 [java] schema/system/sXMLSCHEMA/attribute83a9type.xsb does not match
 [java] schema/system/sXMLSCHEMA/attributegroupe530type.xsb does not match
 [java] schema/system/sXMLSCHEMA/complexcontentaa7felemtype.xsb does not 
match
 [java] schema/system/sXMLSCHEMA/complexrestrictiontype1b7dtype.xsb does 
not match
 [java] schema/system/sXMLSCHEMA/complextype5dbbtype.xsb does not match
 [java] schema/system/sXMLSCHEMA/elementd189type.xsb does not match
 [java] schema/system/sXMLSCHEMA/elementinall3f33type.xsb does not match
 [java] schema/system/sXMLSCHEMA/explicitgroup4efatype.xsb does not match
 [java] schema/system/sXMLSCHEMA/extensiontypeed4ctype.xsb does not match
 [java] schema/system/sXMLSCHEMA/group7ca6type.xsb does not match
 [java] schema/system/sXMLSCHEMA/keybase3955type.xsb does not match
 [java] schema/system/sXMLSCHEMA/keyref7a1felemtype.xsb does not match