extract a jar file of author instance ?

Avatar

Avatar

Mahesh_Vikram

Avatar

Mahesh_Vikram

Mahesh_Vikram

15-10-2015

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

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

Sham_HC

Total Posts

2.1K

Likes

160

Correct Reply

1.2K

Avatar

Sham_HC

Total Posts

2.1K

Likes

160

Correct Reply

1.2K
Sham_HC

15-10-2015

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.

Answers (7)

Answers (7)

Avatar

Avatar

Mahesh_Vikram

Avatar

Mahesh_Vikram

Mahesh_Vikram

15-10-2015

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

Avatar

Avatar

Mahesh_Vikram

Avatar

Mahesh_Vikram

Mahesh_Vikram

15-10-2015

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   

Avatar

Avatar

AllDayDev

Employee

Avatar

AllDayDev

Employee

AllDayDev
Employee

15-10-2015

Try leaving the JVM settings out:
java -jar cq-author-p4502.jar -unpack

Avatar

Avatar

Mahesh_Vikram

Avatar

Mahesh_Vikram

Mahesh_Vikram

15-10-2015

[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

Avatar

Avatar

Sham_HC

Total Posts

2.1K

Likes

160

Correct Reply

1.2K

Avatar

Sham_HC

Total Posts

2.1K

Likes

160

Correct Reply

1.2K
Sham_HC

15-10-2015

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

Avatar

Avatar

Mahesh_Vikram

Avatar

Mahesh_Vikram

Mahesh_Vikram

15-10-2015

Hi Johan,

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

Please find the attached document.  

Avatar

Avatar

Ojjis

Avatar

Ojjis

Ojjis

15-10-2015

Hi Mahesh.
Could you please elaborate on the question?

/Johan