NullPointerException while schema compiling in JAXB

I want to compile po.xsd which is used in examples but when I do that the compiler throws a NullPointerException.
Here is the output:
C:\Sun\jwsdp-1.6\jaxb\bin>xjc -d c:\_generated_schemas c:\_generated_schemas\po.xsd
parsing a schema...
compiling a schema...
generated\impl\runtime\SAXMarshaller.java
generated\impl\runtime\MarshallerImpl.java
generated\impl\runtime\ValidatableObject.java
generated\impl\runtime\GrammarInfoImpl.java
generated\impl\runtime\NamespaceContext2.java
generated\impl\runtime\UnmarshallingEventHandler.java
generated\impl\runtime\UnmarshallableObject.java
generated\impl\runtime\ContentHandlerAdaptor.java
generated\impl\runtime\SAXUnmarshallerHandler.java
generated\impl\runtime\XMLSerializable.java
generated\impl\runtime\InterningUnmarshallerHandler.java
generated\impl\runtime\Discarder.java
generated\impl\runtime\GrammarInfoFacade.java
generated\impl\runtime\UnmarshallingContext.java
generated\impl\runtime\IdentityHashSet.java
generated\impl\runtime\XMLSerializer.java
generated\impl\runtime\SAXUnmarshallerHandlerImpl.java
generated\impl\runtime\DefaultJAXBContextImpl.java
generated\impl\runtime\AbstractUnmarshallingEventHandlerImpl.java
generated\impl\runtime\ValidatingUnmarshaller.java
generated\impl\runtime\ValidatorImpl.java
generated\impl\runtime\GrammarInfo.java
generated\impl\runtime\Util.java
generated\impl\runtime\MSVValidator.java
generated\impl\runtime\PrefixCallback.java
generated\impl\runtime\UnmarshallerImpl.java
generated\impl\runtime\ErrorHandlerAdaptor.java
generated\impl\runtime\ValidationContext.java
generated\impl\runtime\UnmarshallingEventHandlerAdaptor.java
generated\impl\runtime\NamespaceContextImpl.java
generated\impl\CommentImpl.java
Exception in thread "main" java.lang.NullPointerException
at com.ibm.nio.cs.SBCS_Encoder.canEncode(SBCS_Encoder.java:199)
at com.sun.codemodel.JPackage$1.requireEscaping(JPackage.java:356)
at com.sun.codemodel.util.UnicodeEscapeWriter.write(UnicodeEscapeWriter.
java:28)
at com.sun.codemodel.util.UnicodeEscapeWriter.write(UnicodeEscapeWriter.
java:54)
at com.sun.codemodel.util.UnicodeEscapeWriter.write(UnicodeEscapeWriter.
java:66)
at java.io.PrintWriter.newLine(PrintWriter.java(Compiled Code))
at java.io.PrintWriter.println(PrintWriter.java(Compiled Code))
at com.sun.codemodel.JFormatter.nl(JFormatter.java:159)
at com.sun.codemodel.JPackageMemberClass.declare(JPackageMemberClass.jav
a:60)
at com.sun.codemodel.JPackage.build(JPackage.java:364)
at com.sun.codemodel.JCodeModel.build(JCodeModel.java:157)
at com.sun.tools.xjc.Driver.run(Driver.java:235)
at com.sun.tools.xjc.Driver._main(Driver.java:80)
at com.sun.tools.xjc.Driver.access$000(Driver.java:46)
at com.sun.tools.xjc.Driver$1.run(Driver.java:60)
What do I wrong?? Please help
My Java SDK is 1.42

Make sure that Java Home environment set to other then IBM jre
or if you are running xjc.bat add the following line at the starting :
set JAVA_HOME=C:\Progra~1\ibm\websph~1.1\eclipse\jre

Similar Messages

  • Can't use JAXB schema compiler output!!

    when i try to compile large .xsd file with JAXB schema compiler, it generates java source just fine.
    but when i try to compile the source into classes, javac runs out of memory! the files are to big! anyone can i make them smaller please?
    thanks in the advance!

    Does anyone know how to do this? I just need to make the files smaller. The classes have all been statically nested by the code generator. How can I simply make them be statically instantiated, but declared in seperate, smaller, compileable files?
    Doesn't anyone else have this problems? It seems like anyone else trying to compile large schema files with JAXB would run into this issue??
    Thanks

  • Odata JDBC Service: getting NullPointerException: while trying to invoke the method

    Hi,
    I am testing OData, for that I followed the steps given in this tutorial:
    http://scn.sap.com/community/developer-center/mobility-platform/blog/2014/06/10/creating-an-odata-service-based-on-sap-gateway-soap-jdbc-and-jpa-data-sources-ba
    It wasn't working as it should, so to understand it better, I created a new project with Stock table only.
    Manually entered all it's properties and then deploy it.
    Issue1: when I create a JDBC connection to connect with derby database, The driver field has maximum limit and whole driver string is not copied. Attached is the screen shot.
    Where as I need to enter: org.apache.derby.jdbc.ClientDriver.
    Issue 2: I can't test the connection from here, weather it's working fine or not ?
    Issue 3:
    When I deploy the project and test the result, I get the Stock Service, But when I try to run this, I get nullpointer exception.
    URL: http://localhost:8080/gateway/odata/sap/WSTest1;v=1
    Response:
    <?xml version="1.0" encoding="utf-8"?>
    <service xml:base="http://localhost:8080/gateway/odata/sap/WSTest1;v=1/" xmlns="http://www.w3.org/2007/app" xmlns:atom="http://www.w3.org/2005/Atom">
      <workspace>
       <atom:title>Default</atom:title>
       <collection href="StockSet">
       <atom:title>StockSet</atom:title>
       </collection>
      </workspace>
    </service>
    Now I need to run StockSet, so next url to access the stock list,
    to get stocks:
    http://localhost:8080/gateway/odata/sap/WSTest1;v=1/SAP/StockSet
    Now I get the following response:
        <?xml version="1.0" ?>
        <error xmlns="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">
        <code>
        </code>
        <message xml:lang="en">java.lang.NullPointerException: while trying to invoke the method java.lang.Object.hashCode() of a null object loaded from local variable 'k'</message>
        </error>
    I am not able to figure out, why I am getting this error and how to fix it.
    All I want is to create a ODAta on ESPM_STOCK sample table given in example.
    Looking forward to hear from you.
    Thanks.

    Waqas Sadiq
    Issue1: when I create a JDBC connection to connect with derby database, The driver field has maximum limit and whole driver string is not copied. Attached is the screen shot.
    Are you working on SMP3.0 (lower version than SP03)?
    If yes, then there is character restriction in SMP3.0 (SP00, SP01), maximum length for a database driver is 25 characters.
    e.g. if driver name is oracle.jdbc.driver.OracleDriver but when you enter this, then you will see onlyoracle.jdbc.driver.Oracle
    Until unless we pass the correct driver value things will not work. there is a workaround for this. You create a desitnation with restricted character length.
    You would be seeing a property file for each created destination underC:\SAP\MobilePlatform3\Server\config_master\service.destinations\destinations
    Go there and open the created "OracleDB" and edit the "DriverName" to the full string:oracle.jdbc.driver.OracleDriver
    Please go through this blog for more understanding:
    http://scn.sap.com/community/developer-center/mobility-platform/blog/2014/01/09/how-to-connect-an-oracle-db-with-integration-gateway-in-smp3
    Note: seems this problem has been resolved in SMP3 SP03
    Issue 2: I can't test the connection from here, weather it's working fine or not ?
    I didnt find a way to test a destination. So you have to be sure about what all values you are entering.
    Once you are done with Destination creation, map it to the respective deployed service under "services" tab.
    Issue 3: When I deploy the project and test the result, I get the Stock Service, But when I try to run this, I get nullpointer exception
    Make sure you have corrected "Database driver" name manually. And then check if you are facing same issue.
    Does this URL expect any input parameters?
    http://localhost:8080/gateway/odata/sap/WSTest1;v=1/SAP/StockSet
    Regards,
    JK

  • Java.lang.NullPointerException while using PGP module in SFTP receiver

    Hi Experts,
    We are trying out newly installed PGP module on SAP PI 711 SP10.
    Scenario     : SFTP to SFTP
    While we are trying to encrypt the message in the SFTP receiver, we get the following error.
    nested exception is: javax.ejb.EJBException: (Failed in component: sap.com/com.sap.aii.af.app, BC-XI-CON-AFW) Exception raised from invocation of public com.sap.aii.af.lib.mp.module.ModuleData com.sap.aii.af.app.endpoint.ModuleProcessorExitBean.process(com.sap.aii.af.lib.mp.module.ModuleContext,com.sap.aii.af.lib.mp.module.ModuleData) throws com.sap.aii.af.lib.mp.module.ModuleException method on bean instance com.sap.aii.af.app.endpoint.ModuleProcessorExitBean@6437822b for bean sap.com/com.sap.aii.af.app*xml|com.sap.aii.af.ejb.jar*xml|ModuleProcessorExitBean in application sap.com/com.sap.aii.af.app.; nested exception is: java.lang.NullPointerException: while trying to invoke the method com.sap.engine.interfaces.messaging.api.Message.getMessageKey() of an object loaded from local variable 'msMessage'

    Thanks Hareesh,
    ya that  "callsapadapter"  was the culprit. It comes by itself, Once I removed that PGP was working fine.

  • Getting error java.lang.NullPointerException while selection LOV

    I am getting error java.lang.NullPointerException while selecting LOV. Please help
    SEVERE: Server Exception during PPR, #1
    javax.servlet.ServletException
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:277)
         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:292)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:181)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:85)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:279)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeDoFilter(TrinidadFilterImpl.java:239)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:196)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:139)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at oracle.security.jps.wls.JpsWlsFilter.doFilter(JpsWlsFilter.java:102)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:65)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:149)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3496)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(Unknown Source)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused by: java.lang.NullPointerException
         at oracle.adfinternal.view.faces.model.binding.RowDataManager.setRowKey(RowDataManager.java:129)
         at oracle.adfinternal.view.faces.model.binding.FacesCtrlHierBinding$FacesModel.setRowKey(FacesCtrlHierBinding.java:530)
         at org.apache.myfaces.trinidad.component.UIXCollection.setRowKey(UIXCollection.java:429)
         at oracle.adfinternal.view.faces.renderkit.rich.TableRendererUtils.decodeSelectedRowKeys(TableRendererUtils.java:470)
         at oracle.adfinternal.view.faces.renderkit.rich.table.BaseTableRenderer.decodeIncompatiblePropertyKey(BaseTableRenderer.java:208)
         at oracle.adf.view.rich.render.RichRenderer.decode(RichRenderer.java:203)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.__rendererDecode(UIXComponentBase.java:1089)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.decode(UIXComponentBase.java:714)
         at org.apache.myfaces.trinidad.component.UIXTable.decode(UIXTable.java:136)
         at org.apache.myfaces.trinidad.component.UIXCollection.processDecodes(UIXCollection.java:193)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:970)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:956)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:812)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:970)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:956)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:812)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:970)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:956)
         at oracle.adf.view.rich.component.UIXPopup.processDecodes(UIXPopup.java:60)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:970)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:956)
         at oracle.adf.view.rich.component.UIXInputPopup.processDecodes(UIXInputPopup.java:137)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl$ApplyRequestValuesCallback.invokeContextCallback(LifecycleImpl.java:1113)
         at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:722)
         at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:731)
         at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:731)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.invokeOnComponent(ContextSwitchingComponent.java:153)
         at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:731)
         at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:731)
         at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:731)
         at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:731)
         at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:731)
         at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:731)
         at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:731)
         at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:731)
         at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:731)
         at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:731)
         at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:731)
         at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:731)
         at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:731)
         at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:731)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.invokeOnComponent(ContextSwitchingComponent.java:153)
         at oracle.adf.view.rich.component.fragment.UIXPageTemplate.invokeOnComponent(UIXPageTemplate.java:208)
         at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:731)
         at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:731)
         at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:731)
         at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:664)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:303)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:175)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
         ... 29 more

    Duplicate: Re: Get null pointer exception while selecting LOV for a parameter form object

  • "java.lang.NullPointerException" while assigning Organization

    Hi,
    Recently we have upgraded our IDM environment from version 7 to 7.1.1.6.
    After that we get the "java.lang.NullPointerException" while assigning an Organization during the creation of the user through from Idm Admin
    Interface.
    Is there any file i am missing ? has any one experienced the problem before?
    thx,
    Ttslsab

    Thanks Hareesh,
    ya that  "callsapadapter"  was the culprit. It comes by itself, Once I removed that PGP was working fine.

  • (App-store) Compilation failed while executing : compile-abc

    I just upgraded to AIR16 and can no longer compile for the ios app store from Windows 7.
    Calling "adt -package -target ipa-test ..." with AIR16 works correctly, installs and runs on my device.
    Calling "adt -package -target ipa-app-store ..." with AIR16 crashes the compiler with this generic error:
    Compilation failed while executing : compile-abc
    Calling "adt -package -target ipa-app-store ..." with AIR14 (and the new compiler, not legacy) works correctly.
    How do I get more information about what is happening? I have no ANEs. Could this have something to do with the new 64-bit requirements? My version of Java? With provisioning profiles? What else is different between test and app-store compile modes?

    Update: I tried a half dozen different ways to compile with AIR16 to no joy. Test works fine, App Store compile fails.
    Then finally tried the current AIR17 beta which DOES work. I don't see anything in the release notes about fixing ios app-store compile issues, though there's a new known ios-related bug with textfields.
    Does ADT produce an error log file somewhere? I'd like to get more info about this "Compilation failed while executing : compile-abc" error if I ever run into it again.

  • Compilation failed while executing : compile-abc

    This is with the latest AIR 4.0 beta, dated 12/17, with "-useLegacyAOT no" on Mac, OS X 10.9.
    0  compile-abc              0x0095d728 PrintStackTrace(void*) + 40
    1  compile-abc              0x0095dba1 SignalHandler(int) + 449
    2  libsystem_platform.dylib 0x9039fdeb _sigtramp + 43
    3  libsystem_platform.dylib 0xffffffff _sigtramp + 1875247679
    4  compile-abc              0x0005846b halfmoon::Cleaner::simplify(halfmoon::BlockEndInstr*) + 667
    5  compile-abc              0x00058fc6 halfmoon::cleanBlocks(halfmoon::Context*, halfmoon::InstrGraph*, halfmoon::Cleaner*) + 166
    6  compile-abc              0x0005ab34 halfmoon::removeDeadCode(halfmoon::Context*, halfmoon::InstrGraph*) + 324
    7  compile-abc              0x0004ee1c halfmoon::AbcBuilder::visitBlocks(nanojit::Seq<halfmoon::AbcBlock*>*) + 316
    8  compile-abc              0x000c0a76 halfmoon::parseAbc(avmplus::MethodInfo*, halfmoon::Lattice*, halfmoon::InfoManager*, nanojit::Allocator&, halfmoon::AbcGraph*, avmplus::Toplevel*, avmplus::AbcEnv*, halfmoon::ProfiledInformation*, halfmoon::Context&) + 182
    9  compile-abc              0x000c1788 halfmoon::JitWriter::writeEpilogue(avmplus::FrameState const*) + 216
    10 compile-abc              0x00129d3b avmplus::NullWriter::writeEpilogue(avmplus::FrameState const*) + 27
    11 compile-abc              0x00183829 avmplus::Verifier::verify(avmplus::CodeWriter*) + 1273
    12 compile-abc              0x000053af compile_abc::CompilerCore::emitPoolToModule(compile_abc::PoolInfo&, compile_abc::LLVMModule*) + 927
    13 compile-abc              0x00004a80 compile_abc::CompilerCore::compile() + 4496
    14 compile-abc              0x0000363f compile_abc::CompilerCore::run(int, char**) + 1471
    15 compile-abc              0x00005f62 main + 66
    16 compile-abc              0x00002235 start + 53
    There's also a lengthy list of program arguments, looks like it's working on ABCs from native extensions. Buried in there is this line as well:
    41063 Bus error: 10

    Hey, I have found this:
    Swf compiled with Flash Pro CS6 with AIR 3.9 SDK selected
    No error
    ipa is created a working without any problems.
    Swf compiled with Flash Develop and Flex 4.6 AIR 3.9 SDK
    adt throws this error:
    Compilation failed while executing : compile-abc
    Swf compiled with Flash Develop and Adobe AIR 4.0 SDK
    adt throws this error:
    duplicate symbol _traits:com.distriqt.extension.facebookutils.base::ExtensionBas
    e$ in:
        AOTBuildOutput-0000000000_7.o
        com.distriqt.FacebookUtils-0_3.o
    duplicate symbol _traits:com.distriqt.extension.facebookutils.base::ExtensionBas
    e in:
        AOTBuildOutput-0000000000_7.o
        com.distriqt.FacebookUtils-0_3.o
    duplicate symbol _traits:com.distriqt.extension.facebookutils::FacebookUtils$ in
        AOTBuildOutput-0000000000_7.o
        com.distriqt.FacebookUtils-1_4.o
    duplicate symbol _traits:com.distriqt.extension.facebookutils::FacebookUtils in:
        AOTBuildOutput-0000000000_7.o
        com.distriqt.FacebookUtils-1_4.o
    duplicate symbol _traits:com.distriqt.extension.facebookutils.events::FacebookUt
    ilsLoginEvent$ in:
        AOTBuildOutput-0000000000_7.o
        com.distriqt.FacebookUtils-2_5.o
    duplicate symbol _traits:com.distriqt.extension.facebookutils.events::FacebookUt
    ilsLoginEvent in:
        AOTBuildOutput-0000000000_7.o
        com.distriqt.FacebookUtils-2_5.o
    duplicate symbol _traits:com.distriqt.extension.testflightsdk.base::ExtensionBas
    e$ in:
        AOTBuildOutput-0000000000_7.o
        com.distriqt.TestFlightSDK-0_0.o
    duplicate symbol _traits:com.distriqt.extension.testflightsdk.base::ExtensionBas
    e in:
        AOTBuildOutput-0000000000_7.o
        com.distriqt.TestFlightSDK-0_0.o
    duplicate symbol _traits:com.distriqt.extension.testflightsdk::TestFlightSDK$ in
        AOTBuildOutput-0000000000_7.o
        com.distriqt.TestFlightSDK-1_1.o
    duplicate symbol _traits:com.distriqt.extension.testflightsdk::TestFlightSDK in:
        AOTBuildOutput-0000000000_7.o
        com.distriqt.TestFlightSDK-1_1.o
    ld: 10 duplicate symbols for architecture armv7
    Compilation failed while executing : ld64

  • Export release build failed with an error message: complilation failed while excuting : compile-abc

    I updated air sdk from 4.0 to 16.0 beta to fix apple app store submitting bug. I can build the project and run it on simulator without any problem.  But when I tried to export the ios release build, I got this error message: complilation failed while excuting : compile-abc. 
    I use commmand line to excute compile-abc.exe with the parameters that adt gives it, but it failed without any error message.
    Here is the command line:
    compile-abc.exe -mtriple=armv7-apple-ios -filetype=obj -sdk "C:\Program Files (x86)\Adobe\Adobe Flash Builder 4.5\sdks\4.5.1 - air16\lib\aot/lib/avmglue.abc" -fields "C:\Program Files (x86)\Adobe\Adobe Flash Builder 4.5\sdks\4.5.1 - air16\lib\aot/lib/air-fields.arm-air.txt" -O3 -abc-file-list=E:\MyApp\bin-debug\AOTBuildOutput8184169967790207636.tmp\ABCFilesList.txt
    There's a empty file AOTBuildOutput-0000001821_1821.o left in the command line workaroud path. I opened file AOTBuildOutput-0000001821.abc, but didn't get any clue. How can I trace this problem?

    Still having similar issues - seems to be when I embed an image - but works for every release except for release build
    Tried your work around but doesnt seem to make a different
    [Embed(source = "/../assets/[email protected]")]
    protected static const ATLAS_IMAGE:Class;
    [Embed(source = "/../assets/[email protected]", mimeType = "application/octet-stream")]
    protected static const ATLAS_XML:Class;
    [Embed(source = "/../assets/iconMap.png")]
    protected static const ATLAS_IMAGE_LOW_RES:Class;
    [Embed(source = "/../assets/iconMap.xml", mimeType = "application/octet-stream")]
    protected static const ATLAS_XML_LOW_RES:Class;
    if(Starling.current.viewPort.width > 320)
    atlas = new TextureAtlas(Texture.fromBitmap(new ATLAS_IMAGE(), false), XML(new ATLAS_XML()));   
    }else{
    atlas = new TextureAtlas(Texture.fromBitmap(new ATLAS_IMAGE_LOW_RES(), false), XML(new ATLAS_XML_LOW_RES()));

  • Getting NullPointerException while executing OMBIMPORT in OWB 11gR2

    Hi,
    When running BSC Expert in OWB 11gR2 along with 11.2 Database, getting the following error:
    "PUB03302: Failed to connect to user null in source database null:null:null:java.lang.NullPointerException"
    while executing the statement
    OMBIMPORT FROM METADATA_LOCATION FOR IMPORT_ACTION_PLAN 'BSC_C_$G_OBJECTIVE' .
    Since I am totally new to OMB+, I have no idea about why this is happening.
    Could anyone please give some pointers/solutions for this problem. Because of this issue we are not able to proceed with our certification.
    Thanks,
    Karthik.

    Looking at the exception, looks like the metadata location for module is not set.
    Did you set the metadata location for the module? metadata location is different from data location. metadata location is used for reverse engineer. Please open the module editor, switch to metadata location panel, check if the metedata location is set.

  • Error while De-Compiling class files

    Hi Gurus,
    I am facing one issue.
    While de-compiling class files, Some of the class files are not getting de-compiled correctly. When I open de-compiled Java file, the code is with errors where some of the code lines are not in proper form.
    I have experienced this with couple of times now. I am using JAD as a tool.
    Please help.
    Thanks,
    -Abm

    "Some of the class files are not getting de-compiled correctly. When I open de-compiled Java file, the code is with errors where some of the code lines are not in proper form."
    Well, unless you put a sample of error, how do you expect any solution?--Shiv                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • NullPointerException while Invoking the Application Client class

    I am trying to use Application Client Testing Tool in WSAD 5.0. Getting NullPointerException while the class is getting invoked. Could somebody help me...
    IBM WebSphere Application Server, Release 5.0
    J2EE Application Client Tool
    Copyright IBM Corp., 1997-2002
    WSCL0012I: Processing command line arguments.
    WSCL0001I: Command line, property file, and system property arguments resolved to:
    File to launch = D:/test/TestEAR
    CC Property File = null
    Client Jar File = <default>
    Alternate DD = null
    BootstrapHost = hostxyz
    BootstrapPort = <default>
    Trace enabled = false
    Tracefile = null
    Init only = false
    Classpath Parameter = null
    Security Manager = disable
    Security Manager Class = Not used. -CCsecurityManager=disable
    Security Manager Policy = Not used. -CCsecurityManager=disable
    Exit VM = false
    Soap Connector Port = null
    Application Parameters =
    WSCL0013I: Initializing the J2EE Application Client Environment.
    WSCL0600I: Binding HandleDelegate object.
    WSCL0031I: The object was bound successfully.
    WSCL0900I: Initializing and starting components.
    WSCL0910I: Initializing component: com.ibm.ws.activity.ActivityServiceComponentImpl
    WSCL0911I: Component initialized successfully.
    WSCL0901I: Component initialization completed successfully.
    WSCL0035I: Initialization of the J2EE Application Client Environment has completed.
    WSCL0014I: Invoking the Application Client class TestMDB
    WSCL0100E: Exception received: java.lang.NullPointerException     at java.lang.reflect.Method.invoke(Native Method)
         at com.ibm.websphere.client.applicationclient.launchClient.createContainerAndLaunchApp(launchClient.java:616)
         at com.ibm.websphere.client.applicationclient.launchClient.main(launchClient.java:420)
         at java.lang.reflect.Method.invoke(Native Method)
         at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:94)

    Some more info:
    This is in ApplicationClientModule of TestEAR. This EAR has an EJBModule. ApplicationClientModule invokes one of the EJBs. Selected TestEAR as Enterprise Application.

  • FlashBuilder NullPointerException while building (invoking Compiler)

    Hello.
    I've a problem building project, which is a AS3 library project.
    The error I got in eclipse log is:
    !ENTRY org.eclipse.core.resources 4 75 2014-04-14 10:14:33.378
    !MESSAGE Errors occurred during the build.
    !SUBENTRY 1 com.adobe.flexbuilder.project 4 75 2014-04-14 10:14:33.378
    !MESSAGE Errors running builder 'Compiler' on project 'MyProjectName'.
    !STACK 0
    java.lang.NullPointerException
        at com.adobe.flexbuilder.project.compiler.internal.FlexProjectBuilder.calcBuildTotalWork(FlexProjectBuilder.java:214)
        at com.adobe.flexbuilder.project.compiler.internal.FlexProjectBuilder.build(FlexProjectBuilder.java:227)
        at com.adobe.flexbuilder.project.compiler.internal.FlexIncrementalBuilder.build(FlexIncrementalBuilder.java:171)
        at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:728)
        at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
        at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:199)
        at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:239)
        at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:292)
        at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
        at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:295)
        at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:351)
        at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:374)
        at org.eclipse.core.internal.resources.Workspace.buildInternal(Workspace.java:513)
        at org.eclipse.core.internal.resources.Workspace.build(Workspace.java:422)
        at org.eclipse.ui.actions.GlobalBuildAction$1.run(GlobalBuildAction.java:180)
        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
    I keep wondering how is that possible anyway, meaning for such an expensive product to be still that buggy?!
    NPE means someone saved him self some time not checking if something was null and displaying a proper message in eclipse, which could help me solve the problem (if in .project or .actionScriptProperties or .flexLibProperties for example).
    The point of using expensive software when building our software is to work! I guess I've any right to a good explanation, thou I don't beleave that's what I will get.
    Version details:
    Adobe Flash Builder 4.7
    Version: 4.7.0.349722
    PS: Flash Builder got a lots of problems (serious bugs). Thou nobody from adobe talks about them. Cleaning projects crashes almost every time, very often the compiling process brings "Internal error"... Are you guys capable of writing software? Meaning working software - I'll clarify for you 'cause obviously you are not familiar with the term "working software" - means everything works as expected. Because of your lack of skill I waste huge amounts of time restarting your half-written software so it could at least compile once.. then restart again the whole thing. Very useful for business. Educate your self before selling your sh!t to the people, you crooks!

    Hi,
    try cleaning and Building the project again.
    If it does not work just restart your IDE.

  • Unable to compile the JAXB generated java files

    Hi
    I am using JAXB 2.0 API for binding process.
    I have products.xml file as
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE PRODUCTDATA SYSTEM "products.dtd">
    <PRODUCTDATA>
    <PRODUCT PRODID="P001" CATEGORY="Books">
    <PRODUCTNAME>Gone with the wind</PRODUCTNAME>
    <DESCRIPTION>This is abt American Civil War</DESCRIPTION>
    <PRICE>25.00</PRICE>
    <QUANTITY>3</QUANTITY>
    </PRODUCT>
    </PRODUCTDATA>
    and products.xsd(Schema file) as
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <xsd:element name="PRODUCTDATA" type="prdt"/>
    <xsd:complexType name="prdt">
    <xsd:sequence>
    <xsd:element name="PRODUCT" type="prd" maxOccurs="unbounded" />
    </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="prd">
    <xsd:sequence>
    <xsd:element name="PRODUCTNAME" type="xsd:string"/>
    <xsd:element name="DESCRIPTION" type="xsd:string"/>
    <xsd:element name="PRICE" type="xsd:positiveInteger"/>
    <xsd:element name="QUANTITY" type="xsd:nonNegativeInteger"/>
    </xsd:sequence>
    <xsd:attribute name="PRODID" type="pid" use="required"/>
    <xsd:attribute name="CATEGORY" type="xsd:string" use="optional"/>
    </xsd:complexType>
    <xsd:simpleType name="pid">
    <xsd:restriction base="xsd:string">
    <xsd:pattern value="[p]{1}/d{3}"/>
    <xsd:length value="4"/>
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:schema>
    I am converting these schema file to java files by using binding compiler xjc.
    So that three java files are genearated automatically.
    1) ObjectFactory.java
    // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.0 in JDK 1.6
    // See http://java.sun.com/xml/jaxb
    // Any modifications to this file will be lost upon recompilation of the source schema.
    // Generated on: 2008.06.23 at 04:09:25 PM IST
    package testing.jaxb;
    import javax.xml.bind.JAXBElement;
    import javax.xml.bind.annotation.XmlElementDecl;
    import javax.xml.bind.annotation.XmlRegistry;
    import javax.xml.namespace.QName;
    * This object contains factory methods for each
    * Java content interface and Java element interface
    * generated in the testing.jaxb package.
    * <p>An ObjectFactory allows you to programatically
    * construct new instances of the Java representation
    * for XML content. The Java representation of XML
    * content can consist of schema derived interfaces
    * and classes representing the binding of schema
    * type definitions, element declarations and model
    * groups. Factory methods for each of these are
    * provided in this class.
    @XmlRegistry
    public class ObjectFactory {
    private final static QName PRODUCTDATAQNAME = new QName("", "PRODUCTDATA");
    * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: testing.jaxb
    public ObjectFactory() {
    * Create an instance of {@link Prd }
    public Prd createPrd() {
    return new Prd();
    * Create an instance of {@link Prdt }
    public Prdt createPrdt() {
    return new Prdt();
    * Create an instance of {@link JAXBElement }{@code <}{@link Prdt }{@code >}}
    @XmlElementDecl(namespace = "", name = "PRODUCTDATA")
    public JAXBElement<Prdt> createPRODUCTDATA(Prdt value) {
    return new JAXBElement<Prdt>(_PRODUCTDATA_QNAME, Prdt.class, null, value);
    2)Prdt.java
    // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.0 in JDK 1.6
    // See http://java.sun.com/xml/jaxb
    // Any modifications to this file will be lost upon recompilation of the source schema.
    // Generated on: 2008.06.23 at 04:09:25 PM IST
    package testing.jaxb;
    import java.util.ArrayList;
    import java.util.List;
    import javax.xml.bind.annotation.XmlAccessType;
    import javax.xml.bind.annotation.XmlAccessorType;
    import javax.xml.bind.annotation.XmlElement;
    import javax.xml.bind.annotation.XmlType;
    * <p>Java class for prdt complex type.
    * <p>The following schema fragment specifies the expected content contained within this class.
    * <pre>
    * <complexType name="prdt">
    * <complexContent>
    * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
    * <sequence>
    * <element name="PRODUCT" type="{}prd" maxOccurs="unbounded"/>
    * </sequence>
    * </restriction>
    * </complexContent>
    * </complexType>
    * </pre>
    @XmlAccessorType(XmlAccessType.FIELD)
    @XmlType(name = "prdt", propOrder = {
    "product"
    public class Prdt {
    @XmlElement(name = "PRODUCT", required = true)
    protected List<Prd> product;
    * Gets the value of the product property.
    * <p>
    * This accessor method returns a reference to the live list,
    * not a snapshot. Therefore any modification you make to the
    * returned list will be present inside the JAXB object.
    * This is why there is not a <CODE>set</CODE> method for the product property.
    * <p>
    * For example, to add a new item, do as follows:
    * <pre>
    * getPRODUCT().add(newItem);
    * </pre>
    * <p>
    * Objects of the following type(s) are allowed in the list
    * {@link Prd }
    public List<Prd> getPRODUCT() {
    if (product == null) {
    product = new ArrayList<Prd>();
    return this.product;
    3) Prd.java
    // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.0 in JDK 1.6
    // See http://java.sun.com/xml/jaxb
    // Any modifications to this file will be lost upon recompilation of the source schema.
    // Generated on: 2008.06.23 at 04:09:25 PM IST
    package testing.jaxb;
    import java.math.BigInteger;
    import javax.xml.bind.annotation.XmlAccessType;
    import javax.xml.bind.annotation.XmlAccessorType;
    import javax.xml.bind.annotation.XmlAttribute;
    import javax.xml.bind.annotation.XmlElement;
    import javax.xml.bind.annotation.XmlType;
    * <p>Java class for prd complex type.
    * <p>The following schema fragment specifies the expected content contained within this class.
    * <pre>
    * <complexType name="prd">
    * <complexContent>
    * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
    * <sequence>
    * <element name="PRODUCTNAME" type="{http://www.w3.org/2001/XMLSchema}string"/>
    * <element name="DESCRIPTION" type="{http://www.w3.org/2001/XMLSchema}string"/>
    * <element name="PRICE" type="{http://www.w3.org/2001/XMLSchema}positiveInteger"/>
    * <element name="QUANTITY" type="{http://www.w3.org/2001/XMLSchema}nonNegativeInteger"/>
    * </sequence>
    * <attribute name="CATEGORY" type="{http://www.w3.org/2001/XMLSchema}string" />
    * <attribute name="PRODID" use="required" type="{}pid" />
    * </restriction>
    * </complexContent>
    * </complexType>
    * </pre>
    @XmlAccessorType(XmlAccessType.FIELD)
    @XmlType(name = "prd", propOrder = {
    "productname",
    "description",
    "price",
    "quantity"
    public class Prd {
    @XmlElement(name = "PRODUCTNAME", required = true)
    protected String productname;
    @XmlElement(name = "DESCRIPTION", required = true)
    protected String description;
    @XmlElement(name = "PRICE", required = true)
    protected BigInteger price;
    @XmlElement(name = "QUANTITY", required = true)
    protected BigInteger quantity;
    @XmlAttribute(name = "CATEGORY")
    protected String category;
    @XmlAttribute(name = "PRODID", required = true)
    protected String prodid;
    * Gets the value of the productname property.
    * @return
    * possible object is
    * {@link String }
    public String getPRODUCTNAME() {
    return productname;
    * Sets the value of the productname property.
    * @param value
    * allowed object is
    * {@link String }
    public void setPRODUCTNAME(String value) {
    this.productname = value;
    * Gets the value of the description property.
    * @return
    * possible object is
    * {@link String }
    public String getDESCRIPTION() {
    return description;
    * Sets the value of the description property.
    * @param value
    * allowed object is
    * {@link String }
    public void setDESCRIPTION(String value) {
    this.description = value;
    * Gets the value of the price property.
    * @return
    * possible object is
    * {@link BigInteger }
    public BigInteger getPRICE() {
    return price;
    * Sets the value of the price property.
    * @param value
    * allowed object is
    * {@link BigInteger }
    public void setPRICE(BigInteger value) {
    this.price = value;
    * Gets the value of the quantity property.
    * @return
    * possible object is
    * {@link BigInteger }
    public BigInteger getQUANTITY() {
    return quantity;
    * Sets the value of the quantity property.
    * @param value
    * allowed object is
    * {@link BigInteger }
    public void setQUANTITY(BigInteger value) {
    this.quantity = value;
    * Gets the value of the category property.
    * @return
    * possible object is
    * {@link String }
    public String getCATEGORY() {
    return category;
    * Sets the value of the category property.
    * @param value
    * allowed object is
    * {@link String }
    public void setCATEGORY(String value) {
    this.category = value;
    * Gets the value of the prodid property.
    * @return
    * possible object is
    * {@link String }
    public String getPRODID() {
    return prodid;
    * Sets the value of the prodid property.
    * @param value
    * allowed object is
    * {@link String }
    public void setPRODID(String value) {
    this.prodid = value;
    Next step is to compile these three files
    So I am compiling these three files it gives me compiler error as:
    testing/jaxb/ObjectFactory.java:31: illegal character: \64
    @XmlRegistry
    ^
    testing/jaxb/ObjectFactory.java:63: illegal character: \64
    @XmlElementDecl(namespace = "", name = "PRODUCTDATA")
    ^
    testing/jaxb/ObjectFactory.java:65: <identifier> expected
    return new JAXBElement<Prdt>(_PRODUCTDATA_QNAME, Prdt.class, null, value
    ^
    testing/jaxb/ObjectFactory.java:65: <identifier> expected
    return new JAXBElement<Prdt>(_PRODUCTDATA_QNAME, Prdt.class, null, value
    ^
    testing/jaxb/ObjectFactory.java:65: '{' expected
    return new JAXBElement<Prdt>(_PRODUCTDATA_QNAME, Prdt.class, null, value
    ^
    testing/jaxb/Prdt.java:38: illegal character: \64
    @XmlAccessorType(XmlAccessType.FIELD)
    ^
    testing/jaxb/Prdt.java:39: illegal character: \64
    @XmlType(name = "prdt", propOrder = {
    ^
    testing/jaxb/Prdt.java:44: illegal character: \64
    @XmlElement(name = "PRODUCT", required = true)
    ^
    testing/jaxb/Prdt.java:45: <identifier> expected
    protected List<Prd> product;
    ^
    testing/jaxb/Prdt.java:69: <identifier> expected
    public List<Prd> getPRODUCT() {
    ^
    testing/jaxb/Prdt.java:75: ';' expected
    ^
    testing/jaxb/Prd.java:43: illegal character: \64
    @XmlAccessorType(XmlAccessType.FIELD)
    ^
    testing/jaxb/Prd.java:44: illegal character: \64
    @XmlType(name = "prd", propOrder = {
    ^
    testing/jaxb/Prd.java:52: illegal character: \64
    @XmlElement(name = "PRODUCTNAME", required = true)
    ^
    testing/jaxb/Prd.java:53: <identifier> expected
    protected String productname;
    ^
    testing/jaxb/Prd.java:54: illegal character: \64
    @XmlElement(name = "DESCRIPTION", required = true)
    ^
    testing/jaxb/Prd.java:55: <identifier> expected
    protected String description;
    ^
    testing/jaxb/Prd.java:56: illegal character: \64
    @XmlElement(name = "PRICE", required = true)
    ^
    testing/jaxb/Prd.java:57: <identifier> expected
    protected BigInteger price;
    ^
    testing/jaxb/Prd.java:58: illegal character: \64
    @XmlElement(name = "QUANTITY", required = true)
    ^
    testing/jaxb/Prd.java:59: <identifier> expected
    protected BigInteger quantity;
    ^
    testing/jaxb/Prd.java:60: illegal character: \64
    @XmlAttribute(name = "CATEGORY")
    ^
    testing/jaxb/Prd.java:61: <identifier> expected
    protected String category;
    ^
    testing/jaxb/Prd.java:62: illegal character: \64
    @XmlAttribute(name = "PRODID", required = true)
    ^
    testing/jaxb/Prd.java:63: <identifier> expected
    protected String prodid;
    ^
    25 errors
    I want all three files to compiled successfully.If it is compiled only then I will continue on Unmarshalling process

    I suspect you are trying to compile the files one by one. You may also be trying to compile them disregarding the package structure.
    From your post, I gather these files are in the package: com.geindustrial.sqms
    Therefore, if they are not so already, put them under a directory structure:
    com/geindustrial/sqms
    and then compile with:
    javac com/geindustrial/sqms/AddCtq.java com/geindustrial/sqms/Ctq.java com/geindustrial/sqms/VariableData.java
    (The above is all on one line.)
    HTH,
    Manuel Amago.

  • Schemas and Grammar (JAXB)

    Does anyone know where I can find any documentation or examples for the APIS for Grammar and Expression classes - com.sun.msv.grammar.Grammar, com.sun.msv.grammar.Expression etc... ?
    The why:
    In a previous post I stated I had the following problem. I compiled my schema using JAXB and am able to create objects using the objectFactory but I now need to know what legal values I am able to use for certain objects.
    i.e:
    valid - <apples><type>one</type></apples>
    invalid - <apples><type>three</type></apples>
    invalid - <apples></apples>
    in this example 'type' must be either 'one' or 'two'
    But how do I find out this information using the JAXB APIs?
    The reply to my previous post was
    " DOM Level 3 Validation specification supports getting valid values for a element/attribute http://www.w3.org/TR/2002/WD-DOM-Level-3-Val-20020725/DOM3-Val.html"
    .... but I don't understand how to proceed with this information.
    The only way I have found to get this information is to use the Grammar objects (obtained from the JAXBContext) to recursively obtain expressions until I eventually find an Expression of instance 'EnumerationFacet' which will provide me with what I need.
    But should I be using Grammars or Expressions to discover this information?
    If yes, then how do I use Grammars and Expressions properly? I have no documentation or examples to rely on. Yes, that's right, I don't really know what I'm doing.

    I don't have a problem causing exceptions to be thrown. The problem I have is in determining how to stop them.
    I already know, in my example above, that setting type to either 'one' or 'two' will create a valid xml.
    However, how do I DETERMINE this?
    How do I find out that type must be set either 'one' or 'two'?
    Yes, obviously, I know this because I wrote the schema but how I can programmatically find this information?

Maybe you are looking for