JAXB 1.0 - IllegalArgumentException

Hi,
I'm using JAXB 1.0 and am getting an error running xjc on a particularly complex schema file:
xjc -p test1 test1.xsd
parsing a schema...
Exception in thread "main" java.lang.IllegalArgumentException
        at com.sun.xml.xsom.impl.ElementDecl.<init>(ElementDecl.java:40)
        at com.sun.xml.xsom.impl.parser.state.elementDeclBody.makeResult(elementDeclBody.java:615)
        at com.sun.xml.xsom.impl.parser.state.elementDeclBody.text(elementDeclBody.java:419)
        at com.sun.xml.xsom.impl.parser.state.NGCCRuntime.processPendingText(NGCCRuntime.java:188)
        at com.sun.xml.xsom.impl.parser.state.NGCCRuntime.endElement(NGCCRuntime.java:248)
        at org.xml.sax.helpers.XMLFilterImpl.endElement(Unknown Source)
        ... (truncated for length) ...Anyone else seen this before? Is there any way to enable some more verbose messages to try to figure out where in the schema file the problem is occurring?
Thanks in advance,
Connor

Im also getting this same error on a complicated schema (below).
Does anyone know of a way to enable more vebose debugging or know what causes this?
<?xml version="1.0"?>
<xs:schema xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:import namespace="http://www.w3.org/1999/xlink" schemaLocation="http://www.oasis-open.org/committees/ebxml-msg/schema/xlink.xsd"/>
<xs:element name="WMT_MS_Capabilities">
<xs:complexType>
<xs:sequence>
     <xs:element ref="Service" />
     <xs:element ref="Capability" />
</xs:sequence>
<xs:attribute name="version" type="xs:string" fixed="1.1.0" />
<xs:attribute name="updateSequence" type="xs:string" />
</xs:complexType>
</xs:element>
<xs:element name="Name" type="xs:string" />
<xs:element name="Title" type="xs:string" />
<xs:element name="Abstract" type="xs:string" />
<xs:element name="OnlineResource">
<xs:complexType>
<xs:attribute ref="xlink:type" />
<xs:attribute ref="xlink:href" use="required" />
</xs:complexType>
</xs:element>
<xs:element name="Format" type="xs:string" />
<xs:element name="Service">
<xs:complexType>
<xs:sequence>
     <xs:element ref="Name" />
     <xs:element ref="Title" />
     <xs:element minOccurs="0" ref="Abstract" />
     <xs:element minOccurs="0" ref="KeywordList" />
     <xs:element ref="OnlineResource" />
     <xs:element minOccurs="0" ref="ContactInformation" />
     <xs:element minOccurs="0" ref="Fees" />
     <xs:element minOccurs="0" ref="AccessConstraints" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="KeywordList">
<xs:complexType>
<xs:sequence>
     <xs:element minOccurs="0" maxOccurs="unbounded" ref="Keyword" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="Keyword" type="xs:string" />
<xs:element name="ContactInformation">
<xs:complexType>
<xs:sequence>
     <xs:element minOccurs="0" ref="ContactPersonPrimary" />
     <xs:element minOccurs="0" ref="ContactPosition" />
     <xs:element minOccurs="0" ref="ContactAddress" />
     <xs:element minOccurs="0" ref="ContactVoiceTelephone" />
     <xs:element minOccurs="0" ref="ContactFacsimileTelephone" />
     <xs:element minOccurs="0" ref="ContactElectronicMailAddress" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="ContactPersonPrimary">
<xs:complexType>
<xs:sequence>
     <xs:element ref="ContactPerson" />
     <xs:element ref="ContactOrganization" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="ContactPerson" type="xs:string" />
<xs:element name="ContactOrganization" type="xs:string" />
<xs:element name="ContactPosition" type="xs:string" />
<xs:element name="ContactAddress">
<xs:complexType>
<xs:sequence>
     <xs:element ref="AddressType" />
     <xs:element ref="Address" />
     <xs:element ref="City" />
     <xs:element ref="StateOrProvince" />
     <xs:element ref="PostCode" />
     <xs:element ref="Country" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="AddressType" type="xs:string" />
<xs:element name="Address" type="xs:string" />
<xs:element name="City" type="xs:string" />
<xs:element name="StateOrProvince" type="xs:string" />
<xs:element name="PostCode" type="xs:string" />
<xs:element name="Country" type="xs:string" />
<xs:element name="ContactVoiceTelephone" type="xs:string" />
<xs:element name="ContactFacsimileTelephone" type="xs:string" />
<xs:element name="ContactElectronicMailAddress" type="xs:string" />
<xs:element name="Fees" type="xs:string" />
<xs:element name="AccessConstraints" type="xs:string" />
<xs:element name="Capability">
<xs:complexType>
<xs:sequence>
     <xs:element ref="Request" />
     <xs:element ref="Exception" />
     <xs:element minOccurs="0" ref="VendorSpecificCapabilities" />
     <xs:element minOccurs="0" ref="UserDefinedSymbolization" />
     <xs:element minOccurs="0" ref="Layer" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="Request">
<xs:complexType>
<xs:sequence>
     <xs:element ref="GetCapabilities" />
     <xs:element ref="GetMap" />
     <xs:element minOccurs="0" ref="GetFeatureInfo" />
     <xs:element minOccurs="0" ref="DescribeLayer" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="GetCapabilities">
<xs:complexType>
<xs:sequence>
     <xs:element maxOccurs="unbounded" ref="Format" />
     <xs:element maxOccurs="unbounded" ref="DCPType" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="GetMap">
<xs:complexType>
<xs:sequence>
     <xs:element maxOccurs="unbounded" ref="Format" />
     <xs:element maxOccurs="unbounded" ref="DCPType" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="GetFeatureInfo">
<xs:complexType>
<xs:sequence>
     <xs:element maxOccurs="unbounded" ref="Format" />
     <xs:element maxOccurs="unbounded" ref="DCPType" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="DescribeLayer">
<xs:complexType>
<xs:sequence>
     <xs:element maxOccurs="unbounded" ref="Format" />
     <xs:element maxOccurs="unbounded" ref="DCPType" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="DCPType">
<xs:complexType>
<xs:sequence>
     <xs:element ref="HTTP" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="HTTP">
<xs:complexType>
<xs:choice maxOccurs="unbounded">
     <xs:element ref="Get" />
     <xs:element ref="Post" />
</xs:choice>
</xs:complexType>
</xs:element>
<xs:element name="Get">
<xs:complexType>
<xs:sequence>
     <xs:element ref="OnlineResource" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="Post">
<xs:complexType>
<xs:sequence>
     <xs:element ref="OnlineResource" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="Exception">
<xs:complexType>
<xs:sequence>
     <xs:element maxOccurs="unbounded" ref="Format" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="UserDefinedSymbolization">
<xs:complexType>
<xs:attribute name="SupportSLD" default="0">
     <xs:simpleType>
     <xs:restriction base="xs:string">
     <xs:enumeration value="0" />
     <xs:enumeration value="1" />
     </xs:restriction>
     </xs:simpleType>
</xs:attribute>
<xs:attribute name="UserLayer" default="0">
     <xs:simpleType>
     <xs:restriction base="xs:string">
     <xs:enumeration value="0" />
     <xs:enumeration value="1" />
     </xs:restriction>
     </xs:simpleType>
</xs:attribute>
<xs:attribute name="UserStyle" default="0">
     <xs:simpleType>
     <xs:restriction base="xs:string">
     <xs:enumeration value="0" />
     <xs:enumeration value="1" />
     </xs:restriction>
     </xs:simpleType>
</xs:attribute>
<xs:attribute name="RemoteWFS" default="0">
     <xs:simpleType>
     <xs:restriction base="xs:string">
     <xs:enumeration value="0" />
     <xs:enumeration value="1" />
     </xs:restriction>
     </xs:simpleType>
</xs:attribute>
</xs:complexType>
</xs:element>
<xs:element name="Layer">
<xs:complexType>
<xs:sequence>
     <xs:element minOccurs="0" ref="Name" />
     <xs:element ref="Title" />
     <xs:element minOccurs="0" ref="Abstract" />
     <xs:element minOccurs="0" ref="KeywordList" />
     <xs:element minOccurs="0" ref="SRS" />
     <xs:element minOccurs="0" ref="LatLonBoundingBox" />
     <xs:element minOccurs="0" maxOccurs="unbounded" ref="BoundingBox" />
     <xs:element minOccurs="0" maxOccurs="unbounded" ref="Dimension" />
     <xs:element minOccurs="0" maxOccurs="unbounded" ref="Extent" />
     <xs:element minOccurs="0" ref="Attribution" />
     <xs:element minOccurs="0" maxOccurs="unbounded" ref="AuthorityURL" />
     <xs:element minOccurs="0" maxOccurs="unbounded" ref="Identifier" />
     <xs:element minOccurs="0" maxOccurs="unbounded" ref="MetadataURL" />
     <xs:element minOccurs="0" maxOccurs="unbounded" ref="DataURL" />
     <xs:element minOccurs="0" maxOccurs="unbounded" ref="FeatureListURL" />
     <xs:element minOccurs="0" maxOccurs="unbounded" ref="Style" />
     <xs:element minOccurs="0" ref="ScaleHint" />
     <xs:element minOccurs="0" maxOccurs="unbounded" ref="Layer" />
</xs:sequence>
<xs:attribute name="queryable" default="0">
     <xs:simpleType>
     <xs:restriction base="xs:string">
     <xs:enumeration value="0" />
     <xs:enumeration value="1" />
     </xs:restriction>
     </xs:simpleType>
</xs:attribute>
<xs:attribute name="cascaded" type="xs:string" />
<xs:attribute name="opaque" default="0">
     <xs:simpleType>
     <xs:restriction base="xs:string">
     <xs:enumeration value="0" />
     <xs:enumeration value="1" />
     </xs:restriction>
     </xs:simpleType>
</xs:attribute>
<xs:attribute name="noSubsets" default="0">
     <xs:simpleType>
     <xs:restriction base="xs:string">
     <xs:enumeration value="0" />
     <xs:enumeration value="1" />
     </xs:restriction>
     </xs:simpleType>
</xs:attribute>
<xs:attribute name="fixedWidth" type="xs:string" />
<xs:attribute name="fixedHeight" type="xs:string" />
</xs:complexType>
</xs:element>
<xs:element name="SRS" type="xs:string" />
<xs:element name="LatLonBoundingBox">
<xs:complexType>
<xs:attribute name="minx" type="xs:string" use="required" />
<xs:attribute name="miny" type="xs:string" use="required" />
<xs:attribute name="maxx" type="xs:string" use="required" />
<xs:attribute name="maxy" type="xs:string" use="required" />
</xs:complexType>
</xs:element>
<xs:element name="BoundingBox">
<xs:complexType>
<xs:attribute name="SRS" type="xs:string" use="required" />
<xs:attribute name="minx" type="xs:string" use="required" />
<xs:attribute name="miny" type="xs:string" use="required" />
<xs:attribute name="maxx" type="xs:string" use="required" />
<xs:attribute name="maxy" type="xs:string" use="required" />
<xs:attribute name="resx" type="xs:string" />
<xs:attribute name="resy" type="xs:string" />
</xs:complexType>
</xs:element>
<xs:element name="Dimension">
<xs:complexType>
<xs:attribute name="name" type="xs:string" use="required" />
<xs:attribute name="units" type="xs:string" use="required" />
<xs:attribute name="unitSymbol" type="xs:string" />
</xs:complexType>
</xs:element>
<xs:element name="Extent">
<xs:complexType>
<xs:simpleContent>
     <xs:extension base="xs:string">
     <xs:attribute name="name" type="xs:string" use="required" />
     <xs:attribute name="default" type="xs:string" />
     </xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
<xs:element name="Attribution">
<xs:complexType>
<xs:sequence>
     <xs:element minOccurs="0" ref="Title" />
     <xs:element minOccurs="0" ref="OnlineResource" />
     <xs:element minOccurs="0" ref="LogoURL" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="LogoURL">
<xs:complexType>
<xs:sequence>
     <xs:element ref="Format" />
     <xs:element ref="OnlineResource" />
</xs:sequence>
<xs:attribute name="width" type="xs:NMTOKEN" use="required" />
<xs:attribute name="height" type="xs:NMTOKEN" use="required" />
</xs:complexType>
</xs:element>
<xs:element name="MetadataURL">
<xs:complexType>
<xs:sequence>
     <xs:element ref="Format" />
     <xs:element ref="OnlineResource" />
</xs:sequence>
<xs:attribute name="type" use="required">
     <xs:simpleType>
     <xs:restriction base="xs:string">
     <xs:enumeration value="TC211" />
     <xs:enumeration value="FGDC" />
     </xs:restriction>
     </xs:simpleType>
</xs:attribute>
</xs:complexType>
</xs:element>
<xs:element name="AuthorityURL">
<xs:complexType>
<xs:sequence>
     <xs:element ref="OnlineResource" />
</xs:sequence>
<xs:attribute name="name" type="xs:NMTOKEN" use="required" />
</xs:complexType>
</xs:element>
<xs:element name="Identifier">
<xs:complexType>
<xs:simpleContent>
     <xs:extension base="xs:string">
     <xs:attribute name="authority" type="xs:string" use="required" />
     </xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
<xs:element name="DataURL">
<xs:complexType>
<xs:sequence>
     <xs:element ref="Format" />
     <xs:element ref="OnlineResource" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="FeatureListURL">
<xs:complexType>
<xs:sequence>
     <xs:element ref="Format" />
     <xs:element ref="OnlineResource" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="Style">
<xs:complexType>
<xs:sequence>
     <xs:element ref="Name" />
     <xs:element ref="Title" />
     <xs:element minOccurs="0" ref="Abstract" />
     <xs:element minOccurs="0" maxOccurs="unbounded" ref="LegendURL" />
     <xs:element minOccurs="0" ref="StyleSheetURL" />
     <xs:element minOccurs="0" ref="StyleURL" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="LegendURL">
<xs:complexType>
<xs:sequence>
     <xs:element ref="Format" />
     <xs:element ref="OnlineResource" />
</xs:sequence>
<xs:attribute name="width" type="xs:NMTOKEN" use="required" />
<xs:attribute name="height" type="xs:NMTOKEN" use="required" />
</xs:complexType>
</xs:element>
<xs:element name="StyleSheetURL">
<xs:complexType>
<xs:sequence>
     <xs:element ref="Format" />
     <xs:element ref="OnlineResource" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="StyleURL">
<xs:complexType>
<xs:sequence>
     <xs:element ref="Format" />
     <xs:element ref="OnlineResource" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="ScaleHint">
<xs:complexType>
<xs:attribute name="min" type="xs:string" use="required" />
<xs:attribute name="max" type="xs:string" use="required" />
</xs:complexType>
</xs:element>
<xs:element name="VendorSpecificCapabilities" type="xs:string" />
</xs:schema>

Similar Messages

  • Injest XML (JAXB) with Apache CXF on Weblogic 9.2.3

    I have tried all of the suggestions I can find out there, but still can not get Weblogic and CXF to play along when injesting XML.
    CXF is deployed and working in production.
    Now that I want add a method to XML results, I declared with JAX-RS like this:
    @POST
    @Consumes( "application/xml")
    @Path( "{order_id}/" + ANALYSE_PARAM )
    public void reportResult( @PathParam( "order_id") int orderId, AnalyseResults analyseResults ) {
    // NOTE: AnalyseResults is a JAXB object which we've created (i.e. mappings to Java provided)
    However, when this method is invoked, I get this:
    , I get this:
    2011-10-26 14:02:46,766 WARN org.apache.cxf.jaxrs.impl.WebApplicationExceptionMapper - WebApplicationException has been caught : no cause is available
    java.lang.IllegalArgumentException: Unable to access unsupported property javax.xml.stream.supportDTD
    at weblogic.xml.stax.ConfigurationContextBase.check(ConfigurationContextBase.java:60)
    at weblogic.xml.stax.ConfigurationContextBase.setProperty(ConfigurationContextBase.java:54)
    at weblogic.xml.stax.XMLStreamInputFactory.setProperty(XMLStreamInputFactory.java:280)
    at org.apache.cxf.staxutils.StaxUtils.createXMLInputFactory(StaxUtils.java:195)
    at org.apache.cxf.staxutils.StaxUtils.getXMLInputFactory(StaxUtils.java:166)
    at org.apache.cxf.staxutils.StaxUtils.createXMLStreamReader(StaxUtils.java:1164)
    at org.apache.cxf.jaxrs.provider.JAXBElementProvider.unmarshalFromInputStream(JAXBElementProvider.java:214)
    at org.apache.cxf.jaxrs.provider.JAXBElementProvider.doUnmarshal(JAXBElementProvider.java:180)
    at org.apache.cxf.jaxrs.provider.JAXBElementProvider.readFrom(JAXBElementProvider.java:149)
    at org.apache.cxf.jaxrs.utils.JAXRSUtils.readFromMessageBody(JAXRSUtils.java:1013)
    at org.apache.cxf.jaxrs.utils.JAXRSUtils.processParameter(JAXRSUtils.java:594)
    at org.apache.cxf.jaxrs.utils.JAXRSUtils.processParameters(JAXRSUtils.java:559)
    at org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.processRequest(JAXRSInInterceptor.java:230)
    at org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.handleMessage(JAXRSInInterceptor.java:88)
    at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:263)
    at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:118)
    at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:208)
    at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:223)
    at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:166)
    at org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:113)
    at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:184)
    at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:107)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
    at org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:163)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3244)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2010)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1916)
    I've done all the reading out there and taken all the suggestions:
    - the woodstox and stax2 JARs are on my classpath
    - the weblogic-application.xml file has been modified to include (a number of varieties have been tried):
    <prefer-application-packages>
              <package-name>javax.jws.*</package-name>
              <package-name>javax.xml.*</package-name>
              <package-name>org.apache.*</package-name>
    </prefer-application-packages>
    I understand the root of the issue: the System properties / JAR files which are first read by Weblogic force the loading of the weblogic.xml.stax.XMLStreamInputFactory as "the way" to create StAX InputFactories.
    But ... that Factory (for whatever reason) is incompatible with the way that CXF invokes it.
    So ... is there ANY way to get WebLogic to allow CXF to use an alternate parser?

    A support ticket (SR 3-4866617511) with Oracle has confirmed that the Weblogic StAX parser has a defect. A patch is available for WLS 10mp2 (and possibly for 9.2.4).
    However, it is also possible to work around with a different StAX implementation.
    Our choice was Woodstox and after putting the JARs (Woodstox and StaX2 mentioned below plus the xml-apis.jar and a xerces implementation JAR) in WEB-INF/lib and removing the changes to weblogic-application.xml (below), the magic was changing WEB-INF/weblogic.xml file (as described in http://download.oracle.com/docs/cd/E13222_01/wls/docs92/programming/classloading.html )to include:
    <container-descriptor>
    <servlet-reload-check-secs>-1</servlet-reload-check-secs>
    <prefer-web-inf-classes>true</prefer-web-inf-classes>
    </container-descriptor>
    Why does this work?
    By using the "prefer-web-inf-classes" node, the WL Classloader looks first in the JAR files of the Web Application (rather than it's own classes). In this case it finds the META-INF/services/javax.xml.stream.XMLInputFactory from the Woodstox JAR (rather than the one from weblogic.jar). Note how this is not just about loading classes from the WEB-INF/lib JARs first ... it also affects how Weblogic interacts with the JAR Service Provider Interface (SPI ... http://docs.oracle.com/javase/tutorial/sound/SPI-intro.html).
    However, the XercesImpl.jar is becomes necessary because when running without it, the following error occurs:
    javax.xml.datatype.FactoryFinder:Using context class loader: weblogic.utils.classloaders.ChangeAwareClassLoader@1a3c1d6 finder: weblogic.utils.classloaders.CodeGenClassFinder@488280 annotation: appsdirtbiis_dir@btb-ws/ic
    javax.xml.datatype.FactoryFinder:found null in $java.home/jaxp.properties
    javax.xml.datatype.FactoryFinder:loaded from fallback value: org.apache.xerces.jaxp.datatype.DatatypeFactoryImpl
    <Nov 8, 2011 11:58:41 AM EST> <Error> <HTTP> <BEA-101017> <[weblogic.servlet.internal.WebAppServletContext@e02837 - appName: '_appsdir_tbiis_dir', name: '/btb-ws/ic', context-path: '/btb-ws/ic'] Root cause of ServletException.
    java.lang.Error: javax.xml.datatype.DatatypeConfigurationException: Provider org.apache.xerces.jaxp.datatype.DatatypeFactoryImpl not found
    Truncated. see log file for complete stacktrace
    >
    THAT issue is due to the fact that the javaee-5.0.5-api.jar's implementation of javax.xml.datatype.DatatypeFactory provides org.apache.xerces.jaxp.datatype.DatatypeFactoryImpl (rather than com.sun.org.apache.xerces.internal.jaxp.datatype.DatatypeFactoryImpl which is the fallback for the JDK 1.5 implementation that ships with WL 9.2) as the fallback value.
    However, this mechanism is only used because none of the JARs (either in my app or in the standard WL distro) contain an file named "META-INF/services/java.xml.datatype.DatatypeFactory" which points to an existing Xerces implementation.
    The xml-apis.jar was necessary because of unit test I was running on the package. YMMV with the xml-apis.jar.

  • How to create JAXB bindings in jdeveloper 11g for the portlet event payload

    I have three projects in JDeveloper 11.1.1.6:
    - PortletProducer - provides some portlets
    - PortletUser - makes use of these portlets
    - SomeData - provides serializable classes for portlets event payload
    I configured SomePortlet in PortletProducer to send events of serializable type SomeDataClass (from SomeData project), but whenever i am trying to send event of this class, i am getting an exception:
    oracle.portlet.client.container.PortletRemoteException: oracle.portlet.server.container.OperationFailedException: oracle.portlet.wsrp.v2.OperationFailedException: Internal Server Error: java.lang.IllegalArgumentException: Event [someEvent] value is of type [class somedata.SomeDataClass] which does not have a valid JAXB binding configured; configuration may be done in the WEB-INF/portlet.xml or WEB-INF/wlp-framework-common-config.xml files..;
    But i have no idea how to perform such bindings in portlet.xml or wlp-framework-common-config.xml (the latter file is also missing in all three projects, while the former exists only in PortletProducer project).
    I have a JAXB xsd file created with schemagen.sh (from a jaxb zip) for SomeDataClass, but what do i do with it in order to create a JAXB binding in JDeveloper?
    Thanks.

    Are you trying to expose an existing system inside of WCS?
    If this is the case, you should investigate "External Applications":
    http://download.oracle.com/docs/cd/E17904_01/webcenter.1111/e10149/config_svcs_prod_extapp.htm#WCSUG6698
    This is an out of the box way of embedding external systems, with seperate login pages etc. I think this will achieve what you are trying to do yourself. It even allows for parameterised URLs

  • Getting error while using jaxb/xjc

    hello every one,
    i have a xsd and i want automated classes from it for which i am using jaxb and xjc compiler but when i am running it then i am getting error
    parsing a schema...
    compiling a schema...
    Exception in thread "main" java.lang.IllegalArgumentException: Expected
    class ja
    vax.xml.bind.annotation.XmlAccessType but found class
    javax.xml.bind.annotation.
    my xsd is
    <xs:schema
    xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:element name="clients"
    type="ClientsDef"/>
    <xs:complexType name=" ClientsDef ">
    <xs:sequence>
    <xs:element name="pers" type="Person"
    maxOccurs="unbounded"/>
    </xs:sequence>
    </xs:complexType>
    <xs:complexType name="Person">
    <xs:sequence>
    <xs:element name="name"
    type="xs:string"/>
    <xs:element name="date_of_birth"
    type="xs:date"/>
    <xs:element name="cnp"
    type="xs:string"/>
    <xs:element name="adress"
    type="xs:string"/>
    </xs:sequence>
    </xs:complexType>
    </xs:schema>
    any one please help me out...

    Hi,
    XSD is well formed but for JAXB, it needs to have the complexType declaration inner the root element:
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:element name="clients">
        <xs:complexType>
            <xs:sequence>
                <xs:element name="pers" type="Person" maxOccurs="unbounded"/>
            </xs:sequence>
        </xs:complexType>
    </xs:element>
    <xs:complexType name="Person">
    <xs:sequence>
    <xs:element name="name" type="xs:string"/>
    <xs:element name="date_of_birth" type="xs:date"/>
    <xs:element name="cnp" type="xs:string"/>
    <xs:element name="adress" type="xs:string"/>
    </xs:sequence>
    </xs:complexType>
    </xs:schema>Tested this works with this Main using jaxb-bindings in Netbeans (defining XSD compilation under clients package, Main in default package):
    import clients.Clients;
    import clients.ObjectFactory;
    import clients.Person;
    import java.io.ByteArrayOutputStream;
    import javax.xml.bind.JAXBContext;
    import javax.xml.bind.Marshaller;
    public class Main
        public static void main(String args[]) throws Exception
            ObjectFactory of = new ObjectFactory();
            Clients cd = of.createClients();
            Person p = of.createPerson();
            p.setAdress("address");
            p.setCnp("cnp");
            p.setName("name");
            cd.getPers().add(p);
            ByteArrayOutputStream bos = new ByteArrayOutputStream();
            try
                JAXBContext ctx;
                ctx = JAXBContext.newInstance(Clients.class);
                Marshaller marshaller = ctx.createMarshaller();
                marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, new Boolean(true));
                marshaller.marshal(cd, bos);
                System.out.println(bos.toString());
            finally
                bos.close();
    }Generates:
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <clients>
    <pers>
    <name>name</name>
    <cnp>cnp</cnp>
    <adress>address</adress>
    </pers>
    </clients>

  • Can't build JAXB examples using ant

    I'm getting the following errors when trying to build the JAXB sampls using ant. I've followed all the instructions, not sure what the prob is.
    I'm using JDK 1.6 and JWSDP 2.0 on Windows XP.
    Any ideas?
    C:\Sun\jwsdp-2.0\jaxb\samples\unmarshal-read>ant
    Buildfile: build.xml
    compile:
    [echo] Compiling the schema...
    [xjc] C:\Sun\jwsdp-2.0\jaxb\samples\unmarshal-read\gen-src\primer.po is not found and thus excluded from the dependency check
    [xjc] Compiling file:/C:/Sun/jwsdp-2.0/jaxb/samples/unmarshal-read/po.xsd
    BUILD FAILED
    C:\Sun\jwsdp-2.0\jaxb\samples\unmarshal-read\build.xml:34: java.lang.IllegalArgumentException: Expected class javax.xml.bind.annotation.XmlAccessType but found class javax.xml.bind.annotation.AccessType

    I'm getting the following errors when trying to build
    the JAXB sampls using ant. I've followed all the
    instructions, not sure what the prob is.
    I'm using JDK 1.6 and JWSDP 2.0 on Windows XP.
    Any ideas?
    C:\Sun\jwsdp-2.0\jaxb\samples\unmarshal-read>ant
    Buildfile: build.xml
    compile:
    [echo] Compiling the schema...
    [xjc]
    C:\Sun\jwsdp-2.0\jaxb\samples\unmarshal-read\gen-src\
    rimer.po is not found and thus excluded from the
    dependency check
    [xjc] Compiling
    file:/C:/Sun/jwsdp-2.0/jaxb/samples/unmarshal-read/po
    xsd
    BUILD FAILED
    C:\Sun\jwsdp-2.0\jaxb\samples\unmarshal-read\build.xml
    :34: java.lang.IllegalArgumentException: Expected
    class javax.xml.bind.annotation.XmlAccessType but
    found class javax.xml.bind.annotation.AccessTypeI'm having the same problem only using 1.5.0.10 jdk running windows XP, I'm not using ant, just command line...

  • Error JAXB : XmlAccessType but found AccessType

    When I execute xjc I have this error message :
    parsing a schema...
    compiling a schema...
    Exception in thread "main" java.lang.IllegalArgumentException: Expected class ja
    vax.xml.bind.annotation.XmlAccessType but found class javax.xml.bind.annotation.
    AccessType
    at com.sun.codemodel.TypedAnnotationWriter.checkType(TypedAnnotationWrit
    er.java:187)
    at com.sun.codemodel.TypedAnnotationWriter.invoke(TypedAnnotationWriter.
    java:101)
    at $Proxy0.value(Unknown Source)
    at com.sun.tools.xjc.generator.bean.ImplStructureStrategy$1.createClasse
    s(ImplStructureStrategy.java:46)
    at com.sun.tools.xjc.generator.bean.BeanGenerator.generateClassDef(BeanG
    enerator.java:371)
    at com.sun.tools.xjc.generator.bean.BeanGenerator.getClazz(BeanGenerator
    .java:403)
    at com.sun.tools.xjc.generator.bean.BeanGenerator$1.onBean(BeanGenerator
    .java:291)
    at com.sun.tools.xjc.generator.bean.BeanGenerator$1.onBean(BeanGenerator
    .java:299)
    at com.sun.tools.xjc.model.CClassInfo.accept(CClassInfo.java:359)
    at com.sun.tools.xjc.generator.bean.BeanGenerator.getContainer(BeanGener
    ator.java:281)
    at com.sun.tools.xjc.generator.bean.BeanGenerator.getUsedPackages(BeanGe
    nerator.java:337)
    at com.sun.tools.xjc.generator.bean.BeanGenerator.<init>(BeanGenerator.j
    ava:169)
    at com.sun.tools.xjc.generator.bean.BeanGenerator.generate(BeanGenerator
    .java:151)
    at com.sun.tools.xjc.model.Model.generateCode(Model.java:228)
    at com.sun.tools.xjc.Driver.run(Driver.java:293)
    at com.sun.tools.xjc.Driver.run(Driver.java:170)
    at com.sun.tools.xjc.Driver._main(Driver.java:95)
    at com.sun.tools.xjc.Driver.access$000(Driver.java:53)
    at com.sun.tools.xjc.Driver$1.run(Driver.java:75)
    I have JDK 1.6 & jwsdp 2.0
    What is the matter? Did you have this Exception?
    Tanks for help.

    Instead of JWSDP 2.0 please use http://jaxb.dev.java.net/
    http://forums.java.net/jive/thread.jspa?messageID=200030&tstart=0#200030

  • Marshaling problem in creation of xml thru JAXB

    Hi java gurus,
    I am trying to create an XML which will has the data of database using JAXB. I am able to generate JAXB classes, but its giving some error the stack trace is like this
    java.lang.NoSuchMethodError: com.sun.xml.bind.marshaller.XMLWriter.setXmlDecl(Z)V
         at org.bas.dss.common.vo.bii.impl.runtime.MarshallerImpl.createWriter(MarshallerImpl.java:223)
         at org.bas.dss.common.vo.bii.impl.runtime.MarshallerImpl.createWriter(MarshallerImpl.java:238)
         at org.bas.dss.common.vo.bii.impl.runtime.MarshallerImpl.createWriter(MarshallerImpl.java:233)
         at org.bas.dss.common.vo.bii.impl.runtime.MarshallerImpl.marshal(MarshallerImpl.java:126)
         at javax.xml.bind.helpers.AbstractMarshallerImpl.marshal(AbstractMarshallerImpl.java:66)
         at org.bas.dss.common.dao.MetaDAO.createInstInformation(MetaDAO.java:627)
         at org.bas.core.fidownload.DownloadActionHandler.getInstInfoXMLData(DownloadActionHandler.java:163)
         at org.bas.core.fidownload.DownloadActionHandler.performPreDownloadAction(DownloadActionHandler.java:74)
         at org.bas.core.fidownload.DownloadAction.perform(DownloadAction.java:129)
         at org.bas.core.fidownload.DownloadAction.execute(DownloadAction.java:79)
    the method is like this,
    valueObject = getInstInformation (registrationId, appVersionId);
    System.out.println("MetaDAO-->valueObject:"+valueObject); //here i am gettingthe object
    context = JAXBContext.newInstance("org.bas.dss.common.vo.bii");
    System.out.println("MetaDAO-->context:"+context); //here i am getting the context
    sumissionInfoMarshaller = context.createMarshaller();
    System.out.println("MetaDAO-->sumissionInfoMarshaller:"+sumissionInfoMarshaller); //here also i am getting some object type
    sumissionInfoMarshaller.setProperty(
    Marshaller.JAXB_FORMATTED_OUTPUT,Boolean.TRUE);
    System.out.println("MetaDAO-->MetaDAO-->");
    sumissionInfoMarshaller.marshal (valueObject, streamToWrite); // the problem is coming here.
    anyone can suggest what will be the problem, and tell me how can i resolve this issue,
    thanks in advance,
    varma

    Pl post this question to SDK Forum

  • Java.lang.IllegalArgumentException: Session: null does not exist

    These days I am getting an exception (java.lang.IllegalArgumentException: Session: null does not exist) when I restart the weblogic managed server. I have a work around to get away with this error. I completely delete the dataspace from ALDSP console and redeploy the artifacts jar file. This is a tedious process. Can anyone suggest a permanent fix to resolve this issue.
    ALDSP version: 3.01
    Weblogic Server: 9.2.2
    Thanks.

    Hey ,Can you please help me?can you tell me how you resolved this issue.Our production is down due to
    java.lang.IllegalArgumentException: Session: null does not exist.
         at com.bea.dsp.management.persistence.primitives.ServerPersistencePrimitives.getDataspaceRoot(ServerPersistencePrimitives.java:118)
         at com.bea.dsp.management.persistence.primitives.ServerPersistencePrimitives.getDataspaceRoot(ServerPersistencePrimitives.java:73)
         at com.bea.dsp.management.activation.ActivationService.dataSpaceAlreadyExists(ActivationService.java:342)
         at com.bea.dsp.management.activation.ActivationService.setRequestHandlerClassLoader(ActivationService.java:206)
         at com.bea.ld.server.bootstrap.RequestHandlerListener.postStart(RequestHandlerListener.java:46)
         Truncated. see log file for complete stacktrace.
    Its urgent plz

  • IllegalArgumentException error while exporting report in PDF format

    Hi all,
    we are using Crystal Report 2008, Java 1.5.22 and JRC 11.8.4.1094 to export reports in pdf format within java.
    It is working fine for all reports except for a specific report where it gives IllegalArgumentException while exporting the PDF.
    Below the error occurred:
    12:39:16,875 ERROR [c] Disk Exporter: no output file was created by an exporter
    12:39:16,875 ERROR <b> PdfExporter: caught Exception in PDFFormatter.finalizeFormatJob (from destination?); aborting export
    java.lang.IllegalArgumentException
         at com.crystaldecisions.reports.exporters.destination.disk.c.a(Unknown Source)
         at com.crystaldecisions.reports.exporters.format.page.pdf.b.a(Unknown Source)
         at com.crystaldecisions.reports.a.e.if(Unknown Source)
         at com.crystaldecisions.reports.formatter.a.c.if(Unknown Source)
         at com.crystaldecisions.reports.formatter.a.c.a(Unknown Source)
         at com.businessobjects.reports.sdk.b.b.int(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(Unknown Source)
         at com.crystaldecisions.proxy.remoteagent.x.a(Unknown Source)
         at com.crystaldecisions.proxy.remoteagent.q.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.dd.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ReportSource.export(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.AdvancedReportSource.export(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.NonDCPAdvancedReportSource.export(Unknown Source)
         at com.crystaldecisions.reports.reportengineinterface.JPEReportSource.export(Unknown Source)
         at com.crystaldecisions.report.web.event.br.a(Unknown Source)
         at com.crystaldecisions.report.web.event.w.a(Unknown Source)
         at com.crystaldecisions.report.web.event.b7.broadcast(Unknown Source)
         at com.crystaldecisions.report.web.event.av.a(Unknown Source)
         at com.crystaldecisions.report.web.WorkflowController.do(Unknown Source)
         at com.crystaldecisions.report.web.WorkflowController.doLifecycle(Unknown Source)
         at com.crystaldecisions.report.web.ServerControl.a(Unknown Source)
         at com.crystaldecisions.report.web.viewer.ReportExportControl.a(Unknown Source)
         at com.crystaldecisions.report.web.ServerControl.getHtmlContent(Unknown Source)
    12:39:16,875 INFO  [c] Disk Exporter: finalizing export to destination
    12:39:16,875 ERROR [JRCCommunicationAdapter] Failed to export report
    com.crystaldecisions.reports.exporters.format.page.pdf.a.a: Unknown exception is thrown
         at com.crystaldecisions.reports.exporters.format.page.pdf.b.a(Unknown Source)
         at com.crystaldecisions.reports.a.e.if(Unknown Source)
         at com.crystaldecisions.reports.formatter.a.c.if(Unknown Source)
         at com.crystaldecisions.reports.formatter.a.c.a(Unknown Source)
         at com.businessobjects.reports.sdk.b.b.int(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(Unknown Source)
         at com.crystaldecisions.proxy.remoteagent.x.a(Unknown Source)
         at com.crystaldecisions.proxy.remoteagent.q.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.dd.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ReportSource.export(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.AdvancedReportSource.export(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.NonDCPAdvancedReportSource.export(Unknown Source)
         at com.crystaldecisions.reports.reportengineinterface.JPEReportSource.export(Unknown Source)
         at com.crystaldecisions.report.web.event.br.a(Unknown Source)
         at com.crystaldecisions.report.web.event.w.a(Unknown Source)
         at com.crystaldecisions.report.web.event.b7.broadcast(Unknown Source)
         at com.crystaldecisions.report.web.event.av.a(Unknown Source)
         at com.crystaldecisions.report.web.WorkflowController.do(Unknown Source)
         at com.crystaldecisions.report.web.WorkflowController.doLifecycle(Unknown Source)
         at com.crystaldecisions.report.web.ServerControl.a(Unknown Source)
         at com.crystaldecisions.report.web.viewer.ReportExportControl.a(Unknown Source)
         at com.crystaldecisions.report.web.ServerControl.getHtmlContent(Unknown Source)
    Caused by: java.lang.IllegalArgumentException
         at com.crystaldecisions.reports.exporters.destination.disk.c.a(Unknown Source)
         ... 56 more
    Have an idea?
    Thanks

    Hello Andrea.
    I searched through the SAP Notes for the error that you are encountering.  There is an SAP Note that exists titled the following:
    1332907 - Report being exported to PDF format using the Crystal Reports for Eclipse 1.x runtime, errors with the exception: PdfExporter: caught Exception in PDFFormatter.finalizeFormatJob
    Since you may not have access to the SAP Notes, I will extract the details that are mentioned in the note here:
    =============================================
    Symptom
    Attempting to export a report to Adobe PDF format using the Crystal Reports for Eclipse 1.x runtime results in an exception.
    The exception indicates "PdfExporter: caught Exception in PDFFormatter.finalizeFormatJob"
    Environment
    Windows 2003
    Apache Tomcat 5.0
    Crystal Reports for Eclipse version 1.x
    Reproducing the Issue
    Using the Crystal Reports for Eclipse runtime version 1.x attempt to export a report to PDF format that has the "Repeat Group Header on Each Page" option enabled.
    Note: This does not occur if this option is enabled in a subreport.
    Cause
    When the "Repeat Group Header on Each Page" is enabled for a group in a main report the Crystal Reports for Eclipse 1.x runtime is unable to correclty format the PDF document which results in an exception.
    Resolution
    Updating the application to use Crystal Reports for Eclipse version 2.x runtime will resolve the issue.
    The most recent updates to the Crystal Reports for Eclipse runtime can be freely downloaded from the SAP SDN Website. 
    http://www.sdn.sap.com/irj/boc/crystalreports-java
    =============================================
    Since you are on JRC 11.8.4.1094 which is Crystal Reports for Eclipse 1.x, this may be the cause of your problem.
    I hope that this helps.
    Regards.
    - Robert

  • Java.lang.IllegalArgumentException when trying to create debug setting

    Hello all,
    I have just performed an install of EHP1 on a W2K3 EE machine, and I'm trying to setup to debug my Web Dynpro app on the Java server.  I have defined the system instance correctly SAP AS Java in the Window --> Preferences --> SAP AS Java section. My Web Dynpro app deploys and runs without problems.
    However, when I use Run -> Open Debug Dialog and then click on "Run on Server" and use the "New launch configuration" option, I get a message box stating "java.lang.IllegalArgumentException (check log file)".
    So I switch to Plug-in Development perspective and take a look at the log file. The exception appears in the list of messages; double-clicking the exception provides this data:
    Severity: Error
    Message: Problems occurred when invoking code from plug-in: "org.eclipse.jface".
    Exception Stack Trace:
    java.lang.IllegalArgumentException
         at org.eclipse.wst.server.core.internal.ResourceManager.getServer(ResourceManager.java:758)
         at org.eclipse.wst.server.core.ServerCore.findServer(ServerCore.java:286)
         at org.eclipse.wst.server.ui.internal.RunOnServerLaunchConfigurationTab.initializeFrom(RunOnServerLaunchConfigurationTab.java:105)
         at org.eclipse.debug.ui.AbstractLaunchConfigurationTabGroup.initializeFrom(AbstractLaunchConfigurationTabGroup.java:86)
         at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationTabGroupWrapper.initializeFrom(LaunchConfigurationTabGroupWrapper.java:143)
         at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationTabGroupViewer.displayInstanceTabs(LaunchConfigurationTabGroupViewer.java:784)
         at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationTabGroupViewer$8.run(LaunchConfigurationTabGroupViewer.java:658)
         at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
         at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationTabGroupViewer.inputChanged(LaunchConfigurationTabGroupViewer.java:676)
         at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationTabGroupViewer.setInput0(LaunchConfigurationTabGroupViewer.java:637)
         at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationTabGroupViewer.setInput(LaunchConfigurationTabGroupViewer.java:613)
         at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationsDialog.handleLaunchConfigurationSelectionChanged(LaunchConfigurationsDialog.java:975)
         at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationsDialog$4.selectionChanged(LaunchConfigurationsDialog.java:570)
         at org.eclipse.jface.viewers.StructuredViewer$3.run(StructuredViewer.java:842)
         at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
         at org.eclipse.core.runtime.Platform.run(Platform.java:857)
         at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:46)
         at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:199)
         at org.eclipse.jface.viewers.StructuredViewer.firePostSelectionChanged(StructuredViewer.java:840)
         at org.eclipse.jface.viewers.StructuredViewer.handlePostSelect(StructuredViewer.java:1153)
         at org.eclipse.jface.viewers.StructuredViewer$5.widgetSelected(StructuredViewer.java:1178)
         at org.eclipse.jface.util.OpenStrategy.firePostSelectionEvent(OpenStrategy.java:250)
         at org.eclipse.jface.util.OpenStrategy.access$4(OpenStrategy.java:244)
         at org.eclipse.jface.util.OpenStrategy$3.run(OpenStrategy.java:418)
         at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
         at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:129)
         at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3659)
         at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3296)
         at org.eclipse.jface.window.Window.runEventLoop(Window.java:820)
         at org.eclipse.jface.window.Window.open(Window.java:796)
         at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationsDialog.open(LaunchConfigurationsDialog.java:1133)
         at org.eclipse.debug.ui.DebugUITools$1.run(DebugUITools.java:387)
         at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
         at org.eclipse.debug.ui.DebugUITools.openLaunchConfigurationDialogOnGroup(DebugUITools.java:391)
         at org.eclipse.debug.ui.DebugUITools.openLaunchConfigurationDialogOnGroup(DebugUITools.java:333)
         at org.eclipse.debug.ui.actions.OpenLaunchDialogAction.run(OpenLaunchDialogAction.java:82)
         at org.eclipse.debug.ui.actions.OpenLaunchDialogAction.runWithEvent(OpenLaunchDialogAction.java:90)
         at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:246)
         at org.eclipse.ui.internal.WWinPluginAction.runWithEvent(WWinPluginAction.java:229)
         at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:546)
         at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:490)
         at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:402)
         at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
         at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
         at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3682)
         at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293)
         at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
         at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
         at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
         at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
         at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
         at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
         at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
         at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106)
         at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169)
         at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
         at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
         at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
         at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508)
         at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
         at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
         at org.eclipse.equinox.launcher.Main.main(Main.java:1148)
    Session Data:
    eclipse.buildId=M20080221-1800
    I've done some hunting around the internet for this error and I did find a problem that looks quite similar under a JBOSS forum: https://jira.jboss.org/jira/browse/JBIDE-3689 ("Creating new run configuration of type Run in Server fails with exception, jbds eclipse.buildId=1.1.0.GA"). The information presented there is almost exactly what I'm seeing:
    <cut>
    Steps to Recreate:
    1. From Run menu, select "Open Run Dialog..." or "Open Debug Dialog..."
    2. Right click on "Run on Server"
    3. Select "New"
    What you see is an "Error" dialog of Reason "java.lang.IllegalArgumentException".
    The error log records the following:
    Error
    Thu Jan 29 08:13:48 PST 2009
    Problems occurred when invoking code from plug-in: "org.eclipse.jface".
    </cut>
    In the JBOSS case, the response is:
    <cut>
    It is is a known bug in WTP 2.x and in WTP 3.x this option does not exist anymore thus you should just use Run As -> Run in Server.
    Marked as out of date since latest version of WTP 3 has the fix.
    </cut>
    I have the EHP1 installed on a couple other servers where this is not happening. Anyone run into this before?
    Alternatively, anyone know how I can check the WTP of the SAP-specific eclipse released as the EHP1 developer studio?
    Thanks very much,
    Andy

    Hi Andy,
    I think there is a very siple proces which you need to follow for debug. Please have a look:-
    Please check you mentioned the correct server and instance name. As you are saying that all you applications are running fine therefore I think you would have mentioned all the required parameters correctly.
    After checking all these things, follow the steps below:-
    1) From the menu in NWDS -> Click on the Debug symbol. Select "Open Debug Dialoug".
    2) Right click on the "Remote Java Application" and select New.
    3) Clickon the Source tab. Check whether you application is included under the Defualt folder. Only those projects will be debugged which are under this folder.
    4) If you application is not there. Click on Add-> Java Project -> Select your Project - > OK. Doing this will add your project in debug instance.
    5) Go to Connect tab. Mention the Host name (Same as server name you have mentioned under Window --> Preferences --> SAP AS Java ) AND the Message server port. Please note that this server port is diffrent from the http port.
    6) Just click on Debug.
    I hope after all these steps debug should work. If not please revert back.
    Thanks and Regards,
    Pravesh

  • Upgrading to JAXB/JWSDP1.3 from JAXB/JWSDP 1.2 -- problems

    I am seeing 2 problems after upgrading to the JAXB found in WSDP 1.3 (from 1.2)
    We are using JAXB in a client/server style app where the server is accessed via a web interface and the client is delivered via Java Web Start (JWS). Both the server and client use JAXB-generated classes.
    We have an ant build.xml file that invokes xjc and this was working for us as expected.
    For the JWS piece, we need to sign the jars we use and for testing purposes we were self-signing them, including the jar files needed for JAXB also self-signed. This is also coordinated through an ant task.
    After replacing the jar files in our lib area with the ones from my recent download of the 1.3 version of JAXB the following happens.
    1. I am seeing compiler deprecation warnings for the generated code -- this did not happen in our use of JAXB from 1.2. For example:
    [javac] /Users/jjs/Projects/SGS-Install-Fixed/sgs/src/com/gestalt/sgs/uobdif/impl/runtime/SAXMarshaller.java:259: warning: ERR_MISSING_OBJECT in com.sun.xml.bind.marshaller.Messages has been deprecated
    [javac] Messages.format(Messages.ERR_MISSING_OBJECT), null,
    [javac] ^
    I am using Java 1.4.1 on Max OS X (I know... not supported but this doesn't seem like a platform dependency) and these warnings go away if I revert back to the JAXB jars from the 1.2 release of WSDP.
    2. These are only warnings, so my build proceeds with ant. But, when I get to the jar signing step I see:
    [signjar] Signing Jar : /Users/jjs/Projects/SGS-Install-Fixed/sgs/lib/jaxb-libs.jar
    [signjar] jarsigner: unable to sign jar: java.util.zip.ZipException: invalid entry compressed size (expected 63854 but got 19845 bytes)
    I looked at the jar file using the jar command and there are entries there:
    4038 Wed Dec 03 22:16:20 EST 2003 META-INF/MANIFEST.MF
    3303 Wed Dec 03 22:16:20 EST 2003 META-INF/SUN_MICR.RSA
    3780 Wed Dec 03 22:16:20 EST 2003 META-INF/SUN_MICR.SF
    0 Wed Dec 03 22:16:20 EST 2003 META-INF/pack.properties
    that suggest to me that perhaps the jar is now sigend by Sun and therefore can't be signed again. If I look at the corresponding jar from the JAXB/1.2, these SUN_MICR entries do not appear.
    Is this assumption correct? Can I deliver my app through web start with my apps own jars self-signed and the JAXB jars signed by Sun? I suppose I can un-jar the JAXB jars, remove the manifest material and then re-jar the files and sign those. I expect this might work.
    I am looking to share migration experiences (1.2 to 1.3) and to see what work-arounds there might be.
    Thanks
    Jim

    Replying to my own post.
    It seems that with the JWSDP 1.3 release, most (if not all) of the included jars are signed by Sun. You can NOT include jars with different signatures in the same web start application -- that's the error I get when I tried to do this.
    This means that if I want to package my jars using a self-signed certificate, I have to first un-jar all of the JAXB lib jars I want to include, get rid of the parts of the manifest that deal with signing, re-jar them and then sign all of the jars in my web start app using my own cert. More work for me, but not a show-stopper.
    I still am not sure why I am getting deprecated warnings from javac though.
    Jim

  • How to read the attribute of the xml file using jaxb

    Thanks,
    Buddy as i have a issue i have to read the xml file using jaxb and xml file contains this data and i have read the attribute like name , desc and action for a particular menu name pls tell the code how to do this it will be a great favour to me
    thanx in advance
    Rasool
    <contextmenu>
    <menu name='Lead' >
    <menuitem name='newlead' desc='New Lead' action='/leads.do?dispatch=insert' />
    <menuitem name='editlead' desc='Edit Lead' action='' />
    <menuitem name='leadinfo' desc='Lead Information' action='' />
    </menu>
    <menu name='Cases' >
    <menuitem name='' desc='' action='' />
    <menuitem name='' desc='' action='' />
    <menuitem name='' desc='' action='' />
    </menu>
    <menu name='Contact' >
    <menuitem name='' desc='' action='' />
    <menuitem name='' desc='' action='' />
    <menuitem name='' desc='' action='' />
    </menu>
    </contextmenu>

    What my program do is to get the encoding of XML files and convert them to UTF-8 encoding files, while I need this "encoding" information of the original XML document thus I can convert...
    After reading specifications and JDOM docs, the truth turns to be disappointed, no function is provided to get this information in JDOM level 2(the current released one), while it's promissed that this function will be provided in JDOM level API....
    Thanx all for your help and attention!!!

  • IllegalArgumentException  while executing a scenario in ODI

    Hi All,
    We are executing a scenario in ODI. This loads the data from source table to target table . During this execution, we are facing the issue in the insert step(Error msg given below):
    “java.lang.IllegalArgumentException: Bytes are too big for array”. The attachment shows the screenshot of the error.
    The code that is generated during execution is
    select     
         SUBSTR(SIF_AR_TL.REC_TYPE,1,1) RECORD_TYPE,
         TRIM(TO_CHAR(SIF_AR_TL.BUS_UNIT_FROM))||RPAD(' ',5-LENGTH(TRIM(TO_CHAR(SIF_AR_TL.BUS_UNIT_FROM))),' ') BUSINESS_UNIT,
         TRIM(TO_CHAR(SIF_AR_TL.BUS_UNIT_FROM))||RPAD(' ',5-LENGTH(TRIM(TO_CHAR(SIF_AR_TL.BUS_UNIT_FROM))),' ') BUSINESS_UNIT_FROM,
         RPAD(' ',5,' ') AFFILIATE,
         RPAD(' ',8,' ') C_REG_ACCT,
         RPAD(' ',10,' ') DEPTID,
         RPAD(' ',10,' ') DEPTID_FROM,
         RPAD(' ',6,' ') PRODUCT,
         RPAD(' ',8,' ') PROJECT_ID,
         RPAD(' ',5,' ') PROJECT_TYPE,
         RPAD(' ',8,' ') ACTIVITY_ID,
         RPAD(' ',5,' ') ACTIVITY_TYPE,
         RPAD(' ',4,' ') C_VINTAGE,
         RPAD(' ',1,' ') COST_TYPE,
         RPAD(' ',5,' ') COST_STUDY,
         '+'||RPAD('0',14,'0') SALETX_AMT,
         '+'||RPAD('0',14,'0') USETAX_AMT,
         TRIM(TO_CHAR(SIF_AR_TL.C_GL_LOC))||RPAD(' ',5-LENGTH(TRIM(TO_CHAR(SIF_AR_TL.C_GL_LOC))),' ') C_GL_LOC,
         TRIM(TO_CHAR(SIF_AR_TL.LEDGER))||RPAD(' ',10-LENGTH(TRIM(TO_CHAR(SIF_AR_TL.LEDGER))),' ') LEDGER,
         TRIM(TO_CHAR(SIF_AR_TL.LEDGER_GRP))||RPAD(' ',10-LENGTH(TRIM(TO_CHAR(SIF_AR_TL.LEDGER_GRP))),' ') LEDGER_GROUP,
         RPAD(' ',10,' ') JOURNAL_ID,
         RPAD(' ',10,' ') SAP_DOC_NUM,
         RPAD(' ',2,' ') UNPOST_SEQ_NUM,
         RPAD(' ',9,' ') FILLER,
         TRIM(TO_CHAR(SIF_AR_TL.CURRENCY_CD))||RPAD(' ',3-LENGTH(TRIM(TO_CHAR(SIF_AR_TL.CURRENCY_CD))),' ') CURRENCY_CD,
         RPAD(' ',8,' ') FILLER1,
         RPAD(' ',1,' ') CONDITION_CODE,
         RPAD(' ',5,' ') C_ACCT_ISSUE,
         RPAD(' ',5,' ') RESOURCE_CATEGORY,
         RPAD(' ',4,' ') C_PC_ORIGIN_COP,
         RPAD(' ',10,' ') TREE_NODE_NUM,
         RPAD(' ',10,' ') TREE_NODE_NUM_FROM,
         RPAD(' ',10,' ') C_TAX_DISTRICT,
         TRIM(TO_CHAR(SIF_AR_TL.BUS_UNIT_FROM))||RPAD(' ',5-LENGTH(TRIM(TO_CHAR(SIF_AR_TL.BUS_UNIT_FROM))),' ') BUSINESS_UNIT_GL,
         TRIM(TO_CHAR(SIF_AR_TL.BUS_UNIT_FROM))|| RPAD(' ',5-LENGTH(TRIM(TO_CHAR(SIF_AR_TL.BUS_UNIT_FROM))),' ') BUS_UNIT_GL_FROM,
         TRIM(TO_CHAR(SIF_AR_TL.C_GL_LOC))||RPAD(' ',5-LENGTH(TRIM(TO_CHAR(SIF_AR_TL.C_GL_LOC))),' ') C_GL_LOC_ORIG,
         RPAD(' ',7,' ') FILLER2,
         TRIM(TO_CHAR(SIF_AR_TL.JOURNAL_SRC))||RPAD(' ',7-LENGTH(TRIM(TO_CHAR(SIF_AR_TL.JOURNAL_SRC))),' ') JOURNAL_SOURCE,
         TRIM(TO_CHAR(SIF_AR_TL.C_LEGACY_SRC))||RPAD(' ',4-LENGTH(TRIM(TO_CHAR(SIF_AR_TL.C_LEGACY_SRC))),' ') C_LEGACY_SRC,
         TRIM(TO_CHAR(SIF_AR_TL.TRAN_DATE))||RPAD(' ',10-LENGTH(TRIM(TO_CHAR(SIF_AR_TL.TRAN_DATE))),' ') TRAN_DATE,
         TRIM(TO_CHAR(SIF_AR_TL.REFERENCE_ID))||RPAD(' ',10-LENGTH(TRIM(TO_CHAR(SIF_AR_TL.REFERENCE_ID))),' ') REFERENCE_ID,
         'SAP' SYSTEM_SOURCE,
         RPAD(' ',10,' ') C_MIC,
         RPAD(' ',5,' ') FILLER3,
         RPAD(' ',6,' ') C_FUNC_CODE,
         RPAD(' ',1,' ') C_ENVIRONMENT,
         RPAD(' ',13,' ') VOUCHER_ID,
         RPAD(' ',6,' ') JFCI,
         RPAD(' ',10,' ') PO_ID,
         RPAD(' ',7,' ') C_ALLOC_CODE,
         TRIM(TO_CHAR(SIF_AR_TL.ACCOUNTING_DT))||RPAD(' ',10-LENGTH(TRIM(TO_CHAR(SIF_AR_TL.ACCOUNTING_DT))),' ') ACCOUNTING_DT,
         RPAD('0',3-LENGTH(TRIM(TO_CHAR(SIF_AR_TL.ACCOUNTING_PRD))),'0')||TRIM(TO_CHAR(SIF_AR_TL.ACCOUNTING_PRD)) ACCOUNTING_PERIOD,
         RPAD(' ',5,' ') CATEGORY,
         TRIM(TO_CHAR(SIF_AR_TL.LOCATION))||RPAD(' ',10-LENGTH(TRIM(TO_CHAR(SIF_AR_TL.LOCATION))),' ') LOCATION,
         RPAD(' ',2,' ') C_KOW,
         RPAD(' ',12,' ') TAG_NUMBER,
         RPAD(' ',20,' ') B_EQP_SER,
         TRIM(TO_CHAR(SIF_AR_TL.FISCAL_YEAR))||RPAD(' ',4-LENGTH(TRIM(TO_CHAR(SIF_AR_TL.FISCAL_YEAR))),' ') FISCAL_YEAR,
         RPAD(' ',1,' ') C_HIGHWAY_PRIVATE,
         RPAD(' 0',3,'0 ') EQUITY,
         RPAD(' ',1,' ') C_GEO_AREA,
         RPAD(' ',8,' ') OPRID,
         CASE WHEN CAST(SIF_AR_TL.HOURS AS NUMBER)>= 0 THEN '+'||RPAD('0',14-LENGTH(TRANSLATE(TRIM(TO_CHAR(SIF_AR_TL.HOURS)),'.','')),'0')||TRANSLATE(TRIM(TO_CHAR(SIF_AR_TL.HOURS)),'.','') ELSE'-'||RPAD('0',15-LENGTH(TRANSLATE(TRIM(TO_CHAR(SIF_AR_TL.HOURS)),'.','')),'0')||TRIM(SUBSTR(TRANSLATE(TO_CHAR(SIF_AR_TL.HOURS),'.',''),2,LENGTH(TRANSLATE(TO_CHAR(SIF_AR_TL.HOURS),'.',''))))
    END QUANTITY,
         '+'||RPAD('0',14,'0') HOURS,
         CASE WHEN SUBSTR(SIF_AR_TL.SAP_GL_ACCT,1,1) = '5' THEN
         'R'||RPAD(' ',5,' ')||
         TRIM(TO_CHAR(SIF_AR_TL.REVENUE_CATEGORY))||
              RPAD(' ',5-length(TRIM(TO_CHAR(SIF_AR_TL.REVENUE_CATEGORY))),' ')||
         RPAD(' ',19,' ')||
         TRIM(TO_CHAR(SIF_AR_TL.REVENUE_UNIT))||
              RPAD(' ',3-length(TRIM(TO_CHAR(SIF_AR_TL.REVENUE_UNIT))),' ')||
         TRIM(SIF_AR_TL.REVENUE_COMPONENT)||
              RPAD(' ',3-length(TRIM(TO_CHAR(SIF_AR_TL.REVENUE_COMPONENT))),' ')||
         RPAD(' ',5,' ')||
         TRIM(TO_CHAR(SIF_AR_TL.MARKET))||
              RPAD(' ',4-length(TRIM(TO_CHAR(SIF_AR_TL.MARKET))),' ')||
         RPAD(' ',13,' ')
    ELSE
         'F'||RPAD(' ',10,' ')||RPAD(' ',7,' ')||RPAD(' ',7,' ')||
         TRIM(TO_CHAR(SIF_AR_TL.SAP_ORG_OPRID))||
              RPAD(' ',7-length(TRIM(TO_CHAR(SIF_AR_TL.SAP_ORG_OPRID))),' ')||
         TRIM(TO_CHAR(SIF_AR_TL.SAP_HDR_DESC))||
              RPAD(' ',25-length(TRIM(TO_CHAR(SIF_AR_TL.SAP_HDR_DESC))),' ')||
         RPAD(' ',1,' ')
         END C_WORK_AREA,
         TRIM(TO_CHAR(SIF_AR_TL.FCC_ACCOUNT))||RPAD(' ',6-LENGTH(TRIM(TO_CHAR(SIF_AR_TL.FCC_ACCOUNT))),' ') C_LEGACY_TYPE,
         RPAD(' ',1,' ') FCC_ACCOUNT,
         TRIM(TO_CHAR(SIF_AR_TL.SAP_GL_ACCT))||RPAD(' ',10-LENGTH(TRIM(TO_CHAR(SIF_AR_TL.SAP_GL_ACCT))),' ') FILLER5,
         CASE
    WHEN SIF_AR_TL.VENDOR ='' THEN SIF_AR_TL.POSTING_KEY||TRIM(TO_CHAR(SIF_AR_TL.CUSTOMER))||RPAD(' ',10-LENGTH(TRIM(TO_CHAR(SIF_AR_TL.CUSTOMER))),' ')||RPAD(' ',6,' ')
    WHEN SIF_AR_TL.CUSTOMER ='' THEN SIF_AR_TL.POSTING_KEY||TRIM(TO_CHAR(SIF_AR_TL.VENDOR))||RPAD(' ',10-LENGTH(TRIM(TO_CHAR(SIF_AR_TL.VENDOR))),' ')||RPAD(' ',6,' ')
    WHEN (SIF_AR_TL.VENDOR ='' AND SIF_AR_TL.CUSTOMER = '') THEN SIF_AR_TL.POSTING_KEY||RPAD(' ',16,' ') END SAP_GL_ACCOUNT,
         TRIM(TO_CHAR(SIF_AR_TL.SAP_CMPNY_CD))||RPAD(' ',4-LENGTH(TRIM(TO_CHAR(SIF_AR_TL.SAP_CMPNY_CD))),' ') SAP_ALLOCATION_NBR,
         TRIM(TO_CHAR(SIF_AR_TL.SAP_COST_CNTR))||RPAD(' ',10-LENGTH(TRIM(TO_CHAR(SIF_AR_TL.SAP_COST_CNTR))),' ') SAP_COMPANY_CODE,
         TRIM(TO_CHAR(SIF_AR_TL.SAP_COST_CNTR))||RPAD(' ',10-LENGTH(TRIM(TO_CHAR(SIF_AR_TL.SAP_COST_CNTR))),' ') SAP_COST_CENTER,
         SIF_AR_TL.SAP_JURISDICTION SAP_JURISDICTION,
         RPAD(' ',10,' ') MATERIAL_ID,
         TRIM(TO_CHAR(SIF_AR_TL.SAP_TRD_PARTNER))||RPAD(' ',6-LENGTH(TRIM(TO_CHAR(SIF_AR_TL.SAP_TRD_PARTNER))),' ') SAP_TRADING_PARTNER,
         RPAD(' ',9,' ') LEG_VENDOR_CODE,
         TRIM(TO_CHAR(SIF_AR_TL.SAP_WBS))||RPAD(' ',24-LENGTH(TRIM(TO_CHAR(SIF_AR_TL.SAP_WBS))),' ') SAP_WBS,
         RPAD(' ',3,' ') LABOR_GROUP,
         RPAD(' ',7,' ') WORK_ORDER_NBR,
         RPAD(' ',3,' ') LEG_TRANS_TYPE,
         RPAD(' ',4,' ') SAP_COMPANY_CODE_CHRG,
         RPAD(' ',2,' ') MATERIAL_TYPE,
         RPAD(' ',6,' ') FILLER6,
         CASE WHEN SIF_AR_TL.TRAN_TOT_AMT>= 0 THEN '+'||RPAD('0',14-LENGTH(TRANSLATE(TRIM(TO_CHAR(SIF_AR_TL.TRAN_TOT_AMT)),'.','')),'0')||TRANSLATE(TRIM(TO_CHAR(SIF_AR_TL.TRAN_TOT_AMT)),'.','') ELSE'-'||RPAD('0',15-LENGTH(TRANSLATE(TRIM(TO_CHAR(SIF_AR_TL.TRAN_TOT_AMT)),'.','')),'0')||TRIM(SUBSTR(TRANSLATE(TO_CHAR(SIF_AR_TL.TRAN_TOT_AMT),'.',''),2,LENGTH(TRANSLATE(TO_CHAR(SIF_AR_TL.TRAN_TOT_AMT),'.',''))))
    END TRANS_TOT_AMOUNT,
         '01' EXTC_RESRC_OCCURS,
         RPAD(' ',5,' ') EXTC_CD_1,
         RPAD(' ',5,' ') RESOURCE_TYPE_1,
         RPAD(' ',8,' ') ACCOUNT_1,
         CASE WHEN SIF_AR_TL.AMOUNT_1>= 0 THEN '+'||RPAD('0',14-LENGTH(TRANSLATE(TRIM(TO_CHAR(SIF_AR_TL.AMOUNT_1)),'.','')),'0')||RPAD(TRIM(TO_CHAR(SIF_AR_TL.AMOUNT_1)),'.','') ELSE'-'||RPAD('0',15-LENGTH(TRANSLATE(TRIM(TO_CHAR(SIF_AR_TL.AMOUNT_1)),'.','')))||TRIM(SUBSTR(TRANSLATE(TO_CHAR(SIF_AR_TL.AMOUNT_1),'.',''),2,LENGTH(TRANSLATE(TO_CHAR(SIF_AR_TL.AMOUNT_1),'.',''))))
    END AMOUNT_1,
         RPAD(' ',5,' ') EXTC_CD_2,
         RPAD(' ',5,' ') RESOURCE_TYPE_2,
         RPAD(' ',8,' ') ACCOUNT_2,
         RPAD(' ',15,' ') AMOUNT_2,
         RPAD(' ',5,' ') EXTC_CD_3,
         RPAD(' ',5,' ') RESOURCE_TYPE_3,
         RPAD(' ',8,' ') ACCOUNT_3,
         RPAD(' ',15,' ') AMOUNT_3,
         RPAD(' ',5,' ') EXTC_CD_4,
         RPAD(' ',5,' ') RESOURCE_TYPE_4,
         RPAD(' ',8,' ') ACCOUNT_4,
         RPAD(' ',15,' ') AMOUNT_4,
         RPAD(' ',5,' ') EXTC_CD_5,
         RPAD(' ',5,' ') RESOURCE_TYPE_5,
         RPAD(' ',8,' ') ACCOUNT_5,
         RPAD(' ',15,' ') AMOUNT_5,
         RPAD(' ',5,' ') EXTC_CD_6,
         RPAD(' ',5,' ') RESOURCE_TYPE_6,
         RPAD(' ',8,' ') ACCOUNT_6,
         RPAD(' ',15,' ') AMOUNT_6,
         RPAD(' ',5,' ') EXTC_CD_7,
         RPAD(' ',5,' ') RESOURCE_TYPE_7,
         RPAD(' ',8,' ') ACCOUNT_7,
         RPAD(' ',15,' ') AMOUNT_7,
         RPAD(' ',5,' ') EXTC_CD_8,
         RPAD(' ',5,' ') RESOURCE_TYPE_8,
         RPAD(' ',8,' ') ACCOUNT_8,
         RPAD(' ',15,' ') AMOUNT_8,
         RPAD(' ',5,' ') EXTC_CD_9,
         RPAD(' ',5,' ') RESOURCE_TYPE_9,
         RPAD(' ',8,' ') ACCOUNT_9,
         RPAD(' ',15,' ') AMOUNT_9,
         RPAD(' ',5,' ') EXTC_CD_10,
         RPAD(' ',5,' ') RESOURCE_TYPE_10,
         RPAD(' ',8,' ') ACCOUNT_10,
         RPAD(' ',15,' ') AMOUNT_10,
         RPAD(' ',5,' ') EXTC_CD_11,
         RPAD(' ',5,' ') RESOURCE_TYPE_11,
         RPAD(' ',8,' ') ACCOUNT_11,
         RPAD(' ',15,' ') AMOUNT_11,
         RPAD(' ',5,' ') EXTC_CD_12,
         RPAD(' ',5,' ') RESOURCE_TYPE_12,
         RPAD(' ',8,' ') ACCOUNT_12,
         RPAD(' ',15,' ') AMOUNT_12,
         RPAD(' ',5,' ') EXTC_CD_13,
         RPAD(' ',5,' ') RESOURCE_TYPE_13,
         RPAD(' ',8,' ') ACCOUNT_13,
         RPAD(' ',15,' ') AMOUNT_13,
         RPAD(' ',5,' ') EXTC_CD_14,
         RPAD(' ',5,' ') RESOURCE_TYPE_14,
         RPAD(' ',8,' ') ACCOUNT_14,
         RPAD(' ',15,' ') AMOUNT_14,
         RPAD(' ',5,' ') EXTC_CD_15,
         RPAD(' ',5,' ') RESOURCE_TYPE_15,
         RPAD(' ',8,' ') ACCOUNT_15,
         RPAD(' ',15,' ') AMOUNT_15,
         RPAD(' ',5,' ') EXTC_CD_16,
         RPAD(' ',5,' ') RESOURCE_TYPE_16,
         RPAD(' ',8,' ') ACCOUNT_16,
         RPAD(' ',15,' ') AMOUNT_16,
         RPAD(' ',5,' ') EXTC_CD_17,
         RPAD(' ',5,' ') RESOURCE_TYPE_17,
         RPAD(' ',8,' ') ACCOUNT_17,
         RPAD(' ',15,' ') AMOUNT_17,
         RPAD(' ',5,' ') EXTC_CD_18,
         RPAD(' ',5,' ') RESOURCE_TYPE_18,
         RPAD(' ',8,' ') ACCOUNT_18,
         RPAD(' ',15,' ') AMOUNT_18,
         RPAD(' ',5,' ') EXTC_CD_19,
         RPAD(' ',5,' ') RESOURCE_TYPE_19,
         RPAD(' ',8,' ') ACCOUNT_19,
         RPAD(' ',15,' ') AMOUNT_19,
         RPAD(' ',5,' ') EXTC_CD_20,
         RPAD(' ',5,' ') RESOURCE_TYPE_20,
         RPAD(' ',5,' ') ACCOUNT_20,
         RPAD(' ',8,' ') AMOUNT_20,
         RPAD(' ',15,' ') EXTC_CD_21,
         RPAD(' ',5,' ') RESOURCE_TYPE_21,
         RPAD(' ',5,' ') ACCOUNT_21,
         RPAD(' ',8,' ') AMOUNT_21,
         RPAD(' ',15,' ') EXTC_CD_22,
         RPAD(' ',5,' ') RESOURCE_TYPE_22,
         RPAD(' ',8,' ') ACCOUNT_22,
         RPAD(' ',15,' ') AMOUNT_22,
         TO_NUMBER(SIF_AR_TL.HDR_ID_OUT) REC_GRP
    from     FSDV1ODI.PS_O_FS_SIF_AR_TL SIF_AR_TL LEFT OUTER JOIN FSDV1ODI.PS_O_FS_SIF_AR_HDR PS_O_FS_SIF_AR_HDR ON PS_O_FS_SIF_AR_HDR.HDR_ID=SIF_AR_TL.HDR_ID_OUT
    where      (1=1)
    If anybody has faced the above issue, kindly revert back on the same.
    Thanking in Advance.
    Regards,
    Raghav

    i hope you have resolved the question.
    However there is the note on metalink
    "Bytes are too big for array" Error When Inserting Data To A File In ODI [ID 554792.1]
    in which you can read
    Solution
    Run the select SQL startement that extracts data directly on the database and examine the data returned to make sure the data is valid and correct.
    Check source and target Datastores in both environments to make sure the columns' size and datatype are the same and the target File Datastore's columns size are big enough for the source data.
    In Topology, check the File JDBC Driver name and URL in both environments to make sure driver used is the same and the driver property ENCODING is set to the correct value if it is used. The default encoding value is ISO8859_1 which might not be appropriate if the source data is stored in
    a UTF8 database.
    Check the Locale values and Encodings used on the different servers.
    For example, for Oracle, check the NLS_CHARACTERSET setting in both environments. Take a look at Note 453080.1 for an example on the Locale.
    Finally, the ODI File Driver has the following property that can be used to truncate the long data to fit the fields size of the File Datastore if needed:
    TRUNC_FIXED_STRINGS=TRUE|FALSE: Truncates the strings from the fixed files to the field size. Default value is FALSE.
    TRUNC_DEL_STRINGS=TRUE|FALSE: Truncates the strings from the delimited files to the field size. Default value is FALSE.
    For example, if your target file is delimited, you can try:
    jdbc:snps:dbfile&TRUNC_DEL_STRINGS=TRUE
    Basically you are mapping a source column longer than tarhet.
    DecaXD

  • Error while running simple JAXB test class

    I am new to JAXB and trying to run simple tutorial code.
    I created Java project and added required jar files in a classpath.
    But I get error as
    "com.jaxbtest" doesnt contain ObjectFactory.class or jaxb.index
    I am using Eclipse and I have added these external jars in build path as well as in "Open Run Dialog" classpath.
    Thank you in advance.
    YB

    Hi Timo,
    Im using JDev version 11.1.1.6.0.
    I checked the class path on the jdev console. All the library references are mentioned in the manifest.mf classpath of the test project like below:
    Manifest-Version: 1.0
    Class-Path: lib/identitystore.jar
    lib/adfm.jar
    lib/groovy-all-1.6.3.jar
    lib/adftransactionsdt.jar
    lib/adf-dt-at-rt.jar
    lib/adfdt_common.jar
    lib/adflibrary.jar
    lib/xmlparserv2.jar
    lib/db-ca.jar
    lib/jdev-cm.jar
    lib/ojmisc.jar
    lib/commons-el.jar
    lib/jsp-el-api.jar
    etc...
    So I expect the library references should be resolved looking at the manifest file.
    Another set of entries that I see in the jdev classpath are related to the Model project which is under test.
    -classpath
    D:\CurrentProject_1\16_7_2013_3pm\11_7_2013\.adf;
    D:\CurrentProject_1\16_7_2013_3pm\11_7_2013\Model\classes;
    How do I put these entries into my class path? Will it be sufficient if I add the Model.jar into my test project classpath?
    Thanks,
    Sapna

  • WSIF calling EJB 3.0 beans, with JAXB 2.0.2 as the JavaSerializer

    I'm working with SOA suite (10.1.3.1.0 [build #0 ]), and I am trying to allow my BPEL processes to call my EJB 3.0 stateless session beans via WSIF.
    This works fine when I am passing primitives (strings, dates and so-forth) between BPEL and my EJB's using WSIF.
    However I want to be able to pass my 'business objects" across the BPEL/EJB boundary directly. I started off by following the BPEL cookbook article "Using WSIF for Integration" which was usefull in showing how to use JAXB 1.x generated classes across the BPEL/EJB boundary.
    However in the project I am working on we want to use JAXB 2.0 as it allows us to create an XML schmea binding directly from our existing "business objects".
    So I am using the knowlege gained in the article mentioned above to implement a custom JavaSerializer for my bpel process that will use JAXB 2.0. My custom JavaSerilizer is being invoked correctly, when I invoke my BPEL process, but it is unable to load the correct JAXB (2.0.2) classes - it keeps getting the JAXB 1.0 classes that come standard with oracle.
    My debug code that prints out the classloaders for my serializers (and parent classloaders) reports the following:
    06/09/05 11:18:18 CustomSerializer.serialize
    06/09/05 11:18:18 Classloader =oracle.bpel.common:10.1.3
    06/09/05 11:18:18 Classloader =api:1.4.0
    06/09/05 11:18:18 Classloader =jre.extension:0.0.0
    06/09/05 11:18:18 Classloader =jre.bootstrap:1.5.0_06
    The Jaxb classes it is loading a coming from classloader:
    06/09/05 11:18:18 JAXBContext classloader =oracle.xml:10.1.0_2
    My question is how do I get the JAXB 2.0 classes in my classpath?
    Thanks,
    Dave Oram

    Hello,
    About WSIF, we are currently working on a WSIF-EJB30 binding that will allow you to direclty annotate the session ben and get the EJB exposed as SOAP and WSIF binding out of the box.
    This will be available in OracleAS 10.1.3.1 production.
    Regards
    Tugdual Grall

Maybe you are looking for

  • Outbox

    Often when I send emails I receive an 'Error' mrssage that says This message could not be delivered and will remain in your Outbox until it can be delivered. The sender address (my email address) was rejected by the server. This happens to all sent e

  • How to open a file in any directory not only in current  DIR

    hi i am new to java . i have written the code for opening a file and reading the opened file. i used filedialog to select a file for opening. problem is it is opening a file only in the cuurent working directory. i.e FileDialog.getFile() only returni

  • If I establish a second (different) Zotero account on the same PC, how do I set it to be blank without destroying all the records in the other account?

    I have long had a Zotero account and it works well. I recently merged it into a group account with a few other people; we are sharing the same set of references. Now I want to set up a personal account for different purposes, perhaps eventually becom

  • REPORT FUNCTION

    IN THE CFREPORT report builder there isa Report function...when i return a query with 2 field....it cannot be done? is it for the report function only can return 1 value ?

  • Return delivary....

    Hi all , i can you please help me if we will get the finish material from customer ,as customer not statisfied with quality ,then how you are managing so that Quality inspection has to be carried out ?? what is the SD related flow ...to take material