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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

trying to extract CQ author instance ?

Avatar

Level 5

Hi,

I tried to extract a jar file, it is giving errors

http://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/adobe-experience-manage...

http://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/adobe-experience-manage...

http://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/adobe-experience-manage...

so i decided to u extract ajar file manually by double clicking the folder and extract button in it.

I extracted the directories present in it i got all the directories, when i executed #./start cmd.

When i use #ps -ef | grep java it is showing that author instance is running, When i tried to url https://<hostname>:4502 , it is giving msg UNNABLE TO CONNECT TO THE SERVER AT 4502

what would be the issue, one this is it a good practice to do so in a manual way

Thanks

Mahesh

1 Accepted Solution

Avatar

Correct answer by
Employee

You can do the following:

java -jar yourcq5jarfile.jar -unpack

Then navigate to the crx-quickstart\bin folder and run the start/start.bat file

--

Feike

View solution in original post

0 Replies

Avatar

Level 5

#### 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

Correct answer by
Employee

You can do the following:

java -jar yourcq5jarfile.jar -unpack

Then navigate to the crx-quickstart\bin folder and run the start/start.bat file

--

Feike

Avatar

Employee

So this is the cause then "java.io.IOException: Push back buffer is full"

Looks like a memory issue of some kind.

How much memory do you have?

For the sake of testing, can you try it on another machine and see if that works ok.

Also adding -Xmx1024m is worth trying I would say.

Avatar

Level 5

Please go through the above links i tried everything 

Avatar

Employee

I did, but I didn't see if you tried the -unpack option.

Avatar

Level 5

in another machine it is working.

it worked for me in my box, i don't know why it is troubling me.

java -XX:MaxPermSize=192m -Xmx768M -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]
**** WARNING: insufficent heap memory ******************************************
The JVM reports 742 MB but we recommend at least 768 MB +/- 20
Use your JVM's heap size option (like -Xmx768M) to set that size.
Will fork a JVM to get enough memory.
********************************************************************************
The JVM MBean:Perm Gen reports a maximum size of 192 MB, meets our expectation of 192 MB +/- 20
Available memory below specified limits and low-memory action set to fork, will fork to get enough memory
Preparing to fork JVM, OS name=Linux, isWindows=false
Forking JVM: [/usr/java/jdk1.7.0_09/jre/bin/java, -Xmx768m, -XX:MaxPermSize=192m, -jar, /home/author/cq-author-p4502.jar, -nofork, -pt, CHILD]
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]
**** WARNING: insufficent heap memory ******************************************
The JVM reports 742 MB but we recommend at least 768 MB +/- 20
Use your JVM's heap size option (like -Xmx768M) to set that size.
Will fork a JVM to get enough memory.
********************************************************************************
The JVM MBean:Perm Gen reports a maximum size of 192 MB, meets our expectation of 192 MB +/- 20
Available memory below specified limits and low-memory action set to fork, will fork to get enough memory
Not forking JVM as -nofork option is set
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
Forked JVM process exited with exit code 1
Main JVM process exiting
MAIN process: shutdown hook
MAIN process: exiting

Avatar

Level 5

Hi feike visser,

I tried it if u want i will paste error if u want.

Avatar

Level 5

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

Employee

Same amount of mem/ram in the two machines?

Otherwise try closing all other apps and/or restart your machine to get more ram available.

It is good at least that it is working on your other machine.

Avatar

Level 5

ya i have 4 GB ram allocated to that machine,

i deleted all the author, now when i am trying to extract it again it is getting this error

Avatar

Employee

Can you restart the machine? To avoid any hanging processes etc.