Comments (10)
In log4j enable debugging, this should give more info...
as per:
http://code.google.com/p/javapns/wiki/Tips
Does it work with the test code:
http://code.google.com/p/javapns/wiki/WorkingFeedbackExample
How are you passing your certificate to the feedbackManager?
Original comment by [email protected]
on 25 Dec 2010 at 12:20
from javapns.
I have enabled the log4j debugging and I have set the JVM argument as well.
Yes, the WorkingFeedbackExample works for me. I am passing certificate to the
to feedback manager the same way as the WorkingFeedbackExample.
Here is the debug line from log4j just before the exception:
[#|2010-12-26T16:04:00.022-0700|INFO|oracle-glassfish3.0.1|javax.enterprise.syst
em.std.com.sun.enterprise.v3.services.impl|_ThreadID=29;_ThreadName=Thread-1;|16
:04:00,022 DefaultQuartzScheduler_Worker-1 DEBUG
[javapns.back.FeedbackServiceManager] Retrieving Devices from Host:
[feedback.push.apple.com] Port: [2196] with KeyStorePath
[/Users/gregpearman/Documents/LiquidMedia/MobileDev/Keys/PushCertificate.p12]/[P
KCS12]
|#]
I have also verified that the password is being passed and it is the correct
value.
The second time the feedback manager is called (I'm using the JBoss SEAM Quartz
integration to schedule the feedback callout), I get this error:
Caused by: java.lang.NoClassDefFoundError: Could not initialize class
javapns.back.SSLConnectionHelper
at javapns.back.FeedbackServiceManager.getDevices(Unknown Source)
at me.loyal2.service.apns.FeedbackService.refreshIphones(FeedbackService.java:84)
... 53 more
I'm still not seeing what the issue is.
Original comment by [email protected]
on 26 Dec 2010 at 11:21
from javapns.
You say 'the second time the feedback manager is called'... so this runs fine
the first time.. but not the 2nd+ time?
I wonder if there is an issue where the scheduler is trying to re-use the
SSLConnectionHelper at which point the connection has dropped.
But it sounds like the issue has to do with the way the scheduler is calling
the feedback function.
Original comment by [email protected]
on 27 Dec 2010 at 8:24
from javapns.
Actual. No, It fails all the time. It's just that the first time, it get the
original NullPointerException and the second time it get's the
NoClassDefFoundError.
Original comment by [email protected]
on 27 Dec 2010 at 4:35
from javapns.
Please send more of the debugging output
Original comment by [email protected]
on 27 Dec 2010 at 5:30
from javapns.
Attached is the section of the log files for where the feedback service is
being invoked. Please let me know what else I can send to help with this issue.
Original comment by [email protected]
on 27 Dec 2010 at 6:43
Attachments:
from javapns.
As per:
http://stackoverflow.com/questions/899057/hibernate-in-glassfish-ejb3configurati
on-noclassdeffounderror
The error would seem to indicate the JVM was unable to load the class. I
vaguely recall that Glassfish using BouncyCastle...
and I wonder if there is a conflict.
Interesting... tip:
http://bouncy-castle.1462172.n4.nabble.com/Unstable-BouncyCastle-Library-when-de
ployed-in-Glassfish-server-td2312292.html
Original comment by [email protected]
on 27 Dec 2010 at 11:18
from javapns.
Thank you for those links. I will investigate and see if any of the suggestions
in them help resolve this issue and let you know.
Original comment by [email protected]
on 28 Dec 2010 at 8:40
from javapns.
Greg, were you able to solve the issue?
Original comment by [email protected]
on 7 Sep 2011 at 1:15
from javapns.
Closing issue as no feedback was received since issue was reported.
Please feel free to re-open if the issue is still valid.
Original comment by [email protected]
on 14 Sep 2011 at 3:55
- Changed state: Invalid
from javapns.
Related Issues (20)
- thread terminated after reached max msg send HOT 3
- Exception reporting not working for multiple payloads
- Responses not read? HOT 1
- Javapns Communication exception:Connection refused to ConnectionToAppleServer
- support for title-loc-key (ios 8.2)
- Unable to connect APNS - CommunicationException - java.net.ConnectionException : Communication Timed Out HOT 2
- Duplicate notifications being sent out at high rate
- Add content-available to PushNotificationPayload
- Do you support VoIP push notifications?
- javaapns does not supports log4j 2
- Exception java.net.SocketException
- Javapns Notifications SSL Exceptions and Closed Sockets HOT 2
- thead lake
- Version of LGPL used is not documented
- 256 byte max size is outdated for iOS7 HOT 1
- Compatibility with Java 8 HOT 1
- which is latest version for JavaPNS jar?
- Remote host closed connection during handshake
- ProxyManager not have the setProxyBasicAuthorization method
- New Category tag for Actionable Notification
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from javapns.