WeldException: duplicate class definition
by mo
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...
Sent from the aerogear-users mailing list archive at Nabble.com.
9 years, 5 months
Tutorial for moving AeroGear UnifiedPush Server to a new server.
by Tom Krones
I want to move all my device ids to a new server (upgrading openshift installation from 1.0.1 to 1.0.3 or 1.1.0 when it’s out). I have the installation down but I’m not sure how to export/import ids and move the certificates. Is there a step by step guide for moving servers? Is it as easy as exporting a few tables from the MySQL DB and importing them into the new MySQL DB?
Tom
9 years, 5 months
UPS load on startup
by Kelvin Lunsford
I'm developing a mobile app and testing USP 1.0.2 on Wildfly 8.2.0.
Runs great but I've noticed that when the server is restarted registration requests from my mobile app fail until I try to access the ag-push console with a browser and bring up a login page. Then registration works.
Anyone noticed this?
- Kelvin
9 years, 5 months
Find version and update aerogear on OpenShift
by Tom Krones
I would like to make sure I have the latest Aerogear. How can I find out which version I’m running? Also, if I’m not running the latest (most likely), how do I update it?
Thanks,
Tom
Tom
9 years, 5 months