InputStream missing "\n\r".

Hello

I am writing an application that connects to my server via Http and receives in response Xml.

The problem I faced is that even if the server sends a valid Xml code, I get no "\r\n" and it is causing me trouble.

Does anyone have an idea, what the problem?

Here is an example of code from my original code:

InputStream inGetData = connection.openInputStream();
int len = (int)connection.getLength();
byte[] data = new byte[len];
inConn.read(data, bytesread, len - bytesread);
String dataStr = new String(data, "UTF-8");

In addition, the method I use is GET and I put the following connection property, 'Accept ', ' * / * '.

I tried it on your Nokia device and there is no problem, so I guess it's about BB.

THX.

Found the problem - server damaged Xml...

Tags: BlackBerry Developers

Similar Questions

  • BufferedReader InputStream?  I'm missing something...

    Video lesson 3-4 deals with "Method 2" to get a BufferedReader using an InputStream created from UART.

    The minute 04:38 mark slideshows:

    InputStream is = Channels.newInputStream (uart);

    BufferedReader reader = new BufferedReader (is);

    The IDE nor any JavaDoc I find this a constructor for a BufferedReader with an InputStream as an argument.

    Just curious to know if I'm missing something or there is an error?

    It should be: Player BufferedReader in = new BufferedReader (new InputStreamReader (is));

    Thank you


    Brent S

    As a result of my own question, I've implemented as follows, and it does not work (good or bad).

    InputStream is = Channels.newInputStream (uart);

    BufferedReader reader = new BufferedReader (new InputStreamReader (is));

    Maybe a quick edit of the video he will make it clear if I'm right.

    Enjoy!

    Brent S

  • Convert InputStream into byte array

    Hey everybody,

    I really need help with this problem that I can not get rid! I am doing an application that loads an image saved on the BB device and sends it to a server, the problem is we can send only a byte [].

    So I try to apply the following method:

    -Loading the image via the FileConnection class

    -Open an InputStream from the FileConnection said

    -Convert an array of bytes as InputStream

    The code should look like this I guess:

    FileConnection file = (FileConnection) Connector.open ("Original_SealV.jpg");
    InputStream is = file.openInputStream ();

    Byte [] img = null;
    int temp = is.read ();
    {while(Temp>0)}

    Convert bytes here?

    }

    This is the last step I'm missing, I tried several methods, but could not run, so I beg for a bit of the collective wisdom of these forums...

    Could someone help me? I will not forget the congratulations!

    or you can always use the standard API

    Byte [] buf = IOUtilities.streamToBytes (stream);

  • Http result returns the HTML, just missing the text

    I have this project pretty much what I'm after, just missing something.

    To simplify the project, I have a Blackberry app that queries a Web server.  The Web server don't some code on the server side and then outputs the results.

    My Blackberry app receives the response using ByteArrayOutputStream and InputStream.

    I then check the ContentType data returned, and if I find "text /" I displays the results in a RichTextField.

    The problem is that the results from the Web server are not clear, but HTML instead, naturally.

    Is it possible for me to get the rendered HTML results?  So rather than receive current:

    
    
    Test
    
    
    Hello World!
    
    
    

    I'm seeing only:

    Hello world

    Thanks for the pointers!

    Nothing on the client side. When the server writes data... say do not write html elements, write directly the that you want on the client.

  • HttpPushDemo throws the error of missing on real device resource

    I am trying to run the example of httppushdemo on a real device to test for problems with an application to push.  However, if I run the application in the device, I get the error "Missing resource com.rim.samples.device.resource.HTTPPushDemoRes.

    I looked everywhere to find out how to get the resource on the device and impossible to find a solution.  The documentation I found would lead me to believe that it should be compiled in the Cod.

    Why I'm so confused (and frustrated after a long day of our push to debug problems)

    Thank you

    -Bill

    In older levels (4.3 and earlier OS), RIM ran the code, so that the resources (labels field, the names of menu etc.) where in a separate package.  It's a good way to demonstrate how you could internationalize applications, but also everyone confused because putting the application on the device, you need to charge upward of the cod resources as well.

    At the latest OS (4.5 +), they do not do this.

    The demo of http push has not changed, so you can take the source of the 4.5 or later in a previous level JDE and compile it.  It will take so NOT all external files of cod.  That's what I recommend you do.

    However, for you to win download the JDE together for a single file, it is here:

    /**
     * HTTPPushDemo.java
     *
     * Copyright © 1998-2008 Research In Motion Ltd.
     *
     * Note: For the sake of simplicity, this sample application may not leverage
     * resource bundles and resource strings.  However, it is STRONGLY recommended
     * that application developers make use of the localization features available
     * within the BlackBerry development platform to ensure a seamless application
     * experience across a variety of languages and geographies.  For more information
     * on localizing your application, please refer to the BlackBerry Java Development
     * Environment Development Guide associated with this release.
     */
    
    package com.rim.samples.device.httppushdemo;
    
    import java.io.*;
    import javax.microedition.io.*;
    import net.rim.device.api.ui.*;
    import net.rim.device.api.ui.component.*;
    import net.rim.device.api.ui.container.*;
    import net.rim.device.api.system.*;
    import net.rim.device.api.util.*;
    import net.rim.device.api.io.http.*;
    
    /**
     * The client side of a simple HTTP Push system.
     * This application will listen for image data on the specified port and
     * render the data when it arrives.
     */
    public class HTTPPushDemo extends UiApplication
    {
        // Constants ----------------------------------------------------------------
        private static final String URL = "http://:100"; // PORT 100.
        private static final int CHUNK_SIZE = 256;
    
        // Members ------------------------------------------------------------------
        private ListeningThread _listeningThread;
        private HTTPPushDemoScreen _mainScreen;
        private RichTextField _infoField;
        private RichTextField _imageField;
    
        public static void main(String[] args)
        {
            HTTPPushDemo theApp = new HTTPPushDemo();
            theApp.enterEventDispatcher();
        }
    
        // Constructor --------------------------------------------------------------
        public HTTPPushDemo()
        {
            _mainScreen = new HTTPPushDemoScreen();
            _mainScreen.setTitle(new LabelField("HTTP Push Demo" , LabelField.USE_ALL_WIDTH));
    
            _infoField = new RichTextField();
            _mainScreen.add(_infoField);
    
            _mainScreen.add(new SeparatorField());
    
            _imageField = new RichTextField();
            _mainScreen.add(_imageField);
    
            // Spin off the listening thread.
            _listeningThread = new ListeningThread();
            _listeningThread.start();
    
            _infoField.setText("HTTP Listen object started");
    
            pushScreen(_mainScreen);
        }
    
        // Inner Classes ------------------------------------------------------------
        private class ListeningThread extends Thread
        {
            private boolean _stop = false;
            private StreamConnectionNotifier _notify;
    
            public synchronized void stop()
            {
                _stop = true;
                try
                {
                    // Close the connection so the thread will return.
                    _notify.close();
                }
                catch (IOException e)
                {
                    System.err.println(e.toString());
                }
                catch (NullPointerException e)
                {
                    // The notify object likely failed to open, due to an IOException.
                }
            }
    
            public void run()
            {
    
                StreamConnection stream = null;
                InputStream input = null;
                MDSPushInputStream pushInputStream=null;
    
                while (!_stop)
                {
                try
                    {
    
                        // Synchronize here so that we don't end up creating a connection that is never closed.
                        synchronized(this)
                        {
                            // Open the connection once (or re-open after an IOException),  so we don't end up
                            // in a race condition, where a push is lost if it comes in before the connection
                            // is open again. We open the url with a parameter that indicates that we should
                            // always use MDS when attempting to connect.
                            _notify = (StreamConnectionNotifier)Connector.open(URL + ";deviceside=false");
                        }
    
                        while (!_stop)
                        {
    
                            // NOTE: the following will block until data is received.
                            stream = _notify.acceptAndOpen();
    
                            try
                            {
                                input = stream.openInputStream();
                                pushInputStream= new MDSPushInputStream((HttpServerConnection)stream, input);
    
                                // Extract the data from the input stream.
    
                                DataBuffer db = new DataBuffer();
                                byte[] data = new byte[CHUNK_SIZE];
                                int chunk = 0;
    
                                while ( -1 != (chunk = input.read(data)) )
                                {
                                    db.write(data, 0, chunk);
                                }
    
                                updateMessage(data);
    
                                // This method is called to accept the push.
                                pushInputStream.accept();
    
                                input.close();
                                stream.close();
    
                                data = db.getArray();
    
                            }
                            catch (IOException e1)
                            {
                                // A problem occurred with the input stream , however, the original
                                // StreamConnectionNotifier is still valid.
                                System.err.println(e1.toString());
    
                                if ( input != null )
                                {
                                    try
                                    {
                                        input.close();
                                    }
                                    catch (IOException e2)
                                    {
                                    }
                                }
    
                                if ( stream != null )
                                {
                                    try
                                    {
                                        stream.close();
                                    }
                                    catch (IOException e2)
                                    {
                                    }
                                }
                            }
                        }
    
                        _notify.close();
                        _notify = null;   
    
                    }
                    catch (IOException ioe)
                    {
                        // Likely the stream was closed. Catches the exception thrown by
                        // _notify.acceptAndOpen() when this program exits.
    
                        if ( _notify != null )
                        {
                            try
                            {
                                _notify.close();
                                _notify = null;
                            }
                            catch ( IOException e )
                            {
                            }
                        }
                    }
                }
            }
        }
    
        private void updateMessage(final byte[] data)
        {
            Application.getApplication().invokeLater(new Runnable()
            {
                public void run()
                {
                    // Query the user to load the received message.
                    String[] choices = {"Ok" , "Cancel" };
    
                    if ( 0 != Dialog.ask("New message received. Do you want to render it?" , choices, 0) )
                    {
                        return;
                    }
    
                    _infoField.setText("Text received - size:  " + data.length);
    
                    try
                    {
                       _imageField.setText(new String(data));
                    }
                    catch (Exception e)
                    {
                        Dialog.inform(e.toString());
                        System.err.println(e.toString());
                    }
                }
            });
        }
    
        protected void onExit()
        {
            // Kill the listening thread.
            _listeningThread.stop();
    
            try
            {
                _listeningThread.join();
            }
            catch (InterruptedException e)
            {
                System.err.println(e.toString());
            }
    
        }
    
        private class HTTPPushDemoScreen extends MainScreen
        {
    
            /**
             * @see net.rim.device.api.ui.Screen#close()
             */
            public void close()
            {
                onExit();
    
                super.close();
            }
        }
    }
    
  • socket InputStream does not get all the data, please help

    I've been doing stuff of network on blackberry for quite awhile, but still using the http connection.

    I have to use the socket for a piece of my application connection, but could not do the work.

    This code is what I do

    String url =

    "socket: / / ' + rmserver + ': ' + rmport;

    Socket SocketConnection = Connector.open (url) (SocketConnection);

    socket.setSocketOption (SocketConnection.KEEPALIVE, 1);

    OutputStream = socket.openOutputStream ();

    InputStream = socket.openInputStream ();

    send something here using outputstream

    int

    If (f > 0) {}

    do somwthing

    }

    AV is always 0.

    I don't know that my server sends data successfully. I run the network packet capture tool etheal on the MDS Server, I can see given reached MDS Server, but they never come to my device app.

    The outputstream works very well, I can send data from my application and my server code gets all of them.

    Where should I check? If it is http, I can turn on the debugging http on MDS log and see all network traffic, but for the socket connection, data packet is not connected (or I missed where it is).

    Is someone can you please tell me where I should go to understand why?

    Please try the suggestion to remove the check mark on InputStream.available.

  • Access Web Service via POST - missing parameter

    I'm trying to access web services using the Http Post method, but I'm System.InvalidOperationExeption: missing parameter: ID

    error.

    I can access the Web service using HTTP GET, which shows that there is nothing wrong with the Web Service itself successfully.

    Here is the code I am trying

    String retVal = "";      try       {
    
              String data = "id='25'"; // parameter of the method           URLEncodedPostData encodedData = new URLEncodedPostData(null,false);          encodedData.append("content", data);
    
              byte[] postData = encodedData.getBytes();
    
              HttpConnection connection = (HttpConnection)Connector.open("http://localhost/Service1.asmx/TestService1");            connection.setRequestMethod("POST");          connection.setRequestProperty("Content-type", "application/x-www-form-urlencoded");           connection.setRequestProperty("Content-Length", Integer.toString(postData.length));
    
              OutputStream requestOutput = connection.openOutputStream();           requestOutput.write(postData);            requestOutput.close();
    
              int responseCode = connection.getResponseCode();
    
              String contentType = connection.getHeaderField("Connect-type");           ByteArrayOutputStream baos = new ByteArrayOutputStream();                     InputStream responseData = connection.openInputStream();          byte[] buffer = new byte[1000];           int bytesRead = responseData.read(buffer);                     while(bytesRead >0)            {             baos.write(buffer,0,bytesRead);               bytesRead = responseData.read(buffer);            }         baos.close();         connection.close();           return baos.toString();
    
          }     catch (IOException e)         {         return "ERROR: " + e.getMessage();        }
    

    The line in the "BOLD" throws an exception. HTTP response code I get from server is 500

    Any help would be much appreciated.

    Nitin

    Now, I found the solution.

    The problem was the URLEncodedPostData. If I use just string.getbyte (), it works.

  • patch p11879896_112020_Generic failed with the missing req for error computer

    Hello
    Apply the fix for issue on Linux 32 with

    opatch apply - invPtrLoc /u01/app/oraInventory/oraInst.loc

    has failed (with message
    Patch 11879896 : Required or missing components: [oracle.sysman.console.db, 11.2.0.2.0]),

    debugging follows below. Any idea?

    Thank you.

    Anatoliy

    _osArch is
    /u01/app/oracle/product/11.2.0/home11gR2/jdk/bin/java -mx96m -cp /u01/app/oracle/product/11.2.0/home11gR2/OPatch/ocm/lib/emocmutl.jar:/u01/app/oracle/product/11.2.0/home11gR2/oui/jlib/OraInstaller.jar:/u01/app/oracle/product/11.2.0/home11gR2/oui/jlib/share.jar:/u01/app/oracle/product/11.2.0/home11gR2/oui/jlib/srvm.jar:/u01/app/oracle/product/11.2.0/home11gR2/oui/jlib/orai18n-mapping.jar:/u01/app/oracle/product/11.2.0/home11gR2/oui/jlib/xmlparserv2.jar:/u01/app/oracle/product/11.2.0/home11gR2/OPatch/jlib/opatch.jar:/u01/app/oracle/product/11.2.0/ home11gR2/OPatch/jlib/opatchutil.jar:/U01/app/Oracle/product/11.2.0/home11gR2/OPatch/jlib/opatchprereq.jar:/U01/app/Oracle/product/11.2.0/home11gR2/OPatch/jlib/opatchactions.jar:-DOPatch.ORACLE_HOME=/u01/app/oracle/product/11.2.0/home11gR2-DOPatch.DEBUG=true-DOPatch.RUNNING_DIR=/u01/app/oracle/product/11.2.0/home11gR2/OPatch oracle/opatch/OPatch apply - invPtrLoc /u01/app/oraInventory/oraInst.loc
    Citing O Patch 11.1 .0.6.6

    Setup Oracle interim Patch version 11.1.0.6.6
    Copyright (c) 2009, Oracle Corporation. All rights reserved.

    CmdLineParser::initRuntimeOptions()
    Audit on the class oracle.opatch.opatchutil.CmdLineOptions$ StringArguments
    A list of the fields defined in the class oracle.opatch.opatchutil.CmdLineOptions$ StringArguments
    There are 7 fields defined in this class.
    Add option "fp".
    Add option "dp".
    Add option "fr".
    Add option "dr."
    Add option "mp".
    Add option 'phbasedir '.
    Add option 'phbasefile '.
    Audit on the class oracle.opatch.opatchutil.CmdLineOptions$ BooleanArguments
    A list of the fields defined in the class oracle.opatch.opatchutil.CmdLineOptions$ BooleanArguments
    There are 2 fields defined in this class.
    Add option 'delay_link '.
    Add option "cmd_end.
    Audit on the class oracle.opatch.opatchutil.CmdLineOptions$ IntegerArguments
    A list of the fields defined in the class oracle.opatch.opatchutil.CmdLineOptions$ IntegerArguments
    There are 2 fields defined in this class.
    Add option 'integerarg1 '.
    Add option 'integerarg2 '.
    Audit on the class oracle.opatch.opatchutil.CmdLineOptions$ StringtegerArguments
    A list of the fields defined in the class oracle.opatch.opatchutil.CmdLineOptions$ StringtegerArguments
    There are 5 fields defined in this class.
    Add option 'stringtegerarg1 '.
    Add option 'stringtegerarg2 '.
    Add option "ps".
    Add option "mp".
    Add option "xmlinput.
    Audit on the class oracle.opatch.opatchutil.CmdLineOptions$ DoubleArguments
    A list of the fields defined in the class oracle.opatch.opatchutil.CmdLineOptions$ DoubleArguments
    There are 2 fields defined in this class.
    Add option 'doublearg1 '.
    Add option 'doublearg2 '.
    Audit on the class oracle.opatch.opatchutil.CmdLineOptions$ RawStringArguments
    A list of the fields defined in the class oracle.opatch.opatchutil.CmdLineOptions$ RawStringArguments
    There are 1 fields defined in this class.
    Add option "cmd".
    CmdLineHelper::loadRuntimeOption() for the class "oracle.opatch.opatchutil.OUSession".
    option string initialization 0, fp
    initialization of string option1, dp
    initialization of string option 2, en
    option during initialization of channel 3, dr
    4, MP initialization string option
    initialization string 5 option, phbasedir
    initialization string 6 option, phbasefile
    does init. String argument.
    initialization of the Boolean option 0, delay_link
    initialization of the Boolean option 1, cmd_end
    does init. Boolean argument.
    initialization option to the integer 0, integerarg1
    the initialization of the whole number 1 option, integerarg2
    does init. Integer argument.
    initialization of StringTeger option 0, stringtegerarg1
    initialization of option StringTeger 1, stringtegerarg2
    initialization of StringTeger option 2, ps
    initializing StringTeger option 3, mp
    initialization of StringTeger option 4, xmlinput
    does init. SringTeger arg
    the initialization of the Double option 0, doublearg1
    the initialization of the Double option 1, doublearg2
    does init. Double argument.
    initialization of RawString option 0, cmd
    does init. RawString arg.
    CmdLineHelper::loadRuntimeOption() for the class "oracle.opatch.opatchutil.OUSession", actually.
    CmdLineParser::initRuntimeOptions()
    Audit on the class oracle.opatch.opatchprereq.CmdLineOptions$ StringArguments
    A list of the fields defined in the class oracle.opatch.opatchprereq.CmdLineOptions$ StringArguments
    There are 3 fields defined in this class.
    Add option 'phbasedir '.
    Add option "patchids.
    Add option 'phbasefile '.
    Audit on the class oracle.opatch.opatchprereq.CmdLineOptions$ BooleanArguments
    A list of the fields defined in the class oracle.opatch.opatchprereq.CmdLineOptions$ BooleanArguments
    There are 2 fields defined in this class.
    Add option 'booleanarg1 '.
    Add option 'booleanarg2 '.
    Audit on the class oracle.opatch.opatchprereq.CmdLineOptions$ IntegerArguments
    A list of the fields defined in the class oracle.opatch.opatchprereq.CmdLineOptions$ IntegerArguments
    There are 2 fields defined in this class.
    Add option 'integerarg1 '.
    Add option 'integerarg2 '.
    Audit on the class oracle.opatch.opatchprereq.CmdLineOptions$ StringtegerArguments
    A list of the fields defined in the class oracle.opatch.opatchprereq.CmdLineOptions$ StringtegerArguments
    There are 2 fields defined in this class.
    Add option 'stringtegerarg1 '.
    Add option 'stringtegerarg2 '.
    Audit on the class oracle.opatch.opatchprereq.CmdLineOptions$ DoubleArguments
    A list of the fields defined in the class oracle.opatch.opatchprereq.CmdLineOptions$ DoubleArguments
    There are 2 fields defined in this class.
    Add option 'doublearg1 '.
    Add option 'doublearg2 '.
    CmdLineHelper::loadRuntimeOption() for the class "oracle.opatch.opatchprereq.PQSession".
    initialization string 0 option, phbasedir
    the initialization of the option channel 1, patchids
    initialization of string option 2, phbasefile
    does init. String argument.
    the initialization Boolean option 0, booleanarg1
    the initialization of the Boolean option 1, booleanarg2
    does init. Boolean argument.
    initialization option to the integer 0, integerarg1
    the initialization of the whole number 1 option, integerarg2
    does init. Integer argument.
    initialization of StringTeger option 0, stringtegerarg1
    initialization of option StringTeger 1, stringtegerarg2
    does init. SringTeger arg
    the initialization of the Double option 0, doublearg1
    the initialization of the Double option 1, doublearg2
    does init. Double argument.
    CmdLineHelper::loadRuntimeOption() for the class "oracle.opatch.opatchprereq.PQSession", actually.
    reqVer to use getEnv() = 10.2.0.4.0
    curVer = 11.2.0.1.0
    Worm of the current later that required? : true
    Current ver is equal to required? : false
    Checking the EMDROOT using the API of YES...
    CmdLineParser.processOPatchProperties () starts
    Ends of CmdLineParser.processOPatchProperties)
    OUIReplacer called::runEnvScript()
    SystemCall:RuntimeExec(cmds,_runDir): GOING to start to thread to read the input stream
    SystemCall:RuntimeExec(cmds,_runDir): Started thread to read the input stream
    SystemCall:RuntimeExec(cmds,_runDir): GOING to start to thread to read the error stream
    ::Run() ReaderThread: Stream InputStream about to be read
    SystemCall:RuntimeExec(cmds,_runDir): Started thread to read the error stream
    SystemCall:RuntimeExec(cmds,_runDir): ENTER process.WAITFOR()
    ::Run() ReaderThread: ErrorStream stream being read
    ::Run() ReaderThread: Stream InputStream finished reading
    ::Run() ReaderThread: reading stream ErrorStream completed
    SystemCall:RuntimeExec(cmds,_runDir): process.WAITFOR() is ON
    SystemCall:RuntimeExec(cmds,_runDir): Wire flow error joined with success
    SystemCall:RuntimeExec(cmds,_runDir): Input stream thread joined with success
    OUIReplacer called::setKeyValue()
    OPatchSession::main()
    Environment:
    OPatch.ORACLE_HOME=/u01/app/oracle/product/11.2.0/home11gR2
    oracle.installer.invPtrLoc=/u01/app/oraInventory/oraInst.loc
    Oracle.Installer.oui_loc=/U01/app/Oracle/product/11.2.0/home11gR2/Oui
    Oracle.Installer.library_loc=/U01/app/Oracle/product/11.2.0/home11gR2/Oui/lib/Linux
    Oracle.Installer.startup_location=/U01/app/Oracle/product/11.2.0/home11gR2/Oui
    OPatch.PLATFORM_ID =
    OS. Name = Linux
    OPatch.NO_FUSER =
    OPatch.SKIP_VERIFY = null
    OPatch.SKIP_VERIFY_SPACE = null
    oracle.installer.clusterEnabled = false
    TRACING. ENABLED = TRUE
    TRACING. LEVEL = 2
    OPatch.DEBUG = true
    OPATCH_VERSION = 11.1.0.6.6
    Delivered OPatch property file = properties
    Minimum version of YES: 10.2
    OPatch.PATH=/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/home/oracle/bin:/u01/app/oracle/product/11.2.0/home11gR2/bin:/u01/app/oracle/product/11.2.0/home11gR2/OPatch
    Independent House: false


    Environment:
    OPatch.ORACLE_HOME=/u01/app/oracle/product/11.2.0/home11gR2
    oracle.installer.invPtrLoc=/u01/app/oraInventory/oraInst.loc
    Oracle.Installer.oui_loc=/U01/app/Oracle/product/11.2.0/home11gR2/Oui
    Oracle.Installer.library_loc=/U01/app/Oracle/product/11.2.0/home11gR2/Oui/lib/Linux
    Oracle.Installer.startup_location=/U01/app/Oracle/product/11.2.0/home11gR2/Oui
    OPatch.PLATFORM_ID =
    OS. Name = Linux
    OPatch.NO_FUSER =
    OPatch.SKIP_VERIFY = null
    OPatch.SKIP_VERIFY_SPACE = null
    oracle.installer.clusterEnabled = false
    TRACING. ENABLED = TRUE
    TRACING. LEVEL = 2
    OPatch.DEBUG = true
    OPATCH_VERSION = 11.1.0.6.6
    Delivered OPatch property file = properties
    Minimum version of YES: 10.2
    OPatch.PATH=/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/home/oracle/bin:/u01/app/oracle/product/11.2.0/home11gR2/bin:/u01/app/oracle/product/11.2.0/home11gR2/OPatch
    Independent House: false



    Oracle home: /u01/app/oracle/product/11.2.0/home11gR2
    Inventory Center: / u01/app/oraInventory
    from: /u01/app/oraInventory/oraInst.loc
    OPatch version: 11.1.0.6.6
    YES version: 11.2.0.1.0
    YES location: /u01/app/oracle/product/11.2.0/home11gR2/oui
    Location of the log file: /u01/app/oracle/product/11.2.0/home11gR2/cfgtoollogs/opatch/opatch2012-01-19_04-10-13AM.log

    History of patch file: /u01/app/oracle/product/11.2.0/home11gR2/cfgtoollogs/opatch/opatch_history.txt

    OUISessionManager::instantiate()
    lockCentralInventory(): OUISessionManager::lockCentralInventory() retries 0 times with every 120 seconds to get a lock of the inventory.
    Try OUISessionManager::lockCentralInventory() round # 1
    OUISessionManager::setupSession()
    OUISessionManager::setupSession() instantiates an OUIInventorySession obj.
    OUISessionManager::setupSession() init. the session
    OUISessionManager::setupSession() implements READ ONLY session
    OUISessionManager::setupSession() done
    OUISessionManager::lockCentralInventory() configure session OK
    reqVer = 10.2
    curVer = 11.2.0.1.0
    Worm of the current later that required? : true
    Current ver is equal to required? : false
    ApplySession::process()
    ApplySession::process(): loading object patch.
    ApplySession::loadAndInitPatchObject()
    PatchObject (patchLocation)
    PatchObject::PatchObject looking for file /u01/app/oraInventory/etc/config/actions.xml actions
    PatchObject::PatchObject looking for the file /u01/app/oraInventory/etc/config/inventory.xml inventory
    parserXMLFile: start
    parserXMLFile: start

    Bugs fixed by this patch 11879896 :
    11879896: SMPSSE: OVERVIEW OF THE PERFORMANCE OF DATABASE DOES NOT WORK ON MAC/LINUX

    PatchObject::setPreReadMeAction: readMeFile = /u01/app/oraInventory/custom/pre.txt
    noOp = true
    fileContent =
    PatchObject::setPreScriptAction: [PreScriptAction:-]
    no - op = true, fileLoc = / u01/app/oraInventory/custom/scripts/pre
    [Pre script is not present.-]

    PatchObject::setPostReadMeAction: readMeFile = /u01/app/oraInventory/custom/post.txt
    noOp = true
    fileContent =
    PatchObject::setPostScriptAction: [PostScriptAction:-]
    no - op = true, fileLoc = / u01/app/oraInventory/custom/scripts/post
    [Post script does not exist.-]

    PatchObject::setInitReadMeAction: readMeFile = /u01/app/oraInventory/custom/init.txt
    noOp = true
    fileContent =
    PatchObject::setInitScriptAction: [InitScriptAction:-]
    no - op = true, fileLoc = / u01/app/oraInventory/custom/scripts/init
    [Init script does not exist.-]

    Fix provisional application '11879896' ApplySession to OH ' / u01/app/oracle/product/11.2.0/home11gR2'
    ApplySession::processLocal()
    OPatchEnv:
    ["OPatchEnv: OracleHome="/u01/app/oracle/product/11.2.0/home11gR2 ", force = false, value = false, mod. inv. = true, the system mod. = true, local mode = false, all the lsinv = false, lsinv detail = false, lsinv patch = false, nolink = false, Retry = 30, delay = 120, CallerName = OPatch, CallerVersion = 11.1.0.6.6, SessionType = apply, JdkLoc=/u01/app/oracle/product/11.2.0/home11gR2/jdk, JreLoc=/u01/app/oracle/product/11.2.0/home11gR2/jre/1.4.2] , OracleHome via-oh = OracleHome via env.=/u01/app/oracle/product/11.2.0/home11gR2, via the response file OracleHome =, OPatch recognized InvPtrLoc=/u01/app/oraInventory/oraInst.loc, InvPtrLoc=/u01/app/oraInventory/oraInst.loc is specified by the user, without re-creating a link = false, Patch ID used in Rollback =, Patch ID with OPack timestamp =, PreOpt =, PostOpt =, OSName = Linux, is = false,.patch_storage=/u01/app/oracle/product/11.2.0/home11gR2/.patch_storage , .patch_storage / < ID > =/u01/app/oracle/product/11.2.0/home11gR2/.patch_storage/ entire Patch is saved to=/u01/app/oracle/product/11.2.0/home11gR2/.patch_storage//original_patch, backup restore path=/u01/app/oracle/product/11.2.0/home11gR2/.patch_storage//backup backup for Rollback path=/u01/app/oracle/product/11.2.0/home11gR2/.patch_storage//files, FilesMap info from=/u01/app/oracle/product/11.2.0/home11gR2/inventory/oneoffs/ < patch_id > [, PatchLoc = / u01/app/oraInventory, SyntaxErrorMsg =]
    Process InitReadMeAction()
    InitReadMeAction::catFile() is a no - op
    InitScriptAction::process() is a no - op
    Checking prerequisites 'CheckApplicableProduct '...

    PrereqAPI::checkApplicableProduct
    PrereqAPI::checkStandAloneHome())
    PREREQ checkApplicableProduct spent
    OPatch checks if the patch is applicable to this type of product home
    ApplySession::setupPatchStorage()
    ApplySession::processLocal() load inventory
    OracleHomeInventory::createInventoryObj()
    OracleHomeInventory::createInventoryObj() gets OUIInventorySession object
    Locker: lock()
    call of lockCentralInventory()
    OUISessionManager::getInventorySession()
    Details of the appellant:
    Name calling: OPatch calling Version: 11.1.0.6.6 requested access read-only: false Oracle Home: /u01/app/oracle/product/11.2.0/home11gR2
    OUISessionManager::instantiate()
    lockCentralInventory(): OUISessionManager::lockCentralInventory() retries 30 times with every 120 seconds to get a lock of the inventory.
    Try OUISessionManager::lockCentralInventory() round # 1
    OUISessionManager::setupSession()
    OUISessionManager::setupSession() instantiates an OUIInventorySession obj.
    OUISessionManager::setupSession() init. the session
    OUISessionManager::setupSession() put in place the session of READING / WRITING
    OUISessionManager::setupSession() done
    OUISessionManager::lockCentralInventory() configure session OK
    OUISessionManager::register()
    Record of the appellant: OPatch
    Locker::Lock(): /u01/app/oracle/product/11.2.0/home11gR2/.patch_storage does exist, no need of mkdir.
    Locker::Lock(): /u01/app/oracle/product/11.2.0/home11gR2/.patch_storage/patch_free exists, will delete the file.
    Locker: lock() creates /u01/app/oracle/product/11.2.0/home11gR2/.patch_storage/patch_locked
    OracleHomeInventory::createInventoryObj() gets OUIInstallAreaControl object
    OracleHomeInventory::createInventoryObj() gets OUIInstallInventory object
    OracleHomeInventory::createInventoryObj() gets OUIOracleHomeInfo object
    OracleHomeInventory::createInventoryObj() built
    OracleHomeInventory::load()
    OracleHomeInventory::load() Gets a vector of all categories of products
    OracleHomeInventory::load() Gets a vector of all the unique entries
    OracleHomeInventory::load() starts to process the raw data of the YES to accumulate the primitive classes OPatch
    RAC::GetInstance()
    initializing racType
    RAC::getClusterNodes()
    call OiiOracleHomeInfo::getNodeList()
    OiiiOracleHomeInfo::getNodeList() returned 0 items.
    RAC::getClusterNodes() returns a list of items from 0.
    The user has not used - no_inventory, then why clusterNodes are empty?
    clusterNodes is null or empty, set racType to NO_RAC
    checkIfSidAddition()
    OracleHomeInventory::load()
    OracleHomeInventory::load() Gets a vector of all categories of products
    OracleHomeInventory::load() Gets a vector of all the unique entries
    OracleHomeInventory::load() starts to process the raw data of the YES to accumulate the primitive classes OPatch
    ApplySession::processConflict()
    PrereqAPI::checkConflictAgainstOHWithDetail()

    Number of Oneoffs in the Oracle home: 0
    PrereqAPI::checkConflictAgainstOH()

    List of patches on which runs the prereq InterConflict are:
    11879896
    OneOffEntry::getBugIDsFixed()
    OneOffEntry::getBugIDsFixed() returns 1 bugs.

    There is no conflict/supersets.
    PREREQ checkConflictAgainstOHWithDetail Passed
    Run all the prereqs associated with apply.

    Prior running check...

    Checking prerequisites 'CheckForInputValues '...
    PrereqAPI::checkForInputValues()
    Input values is present for all the shares of the given patches.

    Checking prerequisites 'CheckSystemSpace '...
    PrereqAPI::checkSystemSpace()

    Find the total space required...

    Space required for patches are total: 11865356

    Checking if a space is present on the disk...

    Amount of required space is available on the disk.
    PREREQ checkSystemSpace Passed
    Enough space system is available.

    Checking prerequisites 'CheckPatchApplicableOnCurrentPlatform '...
    PrereqAPI::checkPatchApplicableOnCurrentPlatform()
    Read the platforms for patch11879896

    Genereic 0est platform ID specified for the patch: 11879896
    All the given patches are applied on the current platform.

    Checking prerequisites 'CheckSystemCommandAvailable '...
    PrereqAPI::checkSystemCommandAvailable()
    Rules: shouldSearchOrInvokeFuser()
    the user did not OPATCH_NO_FUSER but executable list is null or empty, return false.

    PatchObject: Patch will need of following commands:
    --------------------------------------------------------------------
    Archives of fuser need do sqlplus ptlpatch mkpatch
    false false false false false false
    --------------------------------------------------------------------
    Do the sqlplus ptlpatch Archives of fuser mkpatch
    true true true true true true


    All the required commands are available.
    PREREQ checkSystemCommandAvailable Passed
    All required system controls are present.

    Checking prerequisites 'CheckActiveFilesAndExecutables '...
    PrereqAPI::checkActiveFilesAndExecutables()

    Fuser invoking the executable list...
    getCommandInPropertyFiles(): command search 'fusion' in the file properties "properties."
    Path in the real estate records merged: / sbin: / usr/sbin: / usr/local/sbin
    check on "/ sbin/fuser unit.
    found ' / sbin/fuser unit.
    getCommandInPropertyFiles(): command search 'fusion' in the file properties "properties."
    Path in the real estate records merged: / sbin: / usr/sbin: / usr/local/sbin
    check on "/ sbin/fuser unit.
    found ' / sbin/fuser unit.

    There is no executable assets.
    PREREQ checkActiveFilesAndExecutables Passed
    None of the executables is active.

    Checking prerequisites 'CheckApplicable '...
    PrereqAPI::checkApplicable() check whether each Action is applicable
    PrereqAPI::checkComponents()
    PrereqAPI::checkComponents search required components.
    OracleHomeInventory::haveComponents()
    There are 1 items to check.
    Patch (component to check) Component is "oracle.sysman.console.db", "11.2.0.2.0", required = "true".
    OracleHomeInventory::haveComponents(): installInventory.getCompInvEntries () on 'oracle.sysman.console.db', '1' = homeIndex returns 1 components.

    Installed process component 'oracle.sysman.console.db', version '11.2.0.1.0 '.
    Installed control product: name = "oracle.sysman.console.db', version = '11.2.0.1.0'
    Installed Comp > < Patch Comp:
    Installed the Comp Version later than Patch Comp = false
    Installed model can replace Patch Comp = false
    Install the Comp Version is equal to or later than the Comp Patch: fake
    Comp. req. not in the inventory OH: oracle.sysman.console.db, 11.2.0.2.0
    Patch 11879896 : Required or missing components: [oracle.sysman.console.db, 11.2.0.2.0]
    PrereqAPI::checkComponents search option components.
    OracleHomeInventory::haveComponents()
    OracleHomeInventory::haveComponents() Gets an empty list. Nothing to do, returns a list return empty.
    The prerequisite checking 'CheckApplicable' failed.
    The details are:
    Patch 11879896 : Required or missing components: [oracle.sysman.console.db, 11.2.0.2.0]
    System intact, OPatch will not attempt to restore the system
    Locker: release()
    OUISessionManager::unRegister()
    Registration not calling: OPatch
    Locker: release() removes /u01/app/oracle/product/11.2.0/home11gR2/.patch_storage/patch_locked
    Locker: release() creates /u01/app/oracle/product/11.2.0/home11gR2/.patch_storage/patch_free
    Cleaning of the directory: ' / u01/app/oracle/product/11.2.0/home11gR2/.patch_storage/patch_unzip '...

    OPatch failed with the error code 74

    Well its quite obvious, isn't?

    Check installed product: name="oracle.sysman.console.db", ver="11.2.0.1.0"
    ...
    Patch 11879896: Required component(s) missing : [ oracle.sysman.console.db, 11.2.0.2.0 ]
    

    11.2.0.1 vs 11.2.0.2

  • . MessagingException - limit start missing when loading a mail twice

    Hello!

    I found a very interesting behavior. When parsing a multipart mail twice, there is an error "javax.mail.MessagingException: missing starting limit." This occurs for each mail multipart that is read via POP3 and appears to be independent of POP3 Server and the e-mail client, with that the message has been built.

    Environment:
    Linux Debian amd64, java 1.6
    most recent https://hg.kenai.com/hg/javamail~mercurial JavaMail

    Test program:
    import java. IO;
    Javax.mail import. *;

    public class Mailtest {}
    survey of private final public static void loadMail (Part p) {Exception
    Object content = p.getContent ();
    If (contents instanceof Multipart) {}
    MP multipart content = (Multipart);
    CNT int = mp.getCount ();
    for (u = 0 int; u < cnt; u ++) {}
    loadMail (mp.getBodyPart (u));
    }
    }
    }

    public final static Sub main (String [] args) throws Exception {}
    System.setProperty ("mail.mime.cachemultipart", "true");
    java.util.Properties props = new java.util.Properties ();
    MailSession session = Session.getInstance (propellers, null);
    Store store = mailSession.getStore ("pop3");
    Store.Connect ("pop3srv", 110, "username", "pwd");
    A record = store.getFolder ("INBOX");
    Folder.Open (Folder.READ_WRITE);

    Message waiting [] = folder.getMessages ();
    for (int i = 0; i < msgs.length; i ++) {}
    / * If (msgs [i] instanceof com.sun.mail.pop3.POP3Message) {}
    System.out.println ("InputStream");
    InputStream in = msgs.getDataHandler (.getInputStream ());
    in. Close();
    }*/

    System.out.println ("I =" + i + "Try = 1");
    loadMail (msgs [i]);
    System.out.println ("I =" + i + "try = 2");
    loadMail (msgs [i]);
    }
    }
    }

    Output:
    I have = 0 = 1 try
    I have = 0 try = 2
    Exception in thread "main" javax.mail.MessagingException: missing boot limit
    at javax.mail.internet.MimeMultipart.parsebm(MimeMultipart.java:882)
    at javax.mail.internet.MimeMultipart.parse(MimeMultipart.java:503)
    at javax.mail.internet.MimeMultipart.getCount(MimeMultipart.java:244)
    to testapp. Mailtest.loadMail (Mailtest.java:11)
    to testapp. MailTest.main (MailTest.Java:38)
    Result of Java: 1

    I thought that 2 code blocks which are commented on could be a workaround, but nothing has changed if the two blocks are active.

    BTW: What is "mail.mime.multipart.bmparse" supposed to do?

    Yes, thank you, it's a bug introduced in version of JavaMail 1.4.4 (not yet final).
    I got it fixed. I'm going to push the patch soon.

    mail. MIME.multipart.bmparse is a property to control whether the old (slow) multipart parser
    is used, or the new (young) Boyer-Moore multipart parser is used.

  • Just the songs/video missing?

    I have an iPhone 7 more than 128 GB. Unfortunately when I click on 'Video' app on my iPhone, all my music videos, that I bought from iTunes disappeared and moved to the application 'Music'. Now, it's really confusing. Apple seems to break the apps more than fixing. Why? before iOS 10 never comes, iOS 9 worked very well and all my music videos are in the 'Video' app, all my songs are in the "Music" app, not more, there now appear to be broken, involved putting each of them in the application 'music '. Even when I play the video clip in the application of the 'Video' on iOS 9 which usually have closed captions on it, now on iOS 10 in the application 'music' don't have it anymore. ITunes on my PC play subtitles on the music video, I need this back on my iPhone! I have total of 401 songs [for the most part, are ripped from my CDs and some songs are purchased from iTunes included music videos purchased on iTunes] and only 333 is transferred to my iPhone and 68 are missing. I get most videos music and songs that I bought in gray [68 of them are]. I even went to "Purchased" and redownload everything and it remains grayed out... Help? and apple please give these clips in the app "Video!" PLEASE?

    Post edited by: xShaney

    This is a user to user support forum. Use iPhone comments to request features news/restored.

    See download your past - purchases Support Apple and hide and expose the iTunes Store or App Store purchases made on iBooks Store - Apple Support to access the latest purchases.

    The following steps should help with the erratic behavior of synchronization, including the formidable gray traces with dotted circles. They assume that all the content you want on the device in your lending library for the restoration. If not see recover your iTunes from your iPod or an iOS device first. I would also recommend you copy everything off of the camera, if you have not already.

    1. Backup device.
    2. Restoration as a new device.
    3. Restore the backup that you made earlier.

    Use a backup encrypted if you want to keep passwords, wi - fi settings, history and health web data as appropriate.

    TT2

  • Sierra: The missing in Email subject line

    I upgraded to Sierra and for some reason any in Mac Mail, the subject line has completely disappeared. I can see part of it in the preview to the left, as well as the sender and first line or more. How to make the subject line in the view on the far right in Mac Mail?

    Thank you!

    Vanders

    OMG I can't believe that everything they did was move and remove the label: "subject"! It appears right under the sender and before "to: I was so use to see above the gray line separating the headers from the body of the email, I was totally missing it! Thanks to all of you who have read my question!

  • Mail for Mac OS Sierra missing attachments

    In many of my emails, attachments are missing. I have about 10 imap and pop3 accounts in my mac mail.

    I use this for work and get 50-100 emails with attachment of accounts per day.

    I know it's a bug, but someone already have a practical solution until the bug is fixed?

    Thank you

    Hi Apple supports,

    Can we have your attention, please? One of the main messaging features does not work, it is a crucial issue.

    See you soon,.

    Coleslaw

  • App missing Documents

    I recently made a few changes, accidentally turned on iCloud and

    all my data went to the cloud.

    Frustrating because I would rather have it on my computer.

    Apart from that my entire application of Documents is missing.

    It shows in the cloud and I copied the info but still do not have the

    App to put in.

    I thought about reloading Sierra.  This would help to restore the App?

    iCloud is a completely separate to your Documents folder, so at least you did drag the files to the folder of iCloud has no way he as magically put everything in iCloud.   That said, iCloud keeps a local copy of everything you put in your computer, so even if it's in icloud it is also locally stored on your computer.

    Application for documents?  Do you mean 'Finder '?  If this isn't the case, you will need to explain what app you are talking about.

    Where at - it go away to?

    Have you tried looking for him with Siri or Spotlight?

    Sierra reloading would put just as he was, but I doubt that such drastic action should be taken.

    Also ti recharge Sierra you need to clean your hard drive and start from scratch. So make sure that you back up all your files before continuing.

  • I have someone just showed about 100 pictures of my iPad. Now, the pictures are missing, and the "recently deleted" folder is also empty. What can I do?

    I have someone just showed about 100 pictures of my iPad. Now, the pictures are missing, and the "recently deleted" folder is also empty. What can I do?

    Have you done something after their show.

  • Missing bookmarks in the smart search field in Safari

    Since the release of El Capitan 10.11.6, favorites are missing from the smart search field in Safari to new Windows.  If a Safari any page web (so far), clicking in the search box if poster is Favorites to view icons, as is expected.

    Is this a bug, or can I make some adjustments to bring them new windows?

    Thank you!

    Dick

    Hello Dick Huitema.

    If I understand your message to the right, when you open a new window in Safari, you do not see your favorite icons in the smart search field.  When I use Safari, I always like to have my favorites available and ready to use, so I can understand why you would be tender for assistance with this.

    You probably feel that if Safari is set to open new windows in an empty page. If yours is configured in this way, there is a very easy way to get these favorites icons to show without actually changing any settings. When you open a Web page, you should see a blank webpage with your top search bar and a cursor blinking in the search bar. Instead click inside the search bar right away, click anywhere on the empty Web page and then click on in the empty search bar. You should then see your Favorites icons appear.

    Another option is to set your homepage to your Favorites. You can do it in Safari > Preferences. On the general tab in Safari preferences, select the drop-down menu next to "new windows open with", and then choose favorite. This should ensure that when you open new web pages, all your Favorites icons show immediately. Favorites icons always appear in the smart search field when additional tabs are open as well.

    Here are a couple of really helpfuls articles on Safari Favorites and search options:

    Safari for Mac: Safari search options

    Safari for Mac: see the Safari Favorites page

    Thank you for using communities of Apple Support.

    Take care

Maybe you are looking for

  • Firefox command line option 'no-remote' launches a redirection of spam

    I set up multiple profiles in Firefox. I want to be able to run multiple profiles at the same time, so I created the shell script to start each profile; example: nohup /Applications/Firefox.app/Contents/MacOS/firefox Pei User01 no remote > / dev/null

  • File Localizable.Strings appears at startup

    I have a mid-2012 13 "Macbook Pro and I have replaced the standard hard drive with a Samsung Evo 840 1 TB SSD. My SSD worked great for a year and a half and started giving me problems lately so I ended up replacing the SSD with a Samsung Evo 1 850 ne

  • How to analysis the computer to my HP 8500 A909g to my MacBook Pro

    I have a MacBook Pro running 10.8.4. I can't have the scanning to the function of the computer to work. I downloaded the latest drivers from Apple for Mountain Lion. I uninstalled and reinstalled the printers so that rerun the configuration utilities

  • Network printer probs

    Work in a small office, my computer is the computer port and it is configured to share but I can't see other computers in the office to print. I found / installed the printer (HP Deskjet 5150 Series) on other computers, but the network won't send it

  • How can I install the latest audio harware drivers?

    I was removing programs & messed up. now I have no sound. I tried to restore but it did not work. I tried to do all updates @ mircrosoft, but I still have no audio. anyone where I can go to get & install a driver?