[ 
https://issues.apache.org/jira/browse/JCRVLT-92?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ankush Malhotra updated JCRVLT-92:
----------------------------------
    Description: 
Method getPackage() in the class JcrPackageImpl creates an in memory archive 
instead of a temporary zip.file, but the method 
PackageManagerImpl.rewrap(JcrPackage arg0, ProgressTrackerListener arg1) still 
expects the JcrPackage arg0 to be a file, and not a MemoryArchive.

The call src.getFile() returns null and an NullPointer Exception is thrown in 
the ZipFile method.

/* 175 */ ZipFile zip = new ZipFile(src.getFile(), 1);
Here is the relevant stack trace
{code}
*ERROR* [Default Executor-thread-111] de.fi.myif.modul.impl.ModulServiceImpl 
null 
java.lang.NullPointerException: null 
at java.util.zip.ZipFile.<init>(ZipFile.java:106) 
at 
org.apache.jackrabbit.vault.packaging.impl.PackageManagerImpl.rewrap(PackageManagerImpl.java:175)
 
at 
org.apache.jackrabbit.vault.packaging.impl.PackageManagerImpl.rewrap(PackageManagerImpl.java:143)
 
at 
org.apache.jackrabbit.vault.packaging.impl.JcrPackageManagerImpl.rewrap(JcrPackageManagerImpl.java:539)
 
at 
com.day.jcr.vault.packaging.impl.JrVltJcrPackageManagerAdapter.rewrap(JrVltJcrPackageManagerAdapter.java:144)
 
at 
de.fi.myif.modul.impl.ModulServiceImpl.gebeModulFuerProduktionFrei(ModulServiceImpl.java:370)
 
at 
de.fi.modulfabrik.lieferpaket.test.LieferpaketServiceTest.testAktualisiereLieferpaket(LieferpaketServiceTest.java:162)
 
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 
{code}


  was:
Method getPackage() in the class JcrPackageImpl creates an in memory archive 
instead of a temporary zip.file, but the method 
PackageManagerImpl.rewrap(JcrPackage arg0, ProgressTrackerListener arg1) still 
expects the JcrPackage arg0 to be a file, and not a MemoryArchive.

The call src.getFile() returns null and an NullPointer Exception is thrown in 
the ZipFile method.

/* 175 */ ZipFile zip = new ZipFile(src.getFile(), 1);




> Package rewrap broken for packages smaller than 1mb since introduction of 
> memory archive
> ----------------------------------------------------------------------------------------
>
>                 Key: JCRVLT-92
>                 URL: https://issues.apache.org/jira/browse/JCRVLT-92
>             Project: Jackrabbit FileVault
>          Issue Type: Bug
>          Components: Packaging
>    Affects Versions: 3.1.16
>            Reporter: Ankush Malhotra
>
> Method getPackage() in the class JcrPackageImpl creates an in memory archive 
> instead of a temporary zip.file, but the method 
> PackageManagerImpl.rewrap(JcrPackage arg0, ProgressTrackerListener arg1) 
> still expects the JcrPackage arg0 to be a file, and not a MemoryArchive.
> The call src.getFile() returns null and an NullPointer Exception is thrown in 
> the ZipFile method.
> /* 175 */ ZipFile zip = new ZipFile(src.getFile(), 1);
> Here is the relevant stack trace
> {code}
> *ERROR* [Default Executor-thread-111] de.fi.myif.modul.impl.ModulServiceImpl 
> null 
> java.lang.NullPointerException: null 
> at java.util.zip.ZipFile.<init>(ZipFile.java:106) 
> at 
> org.apache.jackrabbit.vault.packaging.impl.PackageManagerImpl.rewrap(PackageManagerImpl.java:175)
>  
> at 
> org.apache.jackrabbit.vault.packaging.impl.PackageManagerImpl.rewrap(PackageManagerImpl.java:143)
>  
> at 
> org.apache.jackrabbit.vault.packaging.impl.JcrPackageManagerImpl.rewrap(JcrPackageManagerImpl.java:539)
>  
> at 
> com.day.jcr.vault.packaging.impl.JrVltJcrPackageManagerAdapter.rewrap(JrVltJcrPackageManagerAdapter.java:144)
>  
> at 
> de.fi.myif.modul.impl.ModulServiceImpl.gebeModulFuerProduktionFrei(ModulServiceImpl.java:370)
>  
> at 
> de.fi.modulfabrik.lieferpaket.test.LieferpaketServiceTest.testAktualisiereLieferpaket(LieferpaketServiceTest.java:162)
>  
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
> at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
> at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>  
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to