Sometimes A NullPointerException

Hi,
i implemented a video stream sender, it works normally, but sometimes i get a NullPointerException and i do not know why. The Exception do not say in which line the error is. I hope some one can help me. Here is my code:
* File: VideoStreamSender.java
* Package: lu.cordis.ist.pelote.utils.media
* Author:
* Date: 27.05.2004
* Revision: $Id: VideoStreamSender.java,v 1.2 2004/05/27 12:37:52
import java.io.IOException;
import java.net.InetAddress;
import java.util.Vector;
import javax.media.CaptureDeviceInfo;
import javax.media.CaptureDeviceManager;
import javax.media.Format;
import javax.media.Manager;
import javax.media.NoProcessorException;
import javax.media.Processor;
import javax.media.control.FormatControl;
import javax.media.control.TrackControl;
import javax.media.format.VideoFormat;
import javax.media.protocol.ContentDescriptor;
import javax.media.protocol.DataSource;
import javax.media.protocol.PushBufferDataSource;
import javax.media.protocol.PushBufferStream;
import javax.media.rtp.RTPManager;
import javax.media.rtp.SendStream;
import javax.media.rtp.SessionAddress;
* Created on Apr 29, 2004
* Mit dieser Klasse kann an eine angegebene Addresse ein VideoStream gesendet werden
* @author
* @version $Revision: 1.2 $
* @since 1.4
public class VideoStreamSender {
     * IP-Addresse, an die gesendet werden soll.
     private String ipAddress;
     * Port, an den gesendet werden soll.
     private int port;
     * Der Prozessor, der sp�ter f�r den Stream verwendet wird
     private Processor processor = null;
     * Mit diesem RTPManager wird die Session kontrolliert.
     private RTPManager manager;
     * Die Data Source wird zum Senden des Streams verwendet.
     private DataSource dataOutput = null;
     * Der Konstruktor bekommt eine IP-Adresse und einen
     * Port �bergeben. An diese Adresse wird der Stream
     * geschickt
     * @param ipAddress Die Ziel IP-Adresse
     * @param portNumber Der Ziel Port
     public VideoStreamSender(String ipAddress, String portNumber) {
          this.ipAddress = ipAddress;
          Integer integer = Integer.valueOf(portNumber);
          if (integer != null) {
               this.port = integer.intValue();
     * Startet die �bertragung. Gibt null zur�ck wenn
     * erfolgreich gestartet wurde, ansonsten wird eine
     * Fehlermeldung als String zur�ckgeliefert.
     public synchronized String start() {
          String result;
          result = createProcessor();
          if (result != null)
               return result;
          result = createTransmitter();
          if (result != null) {
               processor.close();
               processor = null;
               return result;
          processor.start();
          return null;
     * Stoppt die �bertragung
     public void stop() {
          synchronized (this) {
               if (processor != null) {
                    processor.stop();
                    processor.close();
                    processor = null;
                    manager.dispose();
     * Erzeugt einen Prozessor zum angegebenen AudioFormat
     * @return String
     private String createProcessor() {
          CaptureDeviceInfo di = null;
          Vector deviceList =
               CaptureDeviceManager.getDeviceList(
                    new VideoFormat(VideoFormat.RGB));
          if (deviceList.size() > 0) {
               di = (CaptureDeviceInfo) deviceList.firstElement();
          } else {
               System.out.println("leer");
               System.exit(-1);
          try {
               processor = Manager.createProcessor(di.getLocator());
          } catch (NoProcessorException e1) {
               e1.printStackTrace();
          } catch (IOException e1) {
               e1.printStackTrace();
          * Wird aufgerufen, um den Prozessor zum konfigurieren
          * bereit zu machen
          processor.configure();
          try {
               Thread.sleep(5000);
          } catch (InterruptedException e) {
          /*Muss immer gemacht werden, ist bei audio oder video
          * data immer ContentDescriptor.RAW
          processor.setContentDescriptor(
               new ContentDescriptor(ContentDescriptor.RAW_RTP));
          * konfiguriert das feste Format zur �bertragung
          TrackControl[] track = processor.getTrackControls();
          Format[] formats = track[0].getSupportedFormats();
          System.out.println(track[0].getFormat());
          ((FormatControl) track[0]).setFormat(new VideoFormat(
                         VideoFormat.H263_RTP));
          System.out.println(track[0].getFormat());
          * Muss ebenfalls immer aufgerufen werden. Der folgende
          * Thread.sleep Befehl ist n�tig, da der realize()
          * Vorgang einige Zeit dauert, und sonst eine
          * NullPointerException geworfen werden w�rde
          System.out.println("hier 1");
          processor.realize();
          try {
               Thread.sleep(5000);
          } catch (InterruptedException e) {
          * Erzeugt eine DataSource zum, die zum Senden
          * ben�tigt wird
          dataOutput = processor.getDataOutput();
          System.out.println("hier 2");
          return null;
     * In dieser Methode wird �ber den RTPSessionManager
     * eine Session erzeugt
     private String createTransmitter() {
          PushBufferDataSource pbds = (PushBufferDataSource) dataOutput;
          PushBufferStream pbss[] = pbds.getStreams();
          manager = RTPManager.newInstance();
          SessionAddress localAddr, destAddr;
          InetAddress ipAddr;
          SendStream sendStream;
          System.out.println("hier--1");
          try {
               ipAddr = InetAddress.getByName(ipAddress);
               localAddr = new SessionAddress(InetAddress.getLocalHost(), port);
               destAddr = new SessionAddress(ipAddr, port);
               manager.initialize(localAddr);
               manager.addTarget(destAddr);
               sendStream = manager.createSendStream(dataOutput, 0);
               System.out.println("hier--2");
               sendStream.start();
          } catch (Exception e) {
               return e.getMessage();
          return null;
     * Die main Methode dient nur zum testen, und baut
     * eine Testverbindung zum angegebenen Rechner auf
     * @param args Mit den Kommandozeilen Parametern kann das Ziel, an das
     * der VideoStream gesendet werden soll angegeben werden
     * @since 1.4
     public static void main(String[] args) {
          VideoStreamSender vs = new VideoStreamSender("132.187.101.129", "4000");
          // Start �bertragung
          String result = vs.start();
          if (result != null) {
               System.err.println("Error : " + result);
               System.exit(0);
          System.err.println("Start transmission for 60 seconds...");
          try {
               Thread.sleep(60000);
          } catch (InterruptedException ie) {
          // Stoppt �bertragung
          vs.stop();
          System.err.println("...transmission ended.");
          System.exit(0);
Thank you for your help
Daniel

schick mir dein code , wenn du es noch nicht weisst.
[email protected]
gruss Turaj

Similar Messages

  • Multithreaded graphics applet gets NullPointerException

    Hi!
    This is a complex issue and the code's big, so i'll try
    to explain the main part.
    I have five classes.
    AppletClass (this one extends Applet)
    GraphicItem (just a little sprite which can draw itself)
    Thread1 (draws a bunch of GraphicItems in background on a Graphics which is set by setg() in this class)
    Thread2 (draw a random clolor text line in background
    on a Graphics which is set by setg() in this class)
    Drawer (a thread that draws an image set in
    the constructor ona graphics which is set by setg() in this class)
    What is it for: Well, this is a dubble buffering example,
    where two threads draw into one image which works
    as a buffer and then another thread draw that image
    into the applet area.
    The problem is that when Thread1 in run() calls
    gitem.draw(g) where g is Graphics i sometimes
    get NullPointerException, also, it happenes in some
    other place but i cannot pinpoint it. Also,it happenes
    always when i restart applet w/o reloading in
    JBuilder (nor the browser).
    The thing is that i do not use synchronized or
    imageUpdate() in the Drawer (imageUpdates() does
    nothing), so it is possible for two or more object to
    have access to the same Graphics object at the same
    time. Also, while Drawer draws the image, the other
    thread are drawing onto the image. So, there might
    be a conflict, i think. The other other is that when
    i comment out all Thread.sleep() the image get
    clobbered. That is, the GraphicItem is a cross of
    random color, so i shoudl see thousands of crosses of
    random color, but i thousands of crosses of pretty
    much the same color as it seems like Random is not
    working or drawing is broken.
    Anyway, any idea how to properly implement such
    thing? What precautions shoudl i take and which
    conflicts and how should i resolve?
    And, of course, in what cases NullPointerException is
    generated? I mean, what exxctly does it mean and
    when usually occurs?
    PS: Don't you think it is weird to get such
    exception in a language which officially
    has no pointers? :)

    Why it SOUNDS like is the Image you are drawing may not be completly loaded yet.. so the first few times it's blitted ( and possibly if it gets bumped out of memory ) attempting to draw it will throw a null pointer.
    I solved that in my own code by using a MediaTracker on the image when it was created to make sure that it is loaded and ready to be draw immediatly.

  • ImapFolder.getAttributes() throws NullPointerException

    When we call ImapFolder.getAttributes() we sometimes get NullPointerException. We we dig in the source code of javamail and we saw that it will be possibly a bug ;
    Here is code block of getAttributes method:
        public String[] getAttributes() throws MessagingException {
         if (attributes == null)
             exists();          // do a LIST to set the attributes     
         return (String[])(attributes.clone());
        }Here when attributes attribute is null exists() method is called to fill this attribute but at exist() method;
         } else {
             exists = opened;
             attributes = null;
    .this else block says that even if we call exists() method attributes attribute can be null!
    after calling exists() method our attributes attribute is null and when it is called "attributes.clone()" it causes NullPointerException.

    The exists() method will fail to fill in attributes only if the LIST command
    returns no information about the folder, which should only happen if the
    folder doesn't exist. I'd love to see a protocol trace from your server
    showing the response to the LIST command. What server are you using?
    How are you sure that the folder exists? Is it a folder that always exists?
    Is the folder never removed and recreated? Is getAttributes being called
    on an open folder?
    Again, I agree that getAttributes should detect this case, but when it detects this case
    it would would throw a FolderNotFoundException rather than a NullPointerException.
    On some servers it may be possible for the folder to be open (and thus "exist"),
    but have been removed, so that LIST shows no evidence of the folder. In this case
    getAttributes should return an empty String array.
    But again, I'd still like to know what conditions are causing this problem for you,
    to make sure I fix all the possible cases correctly.

  • Converting a String to a Double, may I use Double constructor?

    Hello,
    I need to convert A String to a Double in my application.
    Usually I use the Double.parseDouble(String) method that works fine.
    But I have found one line in the code that use the Double class constructor: new Double(String). It has been observed that that constructor sometimes throws NullPointerException.
    My question is, are theses two methods both good practices to do the convertion? Could threre be a multi-threading problem with the Double construtor?
    I'm using JDK 1.3.1.
    Here is a sample of stack trace:
    bvsmgr: java.lang.NullPointerException
         at java.lang.FloatingDecimal.readJavaFormatString(Unknown Source)
         at java.lang.Double.valueOf(Unknown Source)
         at java.lang.Double.<init>(Unknown Source)
    Thank you for all answers,
    Florent.

    But I have found one line in the code that use the
    Double class constructor: new Double(String).
    It has been observed that that constructor sometimes
    throws NullPointerException.
    My question is, are theses two methods both good
    practices to do the convertion? Could threre be a
    multi-threading problem with the Double construtor?Both methods are the same (they both use valueOf()), and if the c'tor throws an NPE, then only because you feed it null. parseDouble would do that, too.

  • JFileChooser  - only make certain directories selectable

    I would like the user to be able to view all directories but only be able to choose ones that contain a certain file.
    For example, most IDE's allow you to only select directories that cantain project file (they even manage to give project directories different icons).
    HOW?
    Here is what I have got so for...
    private void openProjectMenuItemActionPerformed(java.awt.event.ActionEvent evt)
                System.out.println("open project");
                JFileChooser jfc = new JFileChooser();
                jfc.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
                jfc.addChoosableFileFilter(new javax.swing.filechooser.FileFilter()
                    @Override
                    public boolean accept(File f)
                        if(!f.isDirectory())
                            return false;
                        for(File file:f.listFiles())
                            if((file.getName().toLowerCase()).endsWith("jan"));
                                return true;
                        return false;
                    @Override
                    public String getDescription()
                        return "Return JAnnotate folders";
                if(jfc.showOpenDialog(this)==JFileChooser.APPROVE_OPTION)
                    System.out.println(jfc.getSelectedFile().getName());
        }

    Thanks for your help.
    This seems to work a little better for me but its still doesn't feel like the best solution.
    import javax.swing.JFileChooser;
    import utilities.MyFileChooser;
    public class FileFilterEg {
        public static void main(String[] args)
            JFileChooser jfc = new MyFileChooser();
            jfc.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
            if(jfc.showOpenDialog(null) == JFileChooser.APPROVE_OPTION)
                System.out.println(jfc.getSelectedFile().getName());
    package utilities;
    import java.io.File;
    import javax.swing.Icon;
    import javax.swing.JFileChooser;
    import javax.swing.filechooser.FileView;
    public class MyFileChooser extends JFileChooser
        public MyFileChooser()
            setFileView(new FileView()
                @Override
                public Icon getIcon(File f)
                    if(fileSelectable(f))
                        return new javax.swing.ImageIcon(getClass().getResource("/images/janicon.png"));
                    return super.getIcon(f);
        @Override
        public void approveSelection()
            File f=getSelectedFile();
            if(fileSelectable(f))
                super.approveSelection();
            else
                if(f.isDirectory())
                    this.setCurrentDirectory(f);
        private boolean fileSelectable(File f)
            if(!f.isDirectory())
                return false;
            try
                for(String fileName:f.list())
                    if((fileName.toLowerCase()).endsWith(".jan"))
                        return true;
            catch(NullPointerException e)// sometimes a NullPointerException is thrown.  Can't work out why.
                System.err.println("====================");
                System.err.println(e.getMessage());
                System.err.println("====================");
            return false;
    }

  • Random NullPointerException on UIShell

    Hi.
    I'm using UIShell , and sometimes it appens the following error:
    java.lang.NullPointerException
         at oracle.jbo.server.ViewRowSetIteratorImpl.scrollRange(ViewRowSetIteratorImpl.java:1232)
         at oracle.jbo.server.ViewRowSetIteratorImpl.setRangeStartWithRefresh(ViewRowSetIteratorImpl.java:2730)
         at oracle.jbo.server.ViewRowSetIteratorImpl.setRangeStart(ViewRowSetIteratorImpl.java:2715)
         at oracle.jbo.server.ViewRowSetImpl.setRangeStart(ViewRowSetImpl.java:3015)
         at oracle.jbo.server.ViewObjectImpl.setRangeStart(ViewObjectImpl.java:10678)
         at oracle.adf.model.binding.DCIteratorBinding.setRangeStart(DCIteratorBinding.java:3552)
         at oracle.adfinternal.view.faces.model.binding.RowDataManager._bringInToRange(RowDataManager.java:101)
         at oracle.adfinternal.view.faces.model.binding.RowDataManager.setRowIndex(RowDataManager.java:55)
         at oracle.adfinternal.view.faces.model.binding.FacesCtrlHierBinding$FacesModel.setRowIndex(FacesCtrlHierBinding.java:800)
         at org.apache.myfaces.trinidad.component.UIXCollection.setRowIndex(UIXCollection.java:530)
         at oracle.adf.view.rich.component.UIXTable.processStamps(UIXTable.java:199)
         at org.apache.myfaces.trinidad.component.UIXTable.processFacetsAndChildren(UIXTable.java:382)
         at org.apache.myfaces.trinidad.component.UIXCollection.decodeChildrenImpl(UIXCollection.java:206)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:1190)
         at org.apache.myfaces.trinidad.component.UIXCollection.processDecodes(UIXCollection.java:200)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:1204)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:1190)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:962)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.access$001(ContextSwitchingComponent.java:41)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$2.run(ContextSwitchingComponent.java:149)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:461)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.processDecodes(ContextSwitchingComponent.java:152)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:1204)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:1190)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:962)
         at org.apache.myfaces.trinidad.component.UIXEditableValue.processDecodes(UIXEditableValue.java:287)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:1204)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:1190)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:962)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:1204)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:1190)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:962)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:1204)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:1190)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:962)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:1204)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:1190)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:962)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:1204)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:1190)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:962)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:1204)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:1190)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:962)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:1204)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:1190)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:962)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:1204)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:1190)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:962)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:1204)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:1190)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:962)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.access$001(ContextSwitchingComponent.java:41)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$2.run(ContextSwitchingComponent.java:149)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:461)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.processDecodes(ContextSwitchingComponent.java:152)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:1204)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:1190)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:962)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:1204)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:1190)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:962)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.access$001(ContextSwitchingComponent.java:41)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$2.run(ContextSwitchingComponent.java:149)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:461)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.processDecodes(ContextSwitchingComponent.java:152)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:1204)
         at oracle.adf.view.rich.component.fragment.UIXRegion.decodeChildrenImpl(UIXRegion.java:635)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:1190)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:962)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl$ApplyRequestValuesCallback.invokeContextCallback(LifecycleImpl.java:1548)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnNamingContainerComponent(UIXComponentBase.java:1670)
         at oracle.adf.view.rich.component.fragment.UIXRegion.invokeOnComponent(UIXRegion.java:625)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1627)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1750)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1627)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1750)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1627)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1750)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1627)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1750)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1627)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1750)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1627)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1750)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1627)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1750)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1627)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1750)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1627)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1750)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1627)
         at oracle.adf.view.rich.component.fragment.UIXInclude.invokeOnComponent(UIXInclude.java:161)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1627)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1750)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1627)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1750)
         at org.apache.myfaces.trinidad.component.UIXDocument.invokeOnComponent(UIXDocument.java:106)
         at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:1299)
         at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:677)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:374)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:204)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:312)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:173)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:122)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:293)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:199)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:180)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
         at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    This error appears to be related to the opening of a new functionality, but it is unsystematic.
    My jdev is 11.1.2.1.0
    Thanks

    jdev version used 11.1.1.6.2 and there are more than 20 k rows in the af:table.
    it can be seen in the logs when user scrolls randomly in the table and cannot be reproduced consistently

  • NullPointerException while sending signed XML via SOAP to Axis webservice

    Hello,
    I was wondering if it was possible to change the behavior of Apache XML Security libraries and delete "ds:" namespaces while digitally signing XML files.
    We are trying to send signed XML to a local chilean IRS, as a part of an automatic autentication process. The steps to authenticate are quite straightforward and involve:
    1. Obtain from webservice 1 a "seed", which is a random number representing temporal session opened
    2. Sign this seed (in XML format) using our certificate
    3. Send signed XML to another webservice 2, which should validate it and open a permanent session, returning a "token", which is an alphanumeric string
    What happens is that steps 1 and 2 are completed without problems, while we cannot pass step 3. The webservice (as far I know mounted on Apache Axis) fails with ugly error "NullPointerException".
    The IRS says that our signed XML, although valid, seems strange to them, as it contains those "ds:" added by Apache Xml Security libraries while signing the file.
    So here comes the question: is it possible to obtain valid signed XML without those "ds:"? What other reasons may result in that NullPointerException error?
    We use simple Java class and VeriSign certificate stored in Java keystore to sign XML files, and Apache Xml Security 1.2.0 jars.
    For any clues that could help us thank you in advance.
    Jack

    Hi,
    Few months ago we had also problems with "locked user" in XI, in our case XIAPPLUSER was sometimes (b)locked.
    Perhaps note:
    721548 Changing the passwords of the XI 3.0 service users
    will help you.
    We removed and entered the service users again, with the password in CAPITALS and language blank.
    After that our problem was solved, I hope yours too.
    Regards
    Jack

  • NullPointerException on execution/ creation of a PreparedStatement

    Hi,
    I am facing a very weird problem. There is a jar file that is run from the command prompt connecting to SQL Server on the same machine. This program basically does some processing of records within a SQL transaction.
    Sometimes the program ends with a NullPointerException at a PreparedStatement for example on the both record and the transaction is rollbacked .
    Now if I run the program again for the same data, I may get a nullpointer exception at some other record for example on the 250th record.
    Now if you are beginning to feel that there is something wrong with the code then let me tell you this problem ,
    If I run the same jar file on another machine pointing to the earlier mentioned SQL Server and for the same data it runs perfectly fine.
    That is what is giving the creeps. In both the scenarios only thing changing is the machine on which it is being executed and the java version.
    Any Help on the above problem will be highly appreciated
    Thanks,
    Jyothi

    Then you have a race condition.

  • NullPointerException in JDWP during HotSwap

    I'm developing an application that needs to redefine classes at runtime, for which I'm using the HotSwap feature of the Sun JVM. I've written a HotSwap class that conects the application to itself via the SharedMemoryTransportService, obtains the VirtualMachine instance for the JVM and contains this method for swapping a single class:
         public void swap(String className, byte[] classBytes) throws IOException {
                   Map<ReferenceType, byte[]> classDefinitions = new HashMap<ReferenceType, byte[]>();
                   classDefinitions.put(getReferenceType(className, vm), classBytes);
                   vm.redefineClasses(classDefinitions);
    I then wrote a load of tests that take various classes and insert lines of code at the top of their methods. Most of these seemed to pass fine, with the inserted code executing successfully, but some caused the following NullPointerException to occur:
    java.lang.NullPointerException
         at com.sun.tools.jdi.JDWP$VirtualMachine$RedefineClasses$ClassDef.write(JDWP.java:1473)
         at com.sun.tools.jdi.JDWP$VirtualMachine$RedefineClasses$ClassDef.access$300(JDWP.java:1452)
         at com.sun.tools.jdi.JDWP$VirtualMachine$RedefineClasses.enqueueCommand(JDWP.java:1508)
         at com.sun.tools.jdi.JDWP$VirtualMachine$RedefineClasses.process(JDWP.java:1490)
         at com.sun.tools.jdi.VirtualMachineImpl.redefineClasses(VirtualMachineImpl.java:289)
         at com.sun.tools.jdi.HotSwap.swap(HotSwap.java:71)
         at uk.ac.ic.doc.cuXca.persistence.core.persistencehandlers.ObjectClassEnhancer.enhance(ObjectClassEnhancer.java:92)
    ... my classes
    For ages I thought that I was generating incorrect bytecode, but then I noticed that the majority of these exceptions disappeared if I made sure an instance of the swapped class existed before the swap (by adding a call to Class.newInstance()). However, some of my tests still throw the above exception and I'm confused as to why. To make matters worse, it seems to be caused by some kind of race condition, because different tests fail each time. My test code is not multithreaded, and I'm certain that the code I'm generating is valid. The whole newInstance thing makes me think that sometimes the classes have not been resolved prior to the swap. Has anyone who has used hotswapping before had any experience of this exception and been able to fix it?

    The following tests produce some interesting results (each block is a separate run and enhance(..) is my method for altering the given class and swapping it):
    enhance(A.class); // fails with NullPointerException
    A a = new A();
    enhance(A.class); // succeeds
    A a = new A();
    enhance(A.class); // succeeds
    enhance(B.class); // fails
    A a = new A();
    enhance(A.class); // succeeds
    B b = new B();
    enhance(B.class); // fails with NullPointerException
    A a = new A();
    B b = new B();
    enhance(A.class); // succeeds
    enhance(B.class); // succeeds
    From these, it seems to be that all classes to be swapped must be loaded before the first swap occurs, however then I found the following:
    A a = new A();
    enhance(A.class); // succeeds
    B b = new B();
    enhance(B.class); // fails with NullPointerException
    C c = new C();
    enhance(C.class); // fails with NullPointerException
    A a = new A();
    enhance(A.class); // succeeds
    B b = new B();
    C c = new C();
    enhance(B.class); // fails with NullPointerException
    enhance(C.class); // succeeds
    Here swapping C succeeds if it was loaded before the swap of B failed! I'm guessing the state of whether classes have been loaded or not is being cached and only being refreshed on the first swap (when the connection to the JVM is first made) and when the exception occurs. Unfortunately I can't rely on loading all my classes before the first swap since I'm swapping user classes that I have no control over.
    Any help greatly appreciated!

  • NullPointerException in createSendStream

    Hi, all
    I know this topic has been posted before, but I did not find answer for it.
    I am using JMF 2.1.1.
    I use SessionManager.createSendStream(DataSource, index) to create a SendStream, but it throws NullPointerException.
    Can anybody help?
    Thank you in advance.

    SessionManager has been deprecated - so I am using RTPManager. I based my code on Sun's example, RTPUtil - changed from the deprecated SessionManager to RTPManager and changed that line for createSendStream.
    I could send my code to you if you wished - it is sloppy, has lots of 'println's in it for testing and understanding, but it works and that is always a feature. I use it to stream out a half a dozen unicast streams on request from the 'jukebox'.
    Let me know what you would like. email me directly, I sometimes forget to check the JDC for several days. [email protected]
    Ray

  • Java.lang.NullPointerException warning beside components on ADF JSP page

    java.lang.NullPointerException warning beside components on ADF JSP page problem
    Hello
    i developed a web application with the help of the Adf technology On jdeveloper 10.1.3.3.0 . Everything is Ok.
    But when i use application sometimes on the page i take a java.lang.NullPointerException warn beside the some components like a inputbox or a radio button ..)
    i looked the logs but nothing.
    How can i solve this problem.
    Have you got any idea?

    Hi,
    it's the validator property on inputText components that causes it. not validation or StateValidation or EnableTokenValidation.
    Paste your inputText source from the page if you are not sure.
    Brenden

  • Java.lang.NullPointerException at oracle.jbo.server.QueryCollection.findByKey(QueryCollection.java:5110)

    We have deployed our ADF application in production. We developed using JDeveloper Version 11.1.2.1.0. In a page fragment, there is a inputComboboxListOfValues which is binded to a list of values binding. This list of values binding is mapped to an attribute of a view object which has a lov from a view accessor (through view link).
    In this inputComboboxListOfValues component, we get this error sometimes in production and we are neither able to re-produce the error nor able to find the reason for the error.
    java.lang.NullPointerException
    at oracle.jbo.server.QueryCollection.findByKey(QueryCollection.java:5110)
    at oracle.jbo.server.ViewRowSetImpl.findByKey(ViewRowSetImpl.java:5488)
    at oracle.jbo.server.ViewRowSetImpl.findByAltKey(ViewRowSetImpl.java:5311)
    at oracle.jbo.server.ViewObjectImpl.findByAltKey(ViewObjectImpl.java:11566)
    at oracle.adf.model.binding.DCIteratorBinding.findRowsByKeyValues(DCIteratorBinding.java:5065)
    at oracle.adfinternal.view.faces.model.binding.FacesCtrlLOVBinding$ListOfValuesModelImpl.getValueFromSelection(FacesCtrlLOVBinding.java:1715)
    at oracle.adfinternal.view.faces.renderkit.rich.SimpleInputListOfValuesRendererBase.decodeInternal(SimpleInputListOfValuesRendererBase.java:133)
    at oracle.adfinternal.view.faces.renderkit.rich.SimpleInputComboboxListOfValuesRenderer.decodeInternal(SimpleInputComboboxListOfValuesRenderer.java:86)
    at oracle.adfinternal.view.faces.renderkit.rich.LabeledInputRenderer.decodeInternal(LabeledInputRenderer.java:56)
    at oracle.adf.view.rich.render.RichRenderer.decode(RichRenderer.java:342)
    at org.apache.myfaces.trinidad.render.CoreRenderer.decode(CoreRenderer.java:292)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.__rendererDecode(UIXComponentBase.java:1334)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.decode(UIXComponentBase.java:865)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:965)
    at org.apache.myfaces.trinidad.component.UIXEditableValue.processDecodes(UIXEditableValue.java:287)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl$ApplyRequestValuesCallback.invokeContextCallback(LifecycleImpl.java:1548)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1735)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1627)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1750)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1627)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1750)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1627)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1750)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1627)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1750)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1627)
    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.invokeOnComponent(ContextSwitchingComponent.java:222)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1627)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1750)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1627)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1750)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1627)
    Please help us to solve this issue.

    Timo,
    I noticed that in the application module, these are the settings for passsivation:
    jbo.dofailover=false
    jbo.passivationstore=null
    Do you recommend to change to above settings to
    jbo.dofailover=true
    jbo.passivationstore=file
    We are not using cluster for production environment...
    Please suggest..

  • Java.lang.nullpointerexception when I deactivate the poa and shutdown the o

    When I deactivate the poa and shutdown the orb I sometimes get this exception
    java.lang.NullPointerException
    at com.inprise.vbroker.orb.ORB.getThreadLocalObject(ORB.java:1050)
    at com.inprise.vbroker.orb.ServerThreadInfo.create(ServerThreadInfo.java:34)
    at com.inprise.vbroker.orb.TPDispatcherImpl.tls(TPDispatcherImpl.java:32)
    at com.inprise.vbroker.orb.ThreadPool$PoolWorker.run(ThreadPool.java:53)

    Typically try this:
    // for any object (class instance, array) anyObject
    if(anyObject == null) {
       // process in your own way
    }

  • OpenMQ 4.4 b05 nullpointerexception in StompSubscriberSession.onMessage

    Hello,
    in a test for automatic acknowledge mode, I send a number of messages to the broker and then consume then in two steps, unsubscribing and closing the connection in between.
    Sometimes, the server log contains this exception. Maybe it is related to a socket problem (the client closed the socket so the server was not able to send the message)?
    INFO: Started JMS connection 1152957546066812160[in] for user admin
    21.04.2009 09:23:00
    WARNUNG: Unable to deliver message to subscription[{94EED5D7-E09D-4407-A3C9-244D
    F197AFEE}]: null
    java.lang.NullPointerException
    at com.sun.messaging.bridge.service.stomp.StompSubscriberSession.onMessa
    ge(StompSubscriberSession.java:110)
    at com.sun.messaging.jmq.jmsclient.MessageConsumerImpl.deliverAndAcknowl
    edge(MessageConsumerImpl.java:338)
    at com.sun.messaging.jmq.jmsclient.MessageConsumerImpl.onMessageToListen
    erFromReceiveQueue(MessageConsumerImpl.java:316)
    at com.sun.messaging.jmq.jmsclient.SessionReader.onMessageToLateListener
    s(SessionReader.java:171)
    at com.sun.messaging.jmq.jmsclient.SessionReader.deliver(SessionReader.j
    ava:149)
    at com.sun.messaging.jmq.jmsclient.ConsumerReader.run(ConsumerReader.jav
    a:190)
    at java.lang.Thread.run(Unknown Source)
    21.04.2009 09:23:00
    WARNUNG: Unable to send error message: null
    java.lang.NullPointerException
    at com.sun.messaging.bridge.service.stomp.StompSubscriberSession.onMessa
    ge(StompSubscriberSession.java:134)
    at com.sun.messaging.jmq.jmsclient.MessageConsumerImpl.deliverAndAcknowl
    edge(MessageConsumerImpl.java:338)
    at com.sun.messaging.jmq.jmsclient.MessageConsumerImpl.onMessageToListen
    erFromReceiveQueue(MessageConsumerImpl.java:316)
    at com.sun.messaging.jmq.jmsclient.SessionReader.onMessageToLateListener
    s(SessionReader.java:171)
    at com.sun.messaging.jmq.jmsclient.SessionReader.deliver(SessionReader.j
    ava:149)
    at com.sun.messaging.jmq.jmsclient.ConsumerReader.run(ConsumerReader.jav
    a:190)
    at java.lang.Thread.run(Unknown Source)
    21.04.2009 09:23:00
    INFO: Stomp connection 1152957546066812160[in] closed.
    21.04.2009 09:23:01

    This is the (Delphi) code which I am currently testing. The nullpointerexception does not occur in every test run, maybe one out of five.
    The test however is also the only one which fails, because the second read does not get all remaining messages everytime. (There should be 10 messages still in the queue). I will try to investigate it further.
    Mike
    procedure TSendReceiveTests.TestAutoAck;
    const
    NUM_MSG = 10;
    var
    Consumer: IMessageConsumer;
    Producer: IMessageProducer;
    Msg: IMessage;
    I: Integer;
    begin
    Consumer := Session.CreateConsumer(Queue);
    // Drain any messages that may allready be in the sub
    while Assigned(Consumer.Receive(1000)) do;
    Consumer.Close;
    Connection.Close;
    // send 20 messages
    Producer := OutSession.CreateProducer(OutQueue);
    // Producer.TimeToLive := 50000;
    for I := 1 to 2 * NUM_MSG do
    begin
    Msg := OutSession.CreateTextMessage;
    Msg.JMSCorrelationID := IntToStr(I);
    WriteLn('Send ID: ' + Msg.JMSCorrelationID);
    Producer.Send(Msg);
    end;
    OutConnection.Close;
    // reopen conn and read 10 messages
    CreateInConnection;
    Consumer := Session.CreateConsumer(Queue);
    for I := 1 to NUM_MSG do
    begin
    Msg := Consumer.Receive(2000);
    if not Assigned(Msg) then
    Fail('Received no message (1) ' + IntToStr(I))
    else
    WriteLn('Receive ID: ' + Msg.JMSCorrelationID);
    end;
    Consumer.Close;
    Connection.Close;
    // reopen conn and read 10 messages
    CreateInConnection;
    Consumer := Session.CreateConsumer(Queue);
    for I := 1 to NUM_MSG do
    begin
    Msg := Consumer.Receive(2000);
    if not Assigned(Msg) then
    Fail('Received no message (2) ' + IntToStr(I))
    else
    WriteLn(IntToStr(I) + ' Receive ID: ' + Msg.JMSCorrelationID);
    end;
    Consumer.Close;
    Connection.Close;
    end;

  • NullPointerException in weblogic.jdbc.rmi.SerialConnection.createStatement()

    Hello,
    we are running WLS 6.1 SP2. The following code sometimes (rather rarely) throws
    a NullPointerException:
    Connection dbConnection = DBUtil.getDBConnection();//here we get the Connection
    stmt = dbConnection.createStatement(ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_UPDATABLE);//it's
    where NPE happens
    The error report says:
    java.sql.SQLException:
    java.lang.NullPointerException at
    weblogic.jdbc.rmi.SerialConnection.createStatement(SerialConnection.java:396)
    So, I think, this is something in WebLogic's code... Is this a known issue (I
    couldn't find a similar report in the newsgroup)? Is there a workaround?
    regards,
    Vitaly

    Vitaly Sourikov wrote:
    "Vitaly Sourikov" <[email protected]> wrote:
    The patches that we use with SP2 are
    CR061106_61sp2.jar
    CR072612_61sp2.jar
    CR077919_61sp2.jar
    As far as we know, those fixes (or some of them) were not introduced in SP4. Are
    there new versions of the patches for SP4?I have found that all these bugs are fixed in sp4, so no patches are needed if you
    upgrade to 6.1sp4.
    Joe
    >
    >
    regards,
    Vitaly
    Hi Joseph,
    Thank you for the reply. Unfortunately, we cannot move to SP3 or SP4
    - they have
    conflicts with other patches from WebLogic we use. This error happens
    rather rarely.
    In most of cases this very stuff works. But it would be intresing to
    have this
    patch for diagnostics, in case of future failures. Would you send it
    to me, please?
    Thank you in advance,
    Vitaly
    Joseph Weinstein <[email protected]> wrote:
    Vitaly Sourikov wrote:
    Hello,
    we are running WLS 6.1 SP2. The following code sometimes (rather rarely)throws
    a NullPointerException:
    Connection dbConnection = DBUtil.getDBConnection();//here we get theConnection
    stmt = dbConnection.createStatement(ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_UPDATABLE);//it's
    where NPE happens
    The error report says:
    java.sql.SQLException:
    java.lang.NullPointerException at
    weblogic.jdbc.rmi.SerialConnection.createStatement(SerialConnection.java:396)
    So, I think, this is something in WebLogic's code... Is this a knownissue (I
    couldn't find a similar report in the newsgroup)? Is there a workaround?Hi. The NPE is probably happening in the actual DBMS driver. What is
    happening
    is that the rmi driver is having to catch any non-SQLException, andthrow
    a SQLException
    with the message of the original exception. Unfortunately, the fullstacktrace
    of the
    original NPE is lost. If you want, I can send you a small diagnostic
    patch, which will
    just make the rmi object retain the whole original stacktrace in the
    exception it throws,
    and that will help lead to the real problem.
    This may well be a bug that was fixed in sp3 or 4. Is it possible
    for you to upgrade to
    the latest stuff?
    Joe
    regards,
    Vitaly

Maybe you are looking for

  • How to change the Partner in Service Order

    Dear Experts,   I am working in SAP CRM 5.0.I want to change the Partners of Service Order Using the Function Module 'BAPI_ACTIVITYCRM_CHANGEMULTI'.Can anyone give me the Sample code for Changing the Partners.It is very Urgent Requirement.Please help

  • Mac and Acrobat 9 prof. e-mail

    Please excuse my bad english! I use snow leopard and Acrobat 9 prof. my e-mail rogram ist thunderbird-latest version . Whenever I try to send a pdf-document by mail or i want to create my own it appears the following: SendMail kann nicht mit Ihrem St

  • SEM-BPS: Transporting allocations

    Hi, I have used UPC_TRANSPORT_BPS_ALL to transport a planning function (Allocation) that contains several parameter groups. When going to target system I see the transported parameter groups but cannot process these. I get error message about missing

  • Control Key for Quality Management in Procurement

    if we activate Control Key for Quality Management in Procurement in material master then wether we need  also store a control key at the plant level for quality management in procurement. if we want want to maintaine pls tell me how it is pls expalin

  • SAP AutoId scenario

    Hi All, Could you please tell me how many days it will take to do RFID scenario, if the landscape are ready... Landscape : RFID, SAP AutoID, XI and R/3 System. Scenario : RFID -> SAP AutoId -> XI -> R/3 System. Do we need to do any coding in AutoId?