Socket error in j2me
Hi,
Here is the scenario:
I have a servlet application hosted on the Tomcat webserver [ver 3.2.1] on the internet. The client midlet applicaiton is run on the j2me emulators from sun and codewarrior. The entire application works great ..
Now, a different team uses Acompli 008 over GPRS network (test env) and runs the same midlet client application. Almost evertime I see this error message on my webserver --
2001-06-21 03:42:53 - ContextManager: SocketException reading request, ignored - java.net.SocketException: Connection
reset by peer: JVM_recv in socket input stream read
at java.net.SocketInputStream.socketRead(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:86)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:186)
at java.io.BufferedInputStream.read(BufferedInputStream.java:204)
at org.apache.tomcat.service.http.HttpRequestAdapter.doRead(HttpRequestAdapter.java:115)
at org.apache.tomcat.core.BufferedServletInputStream.doRead(BufferedServletInputStream.java:106)
at org.apache.tomcat.core.BufferedServletInputStream.read(BufferedServletInputStream.java:128)
at javax.servlet.ServletInputStream.readLine(ServletInputStream.java:138)
at org.apache.tomcat.service.http.HttpRequestAdapter.readNextRequest(HttpRequestAdapter.java:129)
at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:195)
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:484)
I'm using httpconnection syntax, POST method for data transmission and the data size is approx 1-2K bytes.
After this error message pops on my webserver screen, the client device freezes ..
Do anyone have any ideas or suggestions or solutions ??? Is anyone aware of this or encountered this error message ??
The worst part is that i'm unable to even simulate this using the emulators ..
Thanks a lot in advance ..
S.
Perhaps you could post your code on the forum so that we might be able to help you better?
Anyway, check also if you are using a get or post request from the midlet cus the Post requests have been known to give a few people problems.
Similar Messages
-
The error message "An undefined AIM socket error has occurred." comes up when I try and log on to ichat.
I have the same issue. Does anybody know why this has happened
-
If I copy the "lcds" folder, Tomcat starts with socket errors
In the documentation it is said that when you create a new server-side application, you can start by copying the 'webapps/lcds' folder. I did that but then, Tomcat starts with some socket errors:
[LCDS]SocketServer 'my-rtmp-SocketServer' failed to pre-validate desired socket settings for BindSocketAddress: 0.0.0.0:2038
java.net.SocketException: Unrecognized Windows Sockets error: 0: JVM_Bind
[LCDS]SocketServer 'my-rtmp-SocketServer' failed to start.
flex.messaging.LocalizedException: SocketServer 'my-rtmp-SocketServer' cannot bind to accept client connections on port '2038' because another process has already bound the port. Please ensure that multiple endpoints across all applications are not configured to use this same port.
Am I doing something wrong?
Thanks,
BorekWhat is happening is that you are getting a port conflict for the socket-based NIO and RTMP endpoints used in the channel definitions in the services-config.xml file of your new web app. The issue is that you have endpoints bound to the same port in the LCDS web and in your new web app.
You can deal with this one of two ways:
Option 1: In that services-config.xml file, search on "RTMP" and "NIO" to find the channel definitions and change the port numbers to something slightly different than the ones used in the LCDS web app.
Options 2: Move the LCDS web app out of the picture so it doesn't get loaded, and just use a template for future web apps. If you aren't using it for any of your development, there is really no reason you have to load it.
I'll add a note about this to the documentation that talks about using the LCDS web app as a template. -
Imap performance and socket errors
-bash-3.00$ imsimta version
Sun Java(tm) System Messaging Server 6.2-8.04 (built Feb 28 2007)
libimta.so 6.2-8.04 (built 19:28:07, Feb 28 2007)
SunOS vmpm1 5.10 Generic_141414-02 sun4u sparc SUNW,Sun-Fire-V490
We're experiencing imap problems that appear to be load related, and have had to restart mail services several times to restore service. The imap logs show a large number of socket errors. The server load average is in the 1-2 range; there's no apparent memory resource problem. We're seeing 600-1000 simultaneous imap sessions, which is a higher number than in the past. We run JMS & Communications Express on dedicated V490 SPARC server with 8GB of memory. We're planning to add an additional 8GB this Friday.
Our imap configuration settings are as follows:
-bash-3.00$ configutil | grep service.imap
service.imap.enable = 1
service.imap.enablesslport = yes
service.imap.idletimeout = 30
service.imap.maxsessions = 4000
service.imap.maxthreads = 250
service.imap.numprocesses = 1
service.imap.objectclass = top
service.imap.plaintextmincipher = 0
service.imap.port = 143
service.imap.sslcachesize = 0
service.imap.sslport = 993
service.imap.sslusessl = yes
Can you suggest additional troubleshooting steps? Do you recommend any configuration changes?
Thanks.dpelinka wrote:
Questions:
1. Our JMS version info doesn't state whether it is 32 or 64-bit. Therefore, I assume we are running a 32-bit version. Is that correct?Correct. There is no 64-bit version of MS6.2.
2. Is there a virtual memory limit on the 32-bit version of JMS 6.2? Is the limit greater for JMS 6.3?The Solaris OS imposes the virtual memory size limit of ~3.75GB for all 32bit processes on SPARC. 64-bit processes have a much much larger limit.
http://developers.sun.com/solaris/articles/solaris_memory.html
Regards,
Shane. -
Getting "Error Establishing Socket " error while running the application
Hi,
Can Any one help me as I getting the following error while inserting data into database for after some rows and will insert for some rows then again some error . I googled but but didnt get any proper solution.
Soultion what I got it is
1) turn off windows firewall.
2) change server TCP/IP settings.
3) It will give probelm with windows XP SP 2
I tried all but didnt able to solve that.
I am using Java 1.5, MSSQL server 2000,and eclipse 3.2,windows XP SP2
java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket.
at com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source)
at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
at com.microsoft.jdbc.sqlserver.tds.TDSConnection.<init>(Unknown Source)
at com.microsoft.jdbc.sqlserver.SQLServerImplConnection.open(Unknown Source)
at com.microsoft.jdbc.base.BaseConnection.getNewImplConnection(Unknown Source)
at com.microsoft.jdbc.base.BaseConnection.open(Unknown Source)
at com.microsoft.jdbc.base.BaseDriver.connect(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at com.aztecsoft.quality.DatabaseConnectionQLTYSRV.getCon(DatabaseConnectionQLTYSRV.java:25)
at com.aztecsoft.quality.DatabaseQuery.getDaytoCountRow(DatabaseQuery.java:147)
at com.aztecsoft.quality.ProjectTrackerUtil.getNetworkDays(ProjectTrackerUtil.java:73)
at com.aztecsoft.quality.ProjectPlan.calODurationinDays(ProjectPlan.java:81)
at com.aztecsoft.quality.ProjectPlan.projectSummary(ProjectPlan.java:25)
at com.aztecsoft.quality.ProjectPlan.main(ProjectPlan.java:126)
Thanks in advance.Hi this is gopi,Hyd.Is your Problem "Getting "Error Establishing Socket " error while running the application" solved if so can you reply me i am waiting for this answer
-
The system cannot find the file specified.Windows sockets error code:2.
Hi All,
I am on MDM 5.5 SP6.
I am getting the following error message when trying to logging in to the DM.
The system cannot find the file specified.Windows sockets error code:2.This application will now exit.
Runtime Error :
Program C :\Program Files\SAP MDM 5.5\Data Manager\Datamanager.exe
R6025.
-Pure virtual function call.
And in console also the MDM server is stopped after getting the above error message.
Can anybody tell me what could be the problem?
Thanks & Regards
Sireesha.Hi Sireesha,
According to me, there can be 3 problems,
1. Kindly check whether the MDM server is stopped. If it is, then restart the MDM Server and Load the repository with Update indices.
2. If this error is coming with every repository, the problem will be either in the Version mismatch of the Server and the GUI's you are using. Kindly ensure that the versions for the MDM server and the MDM Gui's Match.
3. If only Data manager Client is giving the problem, then you can un-install and install the DM GUI again.
Along with this, please refer to the link below :
[[The system cannot find the file specified.Windows sockets error code:2.;]
Hope it helps.
Thanks and Regards
Nitin jain -
Socket Programing in J2ME - Confused with Sun Sample Code
Hai Everybody,
I have confused with sample code provided by Sun Inc , for the demo of socket programming in J2ME. I found the code in the API specification of J2ME. The code look like :-
// Create the server listening socket for port 1234
ServerSocketConnection scn =(ServerSocketConnection) Connector.open("socket://:1234");
where Connector.open() method return an interface Connection which is the base interface of ServerSocketConnection. I have confused with this line , is it is possible to cast base class object to the derived class object?
Plese help me in this regards
Thanks in advance
SulfikkarThere is nothing to be confused about. The Connector factory creates an implementation of one of the extentions of the Connection interface and returns it.
For a serversocket "socket://<port>" it will return an implementation of the ServerSocketConnection interface. You don't need to know what the implementation looks like. You'll only need to cast the Connection to a ServerSocketConnection . -
Unrecognized Windows Sockets Error: 0: JVM_Bind
I'm not entirely sure if I compacted this well enough, but after class declaration and method calling, it is essentially what my program does.
Server server = new Server(); // Creates a ServerSocket and binds it to a port.
Client client = new Client(server.getSocketAddress());
public Client(SocketAddress bind)
try
socket = new Socket();
socket.bind(bind); // Problem here
recieve = new Scanner(socket.getInputStream());
send = new Formatter(socket.getOutputStream());
catch (IOException e)
e.printStackTrace();
}Running the above code produces the following exception.
java.net.SocketException: Unrecognized Windows Sockets error: 0: JVM_Bind
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(Unknown Source)
at java.net.Socket.bind(Unknown Source)
at GameObjects.PlayArea$Client.<init>(PlayArea.java:318)
at GameObjects.PlayArea.<init>(PlayArea.java:48)
at MenuStates.GamePlayState.initializePlayArea(GamePlayState.java:90)
at MenuStates.CreateGameState.mouseClicked(CreateGameState.java:106)
at Manager.GameManager.mouseClicked(GameManager.java:428)
at java.awt.Component.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Window.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)I don't even know what this exception is, and I can't find anything that will really tell me what is going on. Can anyone tell me what is happening here?
I know that this question isn't directly related to Game Development, but I am using it in a game program, and I posted this question in the Network forum, and they flooded my topic with useless messages, and the only person who actually answered my question was extremely vague about it, even after I asked him to clarify. I am hoping that the good people of this forum will be more helpful.In some cases, the server socket used to need more time to be available. If you run several test, you need time to reuse the same port (for Windows 7). I could try the following code:
Server server = new Server(); // Creates a ServerSocket and binds it to a port.
Thread.sleep(500); // Waiting for server to be available
Client client = new Client(server.getSocketAddress());
public Client(SocketAddress bind)
try
socket = new Socket();
socket.bind(bind); // Problem here
recieve = new Scanner(socket.getInputStream());
send = new Formatter(socket.getOutputStream());
Thread.sleep(500); // Time to execute the sme port in another test.
catch (IOException e)
e.printStackTrace();
} -
Unrecognized Windows Sockets error: 10106: create
Am getting the following error when I use tcp-mon to sniff the HTTP traffic. Same when I use SOAP-UI.
I'm using windows 7 and using "jdk1.6.0_13". Any help on this pls .
java.net.SocketException: Unrecognized Windows Sockets error: 10106: create
at java.net.Socket.createImpl(Socket.java:388)
at java.net.Socket.<init>(Socket.java:362)
at java.net.Socket.<init>(Socket.java:180)
at org.apache.ws.commons.tcpmon.SocketWaiter.halt(SocketWaiter.java:98)
at org.apache.ws.commons.tcpmon.Listener.stop(Listener.java:543)
at org.apache.ws.commons.tcpmon.SocketWaiter.run(SocketWaiter.java:87)Winsock error 10106. 8 seconds in Google. Looks like something wrong with your operating system installation.
-
Unrecognized Windows Sockets error...
Hello everybody!
I am encountering the following problem, when I try to run a program which wants to access the internet. I pasted an extract from the source code here, which I think includes the critical lines:
import java.net.*;
import java.io.*;
class FindLinks {
public static Vector findLinks (String address) throws Exception {
URL u = new URL(address);
InputStream ins = u.openStream();
InputStreamReader isr = new InputStreamReader(ins);
BufferedReader webPage = new BufferedReader(isr);
When I run the complete program, I get the following message:
Exception in thread "main" java.net.SocketException: Unrecognized Windows Sockets error: 10106: create
at java.net.Socket.createImpl(Socket.java:313)
at java.net.Socket.connect(Socket.java:424)
at java.net.Socket.connect(Socket.java:376)
at sun.net.NetworkClient.doConnect(NetworkClient.java:139)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:386)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:602)
at sun.net.www.http.HttpClient.<init>(HttpClient.java:303)
at sun.net.www.http.HttpClient.<init>(HttpClient.java:264)
at sun.net.www.http.HttpClient.New(HttpClient.java:336)
at sun.net.www.http.HttpClient.New(HttpClient.java:317)
at sun.net.www.http.HttpClient.New(HttpClient.java:312)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect HttpURLConnection.java:481)
at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:472)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:574)
at java.net.URL.openStream(URL.java:960)
at FindLinks.findLinks(FindLinks.java:10)
at FindLinks.main(FindLinks.java:47)
I am using the new Java SDK 1.41 on a Windows XP machine. Does anyone has an idea what might be causing this problem?
Kind regards
LinusI know, but you triple posted
-
Hi Experts.
when i try to export repository schema (or) Export Change file from the console, it is displaying "Socket Error on Recieve" and i am unable to perform any kind of operation.
I have repaired, refreshed, stoped and started repository and server, but i didn't get any progress on this.
Is any additional settings or operations need to perform at repository or MDM server level...?
Can any one help me what would be the reason for this problem...?
If this is a network issue, then what kind of things need to consider to resolve it..?
Thanks
BharatHI Bharat,
This is more to do with MDM server to Data base connectivity.
I think restarting the server can solve your problem,if it does not then check if the same problem exists for other repositories also.Also,check the MDS log file entry.
Thanks,
Ravi -
have this configuration on ASR1002F router. Trying to setup IP Sla so that we can monitor the delay on WAN interfaces. Would like to send UDP-ECHO from one router to another across the WAN. I need to send and receive on fixed port numbers. Keep getting socket errors. any ideas on what i need to do?
no ip sla 5
ip sla 5
udp-echo <dest ip> 65000 source-port 65000 control disable
frequency 5
ip sla schedule 5 life forever start-time now
exitWas there a "source-ip xx.xx.xx.xx" portion on the "udp-echo 65000 source-port 65000 control disable" line?
-
No more data to read from socket error.
Oracle Version
SQL> select * from v$version;
BANNER
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
PL/SQL Release 11.2.0.2.0 - Production
CORE 11.2.0.2.0 Production
TNS for Linux: Version 11.2.0.2.0 - Production
NLSRTL Version 11.2.0.2.0 - ProductionI am trying a code like below
MERGE INTO TABLE1
( SELECT ...
FROM VIEW1 ) a UNPIVOT ("VALS" FOR cols IN ( .....columns to unpivot.......))
where a.column1='test'
) b ON ( a.id=b.id)
WHEN MATCHED THEN
UPDATE set a.name=b.name
when not matched then
insert (a.id,a.name) values ( b.id,b.name);This code is giving error : No more data to read from socket error.
But when I am trying
MERGE INTO TABLE1
( SELECT ...
FROM VIEW1*
where a.column1='test' ) a UNPIVOT ("VALS" FOR cols IN ( .....columns to unpivot.......))
) b ON ( a.id=b.id)
WHEN MATCHED THEN
UPDATE set a.name=b.name
when not matched then
insert (a.id,a.name) values ( b.id,b.name);It's working properly.
Any idea why I am getting error with code 1?
Edited by: Anupam_Halder on Oct 4, 2012 2:13 PMYou need to look for an Oracle specific error code and message. The error text you have posted does not seem to be an Oracle error.
The error however could result from an ORA-3113 end-of-file on communication channel.
This Oracle error means that the Oracle server process servicing your request (executing SQL or PL/SQL code) ran into a fatal error (potentially an Oracle bug). The server process then proceeds with a "crash dump" - writes an error to the database instance's alert log, writes a trace file and then terminiates abnormally.
It terminates without telling the client and without tearing down the tcp client-server connection. When the client then attempts to use this connection, the socket read fails. No data to read as the socket connection no longer exists.
But this is speculation - we need to see the actual Oracle error (from the server or from the client driver). And you seem to be using an Oracle client that suppresses Oracle error codes and text. Which places a serious question mark over the actual usability of such client s/w for Oracle client-server. -
hi
in terminal, i am seeing this message.
[AGENT] socket error: [object XrayWrapper [object Event]]; readyState=3. Perhaps Helper is not running on ws://127.0.0.1:14821/2 or is shutting down?
is something missing that should be running
i dont understand this message
thankyousolved. was a firefox addon called 1password
solved by deleting the desktop version of hte app and reinstalling
1password support was useless. didnt even know a piece of their own software. suggested it was a ffox profile issue. red herring. -
Hi,
I'm getting this error when attempting to send messages to a domain rcmoore.com. I'm unable to send or receive messages from this domain. And my exchange 2010 queue viewer gives me an error
: 451.4.4.0 Primary target ip address responded with 421.4.4.2 connection dropped due to socket error " attempted failover to alternate host, but did not
succeed. Either there are no alternate hosts, or delivery failed to all alternate hosts.
Please help.
Subin SureshHello Subin,
Have you tried a telnet to port 25 of the sending domain from the Hub transport/edge (if edge is presented)? This is required a success send. If this is not an issue, try Unchecking of "Enable Domain Security" at the properties
of the send connector and do a test
Regards from Visit ExchangeOnline |
Visit WindowsAdmin
Maybe you are looking for
-
Can I save the filename as a keyword on importing?
I'd like to automatically save each photo filename as a keyword for that photo, so if the file name is changed later through different versions it retains the original filename within its EXIF information to identify it, preferably while importing it
-
I downloaded a movie to my new IPAD 3 from itunes and now I cannot find it on my device. Can someone help?
-
Casting, generics and unchecked expressions
Hi I'm trying to access a vector of Recommendations held by a Person object, but I don't want to allow direct access to the vector, just the information contained in it public Vector<Recommendation> getRecommendations() { return((Vector<Recommen
-
hi, i am trying out base64 encoding in java.The version i have installed is j2sdk1.4.2_08. import oracle.xml.parser.v2.DOMParser; import oracle.xml.parser.v2.XMLDocument; import org.apache.soap.encoding.soapenc.Base64; these import statements are not
-
MDX calculated measure causing performance issue
The calculated measure below against all product members is causing the excel pivot table to hang indefinitely. Any help on how to optimize the query for better performance? SCOPE ([MEASURES].[DIDaysInMonth]); THIS = CASE WHEN [Measures].[MonthDiffer