[Aerogear-users] WeldException: duplicate class definition

mo michi.oshima at gmail.com
Mon Jul 6 14:34:33 EDT 2015


Hi,

I'm not sure the significance of this, but I'm going to report an error I'm
seeing.  Scenario is a bit complicated and may not be relevant to anything
or anybody, so I apologize beforehand.

Again, I use:
https://github.com/aerogear/openshift-origin-cartridge-aerogear-push

I get the following error when I attempt to attempt a duplicate
registration.  That is, when I attempt to register the same item the second
time.

Error:

2015/07/06 13:27:50,138 ERROR
[org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/ag-push].[org.jboss.aerogear.unifiedpush.rest.RestApplication]]
(http-127.5.38.1-127.5.38.1-8080-3) Servlet.service() for servlet
org.jboss.aerogear.unifiedpush.rest.RestApplication threw exception:
org.jboss.weld.exceptions.WeldException: by java.lang.LinkageError: loader
(instance of  org/jboss/modules/ModuleClassLoader): attempted  duplicate
class definition for name:
"org/jboss/weldx/persistence/EntityManager$-1934315144$Proxy$_$$_Weld$Proxy$"

Why do I do duplicate registration?  Not for any good reason.  It's because:

1. I'm currently testing reconnection (navigator.push.reconnect()).
2. I cannot determine whether I've registered with unified push server
previously.  (See one of my recent posts for details.)  So I end up
attempting registration with unified push server when I reconnect.

Note:

1. My client application registers 8 channels.
2. Unified push server doesn't fail all 8 duplicate registrations.  It fails
about a half of them randomly.  
3. Just to show that I did some research:  a ticket that mentions a similar
error <https://developer.jboss.org/thread/197298?tstart=0>  .  It's funny,
the ticket was filed for aerogear, apparently by mistake.

If anyone is interested, I can make an entire server.log that contains the
error and its context.





--
View this message in context: http://aerogear-users.1116366.n5.nabble.com/WeldException-duplicate-class-definition-tp110.html
Sent from the aerogear-users mailing list archive at Nabble.com.


More information about the Aerogear-users mailing list