Blog dedicated to Oracle Applications (E-Business Suite) Technology; covers Apps Architecture, Administration and third party bolt-ons to Apps

Thursday, November 6, 2008

The AutoConfig CVM script returned an error code

Raju pinged me today with this error:

adpatch options=prereq logfile=u6831988.log driver=u6831988.drv 
 
Running AutoConfig to instantiate templates which affect JAR files....

Running AutoConfig CVM to maintain the context file...

AutoPatch error:

The AutoConfig CVM script returned an error code.
AutoConfig Return code : [1]
Command used was : [$AD_TOP/bin/adcvm.sh contextfile=$CONTEXT_FILE appspass=***** logfile=$APPL_TOP/admin/$TWO_TASK/log/autoconfig_17931.log -noprompt]



An error occurred while

Running AutoConfig to instantiate templates that affect the generation of
JAR files. If you choose to continue now, you may have to re-generate JAR
files using the AD Administration utility later.
Continue as if it were successful [No] :

An error occurred while

Running AutoConfig to instantiate templates that affect the generation of
JAR files. If you choose to continue now, you may have to re-generate JAR
files using the AD Administration utility later.
Continue as if it were successful [No] :

You should check the file
$APPL_TOP/admin/$TWO_TASK/log/u6831988.log for errors. 

I asked Raju to run adcvm.sh manually to see what is the error:

$AD_TOP/bin/adcvm.sh contextfile=$APPL_TOP/admin/erppgra1_erppgra1.xml appspass=first123 logfile=$APPL_TOP/admin/$TWO_TASK/log/autoconfig_17931_manual.log 
Exception in thread "main" java.lang.NoClassDefFoundError: oracle/apps/ad/autoconfig/PerformanceProfileReport
at oracle.apps.ad.context.CtxValueMgt.main(CtxValueMgt.java:700)
Caused by: java.lang.ClassNotFoundException: oracle.apps.ad.autoconfig.PerformanceProfileReport
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)

adcvm: Error code returned from CVM - 1

As per above message adcvm.sh is failing because of this:

Exception in thread "main" java.lang.NoClassDefFoundError: oracle/apps/ad/autoconfig/PerformanceProfileReport

I asked Raju to check for the existance of this class :

$OA_JAVA/oracle/apps/ad/autoconfig/PerformanceProfileReport.class

Sure enough this was missing.  I did an ls -ltr |wc -l to check the no. of files and it was 14 in this instance.  When I compared it with another instance on same patch level, I found that the directory had 17 files.   I sent the 3 missing files to Raju.  After he copied the files, adcvm.sh worked fine.

I asked Raju to apply TXK Rollup S patch to reinstate any seeded files which are missing.

2 comments:

Unknown said...

Thank you very much for this post.

Unknown said...

This post saved me....Thanks