extract a jar file of author instance ? | Community
Skip to main content
Level 4
Oct 16, 2015 2:27 AM UTC
Solved

extract a jar file of author instance ?

java -XX:MaxPermSize=256m -Xmx1024M -jar cq-author-p4502.jar


Loading quickstart properties: default
Loading quickstart properties: instance
Low-memory action set to fork
Using 32bit VM settings, min.heap=768MB, min permgen=192MB, default fork arguments=[-Xmx768m, -XX:MaxPermSize=192m]
The JVM reports a heap size of 989 MB, meets our expectation of 768 MB +/- 20
The JVM MBean:Perm Gen reports a maximum size of 256 MB, meets our expectation of 192 MB +/- 20
Setting properties from filename '/home/author/cq-author-p4502.jar'
Option '-quickstart.server.port' set to '4502' from filename cq-author-p4502.jar
Verbose option not active, closing stdin and redirecting stdout and stderr
Redirecting stdout to /home/author/crx-quickstart/logs/stdout.log
Redirecting stderr to /home/author/crx-quickstart/logs/stderr.log

Sham_HC
Sham_HCAccepted solution
Level 10
Oct 16, 2015 2:27 AM UTC

what is the size of your jar file?

Seems like jar is corrupted or not fully copied. Try to download again and try it out.

9 replies

Nov 26, 2020 9:19 AM UTC
I am having the exact same issue, but no solution.
Translate
Ojjis
Level 7
Oct 16, 2015 2:27 AM UTC

Hi Mahesh.
Could you please elaborate on the question?

/Johan

Translate
Level 4
Oct 16, 2015 2:27 AM UTC

Hi Johan,

I am just extracting the jar file by setting the heap parameters as per the attached document.

Please find the attached document.  

Translate
Sham_HC
Level 10
Oct 16, 2015 2:27 AM UTC

Still not clear what you are looking. Guessing Might be you are looking to unpack. At the end of command use -unpack

Translate
Level 4
Oct 16, 2015 2:27 AM UTC

[root@localhost author]# java -XX:MaxPermSize=256m -Xmx1024M -jar cq-author-p4502.jar -unpack
Loading quickstart properties: default
Loading quickstart properties: instance
Setting properties from filename '/home/author/cq-author-p4502.jar'
Option '-quickstart.server.port' set to '4502' from filename cq-author-p4502.jar
Verbose mode - stdout/err not redirected to files, and stdin not closedResourceProvider paths=[/gui, /gui/default]
quickstart.build=5.6.1.20130606
quickstart.properties not found, initial install
UpgradeUtil.handleInstallAndUpgrade has mode INSTALL
Saving build number in quickstart.properties
Upgrade: no files to restore from pre-upgrade backup
java.io.IOException: Push back buffer is full
        at java.io.PushbackInputStream.unread(PushbackInputStream.java:232)
        at java.util.zip.ZipInputStream.readEnd(ZipInputStream.java:366)
        at java.util.zip.ZipInputStream.read(ZipInputStream.java:195)
        at java.util.zip.ZipInputStream.closeEntry(ZipInputStream.java:139)
        at com.adobe.granite.quickstart.base.impl.Unpacker.extractFiles(Unpacker.java:168)
        at com.adobe.granite.quickstart.base.impl.Unpacker.unpack(Unpacker.java:69)
        at com.adobe.granite.quickstart.base.impl.upgrade.UpgradeUtil.handleInstallAndUpgrade(UpgradeUtil.java:100)
        at com.adobe.granite.quickstart.base.impl.Quickstart.<init>(Quickstart.java:140)
        at com.adobe.granite.quickstart.base.impl.Main.<init>(Main.java:781)
        at com.adobe.granite.quickstart.base.impl.Main.main(Main.java:839)
Quickstart: aborting

Translate
Sham_HC
Sham_HCAccepted solution
Level 10
Oct 16, 2015 2:27 AM UTC

what is the size of your jar file?

Seems like jar is corrupted or not fully copied. Try to download again and try it out.

Translate
Oct 16, 2015 2:27 AM UTC
Try leaving the JVM settings out:
java -jar cq-author-p4502.jar -unpack
Translate
Level 4
Oct 16, 2015 2:27 AM UTC

Hi sham,

Size of CQ i have is 284 MB.

I have extracted successfully for author instance once using the same jar file, it started i was able to lo-gin to the console once.

When i tried to extract Publish it was giving this error, just to experiment i deleted author instance completely by deleting the crx-quickstart folder and tried extracting publish first i got the same error.

After that when i was trying to extract the author getting the same error   

Translate
Level 4
Oct 16, 2015 2:27 AM UTC

Hi AllDayDev,

#### java -jar cq-author-p4502.jar -unpack
Loading quickstart properties: default
Loading quickstart properties: instance
Setting properties from filename '/home/author/cq-author-p4502.jar'
Option '-quickstart.server.port' set to '4502' from filename cq-author-p4502.jar
Verbose mode - stdout/err not redirected to files, and stdin not closedResourceProvider paths=[/gui, /gui/default]
quickstart.build=5.6.1.20130606
quickstart.properties not found, initial install
UpgradeUtil.handleInstallAndUpgrade has mode INSTALL
Saving build number in quickstart.properties
Upgrade: no files to restore from pre-upgrade backup
java.io.IOException: Push back buffer is full
        at java.io.PushbackInputStream.unread(PushbackInputStream.java:232)
        at java.util.zip.ZipInputStream.readEnd(ZipInputStream.java:366)
        at java.util.zip.ZipInputStream.read(ZipInputStream.java:195)
        at java.util.zip.ZipInputStream.closeEntry(ZipInputStream.java:139)
        at com.adobe.granite.quickstart.base.impl.Unpacker.extractFiles(Unpacker.java:168)
        at com.adobe.granite.quickstart.base.impl.Unpacker.unpack(Unpacker.java:69)
        at com.adobe.granite.quickstart.base.impl.upgrade.UpgradeUtil.handleInstallAndUpgrade(UpgradeUtil.java:100)
        at com.adobe.granite.quickstart.base.impl.Quickstart.<init>(Quickstart.java:140)
        at com.adobe.granite.quickstart.base.impl.Main.<init>(Main.java:781)
        at com.adobe.granite.quickstart.base.impl.Main.main(Main.java:839)
Quickstart: aborting

Translate