NotifyUtil::java.net.SocketException: Connection reset

UI Components for JSF
Post Reply
gouravgarg
Posts: 3
Joined: 05 Jun 2014, 09:06

05 Jun 2014, 09:15

Hey I am new to Primefaces Mobile Development.

Version Info :
PrimeFaces 5.0
JSTL 1.1
JSF 2.1
Netbeans 7.2.1
JDK1.6
Ubuntu 12.10 x64
Tomcat 7.0.27

I created simple web project I am facing socket connection error. So not able to perform any action . I just want to create login page.

Code: Select all

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui"
      xmlns:pm="http://primefaces.org/mobile">
    <f:view renderKitId="PRIMEFACES_MOBILE" />
    <h:head>
    </h:head>
    <h:body>
        <pm:page>
            <pm:header title="Login Page"></pm:header>
        </pm:page>
    </h:body>
</html>
ERROR

Code: Select all

NotifyUtil::java.net.SocketException: Connection reset
	at java.net.SocketInputStream.read(SocketInputStream.java:189)
	at java.net.SocketInputStream.read(SocketInputStream.java:121)
	at java.io.BufferedInputStream.fill(BufferedInputStream.java:235)
	at java.io.BufferedInputStream.read1(BufferedInputStream.java:275)
	at java.io.BufferedInputStream.read(BufferedInputStream.java:334)
	at java.io.FilterInputStream.read(FilterInputStream.java:133)
	at sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(HttpURLConnection.java:3035)
	at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:283)
	at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:325)
	at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:177)
	at java.io.InputStreamReader.read(InputStreamReader.java:184)
	at java.io.BufferedReader.fill(BufferedReader.java:154)
	at java.io.BufferedReader.readLine(BufferedReader.java:317)
	at java.io.BufferedReader.readLine(BufferedReader.java:382)
	at org.netbeans.modules.web.monitor.server.NotifyUtil$RecordSender.run(NotifyUtil.java:299)

NotifyUtil::java.net.SocketException: Connection reset
	at java.net.SocketInputStream.read(SocketInputStream.java:189)
	at java.net.SocketInputStream.read(SocketInputStream.java:121)
	at java.io.BufferedInputStream.fill(BufferedInputStream.java:235)
	at java.io.BufferedInputStream.read1(BufferedInputStream.java:275)
	at java.io.BufferedInputStream.read(BufferedInputStream.java:334)
	at java.io.FilterInputStream.read(FilterInputStream.java:133)
	at sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(HttpURLConnection.java:3035)
	at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:283)
	at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:325)
	at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:177)
	at java.io.InputStreamReader.read(InputStreamReader.java:184)
	at java.io.BufferedReader.fill(BufferedReader.java:154)
	at java.io.BufferedReader.readLine(BufferedReader.java:317)
	at java.io.BufferedReader.readLine(BufferedReader.java:382)
	at org.netbeans.modules.web.monitor.server.NotifyUtil$RecordSender.run(NotifyUtil.java:299)

gouravgarg
Posts: 3
Joined: 05 Jun 2014, 09:06

05 Jun 2014, 09:38

If I am removing following line then exception is not there .

Code: Select all

<f:view renderKitId="PRIMEFACES_MOBILE" />

kukeltje
Expert Member
Posts: 9605
Joined: 17 Jun 2010, 13:34
Location: Netherlands

05 Jun 2014, 21:51

Seems like netbeans errors and not PF related (there is at least no PF in the stacktrace...) Any errors in the browser developer tool (if you have that, or otherwise in Firebug)

gouravgarg
Posts: 3
Joined: 05 Jun 2014, 09:06

10 Jun 2014, 11:00

Code: Select all

Listening for transport dt_socket at address: 11555
10-Jun-2014 14:24:12.617 INFO [main] org.apache.catalina.core.AprLifecycleListener.init The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /home/gouravgarg/apps/jdk1.8.0/jre/lib/amd64:/home/gouravgarg/apps/jdk1.8.0/jre/lib/i386::/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
10-Jun-2014 14:24:12.951 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-8084"]
10-Jun-2014 14:24:12.968 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
10-Jun-2014 14:24:12.971 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["ajp-nio-8009"]
10-Jun-2014 14:24:12.976 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
10-Jun-2014 14:24:12.977 INFO [main] org.apache.catalina.startup.Catalina.load Initialization processed in 712 ms
10-Jun-2014 14:24:13.009 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service Catalina
10-Jun-2014 14:24:13.009 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.0.3
10-Jun-2014 14:24:13.024 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDescriptor Deploying configuration descriptor /home/gouravgarg/.netbeans/8.0/apache-tomcat-8.0.3.0_base/conf/Catalina/localhost/ROOT.xml
10-Jun-2014 14:24:13.507 INFO [localhost-startStop-1] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
10-Jun-2014 14:24:13.562 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDescriptor Deploying configuration descriptor /home/gouravgarg/.netbeans/8.0/apache-tomcat-8.0.3.0_base/conf/Catalina/localhost/manager.xml
10-Jun-2014 14:24:13.705 INFO [localhost-startStop-1] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
10-Jun-2014 14:24:13.718 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-8084"]
10-Jun-2014 14:24:13.725 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["ajp-nio-8009"]
10-Jun-2014 14:24:13.728 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 750 ms
10-Jun-2014 14:24:14.513 INFO [http-nio-8084-exec-3] org.apache.catalina.startup.HostConfig.deployDescriptor Deploying configuration descriptor /home/gouravgarg/.netbeans/8.0/apache-tomcat-8.0.3.0_base/conf/Catalina/localhost/pf_java.xml
10-Jun-2014 14:24:14.521 WARNING [http-nio-8084-exec-3] org.apache.catalina.startup.SetContextPropertiesRule.begin [SetContextPropertiesRule]{Context} Setting property 'antiJARLocking' to 'true' did not find a matching property.
10-Jun-2014 14:24:16.047 INFO [http-nio-8084-exec-3] com.sun.faces.config.ConfigureListener.contextInitialized Initializing Mojarra 2.2.4 ( 20131003-1354 https://svn.java.net/svn/mojarra~svn/tags/2.2.4@12574) for context '/pf_java'
10-Jun-2014 14:24:16.247 INFO [http-nio-8084-exec-3] null.null JSF1048: PostConstruct/PreDestroy annotations present.  ManagedBeans methods marked with these annotations will have said annotations processed.
10-Jun-2014 14:24:17.154 INFO [http-nio-8084-exec-3] org.primefaces.webapp.PostConstructApplicationEventListener.processEvent Running on PrimeFaces 5.0
10-Jun-2014 14:24:17.356 INFO [http-nio-8084-exec-4] org.apache.catalina.util.LifecycleBase.start The start() method was called on component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/pf_java]] after start() had already been called. The second call will be ignored.
NotifyUtil::java.net.SocketException: Connection reset
	at java.net.SocketInputStream.read(SocketInputStream.java:189)
	at java.net.SocketInputStream.read(SocketInputStream.java:121)
	at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)
	at java.io.BufferedInputStream.read1(BufferedInputStream.java:286)
	at java.io.BufferedInputStream.read(BufferedInputStream.java:345)
	at java.io.FilterInputStream.read(FilterInputStream.java:133)
	at sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(HttpURLConnection.java:3322)
	at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:284)
	at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:326)
	at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:178)
	at java.io.InputStreamReader.read(InputStreamReader.java:184)
	at java.io.BufferedReader.fill(BufferedReader.java:161)
	at java.io.BufferedReader.readLine(BufferedReader.java:324)
	at java.io.BufferedReader.readLine(BufferedReader.java:389)
	at org.netbeans.modules.web.monitor.server.NotifyUtil$RecordSender.run(NotifyUtil.java:299)


Any help ....

Thank you in Advance .

kukeltje
Expert Member
Posts: 9605
Joined: 17 Jun 2010, 13:34
Location: Netherlands

11 Jun 2014, 15:44

kukeltje wrote:...Any errors in the browser developer tool (if you have that, or otherwise in Firebug)

srbala
Posts: 139
Joined: 02 May 2010, 01:06

12 Jun 2014, 03:33

Based on information given here it seems like two issues.

Code: Select all

10-Jun-2014 14:24:17.356 INFO [http-nio-8084-exec-4] org.apache.catalina.util.LifecycleBase.start The start() method was called on component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/pf_java]] after start() had already been called. The second call will be ignored.
seems like context tried to load second time.

Code: Select all

NotifyUtil::java.net.SocketException: Connection reset
   at java.net.SocketInputStream.read(SocketInputStream.java:189)
   at java.net.SocketInputStream.read(SocketInputStream.java:121)
   at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)
   at java.io.BufferedInputStream.read1(BufferedInputStream.java:286)
   at java.io.BufferedInputStream.read(BufferedInputStream.java:345)
   at java.io.FilterInputStream.read(FilterInputStream.java:133)
   at sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(HttpURLConnection.java:3322)
   at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:284)
   at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:326)
   at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:178)
   at java.io.InputStreamReader.read(InputStreamReader.java:184)
   at java.io.BufferedReader.fill(BufferedReader.java:161)
   at java.io.BufferedReader.readLine(BufferedReader.java:324)
   at java.io.BufferedReader.readLine(BufferedReader.java:389)
   at org.netbeans.modules.web.monitor.server.NotifyUtil$RecordSender.run(NotifyUtil.java:299)
Exception looks like bug reported with netbeans https://netbeans.org/bugzilla/show_bug.cgi?id=207123

Best option would be check the Tomcat installation has logs folder, which has server logs which might help forfurther more information. I would recommend following steps ...
1. Undeploy the application,
2. Stop the server
3. Clear the log folder
4. Start server
5. Deploy the application

If you still have the error stop the server and check the log folder for the catalina logs. It should give more detailed error why application failed to start. If you have difficulties resolve it, post the server log here.

jasmeen
Posts: 1
Joined: 17 Feb 2016, 13:47

17 Feb 2016, 13:48

Any errors in the browser developer tool (if you have that, or otherwise in Firebug)

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: Google [Bot] and 53 guests