Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

extract a jar file of author instance ?

Mahesh_Vikram
Level 5
Level 5

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

1 Accepted Solution
Sham_HC
Correct answer by
Level 10
Level 10

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.

View solution in original post

9 Replies
Ojjis
Level 7
Level 7

Hi Mahesh.
Could you please elaborate on the question?

/Johan

Mahesh_Vikram
Level 5
Level 5

Hi Johan,

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

Please find the attached document.  

Sham_HC
Level 10
Level 10

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

Mahesh_Vikram
Level 5
Level 5

[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

Sham_HC
Correct answer by
Level 10
Level 10

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.

View solution in original post

AllDayDev
Employee
Employee
Try leaving the JVM settings out:
java -jar cq-author-p4502.jar -unpack
Mahesh_Vikram
Level 5
Level 5

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   

Mahesh_Vikram
Level 5
Level 5

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

nutmix
Level 3
Level 3
I am having the exact same issue, but no solution.