Bugs in 2.4.0-RC6 ??

UI Components for JSF
Post Reply
magsam
Posts: 71
Joined: 18 Jun 2012, 17:43
Location: Bavaria, DE
Contact:

20 Oct 2015, 12:42

2.3.4 workes fine . With the new version I get this bugs:

Code: Select all

[2015-10-20T12:28:32.709+0200] [glassfish 4.1] [WARNING] [] [javax.enterprise.web] [tid: _ThreadID=58 _ThreadName=http-listener-1(5)] [timeMillis: 1445336912709] [levelValue: 900] [[
  StandardWrapperValve[Push Servlet]: Servlet.service() for servlet Push Servlet threw exception
java.lang.IllegalStateException: Request is within the scope of a filter or servlet that does not support asynchronous operations
	at org.apache.catalina.connector.Request.startAsync(Request.java:4257)
	at org.apache.catalina.connector.Request.startAsync(Request.java:4234)

[http-listener-1(5)] WARN org.atmosphere.cpr.DefaultBroadcaster - Duplicate resource 9fd12d61-4626-4a15-abc3-257f554f763b. Could be caused by a dead connection not detected by your server. Replacing the old one with the fresh one]]

[2015-10-20T12:28:32.709+0200] [glassfish 4.1] [SEVERE] [] [] [tid: _ThreadID=58 _ThreadName=Thread-15] [timeMillis: 1445336912709] [levelValue: 1000] [[
  [http-listener-1(5)] ERROR org.atmosphere.cpr.AsynchronousProcessor - Interceptor Atmosphere LifeCycle crashed. Processing will continue with other interceptor.]]


[2015-10-20T12:37:41.699+0200] [glassfish 4.1] [SEVERE] [] [] [tid: _ThreadID=45 _ThreadName=Thread-14] [timeMillis: 1445337461699] [levelValue: 1000] [[
  [RunLevelControllerThread-1445337419940] WARN org.atmosphere.cpr.DefaultAsyncSupportResolver - Failed to create AsyncSupport class: class org.atmosphere.container.JSR356AsyncSupport, error: java.lang.reflect.InvocationTargetException]]

[2015-10-20T12:37:41.699+0200] [glassfish 4.1] [SEVERE] [] [] [tid: _ThreadID=45 _ThreadName=Thread-14] [timeMillis: 1445337461699] [levelValue: 1000] [[
  [RunLevelControllerThread-1445337419940] ERROR org.atmosphere.cpr.DefaultAsyncSupportResolver - Real error: class org.atmosphere.container.JSR356AsyncSupport, error: java.lang.IllegalStateException: Not in 'deploy' scope.]]
PrimeFaces 6.1, Extensions 6.1.1 , Mojarra 2.3 , GlassFish Server Open Source Edition 4.1 (build 13) , atmosphere-runtime 2.4.9 , Open Source ERP with Primefaces http://osretail.de/osRetail/

smithh032772
Posts: 6144
Joined: 10 Sep 2011, 21:10

20 Oct 2015, 22:37

it's best for you to inform Jeanfrancois via atmosphere framework google groups mail list. Please report your issues and/or ask your questions, there, and let us know here any/all findings, fixes, [confirmed] bugs [by Jeanfrancois]. Thanks.
Howard

PrimeFaces 6.0, Extensions 6.0.0, Push (Atmosphere 2.4.0)
TomEE+ 1.7.4 (Tomcat 7.0.68), MyFaces Core 2.2.9, JDK8
JUEL 2.2.7 | OmniFaces | EclipseLink-JPA/Derby | Chrome

Java EE 6 Tutorial|NetBeans|Google|Stackoverflow|PrimeFaces|Apache

magsam
Posts: 71
Joined: 18 Jun 2012, 17:43
Location: Bavaria, DE
Contact:

02 Nov 2015, 14:54

use SNAPSHOT

Code: Select all

<dependency>
			<groupId>org.atmosphere</groupId>
			<artifactId>atmosphere-runtime</artifactId>
			<version>2.4.0-SNAPSHOT</version>
		</dependency>
		<dependency>
			<groupId>javax.inject</groupId>
			<artifactId>javax.inject</artifactId>
			<version>1</version>
		</dependency> 
your web.xml

Code: Select all

<servlet>
		<servlet-name>Push Servlet</servlet-name>
		<servlet-class>org.primefaces.push.PushServlet</servlet-class>
		<init-param>
			<param-name>org.atmosphere.cpr.asyncSupport</param-name>
			<param-value>org.atmosphere.container.GlassFishServ30WebSocketSupport</param-value>
		</init-param>
		<init-param>
			<param-name>org.atmosphere.cpr.broadcasterCacheClass</param-name>
			<param-value>org.atmosphere.cache.UUIDBroadcasterCache</param-value>
		</init-param>
		<load-on-startup>1</load-on-startup>
		<async-supported>true</async-supported>
	</servlet>
avoid getting eventBus NPE use this ChatResource becuase the example in the showcase is missing
@Inject
private EventBus eventBus;
@Inject
private RemoteEndpoint endpoint;

Code: Select all

public class ChatResource {

    @PathParam("room")
    private String room;

    @PathParam("user")
    private String username;

    @Inject
    private ServletContext ctx;

    @Inject
    private EventBus eventBus;
    @Inject
    private RemoteEndpoint endpoint;

    @OnOpen
    public void onOpen() {
        eventBus.publish(room + "/*", new Message(String.format("%s has entered the room '%s'",  username, room), true));
    }

    @OnClose
    public void onClose() {
        ChatUsers users= (ChatUsers) ctx.getAttribute("chatUsers");
        users.remove(username);               
        eventBus.publish(room + "/*", new Message(String.format("%s has left the room", username), true));
    }

    @OnMessage(decoders = {MessageDecoder.class}, encoders = {MessageEncoder.class})
    public Message onMessage(Message message) {
        return message;
    }
PrimeFaces 6.1, Extensions 6.1.1 , Mojarra 2.3 , GlassFish Server Open Source Edition 4.1 (build 13) , atmosphere-runtime 2.4.9 , Open Source ERP with Primefaces http://osretail.de/osRetail/

smithh032772
Posts: 6144
Joined: 10 Sep 2011, 21:10

02 Nov 2015, 16:04

magsam wrote:use SNAPSHOT

Code: Select all

<dependency>
			<groupId>org.atmosphere</groupId>
			<artifactId>atmosphere-runtime</artifactId>
			<version>2.4.0-SNAPSHOT</version>
		</dependency>
		<dependency>
			<groupId>javax.inject</groupId>
			<artifactId>javax.inject</artifactId>
			<version>1</version>
		</dependency> 
your web.xml
That's good to know that (latest) 2.4.0-SNAPSHOT helps to solve your issue, since you are using Glassfish. I see that 2.4.0-RC7 includes a fix for GlassFish regression with jsr356.

Your signature (below), says atmosphere 2.4.0-RC6. Do you still have the issue when using atmosphere 2.4.0-RC6? I'm asking, because others may be following your post (and your signature). :)

Code: Select all

atmosphere-runtime 2.4.0-RC6, PrimeFaces 5.3, Mojarra 2.2.11 , GlassFish Server Open Source Edition 4.1 (build 13) , Extensions 3.2.0 ,Omnifaces 2.1, Open Source ERP with Primefaces http://osretail.de/osRetail/
Howard

PrimeFaces 6.0, Extensions 6.0.0, Push (Atmosphere 2.4.0)
TomEE+ 1.7.4 (Tomcat 7.0.68), MyFaces Core 2.2.9, JDK8
JUEL 2.2.7 | OmniFaces | EclipseLink-JPA/Derby | Chrome

Java EE 6 Tutorial|NetBeans|Google|Stackoverflow|PrimeFaces|Apache

magsam
Posts: 71
Joined: 18 Jun 2012, 17:43
Location: Bavaria, DE
Contact:

02 Nov 2015, 17:44

I have testet RC7. For me only 2.4.0-SNAPSHOT works correct.
PrimeFaces 6.1, Extensions 6.1.1 , Mojarra 2.3 , GlassFish Server Open Source Edition 4.1 (build 13) , atmosphere-runtime 2.4.9 , Open Source ERP with Primefaces http://osretail.de/osRetail/

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 27 guests