zip exception invalid LOC header (bad signature)

1,274 views
Skip to first unread message

Ketan Bhavsar

unread,
Feb 12, 2020, 4:31:31 AM2/12/20
to pushy
Hi,

I have used below maven for my configuration to use Pushy. 

<dependency>
<groupId>com.turo</groupId>
<artifactId>pushy</artifactId>
 <version>0.13.9</version>
</dependency>


I am getting below error every time.

Caused by: java.lang.IllegalArgumentException: java.util.zip.ZipException: invalid LOC header (bad signature)
at org.apache.catalina.webresources.JarResourceSet.initInternal(JarResourceSet.java:139)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
... 12 more
Caused by: java.util.zip.ZipException: invalid LOC header (bad signature)
at java.util.zip.ZipFile.read(Native Method)
at java.util.zip.ZipFile.access$1400(Unknown Source)

Jon Chambers

unread,
Feb 16, 2020, 4:27:40 PM2/16/20
to pushy
What are you trying to do when you get that exception? Are you trying to send a notification?

-Jon

Ketan Bhavsar

unread,
Feb 16, 2020, 10:13:26 PM2/16/20
to Jon Chambers, pushy
My ultimate goal is to send notification but this issue came after maven dependency add and then start the project. So, it looks issue might be related to package. Might be I am wrong and issue is in my system only.

--
Pushy is an open-source Java library for sending APNs (iOS and OS X) push notifications. Pushy is brought to you by the engineers at RelayRides.
---
You received this message because you are subscribed to the Google Groups "pushy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pushy-apns+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pushy-apns/744b91e4-ec36-4474-b3cb-68d9872b5143%40googlegroups.com.

Jon Chambers

unread,
Feb 17, 2020, 12:29:10 PM2/17/20
to pushy
I'm not able to reproduce the issue myself, and I strongly suspect we would have heard more about the problem if it were widespread. Regrettably, that leads me to suspect that the problem may be isolated to your system. My recommendation would be to try clearing your Maven cache and then just trying again: https://stackoverflow.com/a/22671261

-Jon

On Sunday, February 16, 2020 at 10:13:26 PM UTC-5, Ketan Bhavsar wrote:
My ultimate goal is to send notification but this issue came after maven dependency add and then start the project. So, it looks issue might be related to package. Might be I am wrong and issue is in my system only.

On Mon, Feb 17, 2020, 2:57 AM Jon Chambers <jon.c...@gmail.com> wrote:
What are you trying to do when you get that exception? Are you trying to send a notification?

-Jon

On Wednesday, February 12, 2020 at 4:31:31 AM UTC-5, Ketan Bhavsar wrote:
Hi,

I have used below maven for my configuration to use Pushy. 

<dependency>
<groupId>com.turo</groupId>
<artifactId>pushy</artifactId>
 <version>0.13.9</version>
</dependency>


I am getting below error every time.

Caused by: java.lang.IllegalArgumentException: java.util.zip.ZipException: invalid LOC header (bad signature)
at org.apache.catalina.webresources.JarResourceSet.initInternal(JarResourceSet.java:139)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
... 12 more
Caused by: java.util.zip.ZipException: invalid LOC header (bad signature)
at java.util.zip.ZipFile.read(Native Method)
at java.util.zip.ZipFile.access$1400(Unknown Source)

--
Pushy is an open-source Java library for sending APNs (iOS and OS X) push notifications. Pushy is brought to you by the engineers at RelayRides.
---
You received this message because you are subscribed to the Google Groups "pushy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pushy...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages