java.io.IOException - Java - java

I am getting repeatedly below error while running java application on IBM - WebSphere Application Server.
[ 00000024 TCP E org.jgroups.protocols.TP$IncomingPacket run failed handling incoming message
java.io.IOException: failed reading header
at org.jgroups.Message.readHeader(Message.java:757)
at org.jgroups.Message.readFrom(Message.java:643)
at org.jgroups.protocols.TP.readMessage(TP.java:1502)
at org.jgroups.protocols.TP.access$700(TP.java:49)
at org.jgroups.protocols.TP$IncomingPacket.run(TP.java:1804)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:906)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:929)
at java.lang.Thread.run(Thread.java:773)
Caused by: java.io.EOFException
at java.io.DataInputStream.readShort(DataInputStream.java:309)
at org.jgroups.Message.readHeader(Message.java:734)
... 7 more
java.io.IOException: failed reading header
at org.jgroups.Message.readHeader(Message.java:757)
at org.jgroups.Message.readFrom(Message.java:643)
at org.jgroups.protocols.TP.readMessage(TP.java:1502)
at org.jgroups.protocols.TP.access$700(TP.java:49)
at org.jgroups.protocols.TP$IncomingPacket.run(TP.java:1804)
at java.util.concurrent.ThreadPoolExecutor$CallerRunsPolicy.rejectedExecution(ThreadPoolExecutor.java:1763)
at org.jgroups.util.ShutdownRejectedExecutionHandler.rejectedExecution(ShutdownRejectedExecutionHandler.java:39)
at java.util.concurrent.ThreadPoolExecutor.reject(ThreadPoolExecutor.java:779)
at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:667)
at org.jgroups.protocols.TP.dispatchToThreadPool(TP.java:1354)
at org.jgroups.protocols.TP.receive(TP.java:1321)
at org.jgroups.protocols.BasicTCP.receive(BasicTCP.java:258)
at org.jgroups.blocks.BasicConnectionTable.receive(BasicConnectionTable.java:239)
at org.jgroups.blocks.BasicConnectionTable$Connection.run(BasicConnectionTable.java:664)
at java.lang.Thread.run(Thread.java:773)
Caused by: java.io.EOFException
at java.io.DataInputStream.readShort(DataInputStream.java:309)
at org.jgroups.Message.readHeader(Message.java:734)
... 14 more
Application has file export operation. Somehow files are deleted from specified location and whenever I try to run application through above exception continuously. I tried killing java but that too do not help.
Please suggest how to resolve.

Stop IBM Webservice application already started services from services.msc :)

Related

java.net.UnknownHostException in WildFly start

I'm getting the following error when I start up a Java server process (WildFly application server):
Caused by: java.net.UnknownHostException: proxy01.phx2.fedoraproject.org: Name or service not known
at java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method)
at java.net.InetAddress$2.lookupAllHostAddr(InetAddress.java:929)
at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1324)
at java.net.InetAddress.getLocalHost(InetAddress.java:1501)
The server is not harmed by this error, but it bothers me to have this error in the logs. It is something related with my environment. Indeed, the problem happens no matter which version of the server and on any location of my file system.
I have checked in /etc/hosts and /etc/resolv.conf but I really don't have idea where the "proxy01.phx2.fedoraproject.org" comes from.
Any idea?
Thanks

getting Exception in thread "main" java.lang.NoClassDefFoundError: weblogic.descriptor.BeanUpdateListener after applying weblogic 10.3.6 patch

getting error while applying patch on web logic 10.3.6 version .
Exception in thread "main" java.lang.NoClassDefFoundError:
weblogic.descriptor.BeanUpdateListener
Caused by: java.lang.ClassNotFoundException: weblogic.descriptor.BeanUpdateListener
this is the error in log file after applying patch . you need to give the execute permission at /prod/applc/bea1036/wlserver/server/lib directory to newly created .jar files.

Rmi Client cant find Server stub

I have a server project and a client inside it . Server runs fine . Client inside server project runs fine too . But when i create another Client project ,with the interface inside but not the server ofc, i compile it and when i try to run it i get this error . i have read a lot of stuff but nothing works yet, i tried security manager to client , i tried a lot of thinks actually and i keep getting this error, I read also that i need to start a new rmi registry for clients project i tried that to but i can't open a new one
error:
run:
Exception in thread "main" java.rmi.UnmarshalException: error unmarshalling return; nested exception is:
java.lang.ClassNotFoundException: RMIServer03_Stub (no security manager: RMI class loader disabled)
at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
at java.rmi.Naming.lookup(Naming.java:101)
at Client.<init>(Client.java:65)
at Client.main(Client.java:141)
Caused by: java.lang.ClassNotFoundException: RMIServer03_Stub (no security manager: RMI class loader disabled)
at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:396)
at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:186)
at java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:637)
at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:264)
at sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:219)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1620)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1521)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1781)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1353)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:373)
... 4 more
C:\Users\blue-icon\AppData\Local\NetBeans\Cache\8.1\executor-snippets\run.xml:53: Java returned: 1
BUILD FAILED (total time: 1 second)
All you have to to is generate the stub clas with rmic and deploy it to the client.
This is mentioned in every worthwhile RMI tutorial. Rather surprising that you didn't encounter it.

WSDL periodically unavailable on Glassfish

Periodically our Glassfish 4.1 installation seems to be unable to allow the WSDL for our Web service to be available. When I try to reach it through my browser it gives a "connection was reset" error. The typical stack trace from our java applications that consume the services get when this happens is included below. Any ideas what could be causing this? Thanks!
javax.xml.ws.WebServiceException: Failed to access the WSDL at: http://venus:9090/USProjectServices/LingoAtTaskService?wsdl. It failed with:
Got Unexpected end of file from server while opening stream from http://venus:9090/USProjectServices/LingoAtTaskService?wsdl.
at com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.tryWithMex(RuntimeWSDLParser.java:173)
at com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.parse(RuntimeWSDLParser.java:155)
at com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.parse(RuntimeWSDLParser.java:120)
at com.sun.xml.internal.ws.client.WSServiceDelegate.parseWSDL(WSServiceDelegate.java:260)
at com.sun.xml.internal.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:223)
at com.sun.xml.internal.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:171)
at com.sun.xml.internal.ws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:96)
at javax.xml.ws.Service.<init>(Service.java:77)
at com.lingosys.ws.LingoAtTaskService.<init>(LingoAtTaskService.java:42)
at com.ws.test.Tester1.<init>(Tester1.java:27)
at com.ws.test.Tester1.main(Tester1.java:45)
Caused by: java.io.IOException: Got Unexpected end of file from server while opening stream from http://venus:9090/USProjectServices/LingoAtTaskService?wsdl
at com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.createReader(RuntimeWSDLParser.java:842)
at com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.resolveWSDL(RuntimeWSDLParser.java:283)
at com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.parse(RuntimeWSDLParser.java:140)
... 9 more
Caused by: java.net.SocketException: Unexpected end of file from server
at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:718)
at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:579)
at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:715)
at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:579)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1322)
at java.net.URL.openStream(URL.java:1037)
at com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.createReader(RuntimeWSDLParser.java:827)
... 11 more

XML parsing error on file /WEB-INF/web.xml

I am following the tutorial of Google App Engine for JAVA. I have successfully set up the project. When I run the server on my local machine by typing mvn appengine:devserver in the terminal, I get the following warning:
[INFO] WARNING: Your working directory, (/home/xyz/workspace/appengine/guestbook/guestbook-ear/target/guestbook-ear-1.0-SNAPSHOT) is not equal to your
web application root (/home/xyz/workspace/appengine/guestbook/guestbook-ear/target/guestbook-ear-1.0-SNAPSHOT/guestbook-war-1.0-SNAPSHOT.war)
You will not be able to access files from your working directory on the production server.
After that I receive the message :
INFO: Dev App Server is now running
Now when I try to run the webpage by typing http://localhost:8080/ in my browser, I get the following message:
HTTP ERROR 500
Problem accessing /. Reason:
XML parsing error on file /WEB-INF/web.xml
Caused by:
org.apache.jasper.JasperException: XML parsing error on file /WEB-INF/web.xml
...
Caused by: java.net.SocketTimeoutException: Timeout while fetching: http://java.sun.com/dtd/web-app_2_3.dtd
...
Caused by:
java.net.SocketTimeoutException: Timeout while fetching: http://java.sun.com/dtd/web-app_2_3.dtd
...
What should be done?

Categories