Code Monkey home page Code Monkey logo

Comments (10)

GoogleCodeExporter avatar GoogleCodeExporter commented on May 22, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 22, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 22, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 22, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 22, 2024
Please send more of the debugging output

Original comment by [email protected] on 27 Dec 2010 at 5:30

from javapns.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 22, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 22, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 22, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 22, 2024
Greg, were you able to solve the issue?

Original comment by [email protected] on 7 Sep 2011 at 1:15

from javapns.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 22, 2024
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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.