NullPointerException in XML

Hi everyone, I know it sound stupid, but I have a problem, a nullpointerexception when I parse a xml file, I saw the problem, but I can't solve it, when I read something like this:

BlackBerry

Everything works fine but if the xml is like this:

BlackBerry

Then I have a nullpointerexception, of couse because of empty space at the end of the second word tag.

I've used trim(), to remove the empty spaces, but it doesn't work, I realized the problem is when I read the XML code, if it finds an empty space, then just analysis goes down, can anyone help me with this please.

The problem is solved, I change the parser;

for (int l = 0; l)
{
String cad1 = list.item (i) .getChildNodes () .item (j) .getChildNodes () .item (k) .getChildNodes (.item (l) .getNodeValue (.trim ()));
nameBook = cad1.trim ();
}

for:

String cad2 = list.item (i) .getChildNodes () .item (j) .getChildNodes .item (k) .getChildNodes .item () () (0) .getNodeValue () .trim ();
nameBook = cad2.trim ();

!!!

Tags: BlackBerry Developers

Similar Questions

  • NullPointerException in code XML DB

    Hello

    I always use 2.4.16 on the beta server.
    Sometimes after recovery and run a new query, I get the following exception:
    java.lang.NullPointerException
         com.sleepycat.dbxml.XmlManager.createTransaction(XmlManager.java:258)
         com.sleepycat.dbxml.XmlManager.createTransaction(XmlManager.java:269)
            .... <My code>
    Probably, I'm doing something wrong in terms of recovery logic, but I guess that this kind of exceptions should not be thrown from the code of the library, or at least when I invoke XmlManager.createTransaction (). Explicit exception more would help solve this problem. In fact, this is caused by the dbenv object is null. So the question is, why is it OK to create the XmlManager object that contains null environment indoors?

    Thank you
    Vyacheslav

    Vyacheslav,

    The only way that the reference of the environment within the XmlManager object can become null is if XmlManager.delete () is called, and then the object is reused. Is it possible what is happening? There is no way that you can successfully create a XmlManager object without ending up with an environment.

    Kind regards
    George

  • Package error - ripple java.lang.NullPointerException

    Hello

    I am facing a problem trying to package by BB10 app using the plugin of ripple and I'm having a difficult time trying to figure out what the problem given the description of the error is really generic as you can see in the newspaper.

    out: [BUILD]   Populating application source
    
    2013-09-10 15:01:27 GET /ripple/build_status/5084 200
    2013-09-10 15:01:27 GET /ripple/build_status/5084 200
    2013-09-10 15:01:28 GET /ripple/build_status/5084 200
    2013-09-10 15:01:28 GET /ripple/build_status/5084 200
    2013-09-10 15:01:29 GET /ripple/build_status/5084 200
    2013-09-10 15:01:29 GET /ripple/build_status/5084 200
    out: [BUILD]   Parsing config.xml
    
    out: [WARN]    You have disabled all web security in this WebWorks application
    
    out: [WARN]    Build ID set in config.xml [version], but no signing password was provided [-g]. Bar will be unsigned
    
    out: [BUILD]   Generating output files
    
    2013-09-10 15:01:30 GET /ripple/build_status/5084 200
    out: [INFO]    java.lang.NullPointerException
    
    out: [INFO]     at com.qnx.bbt.packager.Asset.setSourcePath(Asset.java:88)  at com.qnx.bbt.packager.Asset.(Asset.java:75)   at com.qnx.bbt.xml.BbtExtensionXml.getAsset(BbtExtensionXml.java:571)   at com.qnx.bbt.xml.BbtExtensionXml.getAssets(BbtExtensionXml.java:541)  at com.qnx.bbt.packager.BbtBarValueProvider.getAssets(BbtBarValueProvider.java:202) at com.qnx.bbt.bar.BARPackager.getAssets(BARPackager.java:71)
    [INFO]      at com.qnx.bbt.bar.BARPackager.findAsset(BARPackager.java:233)  at com.qnx.bbt.bar.BARPackager.associateSourceAssets(BARPackager.java:227)  at com.qnx.bbt.packager.AbstractPackager.parseDescriptorAndCreateBarManifest(AbstractPackager.java:577)
    
    out: [INFO]     at com.qnx.bbt.packager.AbstractPackager.doRun(AbstractPackager.java:238)
    [INFO]      at com.qnx.bbt.packager.AbstractPackager.runPackager(AbstractPackager.java:164)
    [INFO]      at com.qnx.bbt.nativepackager.BarNativePackager.main(BarNativePackager.java:61)
    
    out: [ERROR]   Error: null
    
    out: [ERROR]   Native Packager exception occurred
    
    2013-09-10 15:01:30 GET /ripple/build_status/5084 200
    2013-09-10 15:01:31 GET /ripple/build_status/5084 200
    out: [INFO]    java.lang.NullPointerException
    [INFO]      at com.qnx.bbt.packager.Asset.setSourcePath(Asset.java:88)  at com.qnx.bbt.packager.Asset.(Asset.java:75)   at com.qnx.bbt.xml.BbtExtensionXml.getAsset(BbtExtensionXml.java:571)
    
    out: [INFO]     at com.qnx.bbt.xml.BbtExtensionXml.getAssets(BbtExtensionXml.java:541)
    [INFO]      at com.qnx.bbt.packager.BbtBarValueProvider.getAssets(BbtBarValueProvider.java:202)
    [INFO]      at com.qnx.bbt.bar.BARPackager.getAssets(BARPackager.java:71)
    [INFO]      at com.qnx.bbt.bar.BARPackager.findAsset(BARPackager.java:233)
    
    out: [INFO]     at com.qnx.bbt.bar.BARPackager.associateSourceAssets(BARPackager.java:227)
    [INFO]      at com.qnx.bbt.packager.AbstractPackager.parseDescriptorAndCreateBarManifest(AbstractPackager.java:577)
    
    out: [INFO]     at com.qnx.bbt.packager.AbstractPackager.doRun(AbstractPackager.java:238)   at com.qnx.bbt.packager.AbstractPackager.runPackager(AbstractPackager.java:164)
    
    out: [INFO]     at com.qnx.bbt.nativepackager.BarNativePackager.main(BarNativePackager.java:61)
    
    out: [ERROR]   Error: null
    
    out: [ERROR]   Native Packager exception occurred
    
    Done build
    error response - {"code":1,"msg":"[ERROR]   Error: null\n[ERROR]   Native Packager exception occurred\n[INFO]    java.lang.NullPointerException\n[INFO]    \tat com.qnx.bbt.packager.Asset.setSourcePath(Asset.java:88)\tat com.qnx.bbt.packager.Asset.(Asset.java:75)\tat com.qnx.bbt.xml.BbtExtensionXml.getAsset(BbtExtensionXml.java:571)\n[INFO]    \tat com.qnx.bbt.xml.BbtExtensionXml.getAssets(BbtExtensionXml.java:541)\n[INFO]    \tat com.qnx.bbt.packager.BbtBarValueProvider.getAssets(BbtBarValueProvider.java:202)\n[INFO]    \tat com.qnx.bbt.bar.BARPackager.getAssets(BARPackager.java:71)\n[INFO]    \tat com.qnx.bbt.bar.BARPackager.findAsset(BARPackager.java:233)\n[INFO]    \tat com.qnx.bbt.bar.BARPackager.associateSourceAssets(BARPackager.java:227)\n[INFO]    \tat com.qnx.bbt.packager.AbstractPackager.parseDescriptorAndCreateBarManifest(AbstractPackager.java:577)\n[INFO]    \tat com.qnx.bbt.packager.AbstractPackager.doRun(AbstractPackager.java:238)\tat com.qnx.bbt.packager.AbstractPackager.runPackager(AbstractPackager.java:164)\n[INFO]    \tat com.qnx.bbt.nativepackager.BarNativePackager.main(BarNativePackager.java:61)\n[ERROR]   Error: null\n[ERROR]   Native Packager exception occurred\n","data":null}
    2013-09-10 15:01:31 GET /ripple/build_status/5084 200
    

    I tried different solutions but nothing has changed. You have an idea that could help me to identify at least the cause of this error?

    Thank you guys

    Thank you for all your responses guys.

    However, it seems to be that something messed up on my machine, because the same application on another laptop, performed without any problem packing.

  • Eception java.lang.error trying to create format XML string

    I am trying to create XML documents without having to build everything manually whenever I want to do this.  I created a XMLFile class to create the document.  When I try to launch my app TestFoo, I get untrapped Exception java.lang.error.  I tried kxml2, using org.w3c.dom, java XML, banging my head against the wall as to why it will not work until I finally just rolled my own simple implementation.  I always get the error!  No details are provided.  There is no stack trace.  I use the emulator 9000 "BOLD" crossing os 4.6.0 eclipse 3.4.1

    Console:

    Starting TestFooStarted TestFoo(154)Exit TestFoo(154)ErrorNo detail messageTestFoo Document  0x171TestFoo XMLFile  0x381TestFoo TestFoo  0x297TestFoo TestFoo main 0x276
    

    TestFoo.java

    import net.rim.device.api.system.Application;
    
    public class TestFoo extends Application {
    
      public static void main(String[] args) {      TestFoo foo = new TestFoo();      foo.enterEventDispatcher();   }
    
      public TestFoo() {        XMLFile xml = new XMLFile("rootNode");        xml.addProperty("myprop", "some value");      System.out.println(xml.toFormattedXMLString());       System.exit(0);   }}
    

    XMLFile.java

    public class XMLFile {   Document document;    public XMLFile(String rootElement) {      document = new Document(rootElement); }
    
      public void addProperty(String pName, String pText) {     Element elm = new Element("property");        elm.addAttribute("name", pName);      elm.setTextContent(pText);        document.appendChild(elm);    }    public String toFormattedXMLString() {     return document.toFormattedXML();    }}
    

    Element.Java

    import java.util.Enumeration;import java.util.Hashtable;import java.util.Vector;
    
    public class Element {   private Vector children;  private String name;  private String textContent;   private Hashtable attributes;
    
      public Element(String name) {     this.children = new Vector();     this.attributes = new Hashtable();        this.name = name; } public void appendChild(Element child) {      this.children.addElement(child);  } public Vector getChildren() {     return children;  } public String getName() {     return name;  } public void setName(String name) {        this.name = name; } public String getTextContent() {      return textContent;   } public void setTextContent(String textContent) {      this.textContent = textContent;   } public Hashtable getAttributes() {        return attributes;    } public boolean hasChildren() {        return (this.children.size() > 0); } public int childrenCount() {      return this.children.size();  } public String getAttributeValue(String name) {        return this.attributes.get(name).toString();  } public void addAttribute(String key, String value) {      this.attributes.put(key, value);  } public void addAttribute(String key, int value) {     addAttribute(key,Integer.toString(value));    } public void addAttribute(String key, long value) {        addAttribute(key,Long.toString(value));   } public void addAttribute(String key, boolean value) {     addAttribute(key, String.valueOf(value)); } public boolean hasAttribute(String name) {        return this.attributes.containsKey(name); } public Element getChild(int position) {       return (Element) this.children.elementAt(position);   } public Enumeration getAttributeKeys() {       return this.attributes.keys();    }}
    

    Document.Java

    import java.util.Enumeration;
    
    public class Document { private static final char _gt = '>';   private static final char _lt = '<';   private static final char _eq = '=';  private static final char _dqt = '"'; private static final char _cl = '/';  private static final char _sp = ' ';  private static final char _tab = '\t';    private static final byte[] _nl = System.getProperty("line.separator").getBytes();
    
      private Element rootNode; private StringBuffer sb;
    
      public Document(String rootName) {        this.rootNode = new Element(rootName);    } public void appendChild(Element child) {      this.rootNode.appendChild(child); } public String toFormattedXML() {      sb = new StringBuffer();      format(this.rootNode,0);      return sb.toString(); }
    
      private void format(Element node, int depth) {        writeOpenTag(node, depth);        for (int i=0;i0;i--) {            sb.append(_tab);      } }    private void writeOpenTag(Element node, int depth) {       indent(depth);        sb.append(_lt);       sb.append(node.getName());        for (Enumeration keys = node.getAttributeKeys();keys.hasMoreElements();) {            String key = keys.nextElement().toString();           sb.append(_sp).append(key);           sb.append(_eq).append(_dqt);          sb.append(node.getAttributeValue(key).toString());            sb.append(_dqt);      }    }    private void writeCloseTag(Element node, int depth) {       if (node.hasChildren()) {         sb.append(_lt).append(node.getName());        } else {          sb.append(_cl);       }     sb.append(_gt).append(_nl);    }}
    

    This line:

    private static final byte[] _nl = System.getProperty("line.separator").getBytes();
    

    is originally a NullPointerException because line.separator is not well supported. The line terminator standard for XML is CR/LF, so you can use:

    private static final byte[] _nl = { '\r', '\n' };
    
  • problem write/read an xml file

    Hello world

    IM using ksoap library to access my webservice, if everything is ok, my webservice returns an xml file, then I use this file to show some information in my application.

    In the Simulator, everything works perfectly (BB simulator_5.0.0.411_8900), but in a real BB does not work, the app show me a NullPointerException.

    Anyone has an idea about this?

    public void CargaDatosIniciales(){
    
        String result="";
    
        String serviceUrl = "http://myserver.com/blackberry/soap.php";
        String serviceNamespace ="http://myserver.com/blackberry/soap.php";
        String soapAction = "http://myserver.com/blackberry/soap.php?wsdl";
    
        rpc = new SoapObject(serviceNamespace,"cargarVideos");
        rpc.addProperty("Login", usr);
        rpc.addProperty("Password", password);
        rpc.addProperty("user_agent", userAgent);
    
        try{
            SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
            envelope.bodyOut = rpc;
            envelope.dotNet = false;
            envelope.encodingStyle = SoapSerializationEnvelope.XSD;
    
            HttpTransport ht = new HttpTransport(serviceUrl);
            ht.debug = true;
            ht.call(soapAction, envelope);
            result = (envelope.getResult()).toString();
            writeXML(result,1);
    
        }catch(Exception e){
    
        }
    
    }
    
    private void writeXML(String result,int f) {
    
        String URL = "file:///SDCard/BlackBerry/documents/";
        String filename="";
        if(f==1){
    
            filename = "datosXML.xml";
        }
    
    ....
        String fName=URL+filename;
        try {
             DataOutputStream os = null;
                FileConnection fconn = null;
                try {
                        fconn = (FileConnection) Connector.open(fName, Connector.READ_WRITE);
                        if (!fconn.exists()){
                            fconn.create();
                        }
                            fconn.delete();
                            fconn.create();
    
                        os = fconn.openDataOutputStream();
                        os.write(result.getBytes());
                } catch (IOException e) {
                        System.out.println(e.getMessage());
                } finally {
                        try {
    
                            if (null != os)
                                        os.close();
                                if (null != fconn)
                                        fconn.close();
                        } catch (IOException e) {
                                System.out.println(e.getMessage());
                        }
                }
    
        } catch ( Exception e ) {
    
        }      
    
    }
    

    PD: Sorry for my English.

    In most cases, 'deviceside = true' does not work unless it is accompanied by specific carrier APN info.

    The AFN must be defined in the parameters of TCP devcie or added to your URL.

    See the following article:

    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800451/800563/What_Is...

    .. and this one:

    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800451/800563/How_To _...

  • BlackBerry Smartphones Eception Exception: java.lang.NullPointerException

    Hello

    My BB 8220 flip has always had battery problems. Lately the battery dies after only 8 hours in standby mode. The last time he died was two days ago, and after four hours of charging it finally turned back on - only to have the error "untrapped Exception: java.lang.NullPointerException' on-screen display.»  I noticed that now, the call log does not work for incoming, outgoing and missed calls.  The SMS also mysteriously disappeared, so I am not able to send and receive texts.  My address book is still intact.  I did not so I don't have all the additional applications on the phone, just that it came with a data plan.  I tried to restart (remove battery) several times, but the error has not set itself.

    Simple ways to correct this error, or is my phone forever?

    Hi and welcome to the Forums!

    Given your description, I would recommend a reload of the OS or upgrade. From a PC, you can install any bundle of BONES to a BB via this procedure:

    Note that although written for "reload", it can be used to upgrade, downgrade, or recharge - it depends on the OS package you download and install on your PC. You can even use a different OS package carriers simply insert, between steps 1 and 2, the deletion, on your PC, a file named PROVIDER. XML. remember that you remove from your PC, no matter what other packages devices OS BB as having more than one installed on the PC can cause conflicts with this procedure.

    If you are on a MAC, you are limited to only your sanctioned carriers OS packages... but can still use any level they currently have to sanction. See this procedure:

    • KB19915 How to perform a clean reload of the smartphone BlackBerry using BlackBerry Desktop Software application software

    Good luck and let us know!

  • Oracle Fusion Middleware 12 c WebLogic Server and coherence (12.1.2.0.0) only installs and launches javax.xml.bind.JAXBException: provider com.sun.xml.bind.v2.ContextFactory not found exception

    I am installing Oracle Fusion Middleware 12 c WebLogic Server and coherence (12.1.2.0.0) (V38518 - 01\wls_121200.jar), but I get the following error:

    javax.xml.bind.JAXBException: provider com.sun.xml.bind.v2.ContextFactory not found

    Please note that I also get the same error when I try to install Oracle Fusion Middleware 12 c (12.1.3.0.0) WebLogic Server and coherence (V44413-01\fmw_12.1.3.0.0_wls.jar).

    Here are the steps:

    1. excerpt from the wls_121200.jar to D:\Temp

    2. run D:\Java\jdk1.7.0_67\bin\java-jar wls_121200.jar

    3. following error is reported and the process terminates:

    javax.xml.bind.JAXBException: provider com.sun.xml.bind.v2.ContextFactory not fo

    und

    -with the exception related:

    [java.lang.ClassNotFoundException: com.sun.xml.bind.v2.ContextFactory]

    at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:151)

    at javax.xml.bind.ContextFinder.find(ContextFinder.java:298)

    at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:372)

    at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:337)

    at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:244)

    at oracle.as.install.engine.config.xml.EngineConfigParser.getEngineConfi

    g(EngineConfigParser.Java:65)

    at oracle.as.install.engine.InstallEngine.startOperation (InstallEngine.j

    AVA: 425)

    at oracle.sysman.oio.oioc.OiocOneClickInstaller.main (OiocOneClickInstall

    St. Java:690)

    Caused by: java.lang.ClassNotFoundException: com.sun.xml.bind.v2.ContextFactory

    in java.net.URLClassLoader$ 1.run(URLClassLoader.java:366)

    in java.net.URLClassLoader$ 1.run(URLClassLoader.java:355)

    at java.security.AccessController.doPrivileged (Native Method)

    at java.net.URLClassLoader.findClass(URLClassLoader.java:354)

    at java.lang.ClassLoader.loadClass(ClassLoader.java:425)

    to Sun.misc.Launcher$appclassloader$ AppClassLoader.loadClass (Launcher.java:308)

    at java.lang.ClassLoader.loadClass(ClassLoader.java:358)

    at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:116)

    ... 7 more

    java.lang.NullPointerException

    at oracle.as.install.engine.InstallEngine.startOperation (InstallEngine.j

    AVA: 476)

    java.lang.NullPointerException at oracle.as.install.engine.InstallEngine.startOperation(InstallEngine.java:476)

    javax.xml.bind.JAXBException: provider com.sun.xml.bind.v2.ContextFactory not found

    Has anyone seen this error, or did someone knows how to solve this problem?

    I had several java installed on my computer so I thought this might be causing the problem. I went ahead uninstalled all the software just installed and java Oracle JDK 7 55 of update for Microsoft Windows x 64, set the path to be able to run java and ran "java-jar fmw_12.1.3.0.0_wls.jar". Installer is coming now.

  • XML parsing failed because «»

    Hello

    I am facing problem for composite construction in jdeveloper. It shows error below. Please suggest how to proceed further.

    • Error: XML parsing failed because «»

    BuildFile: C:\Oracle\Middleware\jdeveloper\bin\ant-sca-compile.xml

    SCAC:

    [scac] Validation of the composites 'C:\MR96\BPEL Services\MOOA_businesservices\AddComponent\composite.xml'

    [scac] If option BPELC "classpath" C:\Oracle\Middleware\modules\com.oracle.toplink_1.0.0.0_11-1-1-5-0.jar; C:\Oracle\Middleware\modules\org. Eclipse.persistence_1.1.0.0_2 - 1.jar; C:\Oracle\Middleware\modules\com.BEA.core.ANTLR.runtime_2.7.7.jar; C:\Oracle\Middleware\modules\javax.persistence_1.0.0.0_2-0-0.jar; C:\Oracle\Middleware\oracle_common\modules\oracle.xdk_11.1.0\xmlparserv2.jar; C:\Oracle\Middleware\oracle_common\modules\oracle.xdk_11.1.0\xml.jar; C:\Oracle\Middleware\jdeveloper\jdev\extensions\oracle. SCA.modeler.jar; C:\Oracle\Middleware\jdeveloper\soa\modules\oracle. SOA.fabric_11.1.1\fabric-Runtime.jar; C:\Oracle\Middleware\jdeveloper\soa\modules\oracle. SOA.mgmt_11.1.1\soa-infra-Mgmt.jar; C:\Oracle\Middleware\oracle_common\modules\oracle.fabriccommon_11.1.1\fabric-common.jar; C:\Oracle\Middleware\jdeveloper\soa\modules\oracle. SOA.bpel_11.1.1\orabpel.jar; C:\Oracle\Middleware\jdeveloper\soa\modules\oracle. SOA.mediator_11.1.1\mediator_client.jar; C:\Oracle\Middleware\oracle_common\modules\oracle.mds_11.1.1\mdsrt.jar; C:\MR96\BPEL Services\MOOA_businesservices\AddComponent\SCA-INF\classes

    [scac] java.lang.NullPointerException

    [scac] to com.collaxa.cube.lang.compiler.map.bpel.BPELProcess.lookupInitiationInfo(BPELProcess.java:1010)

    [scac] to com.collaxa.cube.lang.compiler.map.bpel.BPELProcess.addOnMessage(BPELProcess.java:903)

    [scac] to com.collaxa.cube.lang.compiler.bpel.BpelParser.parseOnMessage(BpelParser.java:1597)

    [scac] to com.collaxa.cube.lang.compiler.bpel.BpelParser.startElement(BpelParser.java:587)

    [scac] to com.collaxa.cube.lang.compiler.bpel.BpelParser.parseElement(BpelParser.java:492)

    [scac] to com.collaxa.cube.lang.compiler.bpel.BpelParser.parseElement(BpelParser.java:499)

    [scac] to com.collaxa.cube.lang.compiler.bpel.BpelParser.parseElement(BpelParser.java:499)

    [scac] to com.collaxa.cube.lang.compiler.bpel.BpelParser.parseElement(BpelParser.java:499)

    [scac] to com.collaxa.cube.lang.compiler.bpel.BpelParser.parseElement(BpelParser.java:499)

    [scac] to com.collaxa.cube.lang.compiler.bpel.BpelParser.parseElement(BpelParser.java:499)

    [scac] to com.collaxa.cube.lang.compiler.bpel.BpelParser.parseElement(BpelParser.java:499)

    [scac] to com.collaxa.cube.lang.compiler.bpel.BpelParser.parseElement(BpelParser.java:499)

    [scac] to com.collaxa.cube.lang.compiler.bpel.BpelParser.parseElement(BpelParser.java:499)

    [scac] to com.collaxa.cube.lang.compiler.bpel.BpelParser.parseElement(BpelParser.java:499)

    [scac] to com.collaxa.cube.lang.compiler.bpel.BpelParser.parseElement(BpelParser.java:499)

    [scac] to com.collaxa.cube.lang.compiler.bpel.BpelParser.parseElement(BpelParser.java:499)

    [scac] to com.collaxa.cube.lang.compiler.bpel.BpelParser.parseElement(BpelParser.java:499)

    [scac] to com.collaxa.cube.lang.compiler.bpel.BpelParser.parseElement(BpelParser.java:499)

    [scac] to com.collaxa.cube.lang.compiler.bpel.BpelParser.parseElement(BpelParser.java:499)

    [scac] to com.collaxa.cube.lang.compiler.bpel.BpelParser.parseElement(BpelParser.java:499)

    [scac] to com.collaxa.cube.lang.compiler.bpel.BpelParser.parseElement(BpelParser.java:499)

    [scac] to com.collaxa.cube.lang.compiler.bpel.BpelParser.parseElement(BpelParser.java:499)

    [scac] to com.collaxa.cube.lang.compiler.bpel.BpelParser.parse(BpelParser.java:455)

    [scac] to com.collaxa.cube.lang.compiler.bpel.BpelParser.parse(BpelParser.java:402)

    [scac] to com.collaxa.cube.lang.compiler.bpel.BPELValidator.validate(BPELValidator.java:65)

    [scac] to com.collaxa.cube.lang.compiler.BPEL1Processor.validate(BPEL1Processor.java:329)

    [scac] to com.collaxa.cube.lang.compiler.BPEL1Processor.process(BPEL1Processor.java:153)

    [scac] to com.collaxa.cube.lang.compiler.CubeParserHelper.compile(CubeParserHelper.java:47)

    [scac] to oracle.fabric.bpel.bpelc.BPELComponentValidator.validate(BPELComponentValidator.java:40)

    [scac] to oracle.soa.scac.ValidateComposite.validateComponentTypeServicesReferences(ValidateComposite.java:1051)

    [scac] to oracle.soa.scac.ValidateComposite.doValidation0(ValidateComposite.java:502)

    [scac] to oracle.soa.scac.ValidateComposite.doValidation(ValidateComposite.java:481)

    [scac] to oracle.soa.scac.ValidateComposite.run0(ValidateComposite.java:206)

    [scac] to oracle.soa.scac.ValidateComposite.run(ValidateComposite.java:187)

    [scac] to oracle.soa.scac.ValidateComposite.main(ValidateComposite.java:179)

    [scac] AddComponentProcess.bpel: error: XML parsing failed because «»

    BUILD FAILED

    C:\Oracle\Middleware\jdeveloper\bin\ant-SCA-compile.XML:278: Java returned: 1 check log file: C:\MR96\BPEL Services\MOOA_businesservices\AddComponent\SCA-INF\classes\scac.log to find errors

    Total time: 1 minute 27 seconds

    Thank you

    are getting you error when compiling or during the deployment?

    What version of Soa server are you?

    Also are you trying to deploy developer J, if yes, what is the version of Jdev?

    Also, you can try deployment ant script or directly from EM?

    are there multipurpose ws.binding items in composite.xml?

  • NullPointerException when starting application MAF

    I get a "java.lang.NullPointerException" when I launch a specific application of the MAF (it does not affect all, only this one). I ran the debug and the stack trace is:

    java.lang.NullPointerException

    to oracle.adfmf.container.EmbeddedFeatureInformation. < init >)

    at oracle.adfmf.container.EmbeddedApplicationInformation.getAllFeatures)

    to oracle.adfmf.container.EmbeddedApplicationInformation. < init >)

    at oracle.adfmf.framework.api.AdfmfJavaUtilities.updateApplicationInformation)

    at oracle.adfmf.framework.EmbeddedFeatureContactManager.start)

    at oracle.adfmf.framework.JavaFramework.main)

    at java.lang.reflect.Method.invoke)

    at sun.mic.CVM.runMain)

    Any ideas what the cause?

    Please check if you have saved all of the features in CRG - application.xml.

    -Rambeau

  • How to avoid NullPointerException when the bursting of the jobs don't return any candidate data to burst?

    Hi all

    We are on 10.1.3.4... I created a job popping up every day and all is well when there are data addressing for that day (emails get generated without problems) but I get this error when no data is returned. I cannot ignore the emails but y at - it a way to avoid the error if there is no data to process for I can be sure that I am not ignoring real issues when there is a real treatment error out?

    Thanks in advance for your time.

    Kind regards

    PJ

    oracle.apps.xdo.servlet.scheduler.ProcessingException: java.lang.NullPointerException

    at oracle.apps.xdo.servlet.scheduler.XDOJob.runBurstingReport(XDOJob.java:2163)

    at oracle.apps.xdo.servlet.scheduler.XDOJob.execute(XDOJob.java:371)

    at org.quartz.core.JobRunShell.run(JobRunShell.java:195)

    to org.quartz.simpl.SimpleThreadPool$ WorkerThread.run (SimpleThreadPool.java:520)

    Caused by: java.lang.NullPointerException

    at com.sun.java.util.collections.Hashtable.get(Hashtable.java:321)

    at oracle.apps.xdo.batch.bursting.ProcessEnterpriseDocument.processLayout (unknown Source)

    at oracle.apps.xdo.batch.BurstingProcessorEngine.addDocument2Queue (unknown Source)

    at oracle.apps.xdo.batch.BurstingProcessorEngine.createBurstingDocument (unknown Source)

    at oracle.apps.xdo.batch.BurstingProcessorEngine.endDocument (unknown Source)

    at oracle.xml.parser.v2.XMLContentHandler.endDocument(XMLContentHandler.java:119)

    at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:311)

    at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:263)

    at oracle.apps.xdo.batch.BurstingProcessorEngine.burstingRequest (unknown Source)

    at oracle.apps.xdo.batch.BurstingProcessorEngine.process (unknown Source)

    at oracle.apps.xdo.servlet.scheduler.XDOJob.runBurstingReport(XDOJob.java:2055)

    ... 3 more

    Hi PJ,.

    If the model of data or rupture of query query returns no rows - BEEP will throw Null pointer Exception error.

    THUS, our goal is to have 1 row who always gets compensated regardless of the logic of the report.

    It is only through a work around on the SQL query.

    Before spend you with this

    1. how many reports does need this change?

    2 are going you to the 11 g version all earlier?

    3. If you think that his evidence for this change just to make the fake success on your Planner screen message, then proceed to test the approach below.

    Application of model data:

    ****************

    For example

    / real request * /.

    Select empid as busrt_key,

    EmpName,

    empsal

    WCP

    where empdept in (10.20)

    Union of all the

    / * query dummy to return 1 row always regardless of actual query * /.

    Select 'burst_flag' busrt_key,

    empname null,

    empsal null

    of the double

    Bursting of query:

    ***************

    Choose burst_key KEY,

    'template_name' MODEL,

    "rtf" TEMPLATE_FORMAT,

    'pdf' OUTPUT_FORMAT,

    cases where burst_key = 'burst_flag' then 'NA' else 'EMAIL' end DEL_CHANNEL, - note here, for dummy value used to send us emails with just the key to the success.

    '- at-'email' "Parameter1".

    "e-mail-cc" PARAMETER2,

    "email - of" parameter3,.

    "email subject" parameter4

    PARAMETER5 "-body of the email."

    PARAMETER6 'true '.

    Of

    (

    / * your logical real burst of request but just only the select clause that you will use in the KEY * /.

    Select empid as burst_key

    WCP

    where empdept in (10.20)

    Union of all the

    / * query dummy to return 1 row always * /.

    Select "burst_flag" as burst_key - this value hardcoded must be synchronized in the data model and query failure

    of the double

    )

    Impact of the model

    ***************

    If you have aggregation functions in your RTF model such as sum() and count(), let me know.

    Due to the addition of an additional dummy query, 1 row with a null value is generated which cause problem NAN (not a number) to your model. But that can be handled.

    Thank you...

  • How to get the XML from the Request of Java object before sending. SOAP Web services

    I'm building Java request to Online Web Services and we'll call it application A . I got the WSDL forms the second part of the file in order to communicate with their application and we'll call it application B .

    Of the WSDL file generate the Java required classes that are Requests and Responses . classes Application A will send some request object after setting the parameters required and with the exception of response object of application B .

    The connection is established and the two applications A and B communicate with each other.

    Question:

    Of application A How can I get the xml data (or text file) for the request object before sending it to application B ?

    As described the connection is passing Java object such as request and I know that in some point this request will be converted to xml file. How to get it?

    -EDIT-

    Missing important information which can be confusing.

    I'm generated the Java rating were generated using the Axis framework

    The problem is solved by, add the following statements in the bindingStub class that was automatically generated from the WSDL file to the web-services you are trying to access.

       String request = _call.getMessageContext().getRequestMessage().getSOAPPartAsString(); 
     String response = _call.getMessageContext().getResponseMessage().getSOAPPartAsString();
    

    These statements should be placed after the following method call _call.invoke otherwise you will get NullPointerException .

    _callis a variable of type org.apache.axis.client.Cal and it is automatically generated byAxis

  • java.io.FileNotFoundException:.\config\jps-config.xml

    Hello

    I will carry out the Java code examples in 'The Developer Guide for Oracle imaging and process management' document (E12784-03). I have followed the "Startup" section and set up the environment. I have the environment that meets the above requirements. However the when I run the example of presentation given in point 2.3, it gives me below error.

    SEVERE: java.io.FileNotFoundException:.\config\jps-config.xml (the system cannot find the path specified)

    SEVERE: Error loading class interceptor oracle.fabric.common.BindingSecurityInterceptor

    Exception in thread "main" javax.xml.ws.WebServiceException: java.lang.IllegalStateException: java.lang.NullPointerException

    at oracle.j2ee.ws.client.jaxws.DispatchImpl.invoke(DispatchImpl.java:867)

    at oracle.j2ee.ws.client.jaxws.OracleDispatchImpl.synchronousInvocationWithRetry(OracleDispatchImpl.java:235)

    at oracle.j2ee.ws.client.jaxws.OracleDispatchImpl.invoke(OracleDispatchImpl.java:106)

    at oracle.j2ee.ws.client.jaxws.WsClientProxyInvocationHandler.invoke(WsClientProxyInvocationHandler.java:254)

    to $Proxy6.login (Unknown Source)

    at oracle.imaging.proxy.ProxyServicesFactory.authenticate(ProxyServicesFactory.java:205)

    at oracle.imaging.ServicesFactory.login(ServicesFactory.java:376)

    to project1. UpdateDcoument.main (UpdateDcoument.java:18)

    Caused by: java.lang.IllegalStateException: java.lang.NullPointerException

    at oracle.integration.platform.common.mgmt.InterceptorChainManager.createManagedInterceptorChain(InterceptorChainManager.java:152)

    at oracle.integration.platform.common.mgmt.InterceptorChainManager.getManagedInterceptorChain(InterceptorChainManager.java:230)

    at oracle.integration.platform.common.mgmt.InterceptorChainManager.processRequest(InterceptorChainManager.java:275)

    at oracle.j2ee.ws.client.mgmt.runtime.SuperClientInterceptorPipeline.handleRequest(SuperClientInterceptorPipeline.java:96)

    at oracle.j2ee.ws.client.jaxws.DispatchImpl.handleRequest(DispatchImpl.java:619)

    at oracle.j2ee.ws.client.jaxws.DispatchImpl.handleRequest(DispatchImpl.java:597)

    at oracle.j2ee.ws.client.jaxws.DispatchImpl.invoke(DispatchImpl.java:806)

    ... 7 more

    Caused by: java.lang.NullPointerException

    at oracle.integration.platform.common.mgmt.InterceptorChainManager.createInterceptor(InterceptorChainManager.java:379)

    at oracle.integration.platform.common.mgmt.InterceptorChainManager.createManagedInterceptorChain(InterceptorChainManager.java:318)

    at oracle.integration.platform.common.mgmt.InterceptorChainManager.createManagedInterceptorChain(InterceptorChainManager.java:150)

    ... 13 more

    Process has finished with exit code 1.

    I couldn't find the file config/jps - config.xml in the field who has installed Imaging. However, imaging works very well and it is also integrated with EBS. Do I need to do any additional setup?

    Help, please.

    Kind regards

    Vikrant Korde.

    I'm following "The Oracle imaging and process management Developer Guide" document (E12784-03). on the net, the new version is available at slot location.

    Configure the class path for the Imaging API - 11g Release 1 (11.1.1)

    I could solve the problem. Initially, I was creating in Jdev JAVA project. Now, I created the project ADF and run the example even. I also had to import 2 pots mentioned in the document that is ecm - client.jar and ecm - client.jar. These two present on the IPM server.

    It worked...

    Thanks for the quick responses Srinath.

    Kind regards

    Vikrant Korde.

  • NullPointerException AIA demo installation

    When I run the command to deploy the demo of the AIA (ant f deployDemo.xml), I have the following NPES:

    [echo] /----------------------------------------------------------\
    [echo]!
    [echo]! Installing AIA demo!
    [echo]!
    [echo] \----------------------------------------------------------/

    HELP:
    [java] java.lang.NullPointerException
    [java] at Setup. AddAIADemoProperties.getPwd (AddAIADemoProperties.java:316)
    [java] at Setup. AddAIADemoProperties.main (AddAIADemoProperties.java:445)
    [java] Error has occurred, either during the updating of the AIAInstallProperties.xml with properties of demo of the AIA, AIA Dem insertion
    O in the keystore password, or the update of AIAConfigurationProperties.xml

    With or without access to AddAIADemoProperties.java, I'm at a loss as to what could be causing this NPE. Any ideas?

    Thank you
    Brian

    Hi Brian,.

    I faced the same question... I have just modified the deployDemo.xml and add the following lines

    Add

           

    under the tag

    and add the classpathref attribute in the tag

    classpathref = "classpath">

    In fact the program installation. AddAIADemoProperties is present in the aiademosetup.jar file.

    Hope this helps...

    Thanx

    Sithal

  • Bug: NullPointerException generating JHeadstart application

    Hello

    JDeveloper 11.1.2.3.0 using GENERIC_120914.0223.6276.1 and 11.1.2.1.28 JHeadstart. Following this tutorial: http://download.oracle.com/consulting/jhstutorial1112.pdf

    I think the tutorial is obsolete (and there are a number of minor errors).

    Jag - config.xml is at: http://pastebin.com/raw.php?i=LJ8vsyDb and http://pastebin.com/LJ8vsyDb

    The application can no longer be generated. Product of the jdev.exe running from the command line:

    INFO: Number of data controls: 1
    JagRunnerCommand CONSTRUCTION
    JHeadstart debugger: no debugging session with key does not exist: 'JAG. '
    January 21, 2013 16:38:53 org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
    INFO: Loading XML file [C:\projects\jdev_home\JHeadstartTutorial\ViewController\templates\config\jag-config.xml] bean definition
    java.lang.NullPointerException
    at oracle.jheadstart.dt.share.jdev.util.Bc4jUtils.isTopLevelUsage(Bc4jUtils.java:860)
    at oracle.jheadstart.dt.jag.validation.PGModelValidatorImpl.checkTreeProperties(PGModelValidatorImpl.java:1186)
    at oracle.jheadstart.dt.jag.validation.PGModelValidatorImpl.validateGroupAttributes(PGModelValidatorImpl.java:963)
    at oracle.jheadstart.dt.jag.validation.PGModelValidatorImpl.validateGroup(PGModelValidatorImpl.java:428)
    at oracle.jheadstart.dt.jag.validation.PGModelValidatorImpl.validateGroup(PGModelValidatorImpl.java:439)
    at oracle.jheadstart.dt.jag.validation.PGModelValidatorImpl.validateBaseGroups(PGModelValidatorImpl.java:287)
    at oracle.jheadstart.dt.jag.validation.PGModelValidatorImpl.validate(PGModelValidatorImpl.java:224)
    at oracle.jheadstart.dt.jag.JhsApplicationGenerator.generateService(JhsApplicationGenerator.java:365)
    at oracle.jheadstart.dt.jag.JhsApplicationGenerator.generateService(JhsApplicationGenerator.java:350)
    to oracle.jheadstart.dt.jag.jdev.JagRunner$ 1.run(JagRunner.java:76)
    at java.lang.Thread.run(Thread.java:662)
    Uncaught exception
    java.lang.ArrayIndexOutOfBoundsException: 1
    at org.netbeans.Archive.flushCaches(Archive.java:246)
    to org.netbeans.Stamps$ Store.store (Stamps.java:580)
    to org.netbeans.Stamps$ Worker.run (Stamps.java:744)
    java.lang.NullPointerException
    at oracle.ideimpl.feedback2.client.FeedbackManagerImpl.showCustomerFeedbackDialog(FeedbackManagerImpl.java:543)
    at oracle.ideimpl.feedback2.client.FeedbackManagerImpl.showFeedbackDialog(FeedbackManagerImpl.java:360)
    to oracle.ideimpl.feedback2.client.FeedbackManagerImpl$ 2.run(FeedbackManagerImpl.java:238)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:642)
    to java.awt.EventQueue.access$ 000 (EventQueue.java:85)
    in java.awt.EventQueue$ 1.run(EventQueue.java:603)
    in java.awt.EventQueue$ 1.run(EventQueue.java:601)
    at java.security.AccessController.doPrivileged (Native Method)
    in java.security.AccessControlContext$ 1.doIntersectionPrivilege(AccessControlContext.java:87)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:612)
    at oracle.javatools.internal.ui.EventQueueWrapper._dispatchEvent(EventQueueWrapper.java:169)
    at oracle.javatools.internal.ui.EventQueueWrapper.dispatchEvent(EventQueueWrapper.java:151)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:178)
    in java.awt.Dialog$ 1.run(Dialog.java:1046)
    in java.awt.Dialog$ 3.run(Dialog.java:1098)
    at java.security.AccessController.doPrivileged (Native Method)
    at java.awt.Dialog.show(Dialog.java:1096)
    at javax.swing.JOptionPane.showOptionDialog(JOptionPane.java:853)
    at javax.swing.JOptionPane.showMessageDialog(JOptionPane.java:650)
    at javax.swing.JOptionPane.showMessageDialog(JOptionPane.java:621)
    to oracle.jheadstart.dt.share.jdev.ide.DialogUtils$ 1.run(DialogUtils.java:213)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:642)
    to java.awt.EventQueue.access$ 000 (EventQueue.java:85)
    in java.awt.EventQueue$ 1.run(EventQueue.java:603)
    in java.awt.EventQueue$ 1.run(EventQueue.java:601)
    at java.security.AccessController.doPrivileged (Native Method)
    in java.security.AccessControlContext$ 1.doIntersectionPrivilege(AccessControlContext.java:87)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:612)
    at oracle.javatools.internal.ui.EventQueueWrapper._dispatchEvent(EventQueueWrapper.java:169)
    at oracle.javatools.internal.ui.EventQueueWrapper.dispatchEvent(EventQueueWrapper.java:151)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

    Any ideas how to solve this problem?

    Thank you!

    Thanks for the unit test.
    My suspicion was right, when I try to run the tester on request of HRModule module, I get the following error:

    (oracle.jbo.JboException) Houston-26059: invalid use of link see 'EmpManagerFkLink3 '. Either the "oracle.hr.model.service.HRModule.CreateEmployeesView" source or destination 'null' is not defined.

    If you look in the XML application module, you can see the following:

    <>
    Name = "EmpManagerFkLink3".
    ViewLinkObjectName = "oracle.hr.model.queries.EmpManagerFkLink"
    SrcViewUsageName = "oracle.hr.model.service.HRModule.CreateEmployeesView"
    Reversed = "false" / >
    <>
    Name = "EmpManagerFkLink2".
    ViewLinkObjectName = "oracle.hr.model.queries.EmpManagerFkLink"
    SrcViewUsageName = "oracle.hr.model.service.HRModule.CreateEmployeesView"
    DstViewUsageName = "oracle.hr.model.service.HRModule.NewSubordinates"
    Reversed = "false" / >

    For some reason, the DstViewUsageName property is missing from EmpManagerFkLink3. That should not happen.
    If you add this property, by copying from EmpManagerFkLink2, then everything works perfectly again, and the JHeadstart generator works OK.

    The tutorial should be up-to-date, so please report any errors you find in the tutorial, so we can fix this.

    Thank you
    Steven Davelaar,
    JHeadstart team.

  • Unable to read Blob (BlobDomain) of the DB Xml data

    I'm reading a BLOB file in the database with the code below. However, I am facing 2 challenges - which i need your help...


    1. the data in a readable format, maybe I'm missing more or coding code somewhere (this is how the data is print - i¿½bi¿½...)

    2 throw an exception in the end

    Data types Blob appears as BlobDomain in the defination entity. My jdev is 11.1.1.5




    +{+
    +..............+

    oracle.jbo.domain.BlobDomain blobDomainXml = (BlobDomain) r.getAttribute ('Document');
    System.out.println ("XML Out put ="blobDomainXml); +
    +}+

    public getBlobObject() {} ViewObject

    return (ViewObjectImpl) findViewObject ("getBlobObject1");
    }



    Here's the exception after the call-

    Caused by: java.lang.NullPointerException
    at oracle.jbo.server.ViewRowSetIteratorImpl.getViewObject(ViewRowSetIteratorImpl.java:238)
    at oracle.jbo.server.ViewRowSetIteratorImpl.getSyncLock(ViewRowSetIteratorImpl.java:178)
    at oracle.jbo.server.ViewRowSetIteratorImpl.hasNext(ViewRowSetIteratorImpl.java:1904)
    at com.stryker.gtc.view.bean.LoginPageName.getBlob(LoginPageName.java:243)
    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:597)
    at com.sun.el.parser.AstValue.invoke (unknown Source)
    at com.sun.el.MethodExpressionImpl.invoke (unknown Source)
    at org.apache.myfaces.trinidadinternal.taglib.util.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:53)

    Well, it is possible that the BLOB data like this. You should check this by opening the table holding the blob in SQLDeveloper or using the browser of database JDEVs. Select the data tab and double-click a blob cell in the grid.
    So yu should get a pencil that lets you change the blog. Click it and you can see the blob as text or image. You must save the blob on your local disk and then use an editor to look into the file.

    That's what you should get from the show.

    Timo

Maybe you are looking for

  • Ineed to resurrect an old PB, running 10.4.11.

    The PB responds, but I can't go Internet. There is a map Airport installed with Firmware 9.52, systems application to enter a WEP PIN - I don't have one, but it keeps rejected. Is it possible to check the PIN code? If not, how can I retrieve or reset

  • Satellite A200 does not start

    Hello overall, I was very happy with my A200, 5 months old now.But last month, strange behavior. Closed always perfect Vista. Next day, want to start my PC._On-button makes nothing_, even if the battery is 100% ok.-> SOLUTION is to remove the battery

  • I can determine the amount of traffic to/from my Internet connection through my Airport due to each connected device (both wireless and Ethernet)?

    My traffic internet, as reported by my ISP, has increased significantly in the past few months and I would like to determine where this increase. Devices that potentially connect via my Airport are: Wireless:-2 iPad, 2 iPhones, iPods, MacBook Pro Eth

  • using the 430 EX II with Canon 6 d

    Hallo, I just got the speedlite 430Ex II and I'm trying to use it on my Canon 6 d. I would like to use my camera in Av (aperture priority), but when I put the camer in Av it does not consider Flash. For example, let's say I put 8 as the opening and t

  • Problems with the bar code reader sample

    I want to integrate barcode scanner in my application, but it seems to be a lot more complicated than I thought. I use the example of BarcodeReader, and when I integrate his code 1:1 it works correctly. As soon as I try to change, however, is not. I