Why  MarshalException occurs

hai
i have implemented Externalization interface instead of serialization for an object that i am passing it as argument. it was working well before i implement Externalization. but now i get following error.
java.rmi.MarshalException: error marshalling arguments; nested exception is:
     java.net.SocketException: Software caused connection abort: socket write error
     at sun.rmi.server.UnicastRef.invoke(Unknown Source)
     at ServerRecvT_Stub.CreateLargeFile(Unknown Source)
     at sendlargefile.run(ClientSendT.java:346)
Caused by: java.net.SocketException: Software caused connection abort: socket write error
     at java.net.SocketOutputStream.socketWrite0(Native Method)
     at java.net.SocketOutputStream.socketWrite(Unknown Source)
     at java.net.SocketOutputStream.write(Unknown Source)
     at java.io.BufferedOutputStream.flushBuffer(Unknown Source)
     at java.io.BufferedOutputStream.write(Unknown Source)
     at java.io.ObjectOutputStream$BlockDataOutputStream.drain(Unknown Source)
     at java.io.ObjectOutputStream$BlockDataOutputStream.setBlockDataMode(Unknown Source)
     at java.io.ObjectOutputStream.writeFatalException(Unknown Source)
     at java.io.ObjectOutputStream.writeObject(Unknown Source)
     at sun.rmi.server.UnicastRef.marshalValue(Unknown Source)
     ... 3 more[\b]
why does it occur
public class packet implements Externalizable
     private int count;//packet number
     private String filename;//file name
     private String sourcefile;
     private boolean end;//indicates last packet     
     private long crc;//stores crc value
     private byte data[];//actual data
     public packet(){}
     public packet(int count,String sourcefile,String filename,boolean end,long crc,byte data[])
          this.count = count;
          this.sourcefile = sourcefile;
          this.filename = filename;
          this.end = end;
          this.crc = crc;          
          this.data = new byte[data.length];
          this.data = data;
     public String getFileName()
          return filename;
     public void setFileName(String filename)
          this.filename = filename;
     public String getSourceFileName()
          return sourcefile;
     public void setData(byte data[])
          this.data = new byte[data.length];
          this.data = data;
     public byte[] getData()
          return this.data;
     public void setEnd(boolean end)
          this.end = end;          
     public boolean isEnd()
          return end;
     public long getCRC()
          return crc;
     public int getPacketId()
          return count;
     public void readExternal(ObjectInput arg0) throws IOException, ClassNotFoundException {
          count = arg0.readInt();
          filename = "" + arg0.readObject();          
          sourcefile = "" + arg0.readObject();
          end = arg0.readBoolean();
          crc = arg0.readLong();
          arg0.read(data);
     public void writeExternal(ObjectOutput arg0) throws IOException {
          arg0.writeInt(count);
          arg0.writeObject(filename);
          arg0.writeObject(sourcefile);
          arg0.writeBoolean(end);
          arg0.writeLong(crc);
          arg0.write(data);
}[\code]
plz give me solutions it's urgent
Thanks in advance                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Sorry the previous message not clear so i had send it again
i have implemented Externalization interface instead of serialization for an object that i am passing it as argument. it was working well before i implement Externalization. but now i get following error.
java.rmi.MarshalException: error marshalling arguments; nested exception is: java.net.SocketException: Software caused connection abort: socket write error at sun.rmi.server.UnicastRef.invoke(Unknown Source) at ServerRecvT_Stub.CreateLargeFile(Unknown Source) at sendlargefile.run(ClientSendT.java:346) Caused by: java.net.SocketException: Software caused connection abort: socket write error at java.net.SocketOutputStream.socketWrite0(Native Method) at java.net.SocketOutputStream.socketWrite(Unknown Source) at java.net.SocketOutputStream.write(Unknown Source) at java.io.BufferedOutputStream.flushBuffer(Unknown Source) at java.io.BufferedOutputStream.write(Unknown Source) at java.io.ObjectOutputStream$BlockDataOutputStream.drain(Unknown Source) at java.io.ObjectOutputStream$BlockDataOutputStream.setBlockDataMode(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) at sun.rmi.server.UnicastRef.marshalValue(Unknown Source) ... 3 more
why does it occur
public class packet implements Externalizable
private int count;//packet number
private String filename;//file name
private String sourcefile;
private boolean end;//indicates last packet
private long crc;//stores crc value
private byte data[];//actual data
public packet(){}
public packet(int count,String sourcefile,String filename,boolean end,long crc,byte data[])
this.count = count;
this.sourcefile = sourcefile;
this.filename = filename;
this.end = end;
this.crc = crc;
this.data = new byte[data.length];
this.data = data;
public String getFileName()
return filename;
public void setFileName(String filename)
this.filename = filename;
public String getSourceFileName()
return sourcefile;
public void setData(byte data[])
this.data = new byte[data.length];
this.data = data;
public byte[] getData()
return this.data;
public void setEnd(boolean end)
this.end = end;
public boolean isEnd()
return end;
public long getCRC()
return crc;
public int getPacketId()
return count;
public void readExternal(ObjectInput arg0) throws IOException, ClassNotFoundException {
count = arg0.readInt();
filename = "" + arg0.readObject();
sourcefile = "" + arg0.readObject();
end = arg0.readBoolean();
crc = arg0.readLong();
arg0.read(data);
public void writeExternal(ObjectOutput arg0) throws IOException {
arg0.writeInt(count);
arg0.writeObject(filename);
arg0.writeObject(sourcefile);
arg0.writeBoolean(end);
arg0.writeLong(crc);
arg0.write(data);
}plz give me solutions it's urgent
Thanks in advance

Similar Messages

  • My ipod starts voicing song data, artist data, and playlist data while I am listening to music.  Is this a feature or a defect?  I do not know why it occurs, but the only way to stop it is to stop the music then play the playlist again.

    My ipod starts voicing song data, artist data, and playlist data while I am listening to music.  Is this a feature or a defect?  I do not know why it occurs, but the only way to stop it is to stop the music then play the playlist again.

    To make sure voiceover is off, you need to go to summary screen then click the "Configure Universal Access" button. Then you will get a dialog where you can make sure voiceover is off. All of the boxes in the dialog should be unchecked.
    i

  • HT201413 why got occured error (1600) when instal ios 6 on iphone 3g

    why got occured error (1600) when install ios6 on iphone 3g ?

    Hi dbs5852,
    Thanks for using Apple Support Communities.  This article has information on error 1600 and may help:
    Resolve specific iTunes update and restore errors
    http://support.apple.com/kb/ts3694
    Check USB connections
    If there’s an issue with the USB port, cable, dock, or hub, or if the device becomes disconnected during restore, try troubleshooting the USB connection, then troubleshooting your security software.
    Common errors: 13, 14, 1600-1629, 1643-1650, 2000-2009, 4000, 4005, 4013, 4014, 4016, “invalid response”, and being prompted to restore again after a restore completes.
    To narrow down the issue, you can also change up your hardware:
    Use another USB cable.
    Plug your cable into a different USB port on your computer.
    Try a different dock connector (or no dock).
    Add (or remove) a USB hub between your device and computer.
    Connect your computer directly to your Internet source, with no routers, hubs, or switches.
    If you see your error after changing your USB connections, continue to the next section to troubleshoot your hardware.
    Cheers,
    - Ari

  • I found a bug in Power Query. Anyone know why this occurs?

    It took some time to isolate the cause of this.
    One of our SharePoint sites couldn't successfully be connected to with Power Query for Excel 2013.  We would receive this message: "DataSource.Error: OData: The feed's metadata document appears to be invalid."
    I made a site template and started making copies of the failing site in order to test the cause of the error.
    I narrowed it down to 16 lists that, if present on the site, would cause the connection to fail.  Those lists' names were simply numbers.  For example: "1", "2", etc.
    I noticed in the Listdata.svc feed for the site that only the choice columns were included in the metadata and not the single line of text column names.  In Listdata.svc, it appends a "c_" in front of the both the list and choice column
    names if the list name starts with a number.
    After many tests I believe I have confirmed you cannot start the name of a list with a number IF you have a choice column in that list.  Anyone know why this is?

    Hi,
    Thanks for reporting this issue. Would you be able to capture some Fiddler traces and send them our way so we can take a closer look at the underlying errors?
    Feel free to send them via "Send a Frown" in PQ for privacy.
    Thanks,
    M.

  • Delivery Split from Sales Order - top reasons why this occurs

    Hello -
    I am trying to identify as many reasons as possible why a sales order with multiple line items will split into more than 1 delivery.    Please add any I do not have listed below:
    1) Shipping points are not the same on the lines
    2) Material availability;  material does not confirm for all lines
    3) Different loading groups (in material master) for different lines
    4) Line level delivery block is placed on a line, preventing it from delivering
    5) Different schedule line dates on different lines
    Any other reasons would be greatly appreciated!
    Thank you,
    LP

    Dear LP
    1)  Different Ship to Party
    2)  Different Transportation Group
    3)  Different Inco Terms
    4)  Delivery priority in customer master
    5)  Different Shipping Condition
    thanks
    G. Lakshmipathi

  • I had updated my credit card details online this morning, and my credit card had been charged four times by ITUNES NZ CORK IE, anyone knows why this occurred

    i had updated my credit card details online this morning, and my credit card had been charged four times by ITUNES NZ CORK IE, anyone knows why this occurred

    Because too much time has passed I can't edit this into the prior comment, but here is the info regarding reverting to iTunes 11.0.2 (assuming you do have a time machine backup) from https://discussions.apple.com/message/22057703#22057703
    W. Raider wrote:
    Repairing permissions doesn't fix it.
    I reverted to the previous version, 11.0.2.
    1. Quit the new crash-prone iTunes.
    2. Delete the app.
    3. Restore v. 11.0.2 with Time Machine.
    4. In your iTunes folder look for a folder called "Previous iTunes Libraries", find the latest one.
    5. In the iTunes folder itself you'll see "iTunes Library.itl", delete it (or compress it and save a copy for later just in case.
    6. Copy the newest .itl file in Previous iTunes Libraries to the iTunes folder and rename it "iTunes Library.itl".
    7. Launch the older version of iTunes.
    My crashing has seemed to have ceased with a revert to an older version. I noticed today that the newer crashing iTunes had been launched for hours but not playing anything, when I played internet radio it crashed within 5mins, fed up I reverted to an older version.
    Btw, a simpler way to do this is to revert to older iTunes app, then hold Option when it launches and choose an older library.

  • Lock time out; try later.: Why it occurs

    Hi ,
    I m trying Insert_update_delete tutorial with my tables
    when i create Page2.jsp with Update buttons on Page1.jsp when i deploy it it gives me followin exception .
    No errors are there in bean files how do i Trace it?
    CAN ANYBODY HELP COMING OUT OF THIS????
    Description: An unhandled exception occurred during the execution of the web application. Please review the following stack trace for more information regarding the error.
    Exception Details: javax.faces.el.EvaluationException
    javax.faces.FacesException: javax.faces.FacesException: Can't instantiate class: 'signon.Page1'.. class signon.Page1 : javax.faces.FacesException: java.sql.SQLException: Lock time out; try later.
    Possible Source of Error:
    Class Name: com.sun.faces.el.ValueBindingImpl
    File Name: ValueBindingImpl.java
    Method Name: getValue
    Line Number: 206
    Source not available. Information regarding the location of the exception can be identified using the exception stack trace below.
    Regards !!!!!!
    Priya

    Hi Priya,
    There are a few reasons this kind of error can occur - typically it's because a rowset didn't get closed for some reason. If you're using pointbase, this can happen pretty easily because the number of connections that are supported is very low etc. Check your server.log file to see if there is any additional information - the error stack presented in the browser sometimes doesn't hold all the information. It's difficult to diagnose with just the information you have provided here. I can't tell if it's a table that's locked or the entire db.
    If this problem is occuring in Pointbase during your development, the way to clean it up is to restart pointbase and the appserver.
    A few scenarios where this problem can occur (yours might be the first one):
    1) could be an issue w/inserts... we are thinking we might want to revise the tutorial here... instead of :
      rowset.execute();
      rowset.moveToInsertRow();
      rowset.updateObject("FOO", new Integer(0));
      rowset.updateObject("ID", getNextId());try instead constructing the insert manually, something like:
    Context ctx = new InitialContext();
    DataSource ds = (DataSource)ctx.lookup(blahblahrowset.getDataSourceName());
    Connection c = ds.getConnection();
    c.setAutoCommit(false);
    Statement stmt = c.createStatement();
    int count = stmt.executeUpdate("INSERT INTO person (PersonID, Name, JobTitle) VALUES ((SELECT (MAX(PersonID)+1) from Person), 'The New Guy', 'new guy title')");
    // you can verify count is 1 here, but really its not necessary as a SQLException will be thrown if something went wrong - just make sure you close in the exception handler as well
    stmt.close();
    c.commit();
    c.close(); Also note that "getNextPK" approach in the tutorial is just a quick and dirty approach - you should probably use identity columns or perhaps the MAX approach shown in the code above... if you do use an identity column, you would remove the id column from the insert statement and let the db handle it.
    2) An exception is thrown in your application and therefore it is skipping the afterRenderResponse method which contains the close statement
    Solution: Avoid throwing exceptions - and if you must throw an exception, make sure to close the rowset before throwing.
    3) If you put a rowset in the session or application bean, you might be holding a lock on the table somewhere
    Solution: Avoid putting rowsets in Session and application beans - if you must access the database in those beans, close the rowsets as soon as possible - ideally don't just leave them open. If you must hold them open for extended periods of time. be aware that your pages may not be able to access those tables via direct binding.

  • Why Exception occured ?

    Hi All,
    I try compiling & running the .java file which worked well without any kind of error
    But now when i am trying to make it a servlet it say
    unreported esception java.Lang.Exception; must be caught or declared to be thrown
    Now how wud i know what exception has occured
    Please tell me what should I do ?
    Help !!
    Deepak

    (sigh)
    Crossposted here:
    http://forum.java.sun.com/thread.jspa?threadID=627061

  • I do have some problem with downloading an app from the store, when i try to add, a box appears and says  safari can not open the page because the address is invalid, i have no idea why this occurs, and any tip on how to get rid off the restriction code m

    i need some one to help me because i cant get ana app to download it says it will be downloaded when u login to your account but in already loged on

    You don't download apps from the iTunes app store with Safari.

  • TS1388 My battery on my macbook pro all of a sudden keeps using the battery power really quickly, so I am having to rechareg it constantly.  Does anyone know why this occurs or how to fix it.  I have used all the energy saving tips.

    Hi My battery on my macbook pro keeps running low on power very quickly and I have to keep recharging it.  This has never happened before. I have used all the power saver options, but it keeps happening.  Can anyone help. The battery seems to be losing power even when it is turned off.

    Hi BigThinker,
    How old is your Mac? If it is an older one, then the battery may just be dying. You can check by clicking on the Apple in the upper left-hand corner, then clicking on About This Mac>More Info>System Report, then click on Power (about half way down the list). At the top of the resulting display, you should see the following type of info:
    The Health Information will tell you if your battery is going to need replacement soon. If it says Normal, then it is not the battery.
    Cheers,
    GB

  • I am using Firefox 4.0 Beta 10. It doesn't start immediately after I click on the Firefox button located in my shortcut bar. And sometimes it even doesn't open. I don't know why it occurs, so please look into this matter. Thanks!

    Whenever I click on the button of Firefox 4.0 Beta 10 located in my shortcut bar. It opens after a very long time i.e. after 5-10 minutes after I get irritated and start using Safari. And sometimes it doesn't even open. Please look into this matter. :D
    Thanks

    Try disabling hardware acceleration in your Firefox settings and see if it helps:
    From the Firefox menu, go to '''Options''' and click the '''Advanced''' panel, then select the General tab. Clear the box in front of "Use hardware acceleration when available" so that it is unchecked, then restart Firefox. ([http://support.mozilla.com/media/uploads/gallery/images/2011-01-27-04-52-31-8c9d82.png screenshot]).
    Ref: <br>
    https://blog.mozilla.com/tglek/2010/12/21/rude-surprise-startup-overhead-of-windows-font-apis/

  • Why Error Occuring While Joining Airport Network?

    I have an old iBook PowerPC 500MHz, running 10.3.9. A friend had been using it and I am trying to get it to see the Airport device. The icon along the menu bar is not highlighted. When I try to join my network and type in my password at first I got a dialog box saying something about the device or something had been changed and asked if I wanted to change something on the Keychain in order to access the Airport. I typed in my password and got a dialog box saying that there was a problem joining the network and asks for the password again.
    I don't know if the iBook is actually seeing the Airport because the icon is not registering a signal at all, or if I'm simply having a problem with my password and/or Keychain. I am able to access the Internet via hard wire.
    I just downloaded an Apple Security Update, is it possible that I should not be running 10.3.9?
    Any help would be greatly appreciated!

    farmergreg wrote:
    Regarding not broadcasting the SSID, that sounds like a decent method of security for where I live in the boonies of Oregon.
    Not really now considered secure.
    Should I close my wireless network?
    http://www.ifelix.co.uk/tech/1017.html
    From what I understand, if I employ that method then the client (generally my wife) needs to know the name of the network. If they don't know the name of the network then they can't connect, right?
    That's the basics.
    However the SSID is sent between clients and the base station even though the base station isn't broadcasting the SSID, and this can be picked up by someone sniffing your wireless network.
    It will deter the casual user.

  • When try to download apps from ipod keep getting error 1004, change password 2 days ago dont know if that why problem occur can someone help

    When try ti down load apps from Ipod keep getting error 1004 how can I download ?

    http://support.apple.com/kb/TS3694#error1004
    There have been some problems accessing pages on the Apple web site.  If the hyperlink gives you a "We're sorry" message, try again.

  • When i try to log on to Oracle it gives an error TNS:no listener, WHY?

    hi guys,
    WHen i try to log on to the Oracle 8i server using the user: SYSTEM and password: manager, it gives an error
    ERROR:
    ORA-12541: TNS: no listener
    why this occurs and how do i fix the problem? please give me step by step instructions TY :)
    Message was edited by:
    user502781

    ORA-12541 ...
    - The client is requesting connection to a service.
    - The service is derived from the alias used in the connection. For example, @orcl ... orcl = alias.
    - The alias is used to look up the host, listener port and service in the tnsnames.ora
    The listener is on the same machine as the database. The listener must be up and listening on the port the client want to use.
    If the listener is not up, there wil be an "ORA-12541: TNS: no listener" error;
    If the listener is listening on the wrong port, there wil be an "ORA-12541: TNS: no listener" error;
    If the client is asking for the wrong port, there wil be an "ORA-12541: TNS: no listener" error.
    To start the listener in Windows, go to the Control Panel > Administration Tools > Services and ensure the Ora?????Listener is started.
    To verify the listener is up, open a command box, and type 'lsnrctl status'
    To see what the client is expecting, on the client machine open a command box, and type 'tnsping {alias}' where you replace {alias} with the alias to be used in the connection.

  • Why does LabView crash when I run it in parallel with a temp/ RH logging probe?

    I am running LabView 6.1 on windows 95. Up till now I have had no problems. However, we recently acquired a Temperature / Humidity probe which plugs into the Com1 port of the computer and logs the data using it's own software. Since then, when the two programs are used together, eventually LabView crashes with the following error message: Failure, 'image.cpp, line 5793.
    Can you tell me why this occurs and what the solution is?

    Taking a shot at this. It could be because the two programs are trying to access the same type of logging program(excel??). Only one link can be active at a time or they crash. Try running it without saving the data and see if it crashes.

Maybe you are looking for

  • How can I use different calendars associated with different emails to see appointmen​ts separately​?

    I have 3 emails accounts on my Blackberry curve. I want to use different calendars for different type of reminders/appointments. How can I do that? In calendar I pressed menu key and then clicked on select calendar, choose one email address (email 1)

  • Fpga I/O viewer

    Hello everyone, Is there some kind of tool where you can see which state each IO pin of the FPGA (mine is PXI-7842R) has? If not, can anybody tell me how I can monitor the status of the FPGA IO pins? I have a large program that changes the output lin

  • SMS Notification Issue with ISE 1.3

    We have a problem with SMS notification. Please find the attached snapshot of current SMS email gateway configuration. Guest is receiving notification when I am providing the exact mobile number instead of 974$mobilenumber$ in SMTP API destination ad

  • Retrieving FP Serial Number

    Hi, I know one (only?) way to read the Serial number of a cFP network module is by reading it off the index.htm under ni-rt/system/www/index.htm.  Is there another/better way of retrieving this Serial number?  If not, it will be nice to have this fea

  • Can't load large tracklogs

    I'm running up against a limit on the size of the tracklog that can be loaded in the Map panel. I tried loading an approximately 12MB .gpx tracklog which represents about 12 hours of coordinates taken every 1 second and got an error message saying th