*
The moose likes Java Micro Edition and the fly likes SymbianOS error = -34 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "SymbianOS error = -34" Watch "SymbianOS error = -34" New topic
Author

SymbianOS error = -34

Koh Khai Huat
Ranch Hand

Joined: Aug 05, 2005
Posts: 100
Hi guys,

I am working on a MIDlet that will talk to a J2SE program on a computer working as a Server. The problem is that when i use the Sonyericssion Toolkit it can work But when i use in on the Nokia Series 60 Toolkit i have this error ....

--------------------- error --------------------------------
Error connecting to server = java.io.IOException: SymbianOS error = -34 : System:
System error.
--------------------- error --------------------------------

this is what i got from the Toolkit....

And for the connection i used the .......

StreamConnection connection = (StreamConnection) Connector.open("socket://" + "localhost" + ":" + "4445");

that is the code i use for connection i would like to ask for advice and suggestion that i can slove this problem thanks in advance

regards
KKH


if (!WorkHard){
System.out.println("Fail!!!");
}
Koh Khai Huat
Ranch Hand

Joined: Aug 05, 2005
Posts: 100
hi guys,

I got the error already so just here to share with all of you incase anyone needed it so here is the list....

KErrNone 0
KErrNotFound -1 Unable to find the specified object
KErrGeneral -2 General (unspecified) error
KErrCancel -3 The operation was cancelled
KErrNoMemory -4 Not enough memory
KErrNotSupported -5 The operation requested is not supported
KErrArgument -6 Bad request
KErrTotalLossOfPrecision -7 Total loss of precision
KErrBadHandle -8 Bad object
KErrOverflow -9 Overflow
KErrUnderflow -10 Underflow
KErrAlreadyExists -11 Already exists
KErrPathNotFound -12 Unable to find the specified folder
KErrDied -13 Closed
KErrInUse -14 The specified object is currently in use by another program
KErrServerTerminated -15 Server has closed
KErrServerBusy -16 Server busy
KErrCompletion -17 Completion error
KErrNotReady -18 Not ready
KErrUnknown -19 Unknown error
KErrCorrupt -20 Corrupt
KErrAccessDenied -21 Access denied
KErrLocked -22 Locked
KErrWrite -23 Failed to write
KErrDisMounted -24 Wrong disk present
KErrEof -25 Unexpected end of file
KErrDiskFull -26 Disk full
KErrBadDriver -27 Bad device driver
KErrBadName -28 Bad name
KErrCommsLineFail -29 Comms line failed
KErrCommsFrame -30 Comms frame error
KErrCommsOverrun -31 Comms overrun error
KErrCommsParity -32 Comms parity error
KErrTimedOut -33 Timed out
KErrCouldNotConnect -34 Failed to connect
KErrCouldNotDisconnect -35 Failed to disconnect
KErrDisconnected -36 Disconnected
KErrBadLibraryEntryPoint -37 Bad library entry point
KErrBadDescriptor -38 Bad descriptor
KErrAbort -39 Interrupted
KErrTooBig -40 Too big
KErrDivideByZero -41 Divide by zero
KErrBadPower -42 Batteries too low
KErrDirFull -43 Folder full
KErrHardwareNotAvailable -44
KErrSessionClosed -45
KErrPermissionDenied -46

And here is the Link

http://www.newlc.com/Symbian-OS-Error-Codes.html

Hope it helps....

regards
KKH
Faraz Masood
Ranch Hand

Joined: May 03, 2002
Posts: 55
hello ,

please make sure that

1. Server is listening on that port
2. the port is not blocked by any firewall on your system

hope this helps
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: SymbianOS error = -34
 
Similar Threads
Close error on open?
Network Connectivity Implementation as per JSR 180.
IOException SymbianOS error = -33
how do i create connection for a cell phone
unable to reopen the StreamConnection, for first request working fine but for second it is not