NullPointerException creating a SSL30Connection (OS 5.0.0.41 9)

Hello

I'd appreciate any help on this.

Since OS 4.2.1 I used SSL30Connection to establish SSL on a SocketConnection sessions in many devices and OS versions without problem.

Recently, I updated my BlackBerry Storm 9530 to OS 5.0.0.41 9 (Platform 4.2.0.179) and started getting a NullPointerException with the same code that worked very well in other versions of the OS.

I also tried to run this application on the BlackBerry 9550 (OS 5.0.0.334) Simulator, but got the same problem.

The specific part of the code that triggers the error is quite simple:

public void run(){   try   {      conn = new SSL30Connection(socket, host + ":" + port, true);      is = conn.openInputStream();      os = conn.openOutputStream();

      info = conn.getSecurityInfo();      cert = info.getServerCertificate();      ...   }   catch (IOException ex)   {      ...   }}               

Here is the stack trace that I get:

Name: NullPointerException
GUID: 9c3cd62e3320b498
Time: Feb 11, 2010 16:05:33
No detail message
net_rim_cldc(4AE1FC51)
 Hashtable
 get
 0x58A5
net_rim_crypto_2-3(4AE207FA)
 SSLHandshakeProtocol
 
 0x2A40
net_rim_crypto_2-3(4AE207FA)
 SSLHandshakeProtocol
 serverCertificate
 0x5E8
net_rim_crypto_2-3(4AE207FA)
 SSLHandshakeProtocol
 connect
 0x1B34
net_rim_crypto_2-3(4AE207FA)
 SSLRecordProtocol
 connect
 0x338D
net_rim_crypto_2-2(4AE207FA)
 SSL30Connection
 
 0x1552
TotalCross-2(4B74294F)
 SSL$1
 run
 0x4BD1

Any thoughts?

Thank you

Bruno.

Good news: we now have a work around for this issue (taken from https://www.blackberry.com/jira/browse/JAVAAPI-327)

Tim Windsor added a comment - February 24, 10 10:04 - edited

"A work around for this problem is to use the full connection string at the opening of the TLS10Connection, or SSL30Connection. For example, the attached test application does:

conn = (StreamConnection)Connector.open("socket://www.google.com:443;deviceside=true;interface=wifi");
log("Wrapping socket connection into TLS10Connection");
final TLS10Connection tlsConn = new TLS10Connection(conn, "www.google.com");

And it should do:

conn = (StreamConnection) Connector.open("socket://www.google.com:443;deviceside=true;interface=wifi");
log("Wrapping socket connection into TLS10Connection");
final TLS10Connection tlsConn = new TLS10Connection(conn, "socket://www.google.com:443;deviceside=true;interface=wifi");

When this issue has been resolved, the domain name can be used again. »

Tags: BlackBerry Developers

Similar Questions

  • ODI Java API: NullPointerException when creating an OdiInstance

    Hello

    Maybe someone can help me. The following problem is driving me crazy.

    Based on this guide ( ODI SDK Setup and Config in Eclipse - ODIExperts.com ), I am trying to connect to a repository ODI in Java (in Eclipse).

    The createInstance causes an error. I use the following code:

    Connection

    MasterRepositoryDbInfo masterInfo = new MasterRepositoryDbInfo (Url, driver, Master_User, Master_Pass.toCharArray (), PoolingAttributes()) new;

    WorkInfo WorkRepositoryDbInfo = new WorkRepositoryDbInfo (WorkRep, new PoolingAttributes());

    OdiInstanceConfig odiInstanceConfig = new OdiInstanceConfig (masterInfo, workInfo);

    OdiInstance odiInstance = (odiInstanceConfig) OdiInstance.createInstance;

    The last line gives a NullPointerException:

    Sep 24, 2014 16:47:58 org.eclipse.persistence.default

    INFO: EclipseLink, version: Eclipse - 2.3.1.v20111018 persistence Services - r10243

    Sep 24, 2014 16:47:58 org.eclipse.persistence.default

    INFO: master-session connection successful

    Sep 24, 2014 16:47:58 org.eclipse.persistence.default

    NEWS: successful connection meeting

    java.util.logging.ErrorManager: 5

    java.lang.NullPointerException

    to java.util.ResourceBundle.getBundle (unknown Source)

    at org.eclipse.persistence.exceptions.i18n.ExceptionMessageGenerator.getHeader(ExceptionMessageGenerator.java:95)

    at org.eclipse.persistence.exceptions.EclipseLinkException.printStackTrace(EclipseLinkException.java:165)

    at org.eclipse.persistence.exceptions.IntegrityException.printStackTrace(IntegrityException.java:107)

    at java.util.logging.SimpleFormatter.format (unknown Source)

    at java.util.logging.StreamHandler.publish (unknown Source)

    at java.util.logging.ConsoleHandler.publish (unknown Source)

    at java.util.logging.Logger.log (unknown Source)

    at org.eclipse.persistence.logging.JavaLog.internalLog(JavaLog.java:290)

    at org.eclipse.persistence.logging.JavaLog.log(JavaLog.java:261)

    at org.eclipse.persistence.internal.sessions.AbstractSession.log(AbstractSession.java:3100)

    at org.eclipse.persistence.internal.sessions.AbstractSession.logThrowable(AbstractSession.java:4293)

    at org.eclipse.persistence.internal.sessions.AbstractSession.handleSevere(AbstractSession.java:4422)

    at org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.initializeDescriptors(DatabaseSessionImpl.java:535)

    at org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.initializeDescriptors(DatabaseSessionImpl.java:476)

    at org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.initializeDescriptors(DatabaseSessionImpl.java:435)

    at org.eclipse.persistence.sessions.broker.SessionBroker.initializeDescriptors(SessionBroker.java:576)

    at org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.postConnectDatasource(DatabaseSessionImpl.java:676)

    at org.eclipse.persistence.sessions.broker.SessionBroker.login(SessionBroker.java:713)

    at oracle.odi.core.persistence.toplink.ContextualRepositorySessionBrokerFactoryBean.createRepositoryServerSessionBroker(ContextualRepositorySessionBrokerFactoryBean.java:334)

    at oracle.odi.core.persistence.toplink.ContextualRepositorySessionBrokerFactoryBean.afterPropertiesSet(ContextualRepositorySessionBrokerFactoryBean.java:131)

    at oracle.odi.core.OdiInstance.initializeJpaPersistence(OdiInstance.java:886)

    at oracle.odi.core.OdiInstance.initOdiInstance(OdiInstance.java:823)

    to oracle.odi.core.OdiInstance. < init > (OdiInstance.java:681)

    at oracle.odi.core.OdiInstance.createInstance(OdiInstance.java:609)

    at oracle.odi.core.OdiInstance.createInstance(OdiInstance.java:548)

    at MyFirstSDKCode2.main (MyFirstSDKCode2.java:30)

    Exception in thread "main" java.lang.NullPointerException

    to java.util.ResourceBundle.getBundle (unknown Source)

    at org.eclipse.persistence.exceptions.i18n.ExceptionMessageGenerator.getHeader(ExceptionMessageGenerator.java:95)

    at org.eclipse.persistence.exceptions.EclipseLinkException.toString(EclipseLinkException.java:253)

    at java.lang.Throwable. < init >(Unknown Source)

    at java.lang.Exception. < init >(Unknown Source)

    to java.lang.RuntimeException. < init >(Unknown Source)

    to oracle.odi.core.exception.OdiRuntimeException. < init > (OdiRuntimeException.java:58)

    to oracle.odi.exception.OdiUncheckedException. < init > (OdiUncheckedException.java:50)

    to oracle.odi.core.config.OdiConfigurationException. < init > (OdiConfigurationException.java:37)

    to oracle.odi.core.config.UncategorizedConfigurationException. < init > (UncategorizedConfigurationException.java:48)

    to oracle.odi.core.OdiInstance. < init > (OdiInstance.java:691)

    at oracle.odi.core.OdiInstance.createInstance(OdiInstance.java:609)

    at oracle.odi.core.OdiInstance.createInstance(OdiInstance.java:548)

    at MyFirstSDKCode2.main (MyFirstSDKCode2.java:30)

    Check this blog - http://www.odipundits.com/2014/01/jpsexception.html

    I hope that helps!

  • Suddenly unable to create debugging tokens.

    Here is what happened.  The end of August, I was able to create Momentics debugging tokens and download them on my Z10 to test my application.  I went on vacation, I saw that my token had expired and tried to create a new token.  When I launched the Momentics app it would create the token, I would put in the p12 password, then he repeatedly asks the password of KSB.  After a number of times I see this error

    An internal error occurred during: "Creating and debugging token download.".
    java.lang.NullPointerException

    And no token would be created.  I tried to start the creation of the command line debugging tokens, but it failed with this error

    Error: Illegal device ID XXXXXX

    Oh yes, before I realized that my token id had a year so I downloaded a new and saved in the directory ResearchInMotion down AppData.  Another thing I tried after that his return was linking my old keys to my account.   I couldn't remember if I had done a few years before, when the last one, I worked on the application, but the process never seems to succeed this time.  And I use the words-> hardware-> PIN PIN

    I got things to work.  When I was downloading the bbtokenid I was going on the site and generating here and downloading it and then copy the file to the AddData/local/research... folder.  Instead, I entered Momentics, window-online Preferences => BlackBerry-online signature and downloaded the new token there and created the debugging file.  I suppose that in view of the old author.p12 and other files, but the new bbtokenid on the site does not work.

  • java.lang.NullPointerException packaging projects

    Hello

    I can't pack all projects (even the self project basis created in the new blackberry) on eclipse indigo with the new plugin eclipse blackberry.

    I always get this error:

    null
    Error
    Fri 18 Nov 10:17:02 VET 2011
    An internal error occurred during: «Packaging projects...» ».

    java.lang.NullPointerException
    at net.rim.ejde.internal.H.M.getVMVersion(RIMEIDE:286)
    to net.rim.ejde.internal.util.V$ _B.A(RIMEIDE:3008)
    to net.rim.ejde.internal.util.V$ _B.compare(RIMEIDE:468)
    at java.util.Arrays.mergeSort(Arrays.java:1270)
    at java.util.Arrays.sort(Arrays.java:1210)
    at java.util.Collections.sort(Collections.java:159)
    at net.rim.ejde.internal.P.H.A(RIMEIDE:3054)
    at net.rim.ejde.internal.P.H.A(RIMEIDE:1072)
    at net.rim.ejde.internal.D.F.H(RIMEIDE:2736)
    at net.rim.ejde.internal.D.F.A(RIMEIDE:3548)
    at net.rim.ejde.internal.D.F.D(RIMEIDE:1478)
    at net.rim.ejde.internal.D.F.D(RIMEIDE:383)
    at net.rim.ejde.internal.D.A.run(RIMEIDE:1808)
    at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2344)
    at net.rim.ejde.internal.D.D.runInWorkspace(RIMEIDE:841)
    at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

    I have tried to open the app_descriptor file, restart eclipse and I don't no succeed.

    Kind regards

    How were plug-ins installed?  Did you use the full installer or update the site?

    Have you installed both the BlackBerry Java for BlackBerry Java SDK and Eclipse plug-in?

    If so, can you try to create a new workspace?

  • NullPointerException

    So I try to get a storage for an options screen, but apparently my method of doing this just won't work right. whenever I try to access a variable of the OptionsScreen, it is null, unless I opened the screen Options atleast once.  Now, I tried to create a new instance of the OptionsScreen to see if it works... but it didn't.

    The application starts on the main menu, then the next screen is screen2.  You can open the Options of screen2 screen.  The only way to prevent a NullPointerException is now opening the OptionsScreen atleast once

    I put three categories below to view the corresponding code.

    public class theApplication extends UiApplication
    {
    
        public static OptionsScreen options;
    
        public theApplication()
        {
            pushScreen(new MainMenu());
        }
    
        public static void main(String[] Args)
        {
            // Create a new instance of the sample application
            theApplication theApp = new theApplication();
            // Add this app to the event dispatcher
            theApp.enterEventDispatcher();
            // Create new options screen, to attempt to
            // load all options from persistent store
            options = new OptionsScreen();
        }
    
    }
    
    final public class OptionsScreen extends MainScreen
    {
    
        private static PersistentObject options;
        /** This is the key that allows access to the settings. */
        private static long optionsKey = 0x6514f426119fc864L; 
    
        private static BasicEditField text;
    
        public OptionsScreen()
        {
    
            // Set the title
            setTitle("Options");
    
            options = PersistentStore.getPersistentObject(optionsKey);
    
            setupUI();
    
        }
    
        protected void setupUI()
        {
            retrieveData();
    
            add(text);
        }
    
        private static boolean storeData()
        {
            Options newOptions = new Options(); 
    
            try
            {
                synchronized(options)
                {
    
                    newOptions.setText(text.getText());
                    options.setContents(newOptions);
                    options.commit();
    
                    return true;
                }
            }
            catch(Exception e)
            {
    
                Dialog.alert("error!");
                return false;
    
            }
        }
    
        private static void retrieveData()
        {
    
            Options theOptions = new Options();
            try
            {
                synchronized(options) {
    
                    theOptions = (Options)options.getContents();
    
                    try                { text = new BasicEditField("text ", theOptions.getText());}
                    catch(Exception e) { text = new BasicEditField("text ", "");                  }
    
                }
            }
        }
    
        public void save() throws IOException
        {
    
            storeData();
            super.save();
    
        }
    }
    
    public class Options implements Persistable
    {
        private String text;
    
        public void setText(String newText) { text = newText;}
        public String getText() {return text};
    }
    

    I have your OptionScreen class, do not use the bt constructor to initialize your data:

    static {
            options = PersistentStore.getPersistentObject(optionsKey);
    }
    

    I encourage you to use the Singleton patern

  • Problem with a Bitmap image in a ButtonField (get a 104 NullPointerException error)

    Hi, I'm a beginner in programming BlackBerry Apps, well...

    I tried to create a simple ButtonField customized with a bitmap inside, but I constantly get an error 104 eception: NullPointerException, here is my code to field custom buttond.

    import net.rim.device.api.ui.component.ButtonField;import net.rim.device.api.ui.Graphics;import net.rim.device.api.system.Bitmap;
    
    public class CustomButtonField extends ButtonField{  
    
      private Bitmap imagen;
    
      CustomButtonField(Bitmap imagen, long style){
    
          super(style);     this.imagen = imagen;                     }
    
      public int getPreferredWidth(){
    
                    return 60;        }
    
      public int getPreferredHeight(){
    
          return 60;        }
    
     protected void paint(Graphics graphics) {
    
          graphics.drawBitmap(0, 0, imagen.getWidth(), imagen.getHeight(), imagen, 0, 0);   }
    
       protected void layout(int width, int height) {
    
          setExtent(getPreferredWidth(), getPreferredHeight());
    
        }  }
    
    import net.rim.device.api.ui.container.MainScreen;import net.rim.device.api.system.Bitmap;
    
    public class PruebaScreen extends MainScreen{    
    
      private CustomButtonField boton;
    
      PruebaScreen(){
    
          Bitmap imagen = Bitmap.getBitmapResource("res/img/icon.png");     boton = new CustomButtonField(imagen, 0);     add(boton);
    
      }}
    

    I suspect that my problem is due to the method of painting or the page layout, I don't know... I hope someone can help me, thank you very much in advance.

    Check if your getBitmapResource returns any non-null Bitmap image.  Specify the path correctly may take a few tries ("' / res/img/icon.png '," img/icon.png", etc.")

  • Access to pre-created device database

    Hello

    I have a precree database I've read of my application. I was able to set up the simulator of SD card and everything works fine. Now, I want to deploy my application to a physical device (storm 5530). I tried to put the database in my file /res and then using

    URI u = URI.create ("file:///res/" + databaseName);

    Basis of data = DatabaseFactory.open (u);

    but it is throwing a NullPointerException. I don't want to use DatabaseFactory.openOrCreate (u) because I want to read from the database that I have. Can anyone help? If it's important, I never write to the database.

    You cannot use database inside the jar or cod file. You must export the file of database to SD card first.

  • 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' };
    
  • Someone at - he managed to create a Deploymentarchive of svn in 12.2.1 with groovy?

    Hello

    I am trying to create a deploymentarchive of SVN with groovy.

    Reference level is started getting VM that I use to check in the mappings and 1 pkg/scen locally.

    After tagging the content out of ODI in Version 1.0, I tried the following code:

    password Char [] = "oracle".

    OdiVcsRepositoryConnectionInfo = (OdiVcsRepositoryConnectionInfo) .createSvnConnectionUsingHttpBasicAuthentication rci ("http://localhost/svn/svnrepository", "odiuser1", password);

    String pVCSLabel = "Version 1.0".

    String pName = "full TestDeployment".

    String pDescription = "this is test export a archive of execution of svn.

    DeploymentArchiveType pAType = DeploymentArchiveType.INITIAL

    String pFilename = "Initial_Deployment.zip."

    Char [] pExportKey = null

    Boolean pIncludePhysicalTopologyData = true

    Boolean pCreateWithoutCipherData = true

    IDA IDeploymentArchive = (DeploymentService) .createDeploymentArchiveFromLabel (odiin, pVCSLabel, pName, pDescription, pAType, pFilename, rci, pIncludePhysicalTopologyData, pExportKey, pCreateWithoutCipherData)

    line 53

    This results in the following error message:

    INFO: Creating archives of INITIAL deployment began (22/12/15 07:47)

    Taken: java.lang.NullPointerException

    java.lang.NullPointerException

    at oracle.odi.core.service.deployment.DeploymentService.createDeploymentArchiveFromLabel(DeploymentService.java:145)

    to oracle.odi.core.service.deployment.DeploymentService$ createDeploymentArchiveFromLabel.call (unknown Source)

    at connect_to_svn.run(connect_to_svn.groovy:52)

    Any ideas?

    Hi Thomas,

    I just duplicated your mistake on a very similar scenario, even if I use the connection of files based on svn. Assuming that the svn connection is good, then the problem is probably caused by the full path having not passed in the parameter file name, for example use pFilename = "/ deployment_archives/Initial_Deployment.zip.

    See you soon,.

    Jeff

  • java.lang.NullPointerException while selecting lov in adf:table

    Hello

    Jdev version: Studio Edition Version 12.1.3.0.0

    I had the form detailed master jsff on page.

    I have to add the number of records in the table of detail will depend on the number of user input.

    If the user enter n inputtext recording and click on add that the number of records is created;

    Detail table a field lov. Selection of LOV following error is generated

    java.lang.NullPointerException

    at org.apache.myfaces.trinidad.component.StampState.restoreChildStampState(StampState.java:184)

    at org.apache.myfaces.trinidad.component.UIXCollection.restoreStampState(UIXCollection.java:1205)

    at org.apache.myfaces.trinidad.component.UIXTable.restoreStampState(UIXTable.java:481)

    at org.apache.myfaces.trinidad.component.UIXCollection.restoreStampState(UIXCollection.java:1198)

    at org.apache.myfaces.trinidad.component.UIXTable.restoreStampState(UIXTable.java:481)

    at org.apache.myfaces.trinidad.component.StampState.restoreChildStampState(StampState.java:193)

    at org.apache.myfaces.trinidad.component.UIXTable.restoreStampState(UIXTable.java:469)

    at org.apache.myfaces.trinidad.component.UIXCollection._restoreStampState(UIXCollection.java:2114)

    at org.apache.myfaces.trinidad.component.UIXCollection.postRowDataChange(UIXCollection.java:1008)

    at org.apache.myfaces.trinidad.component.UIXCollection.setRowIndex(UIXCollection.java:573)

    at org.apache.myfaces.trinidad.component.UIXTable.setRowIndex(UIXTable.java:782)

    at oracle.adf.view.rich.component.UIXTable.processStamps(UIXTable.java:154)

    at org.apache.myfaces.trinidad.component.UIXTable.processFacetsAndChildren(UIXTable.java:384)

    at org.apache.myfaces.trinidad.component.UIXCollection.decodeChildrenImpl(UIXCollection.java:255)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:1503)

    at org.apache.myfaces.trinidad.component.UIXCollection.processDecodes(UIXCollection.java:241)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:1517)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:1503)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:1263)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:1517)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:1503)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:1263)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:1517)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:1503)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:1263)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:1517)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:1503)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:1263)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:1517)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:1503)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:1263)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:1517)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:1503)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:1263)

    to oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.access$ 001 (ContextSwitchingComponent.java:42)

    to oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$ 2.run(ContextSwitchingComponent.java:186)

    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:510)

    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.processDecodes(ContextSwitchingComponent.java:189)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:1517)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:1503)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:1263)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:1517)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:1503)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:1263)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:1517)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:1503)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:1263)

    to oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.access$ 001 (ContextSwitchingComponent.java:42)

    to oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$ 2.run(ContextSwitchingComponent.java:186)

    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:510)

    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.processDecodes(ContextSwitchingComponent.java:189)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:1517)

    at oracle.adf.view.rich.component.fragment.UIXRegion.decodeChildrenImpl(UIXRegion.java:632)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:1503)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:1263)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:1517)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:1503)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:1263)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:1517)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:1503)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:1263)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:1517)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:1503)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:1263)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:1517)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:1503)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:1263)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:1517)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:1503)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:1263)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:1517)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:1503)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:1263)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:1517)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:1503)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:1263)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:1517)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:1503)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:1263)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:1517)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:1503)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:1263)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:1517)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:1503)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:1263)

    to oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.access$ 001 (ContextSwitchingComponent.java:42)

    to oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$ 2.run(ContextSwitchingComponent.java:186)

    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:510)

    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.processDecodes(ContextSwitchingComponent.java:189)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:1517)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:1503)

    at org.apache.myfaces.trinidad.component.UIXForm.processDecodes(UIXForm.java:75)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:1517)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:1503)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:1263)

    at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1176)

    at javax.faces.component.UIViewRoot.processDecodes(UIViewRoot.java:933)

    to oracle.adfinternal.view.faces.lifecycle.LifecycleImpl$ ApplyRequestValuesCallback.invokeContextCallback (LifecycleImpl.java:1568)

    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:416)

    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:225)

    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:593)

    to weblogic.servlet.internal.StubSecurityHelper$ ServletServiceAction.run (StubSecurityHelper.java:280)

    to weblogic.servlet.internal.StubSecurityHelper$ ServletServiceAction.run (StubSecurityHelper.java:254)

    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:136)

    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:346)

    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:25)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)

    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:192)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)

    at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:105)

    to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:502)

    at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)

    to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:502)

    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:327)

    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:229)

    at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)

    at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:202)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)

    at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:61)

    at org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108)

    at org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137)

    at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)

    at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66)

    at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)

    to org.apache.shiro.web.servlet.AbstractShiroFilter$ 1.call(AbstractShiroFilter.java:365)

    at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)

    at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)

    at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)

    at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)

    at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)

    to oracle.security.jps.ee.http.JpsAbsFilter$ 1.run(JpsAbsFilter.java:137)

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

    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)

    at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:460)

    at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:120)

    at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:217)

    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:81)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)

    at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:220)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)

    at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)

    to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.wrapRun (WebAppServletContext.java:3436)

    to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.run (WebAppServletContext.java:3402)

    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)

    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)

    at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:57)

    at weblogic.servlet.internal.WebAppServletContext.doSecuredExecute(WebAppServletContext.java:2285)

    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2201)

    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2179)

    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1572)

    to weblogic.servlet.provider.ContainerSupportProviderImpl$ WlsRequestExecutor.run (ContainerSupportProviderImpl.java:255)

    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:311)

    at weblogic.work.ExecuteThread.run(ExecuteThread.java:263)

    I created 2 rows by clicking on the button 'Add' twice, then I click a line lov, it returns the correct value.

    When I switch to the second row and click component lov it give me above mentioned error and when I click on ok lov fills correctly.

    You must complete the key attributes programmatically (and probably all other attributes required if there is)

    Table has a composite key.

    This is usually problem (af:inputListOfValues has problems if you use this component in editable af:table and VO a composite key).

    As I said already, you probably should consider the use of read-only table and add/change the lines in a popup (or drop your VO also like shape on your page)

    Dario

  • Error creating page jssf in the stubborn workflow

    Hi all

    I did face the following error when creating page jssf in the bounded task flows .we use JDev 12.1.3

    java.lang.NullPointerException

    at oracle.jdevimpl.webapp.faces.backingfile.BackingFileUtils.isManagedBeanBound(BackingFileUtils.java:1355)

    at oracle.jdevimpl.webapp.jsp.taglibraries.jsf.AutoBindingTraversablePanel.init(AutoBindingTraversablePanel.java:323)

    at oracle.jdevimpl.webapp.wizards.AbstractWebAppTraversablePanel.onEntry(AbstractWebAppTraversablePanel.java:57)

    at oracle.jdevimpl.webapp.jsp.taglibraries.jsf.AutoBindingTraversablePanel.onEntry(AutoBindingTraversablePanel.java:369)

    to oracle.adfdtinternal.view.rich.fragment.FragmentWizard$ 5.onEntry(FragmentWizard.java:257)

    at oracle.jdevimpl.webapp.fusion.wizards.AbstractWebAppWizard.invoke(AbstractWebAppWizard.java:150)

    at oracle.ide.wizard.WizardManager.invokeWizard(WizardManager.java:446)

    at oracle.ide.wizard.WizardManager.invokeWizard(WizardManager.java:390)

    at oracle.adfdt.controller.common.util.WizardUtils.invokeWizard(WizardUtils.java:121)

    at oracle.adfdtinternal.controller.web.behavior.AdfcTaskFlowDTBehavior.createReferrentPage(AdfcTaskFlowDTBehavior.java:218)

    at oracle.adfdt.controller.adfc.source.controller.CreatePageController.handleEvent(CreatePageController.java:73)

    at oracle.ideimpl.controller.MetaClassController.handleEvent(MetaClassController.java:53)

    to oracle.ide.controller.IdeAction$ ControllerDelegatingController.handleEvent (IdeAction.java:1482)

    at oracle.ide.controller.IdeAction.performAction(IdeAction.java:663)

    at oracle.adfdt.controller.common.diagram.interactor.DiagramSelectInteractor.invokeDefaultAction(DiagramSelectInteractor.java:127)

    at oracle.adfdt.controller.common.diagram.interactor.DiagramSelectInteractor.performEdit(DiagramSelectInteractor.java:83)

    at oracle.diagram.core.interaction.CoreSelectInteractor.mouseClicked(CoreSelectInteractor.java:1102)

    at oracle.diagram.core.interaction.CoreSelectInteractor.processMouseEvent(CoreSelectInteractor.java:420)

    at ilog.views.IlvManagerViewInteractor.processEvent (unknown Source)

    at ilog.views.IlvManagerView.processEvent (unknown Source)

    at java.awt.Component.dispatchEventImpl(Component.java:4861)

    at java.awt.Container.dispatchEventImpl(Container.java:2287)

    at java.awt.Component.dispatchEvent(Component.java:4687)

    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)

    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4501)

    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)

    at java.awt.Container.dispatchEventImpl(Container.java:2273)

    at java.awt.Window.dispatchEventImpl(Window.java:2719)

    at java.awt.Component.dispatchEvent(Component.java:4687)

    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:735)

    at $200 (EventQueue.java:103) java.awt.EventQueue.access

    in java.awt.EventQueue$ 3.run(EventQueue.java:694)

    in java.awt.EventQueue$ 3.run(EventQueue.java:692)

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

    in java.security.ProtectionDomain$ 1.doIntersectionPrivilege(ProtectionDomain.java:76)

    in java.security.ProtectionDomain$ 1.doIntersectionPrivilege(ProtectionDomain.java:87)

    in java.awt.EventQueue$ 4.run(EventQueue.java:708)

    in java.awt.EventQueue$ 4.run(EventQueue.java:706)

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

    in java.security.ProtectionDomain$ 1.doIntersectionPrivilege(ProtectionDomain.java:76)

    at java.awt.EventQueue.dispatchEvent(EventQueue.java:705)

    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:242)

    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)

    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)

    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)

    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)

    at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)

    This has happened when drag-and - d├⌐poser display component palette in the workflow and double-click the view to create the page as attaché

    .

    We try to copy the existing jssf page and drag it into the workflow it is worked, we do not know what the problem

    aid body.

    Thank you

    Finally, we found the cause of the problem

    We have customized component for hijri date an interface and some of our team jar file import this jar in the model project

    and when we remove this pot of the model the error disappears

    of course, that we delete the file in the site web inf that created in the template and I think it's the reason for the problem

    Thank you

  • JPA - ExceptionInInitializerError when creating EntityManager

    EntityFactoryManager (emf) is well received but the emf.createEntityManager error

    Please see my code to the fragment of my project.

    public class Main {
    
        final private static Properties EMAIL_PROPS;
        final private static String EMAIL_FROM;
        
        static {
     EntityManagerFactory emf = javax.persistence.Persistence.createEntityManagerFactory("tmpCLMSPU");
    //       System.out.println("EMF: "+emf); //OUTPUT: EMF: org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl@ffa7e1
            EntityManager emTemp = emf.createEntityManager();
     TypedQuery<EmailSettings> emailSettings = emTemp.createNamedQuery("EmailSettings.findByName", EmailSettings.class).setMaxResults(1);
            EmailSettings smtp, port, from;
            smtp = emailSettings.setParameter("name", "SMTP").getSingleResult();
            port = emailSettings.setParameter("name", "Port").getSingleResult();
            from = emailSettings.setParameter("name", "EMAILFROM").getSingleResult();
            // Get system properties
            EMAIL_PROPS = System.getProperties();
            // Setup mail server
     EMAIL_PROPS.put("mail.smtp.host", smtp.getValue());
     EMAIL_PROPS.put("mail.smtp.port", port.getValue()); 
            EMAIL_FROM = from.getValue();
     emTemp.close();
            emf.close();
        }
       //Empty Constructor
      public void Main() {
      }
    public static void main(String[] args) {
        new Main();
    }
    

    My project was successfully running but all of a sudden, it showed the following error:-

    Java.lang ExceptionInInitializerError .

    Caused by: javax.persistence. PersistenceException: java.lang. NullPointerException

    to org.eclipse.persistence.internal.jpa. EntityManagerSetupImpl.deploy (EntityManagerSetupImpl.java:766)

    I use Netbeans IDE JAVA for my project. I am very frustrated after a lot of testing on my end to fix this. I tried now but FAILED: -.

    I ran my program again after each next step but always shows error.

    1. I check my database services. It is connected with success. The connection is OK.
    2. Restart the server (SQL Server) database on Server services.
    3. Remove the directories of the users of the configuration of NetBeans.
    4. Restart the server and also, my client computer.
    5. Create a separate project and copy my original sources. I did part of my project again i.e. configuration adding libraries, databases configuration connections & persistence again unit.

    However same database configuration works very well for another project. I found the same problem on the Internet: -.

    http://www.dreamincode.NET/forums/topic/285379-javaxpersistencepersistenceexception-javalangnullpointerexception/

    No suitable solution is given on above link because it is not a NullPointerException. EntityFactoryMnager is extracted successfully.

    Please see attachments: -.

    1. EmailSettings.java: entity
    2. Main.Java: Execution of the main program
    3. Persistence.Xml.txt: File containing the information of persistence
    4. StackTrace.txt: trace the full stack after error shows.

    Any idea to solve this problem?

    Thanks in advance,

    MALIKA

    This problem is SOLVED. In order to the completion of this forum, I give you the solution here: -.

    I have an entity named ShiftDetail in my project that has the rest of the line error codes: -.

    /**
         * SHIFT SLOT TIME ALLOWED AFTER WHICH SHIFT WILL BE APPLICABLE. Time in If
         * any error occurred for getting this value from CLMS S/w then set it's
         * default value as 40 minutes. Minutes
         */
        public static int SHIFT_SLOT; //Field SHIFTATTENDAFTERSLOT from AttendanceSettings table
        static {
            javax.persistence.EntityManagerFactory emf = javax.persistence.Persistence.createEntityManagerFactory("myDBPU");
            javax.persistence.EntityManager em = emf.createEntityManager();
            try {
                Object minutes = em.createNativeQuery("SELECT AttendanceSettings.Value FROM AttendanceSettings WHERE rtrim(LTRIM(Name))='SHIFTATTENDAFTERSLOT'")
                        .setMaxResults(1).getSingleResult();
                if (minutes != null && minutes instanceof String)
                    SHIFT_SLOT = Integer.parseInt(minutes.toString());
                else
                    SHIFT_SLOT = 40; //Take default Time Slot as 40-minutes
            } catch (Exception ex) {
                SHIFT_SLOT = 40; //Take default Time Slot as 40-minutes
            }
            emf.close();
        }
    

    I do not use a static field within an entity & should not use EntityFactoryManager to initialize this field. I removed above this source file lines by transferring to another class and I found the solution.

    My problem is solved, but can a tell me logical internal behind it to my knowledge.

    Thank you...

    MALIKA

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

  • Trying to update vCAC Blueprint entity, gets "java.lang.NullPointerException".

    Hello

    I am trying to create a fairly complex workflow in vRealize Orchestrator.

    The purpose of this workflow is to clone a vRealize current/previous deployment MultiMachine Automation and mark the new clones as models and then update a plan Director multi-machine 'Ad hoc' vRA with these models new vCenter.

    Right now, I figured out how to map prints blueprint only computer individual Ad hoc, to clone new models of vCenter.

    This is done in the "VirtualMachineTemplateProperties" of each single computer model part.

    Thanks to a code borrowed Christiaan Roeleveld createiaasblueprintfortemplate package

    But because the components of the original deployment MultiMachine could were converted to the CPU and memory, I need to update the entity for SingleMachine component plans.

    I have one tries to use the workflow by default to "Update an entity of the vCAC model" for this.

    The code below is just hard code examples.

    I create a set of properties:

    theBlueprintEntityProperties =
    {
      CPUCount : "2",
      MemoryGB : "4096",
      DiskSize0GB : "20"
    };
    

    I then try to run the workflow 'Update an entity of the vCAC model' (inside my workflow of wrapper of cause), with the following entries:

    entity = theBlueprintEntity
    inputProperties = theBlueprintEntityProperties
    links = null
    headers = null
    

    But I get just "java.lang.NullPointerException".

    Correctly, this means that I need to include links or headers.

    I tried with a few links, again using package Christiaan Roeleveld createiaasblueprintfortemplate code

    But even if I include the following links:

    var links = {
      "InterfaceType": [ interfaceType ] // The vCAC Entity for the vSphere interface,
      "HostReservationPolicy": [ reservationPolicy ] // The vCAC Entity for my Reservation Policy,
      "ProvisioningGroup": [ provisioningGroup ] // The vCAC Entity for my Procisioning Group / Business Group,
      "WorkflowInfo": [ cloneWorkflow ] // The vCAC Entity for the Clone Workflow,
      "GlobalProfiles": buildProfiles // Array of build profiles, in this case just a array of one build profile,
    }
    

    I still just takes "java.lang.NullPointerException".

    Someone has a few entries on how to upgrade the vCAC entity for a master plan, with regard to the CPU, memory or disk?

    Environmental information:

    vRealize Orchestrator = 6.0.3 Build 3000581

    vCAC/vRA Pluging in vRO = 6.2.2

    vRealize Automation = 6.2.2 Build 2754020

    I found the problem.

    The problem is that the properties in the vRO inventory, for example 'VirtualMachineTemplateDescription' has an envelope has changed compared to the vRA SQL database.

    In the vRO inventory, it is listed as virtualMachineTemplateDescription ("v" in lowercase)

    But in the vRA, database SQL, it is listed as VirtualMachineTemplateDescription (capital ' V')

    And when properties are not what is in the database, the answer back is:

    java.lang.NullPointerException
    

    Here's the corrected code that updates the VirtualMachineTemplateDescription, the CPUCount and the MemoryMB of an entity of Blueprint.

    var entity = theBlueprint.getEntity();
    
    var properties =
    {
      VirtualMachineTemplateDescription : "Testing Description",
      CPUCount : 8,
      MemoryMB : 18432
    };
    
    var hostId = entity.hostId;
    var modelName = entity.modelName;
    var setName = entity.entitySetName;
    var keyString = entity.keyString;
    
    vCACEntityManager.updateModelEntityBySerializedKey(hostId, modelName, setName, keyString, properties, null, null);
    
  • Re-installation of OBIEE 11 g always-error during domain create

    Hello

    I had to reinstall the OBIEE 11 g for whatever the reason. I uninstalled components as defined in the Oracle documentation.

    But the re-installation always-error during domain create with the below error:

    Oracle.As.Provisioning.util.configexception: error starting in the field

    Another exception in the log file is:

    Exception in thread "AWT-EventQueue-0".
    java.lang.NullPointerException

    Please can you help.

    Thank you

    Srikanth

    Thanks for your help Dattatray.

    After several surveys, the problem is identified as - Java Out of Memory.

    A update the JRE_MEMORY_OPTIONS to 2048 m in the oraparam.ini file.

    Restart the OBIEE Configuration using config.bat file

    Create domains through fine.

    See you soon

    Srikanth

Maybe you are looking for