OCCI BUG! Error reading Objects which contain NULLS

The original problem was that I couldn't retrieve a SDO_GEOMERTY object from a table. Using OCCI and the OTT utility I always got assertions and exceptions.
Various people have already reported this problem (e.g. Hu Cao, "HELP!! operating SDO_GEOMETRY with OCCI" ).
After several hours of testing I found the real problem: When ever an object contain NULLS the problem appears.
Eg. the "occiobj"-demo works fine with the original data. However, after setting one value in a publ_address object to NULL
eg. UPDATE publisher_tab SET publisher_id=11, publisher_add=publ_address( NULL , 'NEW YORK') WHERE publisher_id=11;
the demo program crashes!!!
After discovering this, I generated a SDO_GEOMERTY object containing no NULLS and suddenly my program was able to retrieve the object.
Consequently there is only one big problem remaining:
A valid SDO_GEOMERTY object has to have NULLS in it!!!!
Comments please
Johannes
(I'm working with Win2K and the Oracle 9i Client. The bug appears in conjunction with both Oracle 8.1.7 and Oracle 9i)

I downloaded the Oracle 9i Release 2 (9.2.0.1) Client for Win and there I have less problems to get objects which contain NULLs.
Now if a standard-typed member (of an objects) is NULL, OCCI recognizes this correctly and the program never crashed again.
However, there is one BUG remaining. If an object-typed member is NULL the program still crashes.
Eg. if the SDO_POINT member (type MDSYS.SDO_POINT_TYPE) of an MDSYS.SDO_GEOMETRY object is NULL,
the program crashes in the
void sdo_point::readSQL(oracle::occi::AnyData& streamOCCI_)
function (which was generated by the OTT utility). It seems that in function
void sdo_point::readSQL(void ctxOCCI_)
the streamOCCI_.isNull() command doesn't recognize that the sdo_point object is NULL.
(see source code below)
WITH THIS BUG YOU CANNOT GET A MDSYS.SDO_GEOMETRY OBJECT WITH OCCI!!!
Has anybody solved this problem? Is there a bug fix?
Thanks in Advance
Johannes
void sdo_point::readSQL(void ctxOCCI_)
sdo_point *objOCCI_ = new(ctxOCCI_) sdo_point(ctxOCCI_);
oracle::occi::AnyData streamOCCI_(ctxOCCI_);
try
if (streamOCCI_.isNull()) // <-- doesn't recognize that the object in NULL
objOCCI_->setNull();
else
objOCCI_->readSQL(streamOCCI_); // <-- consequently the actual readSQL is called, which crashes...
catch (oracle::occi::SQLException& excep)
delete objOCCI_;
excep.setErrorCtx(ctxOCCI_);
return (void *)NULL;
return (void *)objOCCI_;
void sdo_point::readSQL(oracle::occi::AnyData& streamOCCI_)
X = streamOCCI_.getNumber();
Y = streamOCCI_.getNumber();
Z = streamOCCI_.getNumber();

Similar Messages

  • %UTIL-3-DLL: Data structure error -- non-tail element contains NULL next p

    I am getting the error in my 7200 vxr router where running ios is c7200p-advipservicesk9-mz.124-15.T4.bin
    my observation is
    when tunnel interface is going down that time i am getting this error
    error is
    %UTIL-3-DLL: Data structure error -- non-tail element contains NULL next pointer, -
    Traceback= 0x140C170 0x3760FDC 0xE0E31C 0xE0EB80 0xE0B910 0x1A4C9FC 0x1A4CC44 0x1A5C378 0x168B05C 0x2D9298 0x1A3E854 0x1A3F110 0x2930240 0x2E5850 0x2905A30 0x2905F08

    It does not say much !
    The following are utility messages.
    Message
    %UTIL-3-DLL : Data structure error -- [chars]
    Explanation A software error occurred, resulting in a data structure inconsistency.
    Recommended Action Copy the message exactly as it appears on the console or in the system log. Research and attempt to resolve the issue using the tools and utilities provided at
    http://www.cisco.com/tac. With some messages, these tools and utilities will supply clarifying information. Also perform a search of the Bug Toolkit
    http://www.cisco.com/pcgi-bin/Support/Bugtool/home.pl. If you still require assistance, open a case with the Technical Assistance Center via the Internet
    http://tools.cisco.com/ServiceRequestTool/create, or contact your Cisco technical support representative and provide the representative with the gathered information.

  • %UTIL-3-DLL: Data structure error -- non-tail element contains NULL next po

    I am getting the error in my 7200 vxr router where running ios is c7200p-advipservicesk9-mz.124-15.T4.bin
    error is
    %UTIL-3-DLL: Data structure error -- non-tail element contains NULL next pointer, -
    Traceback= 0x140C170 0x3760FDC 0xE0E31C 0xE0EB80 0xE0B910 0x1A4C9FC 0x1A4CC44 0x1A5C378 0x168B05C 0x2D9298 0x1A3E854 0x1A3F110 0x2930240 0x2E5850 0x2905A30 0x2905F08
    Please help me out from this problem

    Error message decoder results:
    1. %UTIL-3-DLL: Data structure error -- %s A software error occurred, resulting in data structure inconsistency.
    Recommended Action: Copy the message exactly as it appears on the console or in the system log.  Research and attempt to resolve the issue using the tools and utilities provided at  http://www.cisco.com/tac. With some messages, these tools and utilities will supply clarifying  information. Search for resolved software issues using the Bug Toolkit at  https://tools.cisco.com/bugsearch/?referring_site=emd. If you still require assistance,  open a case with the Technical Assistance Center via the Internet at  https://tools.cisco.com/ServiceRequestTool/scm/mgmt/case, or contact your Cisco technical support  representative and provide the representative with the information you have gathered. Attach the  following information to your case in nonzipped, plain-text (.txt) format: the output of the show  logging and show tech-support commands and your pertinent troubleshooting logs.
    Related documents- No specific documents apply to this error message.

  • Error reading wsdl file excepetion null

    Hi
    I am trying to invoke a proxy service (web service) wsdl from a bpel process. When i add a web service adapter, put url of external web service and save it, all my service end points defined in the BPEL process are becoming non editable. Binding of operation is changing from web service to HTTP binding for all end points. When I try to edit any partner link, Jdev throws an error " error reading wsdl file excepetion null " for local services. For external service, even though i am refering to a url on the server, it points to " C:\Oracle\Middleware\jdeveloper\jdev\bin\...\xxxx?WSDL" and throws same error " failed to read wsdl file(System could not find the path specified". I am just clueless as to why this is happening. Any help is much appreciated.

    Try the SOA Forum - SOA Suite

  • Authorization objects which contain company code field

    Hi,
    We are looking for list of Authorization objects which contain company code field for Audit. The listing should have Role, Authorization obj and the <b>company code and values</b>.
    Is there any we can query this info.
    Thanks,
    Sam
    Message was edited by: Sam

    Hi,
    You can use the follwing
    in USR12 table
    in USOBT table (but you get the details for the Auth Obj in the Tcodes and their field values.
    But as far as my knowledge goes you will get all the Auth Obj with Company code field
    Caution: If there are some objects in not check or are which are not in any tcodes then they will not be captured.
    But they are very less I guess and so i think you can capture most of the Auth Obj I guess
    Message was edited by: Manohar Kappala

  • Error reading zip file containing an excel file

    Hi all,
    Using servlets I am able to zip an excel file using java.util.zip package. The excel file is created using POI API.
    While I save and extract the zip file on my machine and then open the file in MS Excel. Excel pops a message saying "MS Office Excel has encountered a problem and need to close" and it gives me an option to "Recover my work and restart MS Office Excel". I select the option and then MS Excel does a document recovery and I am able to view my data. I get an excel repair log file saying as follows
    "Microsoft Office Excel File Repair Log
    Errors were detected in file 'C:\Documents and Settings\JohnDoe\Desktop\excel\test.xls'
    The following is a list of repairs:
    Damage to the file was so extensive that repairs were not possible. Excel attempted to recover your formulas and values, but some data may have been lost or corrupted.
    I have attached my servlet code down below I suspect there is a problem with PrintWriter to output or do I need to use OutputStream to write excel data.
    Below is my servlet code:
    import java.io.*;
    import javax.servlet.*;
    import org.apache.log4j.Logger;
    import java.util.*;
    import java.util.zip.*;
    import java.net.*;
    import org.apache.poi.hssf.usermodel.*;
    import org.apache.poi.hssf.record.*;
    import org.apache.poi.hssf.util.*;
    public class ZipServlet extends HttpServlet {
         * @see javax.servlet.http.HttpServlet#doGet(javax.servlet.http.HttpServletRequest,
         * javax.servlet.http.HttpServletResponse)
         public void doGet(HttpServletRequest request, HttpServletResponse response)
              throws ServletException, IOException {
              makeZip(request, response, "GET");
         * @see javax.servlet.http.HttpServlet#doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
         protected void doPost(HttpServletRequest request, HttpServletResponse response)
                   throws ServletException, IOException {
                   makeZip(request, response, "POST");
         public void makeZip(HttpServletRequest request, HttpServletResponse response, String methodGetPost) {
              Logger logger = Logger.getLogger(ZipServlet.class);
              try
                   int id=1;
                   ServletContext sc = getServletContext();
         HttpSession session = request.getSession();          
                   ConnectionPoolManager cpm = (ConnectionPoolManager)sc.getAttribute("CONNECTION_POOL_MANAGER");
                   ConnectionPool cp = cpm.getConnectionPool(id);
              createTestExcelZip(request,response,methodGetPost,session);
              } catch (Exception e2) {
         public void createTestExcelZip(HttpServletRequest request, HttpServletResponse response,
                   String methodGetPost,HttpSession session
                   )throws ServletException, IOException
              Logger logger = Logger.getLogger(ZipServlet.class);
              try
              {      //Create an Excel Workbook and placing value "Test" in the first cell
                   HSSFWorkbook wb = new HSSFWorkbook();
                   HSSFSheet sheet = wb.createSheet("new sheet");
                   HSSFCell cell=null;
                   HSSFRow row = sheet.createRow((short) 0);
                   short column = 0;
                   cell = row.createCell(column);
                   cell.setCellValue(new HSSFRichTextString("Test"));
                   HSSFCellStyle fontStyle = wb.createCellStyle();
              HSSFFont f = wb.createFont();
              f.setFontHeight((short) 200);
              f.setBoldweight(HSSFFont.BOLDWEIGHT_BOLD);
              fontStyle.setFont(f);
              cell.setCellStyle(fontStyle);
              response.setContentType("application/zip");
                   response.setHeader("Content-Disposition","attachment; filename=zipExcelRecordFiles.zip;");
                   int BUFFER = 2048;
                   byte buf[]=new byte[300000];
                   ByteArrayOutputStream baos = new ByteArrayOutputStream();
                   ZipOutputStream zos = new ZipOutputStream( baos );
                   ByteArrayInputStream is = null;
                   BufferedInputStream origin = null;
                   byte[] b = null;
                   String fileName = null;
                   b = wb.getBytes();
                   fileName = "testExcelRecords.xls";
                   try
                   is = new ByteArrayInputStream(b);
                   origin = new BufferedInputStream(is, BUFFER);
                   zos.putNextEntry(new ZipEntry(fileName)); // Add ZIP entry to output stream.
              int count;
              while((count = origin.read(buf, 0, BUFFER)) != -1)
              zos.write(buf, 0, count);
              zos.closeEntry(); // Complete the entry
                   is.close();
                   }catch(Exception e)
                        logger.error(e);
                   zos.close();
              PrintWriter pr = response.getWriter();
                   pr.write(baos.toString("ISO-8859-1"));
                   pr.close();
              catch(Exception e)
              logger.error(e);     
         * @see javax.servlet.GenericServlet#destroy()
         public void destroy() {
    Any help would be appreciated.
    Regards
    jdcunha

    Jdcunha,
    I am new to the field but encountered the same problem and recently found a solution. Hope this helps.
    For my project I wanted to create individual Excel 2003 workbooks for each file I created. Excel would give me the same error it gave you when I used the same HSSFWorkbook object. I tried creating a new Workbook object each time, but ran into the same issue.
    I ended up fixing the error by creating a new instance of my write-to-excel class each time I wanted to create a new workbook, instead of just recreating a new HSSFWorkbook object. It works perfectly and the Excel errors don't show. It may also be important to note I used OutputStream, I did not try it with printwriter.

  • Error connecting Domains: Invalid parameter,tdom_link contains NULL

    Hi,
    I'm trying to connect two Domains DOM1 and DOM2. DOM1 is running under Tuxedo8
    in a RedHat Linux 7.2. The remote Domain is running in a former Tuxedo Version,
    probably 6.5.
    When booting I get the next error:
    LIBGWT_CAT:1242: ERROR: Invalid parameter, tdom_link contains NULL pointer
    The description in the documentation is
    Description
    GWTDOMAIN detects an internal error, or possible data corruption when it does
    a network open call.
    Action
    Contact your BEA Customer Support.
    Can anyone give any clue?
    Thanks in advance, bye!
    Yol.

    Do you have an idea in which section I can look for the mistake? I have other domains
    running correctly configured in this config file, and everything seems to be ok
    for this domain too.
    Thanks in advance
    Yol.
    "mike" <[email protected]> wrote:
    >
    this error is in dmconfig.txt
    "Yolanda Arroyo" <[email protected]> wrote:
    Hi,
    I'm trying to connect two Domains DOM1 and DOM2. DOM1 is running under
    Tuxedo8
    in a RedHat Linux 7.2. The remote Domain is running in a former Tuxedo
    Version,
    probably 6.5.
    When booting I get the next error:
    LIBGWT_CAT:1242: ERROR: Invalid parameter, tdom_link contains NULL pointer
    The description in the documentation is
    Description
    GWTDOMAIN detects an internal error, or possible data corruption when
    it does
    a network open call.
    Action
    Contact your BEA Customer Support.
    Can anyone give any clue?
    Thanks in advance, bye!
    Yol.

  • Error while reading wsdl file exception null

    Hi
    I am trying to invoke a proxy service (web service) wsdl from a bpel process. When i add a web service adapter, put url of external web service and save it, all my service end points defined in the BPEL process are becoming non editable. Binding of operation is changing from web service to HTTP binding for all end points. When I try to edit any partner link, Jdev throws an error " error reading wsdl file excepetion null " for local services. For external service, even though i am refering to a url on the server, it points to " C:\Oracle\Middleware\jdeveloper\jdev\bin\...\xxxx?WSDL" and throws same error " failed to read wsdl file(System could not find the path specified". I am just clueless as to why this is happening. Any help is much appreciated.
    I am using Jdev 111115 and SOA 11g.

    remove all the files from your temp folder
    restart your jdev this will resolve this issue.

  • [svn] 1978: Bug: vendors. properties file which is used in vendor specific login commands was not being read properly and as a result some login related error messages were not being displayed correctly .

    Revision: 1978
    Author: [email protected]
    Date: 2008-06-06 08:05:34 -0700 (Fri, 06 Jun 2008)
    Log Message:
    Bug: vendors.properties file which is used in vendor specific login commands was not being read properly and as a result some login related error messages were not being displayed correctly.
    QA: Yes - we need automated tests to make sure that errors.properties and vendors.properties in BlazeDS/LCDS are loaded properly.
    Doc: No
    Modified Paths:
    blazeds/branches/3.0.x/modules/common/src/java/flex/messaging/util/PropertyStringResource Loader.java
    blazeds/branches/3.0.x/modules/opt/src/jrun/flex/messaging/security/JRunLoginCommand.java
    blazeds/branches/3.0.x/modules/opt/src/tomcat/flex/messaging/security/TomcatLoginCommand. java

    I have a lot of grief with this version of Windows Media Player.
    It is very buggy and frustrating to use.
    I have my Music library on a QNAP NAS, which is as reliable as they come.
    System notifications make it not save changes.  It also does not do a good job of interpreting albums and artists from folders.  Changes to track names are not saved, nor are tracks moved to other albums, renamed albums, changes to genre, artist
    or date.  It separates and merges albums/tracks without sense or reason.  Some changes I've made up to 4 times, then closed WMP and re-started my machine to check if it has/hasn't saved the changes.  Often it has not.
    This is the first time I've used WMP in this capacity, and I do not recommend it.
    New service pack please.

  • Cannot load callable object container: null

    My application is webdynprojava application with GP process.
    One of my scenaio was to create a popup window with ok button after completed the action.
    First I tried from code where i was written to completd the action
    but it did not work because the popcode i was writing before the complete method but it always talking after
    completeso results i was getting error .
    Then for the same action i created one callable object for display.
    That time my application was working after some time I again check
    then its showing    Cannot load callable object container: <null>
    this error for the callable object  which I created for popup window with ok button.
    (once RM will approve ,popup window will come with ok button ).
    Reporting Manager CO                    Callable Object for Execution   
       Resignationmanpowerlink                Callable Object for Display    --I am getting error here
    can u please help me why i am getting    Cannot load callable object container: <null>
    error
    Thanks for your time.
    Thanks & Regards.
    Abhishekh Singh

    Last time I checked contexts and lookups could return null values. And your code is not checking for a null value return.

  • Error while invoking ESB which contains Adapters

    Hi All,
    In the BPEL process we are getting below error while invoking ESB’s which contains Adapters :
    Exception not handled by the Collaxa Cube system.
    An unhandled exception has been thrown in the Collaxa Cube system. The exception reported is: "java.rmi.RemoteException: Cannot resolve Uddi Location on domain
         at com.collaxa.cube.ws.WSInvocationManager.invoke2(WSInvocationManager.java:356)
         at com.collaxa.cube.ws.WSInvocationManager.invoke(WSInvocationManager.java:285)
         at com.collaxa.cube.engine.ext.wmp.BPELInvokeWMP.__invoke(BPELInvokeWMP.java:829)
         at com.collaxa.cube.engine.ext.wmp.BPELInvokeWMP.__executeStatements(BPELInvokeWMP.java:412)
         at com.collaxa.cube.engine.ext.wmp.BPELActivityWMP.perform(BPELActivityWMP.java:199)
         at com.collaxa.cube.engine.CubeEngine.performActivity(CubeEngine.java:3714)
         at com.collaxa.cube.engine.CubeEngine.handleWorkItem(CubeEngine.java:1657)
         at com.collaxa.cube.engine.dispatch.message.instance.PerformMessageHandler.handleLocal(PerformMessageHandler.java:75)
         at com.collaxa.cube.engine.dispatch.DispatchHelper.handleLocalMessage(DispatchHelper.java:220)
         at com.collaxa.cube.engine.dispatch.DispatchHelper.sendMemory(DispatchHelper.java:317)
         at com.collaxa.cube.engine.CubeEngine.endRequest(CubeEngine.java:5787)
         at com.collaxa.cube.engine.CubeEngine.createAndInvoke(CubeEngine.java:1089)
         at com.collaxa.cube.engine.delivery.DeliveryService.handleInvoke(DeliveryService.java:589)
         at com.collaxa.cube.engine.ejb.impl.CubeDeliveryBean.handleInvoke(CubeDeliveryBean.java:421)
         at sun.reflect.GeneratedMethodAccessor87.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.JAASInterceptor$1.run(JAASInterceptor.java:31)
         at com.evermind.server.ThreadState.runAs(ThreadState.java:693)
         at com.evermind.server.ejb.interceptor.system.JAASInterceptor.invoke(JAASInterceptor.java:34)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.TxRequiredInterceptor.invoke(TxRequiredInterceptor.java:50)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
         at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
         at CubeDeliveryBean_LocalProxy_4bin6i8.handleInvoke(Unknown Source)
         at com.collaxa.cube.engine.dispatch.message.invoke.InvokeInstanceMessageHandler.handle(InvokeInstanceMessageHandler.java:37)
         at com.collaxa.cube.engine.dispatch.DispatchHelper.handleMessage(DispatchHelper.java:141)
         at com.collaxa.cube.engine.dispatch.BaseDispatchTask.run(BaseDispatchTask.java:58)
         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
         at java.lang.Thread.run(Thread.java:619)
    Exception: java.rmi.RemoteException: Cannot resolve Uddi Location on domain
    Handled As: com.collaxa.cube.CubeException
    If anyone has faced similar issue or is familiar with the error, please let us know what could be the possible cause and what is the resolution.
    Thanks & Regards,
    Vivek Vishal

    Hi Vijay,
    This is a bug and you can refer the metalink note:
    "Applying Patch 7445876 Results in Error "java.lang.NullPointerException". [ID 942575.1]" for reference.
    Also you can refer the following link:
    "http://puchaanirudh.blogspot.com/2008/12/exception-on-jaxrpc-invoke-http.html" also.
    Thanks,
    Vishwanath.

  • Unable to delete Transport Request which contain locked objects

    Hi all,
    I need to delete  some unusable transport requests but as they contain locked objects, it's not possible to delete them. Release operation is just allowed. After releasing these transport requests, I can not find them any more in queue. Please help to find these  transport requests which are released and also provide a solution to delete instead of releasing them.
    Thanks in advance,
    Sanaz.

    Hi,
    Thank you for the reply.
    1. What do you mean by transport request , Shipment Request, Shipment Order or Tour.
    A. I mean requests which can be transported between SAP Systems using TMS (Transport Management System).
    2. What are the objects which has been locked and due to that you are facing this problem.
    A. There are diffrent object types. For examle some customizing have booen done or SAP Note correction has been implemented, ... Therefore some objects have been locked due to these operations
    3. Let's say if it's an freight Unit, then Pls confirm that System dump / error is not the cause for this.
    A. I have no idea about "Freight Unit".
    Thanks,
    Sanaz.

  • The DNS server has encountered a critical error from the Active Directory. Check that the Active Directory is functioning properly. The extended error debug information (which may be empty) is "". The event data contains the error.

    got event ID 4015 and source DNS-Server-Service. please suggest how to fix this issue
    The DNS server has encountered a critical error from the Active Directory. Check that the Active Directory is functioning properly. The extended error debug information (which may be empty) is "". The event data contains the error.
    Raj

    Hi
     first run "ipconfig /flushdns" and then "ipconfig /registerdns" finally restart dns service and check the situation,also you can check dns logs computer management ->Event viewer->Custom Views->Server roles->DNS.

  • Error while reading objects from a file

    Below is a short code to explain the problem i am facing
    i have been working on the same for past one week i am facing exceptions while reading a file containing more than one objects
    import java.io.BufferedInputStream;
    import java.io.BufferedOutputStream;
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import java.io.ObjectInputStream;
    import java.io.ObjectOutputStream;
    import java.io.Serializable;
    import java.util.logging.Level;
    import java.util.logging.Logger;
    * @author sakshi
    public class Storingobject implements Serializable{
        int x,y;
        public void addObject()
            //Storingobject temp;
            ObjectOutputStream objOut=null;
            try {
                objOut = new ObjectOutputStream(new BufferedOutputStream(new FileOutputStream("temp.dat")));//if i pass true as parameter in FileOutputStream it gives Stream Corrupted exception
            } catch (IOException ex) {
                Logger.getLogger(Storingobject.class.getName()).log(Level.SEVERE, null, ex);
            try {
                // while((temp=objOut.writeObject(o))!=null)
                objOut.writeObject(this);
                System.out.println("Saved..");
                objOut.close();
            } catch (IOException ex) {
                Logger.getLogger(Storingobject.class.getName()).log(Level.SEVERE, null, ex);
        public void readobject()
            int i=1;
            Storingobject temp;
            ObjectInputStream objIn=null;
            try {
                objIn = new ObjectInputStream(new BufferedInputStream(new FileInputStream("temp.dat")));
            } catch (IOException ex) {
                Logger.getLogger(Storingobject.class.getName()).log(Level.SEVERE, null, ex);
            try {
                while ((temp = (Storingobject) objIn.readObject()) != null) {
                    System.out.println("VAlues of object i++ :");
                    System.out.println("X: "+temp.x+"Y: "+temp.y);
            } catch (IOException ex) {
                Logger.getLogger(Storingobject.class.getName()).log(Level.SEVERE, null, ex);
            } catch (ClassNotFoundException ex) {
                Logger.getLogger(Storingobject.class.getName()).log(Level.SEVERE, null, ex);
        public static void main(String args[])
            Storingobject o1=new Storingobject();
            o1.x=10;o1.y=15;
            o1.addObject();
            o1.readobject();
    }

    //if i pass true as parameter in FileOutputStream it gives Stream Corrupted exceptionI agree. You can't append to a file written with an ObjectOutputStream. You would have to read it all in, write it all out again and write the new object. You're better off keeping the file open while you still have objects to write to it.
    while ((temp = (Storingobject) objIn.readObject()) != null) {ObjectInputStream.readObject() only returns null if you wrote a null. If you're not writing nulls, the correct technique is to loop until you get an EOFException. I don't favour explicitly writing a null just to get around this as suggested above, as it means you can never write a null for any other purpose.

  • Error:SOAP: response message contains an error XIAdapter/PARSING/ADAPTER.SOAP_EXCEPTION - soap fault: Server was unable to read request. --- There is an error in XML document (1, 447). --- Input string was not in a correct format.

    Hi All,
        We have a scenario of FTP-->PI---> Webservice.  While triggering the data in the FTP, it is failing in the PI with the below error
    SOAP: response message contains an error XIAdapter/PARSING/ADAPTER.SOAP_EXCEPTION - soap fault: Server was unable to read request. ---> There is an error in XML document (1, 447). ---> Input string was not in a correct format.
    Can you please help?

    Hi Raja- It seems to be a data quality issue.
    Check for the value @ 1447 position in the xml message that you are trying to send to web service..
    may be a date filed/decimal value which is not in expected format.

Maybe you are looking for

  • What does this crash report mean?

    This iMac does not work and has not worked for a couple of months due to kernel panics. The drive is FileVault encrypted. I received this crash report after attempting to unlock the iMac's internal drive in recovery mode. I think this is a new error.

  • How to get Approver text in SAP Fiori

    Hi All, We have implemented SAP Fiori for Purchase Requisition approval. Every thing is working fine. When I click on approve or Reject  button to take action, I am getting a popup to add approver's note. Its option only. Even if I enter, it's not ge

  • Upgraded too many times???

    i have recently upgraded my itunes to version 6 or whatever is the latest. after i had done this i decided to upgrade the software on the computer using the 'software update' option. little did i know, the updater updated my itunes. this is a second

  • How to align text within an EditText?

    Hello, using this simple one as an example: var w = new Window('dialog'); w.preferredSize = [200,100]; w.et = w.add('edittext', void 0, "Some text"); w.et.preferredSize.height = 40; w.show(); The "Some text" is placed top-left in the EditText - is it

  • "No devices" on Find My iPhone

    I lost my iphone yesterday, and after going back to all the places I might have left it (Starbucks, grocery store, my car, etc.) I still couldn't find it. So about 7:00 last night I went into Find My Iphone just in case I had missed something. Unfort