You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@karaf.apache.org by Ravi <ra...@motivitylabs.com> on 2019/06/20 13:08:18 UTC

Proguard is not working in karaf 4.2.6

Hi Team
After we are upgraded our application from karaf 4.2.2 to 4.2.6 when
proguarding the compilation is failing below warning followed by exception.

[proguard] Warning: class
[META-INF/versions/9/javax/xml/bind/ModuleUtil.class] unexpectedly contains
class [javax.xml.bind.ModuleUtil]

[proguard] Warning: there were 1 classes in incorrectly named files.
[proguard] You should make sure all file names correspond to their class
names.
[proguard] The directory hierarchies must correspond to the package
hierarchies.
[proguard]
(proguard.sourceforge.net/manual/troubleshooting.html#unexpectedclass)
[proguard] If you don't mind the mentioned classes not being written out,
[proguard] you could try your luck using the '-ignorewarnings' option.
[proguard] java.io.IOException: Please correct the above warnings first.
[proguard] at proguard.InputReader.execute(InputReader.java:149)
[proguard] at proguard.ProGuard.readInput(ProGuard.java:255)
[proguard] at proguard.ProGuard.execute(ProGuard.java:96)
[proguard] at proguard.ProGuard.main(ProGuard.java:572)
[proguard] Reading library jar [C:\Program
Files\Java\jdk1.8.0_192\jre\lib\jsse.jar]
[proguard] Reading library jar [C:\Program
Files\Java\jdk1.8.0_192\jre\lib\jce.jar]

Any suggestions or help please.

Thanks,
Ravi



--
Sent from: http://karaf.922171.n3.nabble.com/Karaf-Dev-f930721.html

Re: Proguard is not working in karaf 4.2.6

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Oh I didn't see your message, thanks Fabian !

Regards
JB

On 20/06/2019 15:29, Fabian Lange wrote:
> Thats a proguard bug. This is a correct multi release jar file
> https://openjdk.java.net/jeps/238
> https://www.baeldung.com/java-multi-release-jar
> 
> Fabian
> 
> On Thu, Jun 20, 2019 at 3:16 PM Ravi <ra...@motivitylabs.com> wrote:
>>
>> Hi Team
>> After we are upgraded our application from karaf 4.2.2 to 4.2.6 when
>> proguarding the compilation is failing below warning followed by exception.
>>
>> [proguard] Warning: class
>> [META-INF/versions/9/javax/xml/bind/ModuleUtil.class] unexpectedly contains
>> class [javax.xml.bind.ModuleUtil]
>>
>> [proguard] Warning: there were 1 classes in incorrectly named files.
>> [proguard] You should make sure all file names correspond to their class
>> names.
>> [proguard] The directory hierarchies must correspond to the package
>> hierarchies.
>> [proguard]
>> (proguard.sourceforge.net/manual/troubleshooting.html#unexpectedclass)
>> [proguard] If you don't mind the mentioned classes not being written out,
>> [proguard] you could try your luck using the '-ignorewarnings' option.
>> [proguard] java.io.IOException: Please correct the above warnings first.
>> [proguard] at proguard.InputReader.execute(InputReader.java:149)
>> [proguard] at proguard.ProGuard.readInput(ProGuard.java:255)
>> [proguard] at proguard.ProGuard.execute(ProGuard.java:96)
>> [proguard] at proguard.ProGuard.main(ProGuard.java:572)
>> [proguard] Reading library jar [C:\Program
>> Files\Java\jdk1.8.0_192\jre\lib\jsse.jar]
>> [proguard] Reading library jar [C:\Program
>> Files\Java\jdk1.8.0_192\jre\lib\jce.jar]
>>
>> Any suggestions or help please.
>>
>> Thanks,
>> Ravi
>>
>>
>>
>> --
>> Sent from: http://karaf.922171.n3.nabble.com/Karaf-Dev-f930721.html

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Re: Proguard is not working in karaf 4.2.6

Posted by Fabian Lange <la...@gmail.com>.
Thats a proguard bug. This is a correct multi release jar file
https://openjdk.java.net/jeps/238
https://www.baeldung.com/java-multi-release-jar

Fabian

On Thu, Jun 20, 2019 at 3:16 PM Ravi <ra...@motivitylabs.com> wrote:
>
> Hi Team
> After we are upgraded our application from karaf 4.2.2 to 4.2.6 when
> proguarding the compilation is failing below warning followed by exception.
>
> [proguard] Warning: class
> [META-INF/versions/9/javax/xml/bind/ModuleUtil.class] unexpectedly contains
> class [javax.xml.bind.ModuleUtil]
>
> [proguard] Warning: there were 1 classes in incorrectly named files.
> [proguard] You should make sure all file names correspond to their class
> names.
> [proguard] The directory hierarchies must correspond to the package
> hierarchies.
> [proguard]
> (proguard.sourceforge.net/manual/troubleshooting.html#unexpectedclass)
> [proguard] If you don't mind the mentioned classes not being written out,
> [proguard] you could try your luck using the '-ignorewarnings' option.
> [proguard] java.io.IOException: Please correct the above warnings first.
> [proguard] at proguard.InputReader.execute(InputReader.java:149)
> [proguard] at proguard.ProGuard.readInput(ProGuard.java:255)
> [proguard] at proguard.ProGuard.execute(ProGuard.java:96)
> [proguard] at proguard.ProGuard.main(ProGuard.java:572)
> [proguard] Reading library jar [C:\Program
> Files\Java\jdk1.8.0_192\jre\lib\jsse.jar]
> [proguard] Reading library jar [C:\Program
> Files\Java\jdk1.8.0_192\jre\lib\jce.jar]
>
> Any suggestions or help please.
>
> Thanks,
> Ravi
>
>
>
> --
> Sent from: http://karaf.922171.n3.nabble.com/Karaf-Dev-f930721.html

Re: Proguard is not working in karaf 4.2.6

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
AFAIK it's a proguard issue.

Regards
JB

On 20/06/2019 15:08, Ravi wrote:
> Hi Team
> After we are upgraded our application from karaf 4.2.2 to 4.2.6 when
> proguarding the compilation is failing below warning followed by exception.
> 
> [proguard] Warning: class
> [META-INF/versions/9/javax/xml/bind/ModuleUtil.class] unexpectedly contains
> class [javax.xml.bind.ModuleUtil]
> 
> [proguard] Warning: there were 1 classes in incorrectly named files.
> [proguard] You should make sure all file names correspond to their class
> names.
> [proguard] The directory hierarchies must correspond to the package
> hierarchies.
> [proguard]
> (proguard.sourceforge.net/manual/troubleshooting.html#unexpectedclass)
> [proguard] If you don't mind the mentioned classes not being written out,
> [proguard] you could try your luck using the '-ignorewarnings' option.
> [proguard] java.io.IOException: Please correct the above warnings first.
> [proguard] at proguard.InputReader.execute(InputReader.java:149)
> [proguard] at proguard.ProGuard.readInput(ProGuard.java:255)
> [proguard] at proguard.ProGuard.execute(ProGuard.java:96)
> [proguard] at proguard.ProGuard.main(ProGuard.java:572)
> [proguard] Reading library jar [C:\Program
> Files\Java\jdk1.8.0_192\jre\lib\jsse.jar]
> [proguard] Reading library jar [C:\Program
> Files\Java\jdk1.8.0_192\jre\lib\jce.jar]
> 
> Any suggestions or help please.
> 
> Thanks,
> Ravi
> 
> 
> 
> --
> Sent from: http://karaf.922171.n3.nabble.com/Karaf-Dev-f930721.html
> 

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com