EOF exception
Hi Gurus
I am setting a session variable by leveraging .irpt using applet.setPropertyValue .
Its working fine for all properties except one . I saw EOF exception in Java console. The value of the property is huge . ( I m setting generated html script form java code ) .
So, Is there any restriction on length of variable ? And I am not sure I m getting this exception while setting or getting .
Any has any idea about limit for variable size or what is the reason for this exception.
Thanks
Hari
Ajay
It is exceuting perfecly by hardcoing.
Any way, i found the solution by setting the value by leaveraging HTML property.. opener.document.<elementname>.value .
Thanks
Hari
Similar Messages
-
Domino Gateway Crash with Java.io.EOF Exception
All,
My client has IDM 7.1 provisioning to Domino 6.5.4. It has been working fine untill last friday. Since then the gateway is crashing with Java.io.EOF Exception while trying to provision. The code has not changed and per some of the previous threads in this forum, I checked if they had any configuration changes in the Domino gateway server or at the domino side - like virus scan etc. However the answer was no.
I would really appreciate any help on this.
Thanks,
Biju.
Here is the last few lines in the gateway trace before it crashes:
27/2009 00.20.25.343000 [4924] (../../../../src/wps/agent/connect/main.cpp,247): Enter: doDominoInitialization
03/27/2009 00.20.25.343000 [4924] (../../../../src/wps/agent/connect/main.cpp,271): NotesIniFileDir: D:\IDM\gateway\notes.ini
03/27/2009 00.20.25.343000 [4924] (../../../../src/wps/agent/connect/main.cpp,279): NotesInstallDir: D:\notes
03/27/2009 00.20.25.343000 [4924] (../../../../src/wps/agent/connect/main.cpp,291): Domino Enabled
03/27/2009 00.20.25.343000 [4924] (../../../../src/wps/agent/connect/main.cpp,303): Updated PATH: ;D:\notes;
03/27/2009 00.20.25.343000 [4924] (../../../../src/wps/agent/connect/main.cpp,310): NOTESNTSERVICE Successfully set
03/27/2009 00.20.25.406000 [4924] (../../../../src/wps/agent/connect/main.cpp,327): Exit: doDominoInitialization
03/27/2009 00.20.25.406000 [2752] (../../../../src/wps/agent/connect/ntsvc.cpp,95): Service::svc
03/27/2009 00.20.25.437000 [2752] (../../../../src/wps/agent/connect/server.cpp,269): starting up server daemon PORT 9278
03/27/2009 00.20.25.875000 [2752] (../../../../src/wps/agent/connect/RAEncryptor.cpp,128): Error reading encrpytion key from registry. Using default.
03/27/2009 00.20.25.875000 [2752] (../../../../src/wps/agent/connect/RASecureConnection.cpp,64): RASecureConnection: new connection handler
03/27/2009 00.20.25.875000 [3068] (../../../../src/wps/agent/connect/client_handler.cpp,344): got 68 bytes
03/27/2009 00.20.25.875000 [3068] (../../../../src/wps/agent/connect/RASecureConnection.cpp,264): ReceivePrivate: count: 47, 64 wrapped up rawlength 63
03/27/2009 00.20.25.875000 [3068] (../../../../src/wps/agent/connect/RASecureConnection.cpp,273): Rightbefore decrypt:
03/27/2009 00.20.25.875000 [3068] (../../../../src/wps/agent/connect/RAEncryptor.cpp,69): RAEncryptor::Decrypt3DES: input length (56) moded to 7
03/27/2009 00.20.25.875000 [3068] (../../../../src/wps/agent/connect/RASecureConnection.cpp,114): SendPrivate: count: 0 pad: 4
03/27/2009 00.20.25.875000 [3068] (../../../../src/wps/agent/connect/RASecureConnection.cpp,422): Enter: MakeChallengeResponse
03/27/2009 00.20.25.875000 [3068] (../../../../src/wps/agent/connect/RASecureConnection.cpp,474): MakeChallengeResponse(in,out):
(5C,2F) (CC,56)
03/27/2009 00.20.25.875000 [3068] (../../../../src/wps/agent/connect/RASecureConnection.cpp,476): (26,E3) (D7,65)
03/27/2009 00.20.25.875000 [3068] (../../../../src/wps/agent/connect/RAEncryptor.cpp,128): Error reading encrpytion key from registry. Using default.
03/27/2009 00.20.25.875000 [3068] (../../../../src/wps/agent/connect/RASecureConnection.cpp,497): MakeChallengeResponse Key:
03/27/2009 00.20.25.875000 [3068] (../../../../src/wps/agent/connect/RASecureConnection.cpp,507): Exit: MakeChallengeResponse
03/27/2009 00.20.25.875000 [3068] (../../../../src/wps/agent/connect/RASecureConnection.cpp,114): SendPrivate: count: 16 pad: 4
03/27/2009 00.20.25.875000 [3068] (../../../../src/wps/agent/connect/client_handler.cpp,344): got 36 bytes
03/27/2009 00.20.25.875000 [3068] (../../../../src/wps/agent/connect/RASecureConnection.cpp,264): ReceivePrivate: count: 16, 32 wrapped up rawlength 32
03/27/2009 00.20.25.875000 [3068] (../../../../src/wps/agent/connect/RASecureConnection.cpp,273): Rightbefore decrypt:
03/27/2009 00.20.25.875000 [3068] (../../../../src/wps/agent/connect/RAEncryptor.cpp,69): RAEncryptor::Decrypt3DES: input length (24) moded to 3
03/27/2009 00.20.25.875000 [3068] (../../../../src/wps/agent/connect/RASecureConnection.cpp,114): SendPrivate: count: 0 pad: 4
03/27/2009 00.20.25.875000 [3068] (../../../../src/wps/agent/connect/RAEncryptor.cpp,128): Error reading encrpytion key from registry. Using default.
03/27/2009 00.20.25.875000 [3068] (../../../../src/wps/agent/connect/RASecureConnection.cpp,571): Session key :
03/27/2009 00.20.25.875000 [3068] (../../../../src/wps/agent/connect/client_handler.cpp,344): got 16036 bytes
03/27/2009 00.20.25.875000 [3068] (../../../../src/wps/agent/connect/RASecureConnection.cpp,264): ReceivePrivate: count: 16012, 16032 wrapped up rawlengthWorkflow Trace:
<List>
<String>defaultPasswordExp</String>
<String>365</String>
</List>
</List>
</ResultRows>
</ResultTable>
</ResultItem>
<ResultItem type='error' status='error'>
<ResultError throwable='com.waveset.util.WavesetException'>
<StackTrace>com.waveset.util.WavesetException:
==> java.io.EOFException:
at com.waveset.adapter.AgentResourceAdapter.getResponseBytes(AgentResourceAdapter.java:924)
at com.waveset.adapter.AgentResourceAdapter.getResponse(AgentResourceAdapter.java:955)
at com.waveset.adapter.AgentResourceAdapter.getResponse(AgentResourceAdapter.java:940)
at com.waveset.adapter.AgentResourceAdapter.getResponse(AgentResourceAdapter.java:934)
at com.waveset.adapter.AgentResourceAdapter.doCreateOrUpdateRequest(AgentResourceAdapter.java:1289)
at com.waveset.adapter.DominoResourceAdapter.doCreateOrUpdateRequest(DominoResourceAdapter.java:1072)
at com.waveset.adapter.AgentResourceAdapter.createAccounts(AgentResourceAdapter.java:266)
at com.waveset.adapter.ResourceAdapterBase.createAccount(ResourceAdapterBase.java:832)
at com.waveset.adapter.ResourceAdapterProxy.createAccount(ResourceAdapterProxy.java:213)
at com.waveset.provision.ProvisionContext.doResource(ProvisionContext.java:2103)
at com.waveset.provision.ProvisionContext.processOp(ProvisionContext.java:592)
at com.waveset.provision.ThreadContext.processContext(ThreadContext.java:330)
at com.waveset.provision.ThreadContext.launchThreads(ThreadContext.java:239)
at com.waveset.provision.ProvisionContext.doResources(ProvisionContext.java:280)
at com.waveset.provision.Provisioner.reProvision(Provisioner.java:2226)
at com.waveset.provision.Provisioner.reProvision(Provisioner.java:1416)
at com.waveset.provision.WorkflowServices.reProvision(WorkflowServices.java:2791)
at com.waveset.provision.WorkflowServices.call(WorkflowServices.java:789)
at com.waveset.adapter.RASecureConnection.access$700(RASecureConnection.java:53)
at com.waveset.adapter.RASecureConnection$ReceiveThread.run(RASecureConnection.java:1080)
Wrapped exception:
java.io.EOFException
at java.io.DataInputStream.readFully(DataInputStream.java:204)
at java.io.DataInputStream.readInt(DataInputStream.java:380)
at com.waveset.adapter.RASecureConnection.ReceivePrivateThread(RASecureConnection.java:540)
at com.waveset.adapter.RASecureConnection.access$700(RASecureConnection.java:53)
at com.waveset.adapter.RASecureConnection$ReceiveThread.run(RASecureConnection.java:1080)
</StackTrace>
<ResultError throwable='java.io.EOFException'>
<StackTrace>java.io.EOFException
at java.io.DataInputStream.readFully(DataInputStream.java:204)
at java.io.DataInputStream.readInt(DataInputStream.java:380)
at com.waveset.adapter.RASecureConnection.ReceivePrivateThread(RASecureConnection.java:540)
at com.waveset.adapter.RASecureConnection.access$700(RASecureConnection.java:53)
at com.waveset.adapter.RASecureConnection$ReceiveThread.run(RASecureConnection.java:1080)
</StackTrace>
</ResultError>
</ResultError>
</ResultItem>
</WavesetResult>
</ResourceResult> -
EOF Exception with Thread interrupts ?
EOF file Exception for RandomAccess.readFully() call. All the parameters are valid.
Is it possible/Any one seen to get EOF exception If another Thread interrupt the thread
which is doing I/O(READ).
I am running on SUN jdk131/Solaris8?
Thanks
-sureshtHint if working with threads on reading data from files just synchronize the methods, like
public synchronized readData(...){...}
if you do not do that a thread is reading and when it breaks down it will locks the method(in your case the file will not been closed and if a file is not closed it cannot be opened by another thread/method/object/whatever) -
EOF exception during applet - servlet communication
I am developing a system for the US Gov't. This system currently
utilizes several applets which access corresponding servlets on
WebLogic. Seemingly, things went wrong for no apparent reason this
morning. When, trying to run our applets, WebLogic throws an exception:
"Caught EOFException in the stream header" These exceptions occur
everytime the servlet would open the input stream from the applet. What
makes things mind-boggling is that these applets/servlets were working
this morning, and suddenly now give these exceptions. The code for both
the applets and servlets has not been touched in weeks. Furthermore, i
tested even further by running WebLogic locally and running the applets
in our IDE (as applications) and the same results occur. I am running
WebLogic 5.1 SP6 on both the remote and local system and am utilizing
JDK 1.3 on both as well. The server is running on WinNT SP6 and locally
is Win2000 Pro SP1. These applets are critical to the entire system and
i am just totally baffled as to why something that was working fine one
day ago should all of the sudden spit up errors and exceptions.
If anyone can give me some insight as to what is going on, please let me
know.
Thank you,
Randy Strobel
[email protected]
Randy,
I don't know of any particular reasons why WebLogic would suddenly affect an
application in the manner that you describe. Start by figuring out where
the message comes from:
> "Caught EOFException in the stream header"
I assume that is in WebLogic's code, not yours? Figure out as close as
possible who is detecting this error condition. If it is in WebLogic's
code, you can ask support at BEA to tell you what it is complaining about
(i.e. what it is expecting to read).
You will have to post the exception trace here and it would help to see the
code that is causing the exception.
Cameron Purdy
Tangosol, Inc.
http://www.tangosol.com
+1.617.623.5782
WebLogic Consulting Available
"Randy Strobel" <[email protected]> wrote in message
news:[email protected]...
> I am developing a system for the US Gov't. This system currently
> utilizes several applets which access corresponding servlets on
> WebLogic. Seemingly, things went wrong for no apparent reason this
> morning. When, trying to run our applets, WebLogic throws an exception:
> "Caught EOFException in the stream header" These exceptions occur
> everytime the servlet would open the input stream from the applet. What
> makes things mind-boggling is that these applets/servlets were working
> this morning, and suddenly now give these exceptions. The code for both
> the applets and servlets has not been touched in weeks. Furthermore, i
> tested even further by running WebLogic locally and running the applets
> in our IDE (as applications) and the same results occur. I am running
> WebLogic 5.1 SP6 on both the remote and local system and am utilizing
> JDK 1.3 on both as well. The server is running on WinNT SP6 and locally
> is Win2000 Pro SP1. These applets are critical to the entire system and
> i am just totally baffled as to why something that was working fine one
> day ago should all of the sudden spit up errors and exceptions.
>
> If anyone can give me some insight as to what is going on, please let me
> know.
> Thank you,
> Randy Strobel
> [email protected]
>
>
-
Hi All,
Im using URLConnection to get audio stream, after reaching the EOF we are trying to set the file position to zero but it is not supporting mark and reset methods. i have tried with buffered input stream but it giving the same problem. please give me some idea to handle this problem.
URL url = new URL("http://localhost/welcome.wav");
URLConnection con = url.openConnection();
con.setDoOutput(true);
con.setDoInput(true);
con.setUseCaches(true);
con.setRequestProperty("Content-type", "text/plain");
BufferedInputStream is = new BufferedInputStream(con.getInputStream());I'm using URLConnection to get audio stream, after reaching the EOF we are trying to set the file position to zeroBut it's not a file. It's a TCP data stream. Resetting it to zero would imply having the server resend all the data. Which would be a complete waste of time, as you already have it all. Why are you looking for such an inefficient operation?
Save the data somewhere and rewind that. -
yes im having trouble ending the file when you enter the wrong info.
im working on a atm program project for a class. the problem is when you enter the wrong info, compared to the info already written on the .txt file that the script is reading from. i want it to show a message saying something like "please enter your correct account info" then it returns to the main menu displaying the account number input box. then loop this until you enter the correct info.
im fairly new to java so forgive me if i dont do things wright in the forums or the way the file is written. thanks, here is the code
import java.io.*;
import java.awt.*;
import javax.swing.*;
import java.util.*;
public class bank
public static void main (String[] args)
double bal;
int accntno;
int pass;
String in;
int an;
int p=0;
double b;
JOptionPane.showMessageDialog(null,"Welcom to Park ATM"+"\n\n"+"Press 'OK' to begin");
in=JOptionPane.showInputDialog("Enter Account Number");
accntno=Integer.parseInt(in);
in=JOptionPane.showInputDialog("Enter Pin Number");
pass=Integer.parseInt(in);
File fileObject=new File("atm2.txt");
while((! fileObject.exists())||(! fileObject.canRead()))
if(! fileObject.exists())
JOptionPane.showMessageDialog(null,"File Not Found");
else
JOptionPane.showMessageDialog(null,"I can't read this MF");
try
BufferedReader fileInput=new BufferedReader(new FileReader("atm2.txt"));
while((pass!=p)&& // this is where i get confused and wher i let off \\
in=fileInput.readLine();
an=Integer.parseInt(in);
in=fileInput.readLine();
p=Integer.parseInt(in);
in=fileInput.readLine();
b=Double.parseDouble(in);
JOptionPane.showMessageDialog(null,in);
//this is where action goes
catch(IOException e)
JOptionPane.showMessageDialog(null,"Problem readig file");
}1) Use code tags when posting code to preserve the indenting. See 2) to see the effect of using code tags.
2) Won't the following will be an infinite loop if the file object doesn't exist or the file can't be read:
while((! fileObject.exists())||(! fileObject.canRead()))
if(! fileObject.exists())
JOptionPane.showMessageDialog(null,"File Not Found");
else
JOptionPane.showMessageDialog(null,"I can't read this MF");
}The code will keep displaying one of those messages forever.
3)
while((pass!=p)&& // this is where i get confused and wher i let off \\You need to have that while loop surround the code that gets the password from the user. Then if the entered password does not equal the password in the file, the loop will continue until the user enters the correct password. However, you should also make some provision for terminating the loop in case the person doesn't ever enter the correct password. Maybe only give them 3 chances? -
Headstart Designer generated form crashes with Java EOF error
When closing a form while in Enter Query mode, the form crashes & user is
disconnected from the database with error:
FRM-92100: Your connection to the server was interrupted.
Details:
Java Excepton
java.io.EOF Exception
at java.io.DataInputStream.readUnsignedByte(Unknown Source)
at oracle.forms.engine.Message.readDetails(Unknown Source)
at oracle.forms.netStreamMessageReader.run(Unknown Source)Designer generates the ON-ERROR block level trigger. It has
execution style of BEFORE. Therefore, both the block level and
form level ON-ERROR triggers will fire.
Normally, in the block level trigger, Designer will generate
calls to its own message handling package to display any
constraint errors. However, Designer also allows you to specify
your own custom message handling package.
The package must contain:
- a procedure called PUSH
- a function called MSGGETTEXT, and
- a procedure called RAISE_FAILURE.
The preference MSGSFT, Package Used for Messaging, allows you to
record the name of the custom package.
Once you have recorded this in the preference, whenever you
generate a form, Designer will use your package and procedures
for its error handling code. That is why you see calls to
Headstart specific code in the block level ON-ERROR triggers.
If you want to customize the ON-ERROR triggers, you need to make
sure you understand how the MSGSFT preference is used. Read the
online help. Then, you can customize individual blocks by adding
application logic to the block, or you can add your own ON-ERROR
trigger to the object library in the CG$BLOCK object.
However, be warned that the Headstart error handling mechanism
depends on this code. Depending on what you do, you could end up
breaking things. -
EOF on socket when opening pop3 inbox
I have a Java program that reads a pop3 inbox and sends appropriate response emails. The program was working fine but something somewhere changed and now I get the following Exception:
Exception in thread "main" javax.mail.MessagingException: Open failed;
nested exception is:
java.io.EOFException: EOF on socket
at com.sun.mail.pop3.POP3Folder.open(POP3Folder.java:215)I wrote a simple Class to reproduce the error:
private void execute() throws MessagingException {
Properties props = new Properties();
props.put("mail.smtp.host", "mail.smtp.host");
props.put("mail.store.protocol", "pop3");
// Session session = Session.getInstance(props, null);
Session session = Session.getDefaultInstance(props);
Store store = session.getStore("pop3");
store.connect("mail.myDomain.com", "myUser", "myPassword");
Folder inbox = store.getFolder("INBOX");
inbox.open(Folder.READ_ONLY);
}It connects to the store okay. The exception is thrown at the the line with store.getFolder("INBOX"). I've checked our firewall settings and email server settings (dovecot/postfix) and all seems well.
Anyone have a clue what this might be?Thanks for your quick reply.
Here's the trace:
DEBUG: setDebug: JavaMail version 1.4.5
DEBUG: getProvider() returning javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun Microsystems, Inc]
DEBUG POP3: mail.pop3.rsetbeforequit: false
DEBUG POP3: mail.pop3.disabletop: false
DEBUG POP3: mail.pop3.forgettopheaders: false
DEBUG POP3: mail.pop3.cachewriteto: false
DEBUG POP3: mail.pop3.filecache.enable: false
DEBUG POP3: mail.pop3.keepmessagecontent: false
DEBUG POP3: mail.pop3.starttls.enable: false
DEBUG POP3: mail.pop3.starttls.required: false
DEBUG POP3: mail.pop3.apop.enable: false
DEBUG POP3: mail.pop3.disablecapa: false
DEBUG POP3: connecting to host "mail.myDomain.com", port 110, isSSL false
S: +OK Dovecot ready.
C: CAPA
S: +OK
CAPA
TOP
UIDL
RESP-CODES
PIPELINING
STLS
USER
SASL PLAIN
DEBUG POP3: PIPELINING enabled
DEBUG POP3: authentication command trace suppressed
DEBUG POP3: authentication command succeeded
C: STAT
S: EOF
C: QUIT
S: EOF
Exception in thread "main" javax.mail.MessagingException: Open failed;
nested exception is:
java.io.EOFException: EOF on socket
at com.sun.mail.pop3.POP3Folder.open(POP3Folder.java:228)
at com.myTest.TestOpenInbox.execute(TestOpenInbox.java:26)
at com.myTest.TestOpenInbox.main(TestOpenInbox.java:13)
Caused by: java.io.EOFException: EOF on socket
at com.sun.mail.pop3.Protocol.readResponse(Protocol.java:742)
at com.sun.mail.pop3.Protocol.simpleCommand(Protocol.java:687)
at com.sun.mail.pop3.Protocol.stat(Protocol.java:354)
at com.sun.mail.pop3.POP3Folder.open(POP3Folder.java:203)
... 2 moreIt's Greek to me, but it appears everything is kosher until C:STAT S:EOF -
Error while calling EJB with a heavyweight Object Parameter
Hi Everybody,
I am getting the following Error when i call a EJB with a heavyweight Object Parameter in Sun ONE Application Server 7.0.0_04.
[03/Jun/2005:13:40:39] WARNING ( 2484): CORE3283: stderr: org.omg.CORBA.BAD_PARAM: java.util.PropertyResourceBundle vmcid: OMG minor code: 6 completed: Maybe
[03/Jun/2005:13:40:39] WARNING ( 2484): CORE3283: stderr: at com.sun.corba.se.internal.util.Utility.throwNotSerializableForCorba(Utility.java:1018)
[03/Jun/2005:13:40:39] WARNING ( 2484): CORE3283: stderr: at com.sun.corba.se.internal.io.IIOPOutputStream.writeObjectField(IIOPOutputStream.java:691)
[03/Jun/2005:13:40:39] WARNING ( 2484): CORE3283: stderr: at com.sun.corba.se.internal.io.IIOPOutputStream.outputClassFields(IIOPOutputStream.java:745)
[03/Jun/2005:13:40:39] WARNING ( 2484): CORE3283: stderr: at com.sun.corba.se.internal.io.IIOPOutputStream.defaultWriteObjectDelegate(IIOPOutputStream.java:167)
[03/Jun/2005:13:40:39] WARNING ( 2484): CORE3283: stderr: at com.sun.corba.se.internal.io.IIOPOutputStream.outputObject(IIOPOutputStream.java:526)
[03/Jun/2005:13:40:40] WARNING ( 2484): CORE3283: stderr: at com.sun.corba.se.internal.io.IIOPOutputStream.simpleWriteObject(IIOPOutputStream.java:123)
[03/Jun/2005:13:40:40] WARNING ( 2484): CORE3283: stderr: at com.sun.corba.se.internal.io.ValueHandlerImpl.writeValueInternal(ValueHandlerImpl.java:136)
[03/Jun/2005:13:40:40] WARNING ( 2484): CORE3283: stderr: at com.sun.corba.se.internal.io.ValueHandlerImpl.writeValue(ValueHandlerImpl.java:116)
[03/Jun/2005:13:40:40] WARNING ( 2484): CORE3283: stderr: at com.sun.corba.ee.internal.iiop.CDROutputStream_1_0.write_value(CDROutputStream_1_0.java:1062)
[03/Jun/2005:13:40:40] WARNING ( 2484): CORE3283: stderr: at com.sun.corba.ee.internal.iiop.CDROutputStream.write_value(CDROutputStream.java:259)
[03/Jun/2005:13:40:40] WARNING ( 2484): CORE3283: stderr: at com.sun.corba.ee.internal.corba.TCUtility.marshalIn(TCUtility.java:136)
[03/Jun/2005:13:40:40] WARNING ( 2484): CORE3283: stderr: at com.sun.corba.ee.internal.corba.AnyImpl.write_value(AnyImpl.java:599)
[03/Jun/2005:13:40:40] WARNING ( 2484): CORE3283: stderr: at com.sun.corba.ee.internal.iiop.CDROutputStream_1_0.write_any(CDROutputStream_1_0.java:538)
[03/Jun/2005:13:40:40] WARNING ( 2484): CORE3283: stderr: at com.sun.corba.ee.internal.iiop.CDROutputStream.write_any(CDROutputStream.java:233)
[03/Jun/2005:13:40:40] WARNING ( 2484): CORE3283: stderr: at com.sun.corba.ee.internal.iiop.ShutdownUtilDelegate.writeAny(ShutdownUtilDelegate.java:196)
[03/Jun/2005:13:40:40] WARNING ( 2484): CORE3283: stderr: at javax.rmi.CORBA.Util.writeAny(Util.java:78)
[03/Jun/2005:13:40:40] WARNING ( 2484): CORE3283: stderr: at com.sun.corba.se.internal.io.ValueHandlerImpl.write_Array(ValueHandlerImpl.java:446)
[03/Jun/2005:13:40:40] WARNING ( 2484): CORE3283: stderr: at com.sun.corba.se.internal.io.ValueHandlerImpl.writeValueInternal(ValueHandlerImpl.java:134)
[03/Jun/2005:13:40:40] WARNING ( 2484): CORE3283: stderr: at com.sun.corba.se.internal.io.ValueHandlerImpl.writeValue(ValueHandlerImpl.java:116)
[03/Jun/2005:13:40:40] WARNING ( 2484): CORE3283: stderr: at com.sun.corba.ee.internal.iiop.CDROutputStream_1_0.write_value(CDROutputStream_1_0.java:916)
[03/Jun/2005:13:40:40] WARNING ( 2484): CORE3283: stderr: at com.sun.corba.ee.internal.iiop.CDROutputStream_1_0.write_value(CDROutputStream_1_0.java:651)
[03/Jun/2005:13:40:40] WARNING ( 2484): CORE3283: stderr: at com.sun.corba.ee.internal.iiop.CDROutputStream.write_value(CDROutputStream.java:263)
[03/Jun/2005:13:40:40] WARNING ( 2484): CORE3283: stderr: at com.sun.corba.se.internal.io.IIOPOutputStream.writeObjectField(IIOPOutputStream.java:685)
[03/Jun/2005:13:40:40] WARNING ( 2484): CORE3283: stderr: at com.sun.corba.se.internal.io.IIOPOutputStream.outputClassFields(IIOPOutputStream.java:745)
[03/Jun/2005:13:40:40] WARNING ( 2484): CORE3283: stderr: at com.sun.corba.se.internal.io.IIOPOutputStream.defaultWriteObjectDelegate(IIOPOutputStream.java:167)
[03/Jun/2005:13:40:40] WARNING ( 2484): CORE3283: stderr: at com.sun.corba.se.internal.io.OutputStreamHook.defaultWriteObject(OutputStreamHook.java:129)
[03/Jun/2005:13:40:40] WARNING ( 2484): CORE3283: stderr: at java.util.Vector.writeObject(Vector.java:1017)
[03/Jun/2005:13:40:40] WARNING ( 2484): CORE3283: stderr: at com.sun.corba.se.internal.io.IIOPOutputStream.writeObject(Native Method)
[03/Jun/2005:13:40:40] WARNING ( 2484): CORE3283: stderr: at com.sun.corba.se.internal.io.IIOPOutputStream.invokeObjectWriter(IIOPOutputStream.java:560)
[03/Jun/2005:13:40:40] WARNING ( 2484): CORE3283: stderr: at com.sun.corba.se.internal.io.IIOPOutputStream.outputObject(IIOPOutputStream.java:523)
[03/Jun/2005:13:40:40] WARNING ( 2484): CORE3283: stderr: at com.sun.corba.se.internal.io.IIOPOutputStream.simpleWriteObject(IIOPOutputStream.java:123)
[03/Jun/2005:13:40:40] WARNING ( 2484): CORE3283: stderr: at com.sun.corba.se.internal.io.ValueHandlerImpl.writeValueInternal(ValueHandlerImpl.java:136)
[03/Jun/2005:13:40:40] WARNING ( 2484): CORE3283: stderr: at com.sun.corba.se.internal.io.ValueHandlerImpl.writeValue(ValueHandlerImpl.java:116)
[03/Jun/2005:13:40:40] WARNING ( 2484): CORE3283: stderr: at com.sun.corba.ee.internal.iiop.CDROutputStream_1_0.write_value(CDROutputStream_1_0.java:1062)
[03/Jun/2005:13:40:40] WARNING ( 2484): CORE3283: stderr: at com.sun.corba.ee.internal.iiop.CDROutputStream_1_0.write_value(CDROutputStream_1_0.java:651)
[03/Jun/2005:13:40:40] WARNING ( 2484): CORE3283: stderr: at com.sun.corba.ee.internal.iiop.CDROutputStream.write_value(CDROutputStream.java:263)
[03/Jun/2005:13:40:40] WARNING ( 2484): CORE3283: stderr: at com.sun.corba.se.internal.io.IIOPOutputStream.writeObjectField(IIOPOutputStream.java:685)
[03/Jun/2005:13:40:40] WARNING ( 2484): CORE3283: stderr: at com.sun.corba.se.internal.io.IIOPOutputStream.outputClassFields(IIOPOutputStream.java:745)
[03/Jun/2005:13:40:40] WARNING ( 2484): CORE3283: stderr: at com.sun.corba.se.internal.io.IIOPOutputStream.defaultWriteObjectDelegate(IIOPOutputStream.java:167)
[03/Jun/2005:13:40:40] WARNING ( 2484): CORE3283: stderr: at com.sun.corba.se.internal.io.IIOPOutputStream.outputObject(IIOPOutputStream.java:526)
[03/Jun/2005:13:40:40] WARNING ( 2484): CORE3283: stderr: at com.sun.corba.se.internal.io.IIOPOutputStream.simpleWriteObject(IIOPOutputStream.java:123)
[03/Jun/2005:13:40:40] WARNING ( 2484): CORE3283: stderr: at com.sun.corba.se.internal.io.ValueHandlerImpl.writeValueInternal(ValueHandlerImpl.java:136)
[03/Jun/2005:13:40:40] WARNING ( 2484): CORE3283: stderr: at com.sun.corba.se.internal.io.ValueHandlerImpl.writeValue(ValueHandlerImpl.java:116)
[03/Jun/2005:13:40:40] WARNING ( 2484): CORE3283: stderr: at com.sun.corba.ee.internal.iiop.CDROutputStream_1_0.write_value(CDROutputStream_1_0.java:1082)
[03/Jun/2005:13:40:40] WARNING ( 2484): CORE3283: stderr: at com.sun.corba.ee.internal.iiop.CDROutputStream.write_value(CDROutputStream.java:259)
[03/Jun/2005:13:40:40] WARNING ( 2484): CORE3283: stderr: at com.sun.corba.ee.internal.javax.rmi.CORBA.Util.copyObjects(Util.java:440)
[03/Jun/2005:13:40:40] WARNING ( 2484): CORE3283: stderr: at javax.rmi.CORBA.Util.copyObjects(Util.java:296)
[03/Jun/2005:13:40:40] WARNING ( 2484): CORE3283: stderr: at com.mot.hris.hrsystem.ejb._HRSystem_Stub.get(Unknown Source)
[03/Jun/2005:13:40:40] WARNING ( 2484): CORE3283: stderr: at com.mot.hris.transaction.AddressType.submitAddressChange(Unknown Source)
[03/Jun/2005:13:40:40] WARNING ( 2484): CORE3283: stderr: at com.mot.hris.transaction.AddressType.submitToSAP(Unknown Source)
[03/Jun/2005:13:40:40] WARNING ( 2484): CORE3283: stderr: at com.mot.hris.mydata.servlet.MyDataConfirmationServlet.processServlet(Unknown Source)
[03/Jun/2005:13:40:40] WARNING ( 2484): CORE3283: stderr: at com.mot.hris.core.servlet.EnetBaseHttpServlet.service(Unknown Source)
[03/Jun/2005:13:40:40] WARNING ( 2484): CORE3283: stderr: at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
[03/Jun/2005:13:40:40] WARNING ( 2484): CORE3283: stderr: at org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:720)
[03/Jun/2005:13:40:41] WARNING ( 2484): CORE3283: stderr: at org.apache.catalina.core.StandardWrapperValve.access$000(StandardWrapperValve.java:118)
[03/Jun/2005:13:40:41] WARNING ( 2484): CORE3283: stderr: at org.apache.catalina.core.StandardWrapperValve$1.run(StandardWrapperValve.java:278)
[03/Jun/2005:13:40:41] WARNING ( 2484): CORE3283: stderr: at java.security.AccessController.doPrivileged(Native Method)
[03/Jun/2005:13:40:41] WARNING ( 2484): CORE3283: stderr: at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:274)
[03/Jun/2005:13:40:41] WARNING ( 2484): CORE3283: stderr: at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
[03/Jun/2005:13:40:41] WARNING ( 2484): CORE3283: stderr: at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212)
[03/Jun/2005:13:40:41] WARNING ( 2484): CORE3283: stderr: at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
[03/Jun/2005:13:40:41] WARNING ( 2484): CORE3283: stderr: at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:203)
[03/Jun/2005:13:40:41] WARNING ( 2484): CORE3283: stderr: at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
[03/Jun/2005:13:40:41] WARNING ( 2484): CORE3283: stderr: at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:158)
[03/Jun/2005:13:40:41] WARNING ( 2484): CORE3283: stderr: at com.iplanet.ias.web.WebContainer.service(WebContainer.java:598)
[03/Jun/2005:13:40:41] WARNING ( 2484): CORE3283: stderr: java.rmi.UnexpectedException: java.io.IOException: Serializable readObject method failed internally
[03/Jun/2005:13:40:41] WARNING ( 2484): CORE3283: stderr: at com.sun.corba.ee.internal.javax.rmi.CORBA.Util.wrapException(Util.java:370)
[03/Jun/2005:13:40:41] WARNING ( 2484): CORE3283: stderr: at javax.rmi.CORBA.Util.wrapException(Util.java:277)
[03/Jun/2005:13:40:41] WARNING ( 2484): CORE3283: stderr: at com.mot.hris.hrsystem.ejb._HRSystem_Stub.get(Unknown Source)
[03/Jun/2005:13:40:41] WARNING ( 2484): CORE3283: stderr: at com.mot.hris.transaction.AddressType.submitAddressChange(Unknown Source)
[03/Jun/2005:13:40:41] WARNING ( 2484): CORE3283: stderr: at com.mot.hris.transaction.AddressType.submitToSAP(Unknown Source)
[03/Jun/2005:13:40:41] WARNING ( 2484): CORE3283: stderr: at com.mot.hris.mydata.servlet.MyDataConfirmationServlet.processServlet(Unknown Source)
[03/Jun/2005:13:40:41] WARNING ( 2484): CORE3283: stderr: at com.mot.hris.core.servlet.EnetBaseHttpServlet.service(Unknown Source)
[03/Jun/2005:13:40:41] WARNING ( 2484): CORE3283: stderr: at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
[03/Jun/2005:13:40:41] WARNING ( 2484): CORE3283: stderr: at org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:720)
[03/Jun/2005:13:40:41] WARNING ( 2484): CORE3283: stderr: at org.apache.catalina.core.StandardWrapperValve.access$000(StandardWrapperValve.java:118)
[03/Jun/2005:13:40:41] WARNING ( 2484): CORE3283: stderr: at org.apache.catalina.core.StandardWrapperValve$1.run(StandardWrapperValve.java:278)
[03/Jun/2005:13:40:41] WARNING ( 2484): CORE3283: stderr: at java.security.AccessController.doPrivileged(Native Method)
[03/Jun/2005:13:40:41] WARNING ( 2484): CORE3283: stderr: at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:274)
[03/Jun/2005:13:40:41] WARNING ( 2484): CORE3283: stderr: at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
[03/Jun/2005:13:40:41] WARNING ( 2484): CORE3283: stderr: at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212)
[03/Jun/2005:13:40:41] WARNING ( 2484): CORE3283: stderr: at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
[03/Jun/2005:13:40:41] WARNING ( 2484): CORE3283: stderr: at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:203)
[03/Jun/2005:13:40:41] WARNING ( 2484): CORE3283: stderr: at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
[03/Jun/2005:13:40:41] WARNING ( 2484): CORE3283: stderr: at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:158)
[03/Jun/2005:13:40:41] WARNING ( 2484): CORE3283: stderr: at com.iplanet.ias.web.WebContainer.service(WebContainer.java:598)
Can someone please help to solve this.
Regards,
SunilUnfortunately there's not really enough information for anyone to help you much. I can tell you've hit an EOF Exception, but that's about it.
What exactly do you mean by a heavyweight object parameter? Do you mean a large (in memory size) object?
Without any knowledge of your application, I'd probably start by changing your ejb method to do nothing. That should tell you at least whether it's the serialization of the parameter that's the issue or not. Narrow it down from there.
If you need more help, printing the entire stack trace of the EOFException and posting it here would be helpful.
-- Rob -
I have Weblogic Server Version 6.0. I created Private Key File using Certificate
Request Generator Servlet. It created the the private key file (.der) file &
CSR using which I got the Trial Server Certificate from Verisign. I installed
the certificate (.pem) and configured the server. When I restarted the server
it gives the following EOFException while reading the Private Key File : (I gave
the Private Key password while generating the private key file from the servlet)
<Dec 21, 2001 7:43:08 PM GMT+05:30> <Alert> <WebLogicServer> <Security configura
tion problem with certificate file config/mydomain/TTI-D066-key.der, java.io.EOF
Exception>
java.io.EOFException
at weblogic.security.Utils.inputByte(Utils.java:133)
at weblogic.security.ASN1.ASN1Header.inputTag(ASN1Header.java:125)
at weblogic.security.ASN1.ASN1Header.input(ASN1Header.java:119)
at weblogic.security.RSAPrivateKey.input(RSAPrivateKey.java:119)
at weblogic.security.RSAPrivateKey.<init>(RSAPrivateKey.java:91)
at weblogic.t3.srvr.SSLListenThread.<init>(SSLListenThread.java:398)
at weblogic.t3.srvr.SSLListenThread.<init>(SSLListenThread.java:301)
at weblogic.t3.srvr.T3Srvr.initializeListenThreads(T3Srvr.java:942)
at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:403)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:169)
at weblogic.Server.main(Server.java:35)
Thanks in advance for any solutions...
Regards,
VenkatesanHi,
please check if you provided the private key password which was used to
create the file in the following property
-Dweblogic.management.pkpassword
on the command line correctly.
In addition, please check "Use Encrypted Keys" to "true" in <server>->SSL
tab from the admin console.
Maria
Developer Relations Engineer
BEA Support
Venkatesan schrieb in Nachricht <3c234536$[email protected]>...
>
I have Weblogic Server Version 6.0. I created Private Key File usingCertificate
Request Generator Servlet. It created the the private key file (.der) file&
CSR using which I got the Trial Server Certificate from Verisign. Iinstalled
the certificate (.pem) and configured the server. When I restarted theserver
it gives the following EOFException while reading the Private Key File : (Igave
the Private Key password while generating the private key file from theservlet)
>
<Dec 21, 2001 7:43:08 PM GMT+05:30> <Alert> <WebLogicServer> <Securityconfigura
tion problem with certificate file config/mydomain/TTI-D066-key.der,java.io.EOF
Exception>
java.io.EOFException
at weblogic.security.Utils.inputByte(Utils.java:133)
at weblogic.security.ASN1.ASN1Header.inputTag(ASN1Header.java:125)
at weblogic.security.ASN1.ASN1Header.input(ASN1Header.java:119)
at weblogic.security.RSAPrivateKey.input(RSAPrivateKey.java:119)
at weblogic.security.RSAPrivateKey.<init>(RSAPrivateKey.java:91)
atweblogic.t3.srvr.SSLListenThread.<init>(SSLListenThread.java:398)
atweblogic.t3.srvr.SSLListenThread.<init>(SSLListenThread.java:301)
at weblogic.t3.srvr.T3Srvr.initializeListenThreads(T3Srvr.java:942)
at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:403)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:169)
at weblogic.Server.main(Server.java:35)
Thanks in advance for any solutions...
Regards,
Venkatesan -
How can I tell if an Object Input Stream has more objects to read?
I have a utility that I'm working on where objects are sent via the network as a complete file. I read the objects, update some, and send them back. I never know how many objects are in the file. I cache the file locally prior to performing this operation. It runs in a chron job.
Currently I am reading until I get an EOF exception. Is there a better way? I've tried available() but it is always returning me zero.
Thanks.
STThe API says:
Any attempt to read object data which exceeds the
boundaries of the custom data written by the
corresponding writeObject method will cause an
OptionalDataException to be thrown with an eof field
value of true.
Hope this helpsThis doesn't help at all. It refers to what happens while you are reading a single object, not to what happens when you try to read a new object. You will not get this exception between objects.
If as I suspect you are reading from a socket you really have no choice but to try the read, maybe with a timeout. EOF is the only condition that can reliably indicate that there are no more objects in this stream. -
Java.io.EOFException
Hello,
I am getting the following error while calling a remote IF method of a stateless
EJB.
com.ibi.agent.TuxAgent : UnmarshalException : error unmarshalling arguments; nested
exception is:
java.io.EOFException
com.ibi.agent.TuxAgent: error unmarshalling arguments; nested exception is:
java.io.EOFException
java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.io.EOFException
java.io.EOFException
<<no stack trace available>>
Has anyone encountered this error while accessing the Remote IF methods. If so,
what you did to resolve this problem? Any help would be greatly appreciated.
- Aravind.Apurb,
The problem is resolved.
I tried to pass a hashtable of Tuxedo wrapper objects of type TypedFML. They were
told to be implementing java.io.serializable.
Then, when I tried to serialise/deserialise the object, i got an EOF Exception.
So, I just passed a simple java type as parameter to my rmi call and made the
EJB to handle the building of those wrapper classes.
Thanks,
Aravind.
Apurb KUmar <[email protected]> wrote:
Hi Aravind,
These errors seem to be application errors. What are you trying to accomplish
in the
method?
Aravind wrote:
Hello,
I am getting the following error while calling a remote IF method ofa stateless
EJB.
com.ibi.agent.TuxAgent : UnmarshalException : error unmarshalling arguments;nested
exception is:
java.io.EOFException
com.ibi.agent.TuxAgent: error unmarshalling arguments; nested exceptionis:
java.io.EOFException
java.rmi.UnmarshalException: error unmarshalling arguments; nestedexception is:
java.io.EOFException
java.io.EOFException
<<no stack trace available>>
Has anyone encountered this error while accessing the Remote IF methods.If so,
what you did to resolve this problem? Any help would be greatly appreciated.
- Aravind.--
Apurb Kumar
Developer Relations Engineer
BEA Support -
How to read multiple dat files.
Hello Everyone!
I am working on a project that requires one file that creates a JFrame with a current file title, JTextFields that accesses two .dat files and a JButton.
The user clicks a JButton to cycle through the first sequential .dat file. When the end of the first file is reached the file is closed, the JFrame title is changed to the second file title as the user continues to click the JButton to continue on viewing the second file?s records, until the second reaches the end of file.
The project requires using Try-Catches to catch the EOF exceptions and IOExceptions and Thread or Runnable.
I have been able to get one file to read and display its records; however, researching back through my text on how to read/write to files I haven?t been able to determine how to get to the end of the file and proceed to the next file without triggering the EOFException. I have even tried multiple Try-Catches (one for each file within the actionPerformed method) and that ends up ignoring the first file records and only displays the second files records.
This is a school project and we have only covered just the bare basics of Java over the last two months. So, any hints that anyone can provide can only be of what type of procedure will be needed or what procedure won?t help to complete the task, without giving away the solution.
I have spent approximately 40 hours of study time on this project and believe that I have definitely run into a major snag.
The following is the code I have so far:
import java.io.*;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class StudentRead extends JFrame implements ActionListener
private JLabel gradStudentList = new JLabel("GRADUATE Student List");
private JLabel undergradStudentList = new JLabel("UNDERGRADUATE Student List");
private Font bigFont = new Font("Helvetica", Font.ITALIC, 24);
private JLabel userprompt = new JLabel("View the students");
private JTextField idNumText = new JTextField(4);
private JTextField lastNameText = new JTextField(15);
private JTextField firstNameText = new JTextField(15);
private JButton viewRecordButton = new JButton("View Record");
private JLabel idNumberLabel = new JLabel("ID Number");
private JLabel lastNameLabel = new JLabel("Last name");
private JLabel firstNameLabel = new JLabel("First name");
private Container con = getContentPane();
DataInputStream gradStudentInStream;
DataInputStream undergradStudentInStream;
public StudentRead()
super("Read Student Records");
try
gradStudentInStream = new DataInputStream(new FileInputStream("GradStudents.dat"));
undergradStudentInStream = new DataInputStream(new FileInputStream("UndergradStudents.dat"));
catch(IOException e)
System.err.println("File not opened");
System.exit(1);
setSize(325, 200);
con.setLayout(new FlowLayout());
gradStudentList.setFont(bigFont);
con.add(gradStudentList);
con.add(userprompt);
con.add(idNumberLabel);
con.add(idNumText);
con.add(lastNameLabel);
con.add(lastNameText);
con.add(firstNameLabel);
con.add(firstNameText);
con.add(viewRecordButton);
viewRecordButton.addActionListener(this);
setVisible(true);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
public void actionPerformed(ActionEvent e1)
String lastName, firstName;
int IdNum;
try
IdNum = gradStudentInStream.readInt();
lastName = gradStudentInStream.readUTF();
firstName = gradStudentInStream.readUTF();
idNumText.setText(String.valueOf(IdNum));
lastNameText.setText(lastName);
firstNameText.setText(firstName);
catch(EOFException e2)
closeFile();
System.exit(0);
catch(IOException e3)
System.err.println("Error reading file");
System.out.println("out");
System.exit(1);
public void closeFile()
try
gradStudentInStream.close();
System.exit(0);
catch(IOException e)
System.err.println("Error closing file");
System.exit(1);
public static void main(String[] args)
StudentRead rsr = new StudentRead();
}deepak_1your.com wrote:
hi,
If you want to read a file guarding yourself agianst exceptions....
check this article.... the code presented in this article might suit your needs...
[http://1your.com/fusion/infusions/articles/readarticle.php?article_id=17|http://1your.com/fusion/infusions/articles/readarticle.php?article_id=17]
And how does that help with a DataInputStream? -
RMI Client UnmarshalException with UNC paths
I have a 'none' Java application, that has an embedded JVM which is being used as an RMI server to allow communication to the application from a browser. The applet detects the presence of the RMI server and if not detected, will start the application, which in turns starts the RMI server. Once the RMI server is started the Client then invokes the method on the server, and hence into the application.
If the executable for this application is pathed to either a local or mapped drive then everything works as expected, if I then try to use a UNC path, once the RMI server is started, the client returns an UnmarshalException:
java.rmi.UnmarshalException: Error unmarshaling return header; nested exception is:
java.io.EOFException
java.io.EOFException
at java.io.DataInputStream.readByte(Unknown Source)
at sun.rmi.transport.StreamRemoteCall.executeCall(Unknown Source)
at sun.rmi.server.UnicastRef.invoke(Unknown Source)
at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
at java.rmi.Naming.lookup(Unknown Source)
I guess that the problem is that the serialization process has been started, and as the client starts reading from the datastream the UNC paths cause the EOF Exception. any help on how to get round this problem would be gratefully received. Unfortunately using a mapped drive is not a solution to this problem due to the way the application is being served.Hi all,
It turns out that when the java.policy file is being read, it ignores the servername on the UNC path and therefore looks for a directory of the remaining data of the UNC path for the file. I guess it is now a task of figuring out why this is... -
How can I know the end of DataInputStream when I use readUTF()
I use the readUTF() method of DataInputStream in client to read String from server
I use catch EOFExcetpion to let the client know the end of the InputStream(that is when the server close its socket) , however it seems that donen't work
what can I do ?
class client
public void method()
DataInputStream in=new DataInputStream(socket.getInputStream);
try{
try{
while(true)
String temp= in.readUTF();
System.out.println(temp.charAt(.........));
}catch( EOFException e){}
}catch(IOException ioe){}
}when server closes , it seems that the" System.out.println "sentence keep going
the above is the simplified version, the original one is too long to put hereI think the readUTF method will straight away return you the whole content as a string and you don't have to put it in a loop.
The EOF Exception will be thrown only when the stream reaches the end before reading all the bytes.
Thanx and Regards,
Anish K George
Maybe you are looking for
-
Dear Gurus How can i create Info structure for the deliveries made through Purchase order UB document type. I have already created a infostructure for application 01 and taken the fields of LIKP,LIPS tables. But it is showing only Deliveries made thr
-
Wrong Accounting Packet Counter !
Hi, In our DSL Service provider, We use Cisco Routers as a BRAS for years. recently I have noticed about an strength problem with accounting packets That I'm recieving from BRAS! right now our AAA configuration for PPPOE is something like this: 1- wh
-
Optimize application does not empty FAC2 and FACTWB tables
Hello everyone, I am currently using OutlookSoft 4.2.338 and recently came across the following problem: Optimize application fails to empty FACTWB and FAC2 tables, even though it says "Successfully finished" -Whenever I run an optimize process direc
-
I have a current gen Mac Mini I'm using as a media center. I'm connecting it to a Viewsonic 720p LCD via VGA cable for the video, and PC-Sound In for the audio. However, I'm finding the volume, even when the Mac Mini is set to max, far too low to hea
-
My bottom toolbar is missing in firefox
when i go on the browser yahoo comes up( its my homepage) and the toolbar at the bottom ( the one with the time, the start button etc.) is there but when i click anywhere it disapears. i am not in full screen i tried f11 but when i do that i go to fu