Java.lang.ClassFormatError: Bad major version number
Hi friends,
I am using JWS2.0(trial version). I have uploaded class files into servlet (and respective packages), every thing was working fine. one fine day i started getting the 404 - file not found error(JWS not yet expired). I uninstalled the jws, j2sdk1.4.0, jre1.4.0 but with no result.
I even formated the system and loaded all again. But still i am getting the same problem.
The servlet is the simple HelloWorld servlet.
Through the SunExample its working fine. But the uploaded servlet is not getting recognised.
Here is the ErrorLog
[Tue Feb 22 17:26:29 GMT+05:30 2005] ClassLoaderFactory Error: Can not find Class : Hello [ ClassNotFoundException ]
[Tue Feb 22 17:26:31 GMT+05:30 2005] ClassLoaderError: (com.sun.server.loader.JarClassLoader@17d67e:\servlets) ERROR: Unable to load class local class Hello
[Tue Feb 22 17:26:31 GMT+05:30 2005] java.lang.ClassFormatError: Bad major version number
at java.lang.ClassLoader.defineClass(ClassLoader.java:219)
at com.sun.server.loader.ServletClassLoader.callDefineClass(ServletClassLoader.jav a:726)
at com.sun.server.loader.ServletClassLoader.checkAndDefineClass(ServletClassLoader .java:620)
at com.sun.server.loader.DirectoryClassLoader.getClassFromLocalDir(Compiled Code)
at com.sun.
Try re-compiling the Servlet. Make sure that the JDK version used to recompile is <= the version used to run the server (if you are using a higher jdk to compile the servlet, maybe Java 5.x, then you are to run, maybe Java 1.4.x, then use the -target option of javac to target the lower release...)
Similar Messages
-
Bad major version number! Help please ;-)
I have been writing applets using the Forte 3.0 sdk.
I don't as yet use Swing, but rather the standard AWT elements.
These applets work fine in IE 5, but when I try to view them in Netscape Communicator 4.79, the applet fails to appear and I see the following error message "Applet Editor Error:java.lang.ClassFormatError: Bad major version number"
I have searched the net and this is some advice I found: "The javac by default compiles for 1.2 compatible vm's. To compile an application to be compatible for both 1.1 and 1.2 vm's use:
javac -target 1.1 foo.java"
I'm guessing Netscape isn't 1.2 compatble, despite that the java plugins for 1.4.0 are enabled ( I have checked.).
So my question is:
How do I force 1.1 compatability in the Forte IDE?
I have looked through all the options and cannot find any switches for compatability.
I'm not using command-line so I can't directly add -target 1.1
Thank you in advance.In Forte go to menu Project->Settings. Open Compiler Types->External Compilation, there you have a property called "External Compiler", click on the value and there you can edit the arguments that are sent to the compiler...
//Anders =) -
ALERT: java/lang/ClassFormatError: Bad version information.
Hi all,
I'm developing a mobile application but I got this error: ALERT: java/lang/ClassFormatError: Bad version information.
I've read all the posts in the forum and searched for other ones with google, but still no luck :-( pls help.
The situation is the following:
IDE: netBeans 6.5
MIDP2.1
CLDC1.1
javac.source=1.3
javac.target=1.3
J2ME web services 1.0 loaded.
The application retrieves tracking data from a .net web service: I've created the stub with the sun official tool included in the WTK (Stub Generator).
When I run the jar with the sun device emulator, the splash screen is loaded but, when I retrieve data from the web service, the application crashes with the error ALERT: java/lang/ClassFormatError: Bad version information. No problem if there's no data to fetch.
Where am I wrong? pls help, thx,
have a i nica day,
MichelaHave you tried JSR172Demo application that is supplied with Netbeans? if yes, did it work?
Instructions on how to obtain this demo app are provided in [Netbeans help|http://i39.tinypic.com/k2h8og.jpg], section Importing Java ME Projects -> Sun Java Wireless Toolkit project -
Java/lang/ClassFormatError: Bad version information.
Hi
When running the midlet in wireless tool kit the following
error is occuring
java/lang/ClassFormatError: Bad version information.
can any body suggest me wat the problem isHi,
answer is at http://forum.java.sun.com/thread.jspa?threadID=569449&tstart=0 -
ALERT: java/lang/ClassFormatError: Bad stack map.
Hello friends.
I need help. SOS.
Where is wrong in this code?
Problem is in comparision.
Comenting this lines, all are ok.
if(time1==time2)
System.out.println("Equal");
else
System.out.println("Different");C�digo del Midlet:
package borrame.pruebas;
import java.util.Date;
import javax.microedition.lcdui.Command;
import javax.microedition.lcdui.CommandListener;
import javax.microedition.lcdui.Display;
import javax.microedition.lcdui.Displayable;
import javax.microedition.lcdui.Form;
import javax.microedition.midlet.MIDlet;
import javax.microedition.midlet.MIDletStateChangeException;
public class Prueba extends MIDlet implements CommandListener {
Display display;
Form mainForm;
// Comandos para salir y volver a la pantalla principal.
Command cmdSalir;
public Prueba() {
super();
mainForm = new Form ("HelloMidp");
cmdSalir = new Command("Salir", Command.EXIT,1);
mainForm.addCommand(cmdSalir);
mainForm.setCommandListener(this);
protected void startApp() throws MIDletStateChangeException {
display = Display.getDisplay(this);
display.setCurrent (mainForm);
long time1 = new Date().getTime();
long time2 = new Date().getTime() +100;
System.out.println("time1: " + time1);
System.out.println("time2: " + time2);
System.out.println("time1 + time2 =" + (time1 + time2));
if(time1==time2)
System.out.println("Equal");
else
System.out.println("Different");
protected void pauseApp() {
// TODO Auto-generated method stub
protected void destroyApp(boolean arg0) throws MIDletStateChangeException {
// TODO Auto-generated method stub
public void commandAction(Command c, Displayable d) {
if (c == cmdSalir) { // Selecciono salir de la aplicacion
try {
destroyApp(false);
} catch (MIDletStateChangeException e) {
e.printStackTrace();
notifyDestroyed();
}Output console:
Warning: Cannot convert string "-b&h-lucida-medium-r-normal-sans-*-140-*-*-p-*-iso8859-1" to type FontStruct
Running with storage root DefaultColorPhone
ALERT: java/lang/ClassFormatError: Bad stack map.
Method............: b7d29990 'com/sun/midp/midlet/MIDletState.createMIDlet (static)'
Stack Chunk.......: b783d300
Frame Pointer.....: b783d3a4
Current IP........: b7da5669 = b7da565b + offset 14
Previous Frame....: b783d36c
Previous IP.......: b7d87f44 (offset 52)
Frame size........: 7 (1 arguments, 6 local variables)
Argument[0].......: b783cad0
Local[1]..........: b78b35c8
Local[2]..........: b7d87f41
Local[3]..........: b783cc38
Local[4]..........: b7d29788
Local[5]..........: b78b355c
Local[6]..........: 0
Operand[1]........: b783cad0
Method............: b7d16390 'com/sun/midp/midlet/Scheduler.schedule (virtual)'
Stack Chunk.......: b783d300
Frame Pointer.....: b783d36c
Current IP........: b7d87f44 = b7d87f10 + offset 52
Previous Frame....: b783d338
Previous IP.......: b7d92b05 (offset 28)
Frame size........: 7 (2 arguments, 5 local variables)
Argument[0].......: b783cd14
Argument[1].......: b783c460
Local[2]..........: b78b20c4
Local[3]..........: b78b3594
Local[4]..........: b7d92b01
Local[5]..........: b78b35a8
Local[6]..........: b7d162b0
Operand[1]........: b783cd14
Method............: b7d1e084 'com/sun/midp/main/Main.runLocalClass (static)'
Stack Chunk.......: b783d300
Frame Pointer.....: b783d338
Current IP........: b7d92b05 = b7d92ae9 + offset 28
Previous Frame....: b783d314
Previous IP.......: b7d9257c (offset 116)
Frame size........: 3 (1 arguments, 2 local variables)
Argument[0].......: b783d1bc
Local[1]..........: b783c460
Local[2]..........: b78b3570
Method............: b7d1dfe4 'com/sun/midp/main/Main.main (static)'
Stack Chunk.......: b783d300
Frame Pointer.....: b783d314
Current IP........: b7d9257c = b7d92508 + offset 116
Previous Frame....: 0
Previous IP.......: 1
Frame size........: 3 (1 arguments, 2 local variables)
Argument[0].......: b783d5ec
Local[1]..........: b783d1bc
Local[2]..........: b783cb24
VM status:
Instruction pointer.: b7da5669 (offset within invoking method: 14)
Next instruction....: 0x4c
Frame pointer.......: b783d3a4
Local pointer.......: b783d388
Stack size..........: 128; sp: b783d3bc; ranges: b783d308-b783d508;
Contents of the current stack frame:
b783d388: b783cad0 (lp)
b783d38c: b78b35c8
b783d390: b7d87f41
b783d394: b783cc38
b783d398: b7d29788
b783d39c: b78b355c
b783d3a0: 0
b783d3a4: b783d36c (fp)
b783d3a8: b7d87f44
b783d3ac: b783d384
b783d3b0: b7d29990
b783d3b4: b783d300
b783d3b8: 0 (end of frame)
b783d3bc: b783cad0 (sp)
Execution stack contains 184 items:
b783d5ec
b783d1bc
b783cb24
0
1
b78b3560
b7d1dfe4
b783d300
0
b783d1bc
b783c460
b78b3570
b783d314
b7d9257c
b783d328
b7d1e084
b783d300
0
b783cd14
b783c460
b78b20c4
b78b3594
b7d92b01
b78b35a8
b7d162b0
b783d338
b7d92b05
b783d34c
b7d16390
b783d300
0
b783cd14
b783cad0
b78b35c8
b7d87f41
b783cc38
b7d29788
b78b355c
0
b783d36c
b7d87f44
b783d384
b7d29990
b783d300
0
b783cad0
Execution completed.
717374 bytecodes executed
5 thread switches
742 classes in the system (including system classes)
3720 dynamic objects allocated (102340 bytes)
2 garbage collections (88196 bytes collected)
Execution completed.
717374 bytecodes executed
5 thread switches
742 classes in the system (including system classes)
3720 dynamic objects allocated (102340 bytes)
2 garbage collections (88196 bytes collected)My enviroment:
Linux Gentoo.
Sun JDK 1.4.2.10
eclipse 3.2 WTP 1.5
eclipseme 1.5.5
Midlet config:
MIDlet-Version: 1.0
MicroEdition-Configuration: CLDC-1.0
MicroEdition-Profile: MIDP-1.0
WTK 2.2
In last test, i'm using ktoolbar directly to build and execute midlet and all go ok.
So, My code is not problem.
I suppose that eclipseme corrupt my classes in build process.
SOLUTION:
My radical solution. I use eclipse without eclipseme, and i use ktoolbar to build, run, package, etc...
Thank's -
Bad major version number error
I'm trying to run the HelloWorld program in Linux. I can compile ("javac HelloWorld.java"), but when I try to run the program, using "java HelloWorld", i got the following error message:
Error loading class HelloWorld: Bad major version number
Any idea of what's wrong?well, i found the problem. i had installed an old java version and forgot to delete it. i was using jdk 1.1 and i didn't notice it. just deleted the old version and everything went fine. thanks, m_srini ! :-)
-
Java.lang.ClassFormatError: HTML (Bad magic number)
hi,
i have quite a strange problem:
when my applet tries to parse an XML file with SAX (no DTD-validation) i got the following error:
java.lang.ClassFormatError: <HTML> (Bad magic number)
Well i had some problems before with the ClassFormatError but they were because some class-files were corrupt. They were easy to fix because the defecitve class-file was written next to java.lang.ClassFormatError. This time i got the <HTML> expression next to the error. what does this mean?
thnx in advance!
marcBad magic Number. means the first 4 bytes did not equals CAFEBABE (0xCAFEBABE) But why do you see <HTML> after that is beyound me. Can you locate which class is foul and replace it?
-
I run a Japplet(AppletSame.class) ,found this Exception:
java.lang.ClassFormatError: AppletSame (Bad magic number)??****
what does it mean?how can i solve it?hi,
the problem comes if there is some kind of problem with the class file and therefore the JVM cannot read the class file, try recompiling the program..
cheerz
ynkrish -
Java.lang.ClassFormatException : Bad Magic number Excpetion
Hi all
I am trying to hit an applet through an iplanet web connector.
The scenario is machine 1 is the web server (iplanet 4.1) . machine 2 is app
server (iplanet 6.0 sp2)
The web connector is configured for handling all the requests to machine2
that refer to the app server.
when i place my jar (containing the applet classes) on the app server and
then try to open it through a jsp on the app server itself , it
throws a
java.lang.ClassFormatError: com/niit/cliks/te/web/TestingEngine (Bad magic
number)
exception.
But if i try with the same jar file on the web server (the same as running
the app server( - i.e. machine 2 ) the jar works just fine.
can anybody put some light on the issue. I am in a very tight deadline
situation.
thanks and regards
raghav..
PS - the applet is not signed and i don't wish (and plan) to sign it.Dear friend
But the same class file and jars are working (without any change in the jar) when i put them on the web server which is also on the same machine running the app server.
I may suspect my compiled files but i don't.
i have compiled them at least ten times from the moment i started getting the error.
any other guesses....
thanks for your consideration
regards..
raghav.. -
Hi,
I try to load an XML-File into my Applet with jdom4. But when reading in the Document with the SAX-Reader I get this Error:
java.lang.ClassFormatError: EDU/oswego/cs/dl/util/concurrent/ConcurrentReaderHashMap (Bad magic number)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at sun.applet.AppletClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at org.dom4j.tree.NamespaceCache.<clinit>(NamespaceCache.java:48)
at org.dom4j.Namespace.<clinit>(Namespace.java:24)
at org.dom4j.DocumentFactory.createNamespace(DocumentFactory.java:161)
at org.dom4j.tree.NamespaceStack.createNamespace(NamespaceStack.java:286)
at org.dom4j.tree.NamespaceStack.getQName(NamespaceStack.java:167)
at org.dom4j.io.SAXContentHandler.startElement(SAXContentHandler.java:221)
at org.apache.crimson.parser.Parser2.maybeElement(Unknown Source)
at org.apache.crimson.parser.Parser2.parseInternal(Unknown Source)
at org.apache.crimson.parser.Parser2.parse(Unknown Source)
at org.apache.crimson.parser.XMLReaderImpl.parse(Unknown Source)
at org.dom4j.io.SAXReader.read(SAXReader.java:334)
at org.dom4j.io.SAXReader.read(SAXReader.java:236)
at client.Load.<init>(Load.java:42)
at client.Login.startLoad(Login.java:183)
at client.ParamTimer.run(ParamTimer.java:30)
I use JRE 1.4.2_05! With JRE 1.5 I get a warning and then the JRE switches to his own SAX Parser.
How can I solve this???
GreetsThe error message says that the class file has a bad "magic number." Magic number is the first four bytes of a .class file and in a valid file they should be CA FE BA BE (in hex); "bad magic number" means that the first four bytes are something else and therefore it's not a valid Java .class file.
-
Java.lang.ClassFormatError while starting JSPM. SAP NW04s SR2
Dear All,
JSPM issued the following error when it was started. I have installed NW04s SR2 Java only and want to patch it to SP10
#Error while executing
phase.##
#1.5#C000097C2FC400000000006559FA59FA00042BDF044BF5D8#1174136756631#/System/Server/Upgrade/Phases/JSPM/JSPMPhases/JSPM_MAIN##java.lang.Throwab
le.xinit>(Throwable.java:58)#######Thread[main,5,main]##0#0#Error#1#java.lang.Throwable.xinit>(Throwable.java:58)#Java###Error : #2#java
.lang.ClassFormatError#<null>#
Java version is J2RE 1.4.2 IBM build j9xa64142ifx-20051125 (SAP i-Fix 97999: SR2 i-fix 93283 + 96573 + 97068 + 97427 + 96565)
Please help.
Warm Regards
MazdulError got resolved by updating the JDK version
-
Java.lang.ClassFormatError: Truncated class file
Hi
Previously my application is running on jdk 1.4 and its supporting castor i.e. castor-0.9.5.4-xml.jar
Now i had upgrade my jdk to 1.6 and i am using same castor.jar
so it is giving me following error
Exception in thread "main" java.lang.ClassFormatError: Truncated class file
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at java.lang.ClassLoader.defineClass(ClassLoader.java:465)
at com.sun.tools.javac.v8.GenerateClass$Loader.findClass(GenerateClass.j
ava:273)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at org.exolab.castor.mapping.loader.Types.typeFromName(Types.java:93)
at org.exolab.castor.mapping.loader.MappingLoader.resolveType(MappingLoa
der.java:228)
at org.exolab.castor.mapping.loader.MappingLoader.createDescriptor(Mappi
ngLoader.java:394)
at org.exolab.castor.xml.XMLMappingLoader.createDescriptor(XMLMappingLoa
der.java:202)
at org.exolab.castor.mapping.loader.MappingLoader.loadMapping(MappingLoa
der.java:258)
at org.exolab.castor.mapping.Mapping.getResolver(Mapping.java:291)
at org.exolab.castor.mapping.Mapping.getResolver(Mapping.java:246)
at org.exolab.castor.xml.Marshaller.setMapping(Marshaller.java:520)
I also try to upgrade castor to latest version i.e castor1.2-xml.jar with jdk 1.6 and this time it gives me error
Exception in thread "main" java.lang.ClassFormatError: Truncated class file
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at java.lang.ClassLoader.defineClass(ClassLoader.java:465)
at com.sun.tools.javac.v8.GenerateClass$Loader.findClass(GenerateClass.j
ava:273)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at org.exolab.castor.mapping.loader.Types.typeFromName(Types.java:92)
at org.exolab.castor.mapping.loader.AbstractMappingLoader.resolveType(Ab
stractMappingLoader.java:384)
at org.exolab.castor.xml.XMLMappingLoader.createClassDescriptor(XMLMappi
ngLoader.java:209)
at org.exolab.castor.mapping.loader.AbstractMappingLoader.createClassDes
criptors(AbstractMappingLoader.java:262)
at org.exolab.castor.xml.XMLMappingLoader.loadMapping(XMLMappingLoader.j
ava:156)
at org.castor.mapping.MappingUnmarshaller.getMappingLoader(MappingUnmars
haller.java:162)
at org.castor.mapping.MappingUnmarshaller.getMappingLoader(MappingUnmars
haller.java:128)
at org.exolab.castor.xml.Marshaller.setMapping(Marshaller.java:556)
Can any one please help me out..
Thanks in advancehi,
i think one of application's class file currupted , Recompile all java files and then try.
Edited by: sagar_birari on Mar 27, 2008 5:47 AM
Edited by: sagar_birari on Mar 27, 2008 7:20 AM -
Java.lang.ClassFormatError
I have an ejb client application that works fine when deployed manually. I then decided to decided to deploy with Java Web Start, the deployment goes fine but some of the app. functions don't work and return an error on the console. Here is a copy of the error message.
Java Web Start Console, started Thu Nov 13 10:38:39 EST 2003
Java 2 Runtime Environment: Version 1.4.0_03 by Sun Microsystems Inc.
Logging to file: C:\Test-me\Log.txt
java.lang.ClassFormatError: cc/admin/email/client/AdministratorUI$18 (Illegal Variable name " val$jtf")
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at com.sun.jnlp.JNLPClassLoader.defineClass(Unknown Source)
at com.sun.jnlp.JNLPClassLoader.access$1(Unknown Source)
at com.sun.jnlp.JNLPClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.jnlp.JNLPClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at cc.admin.email.client.AdministratorUI.createTermAndYearDialog(AdministratorUI.java:440)
at cc.admin.email.client.AdministratorUI.jMenuItemSCTAY_actionPerformed(AdministratorUI.java:398)
at cc.admin.email.client.AdministratorUI.access$6000471(AdministratorUI.java:77)
at cc.admin.email.client.AdministratorUI$6.actionPerformed(AdministratorUI.java:212)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.AbstractButton.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source).
The portion of my code responsible for this is:
final JTextField jtf = new JTextField(termAndYear[1]);
jtf.addKeyListener(new JTextFieldFormat(jtf,4));
jtf.addFocusListener(new java.awt.event.FocusAdapter() {
public void focusGained(FocusEvent e) {
jtf.setCaretPosition(0);
jtf.selectAll();
Apart from that action, the application works just fine. The interesting thing is, this does not happen if I run the application locally using the required jar files. It only happens when deployed with Java Web Start.
I'll appreciate any help. Thankshi,
it looks like the class you want to load is broken. Can you send more information what app server do you use, which jre use this app server, and which java compiler do you use and the exact line were the exception trows. -
hi! I am doing project using aglets while i am following code i am getting error as shown below.pls help me.
import com.ibm.aglet.*;
public class CreatedAglet extends Aglet
public void onCreation(Object init)
System.out.println("createdAglet agent created");
public void run()
System.out.println("createdAglet running");
import com.ibm.aglet.*;
public class CreatingAglet extends Aglet
public void onCreation(Object init)
System.out.println("Agent Created");
public void run()
try
AgletContext context = this.getAgletContext();
context.createAglet(null,"CreatedAglet",null);
catch(Exception e)
System.out.println("Exception " + e);
Error :
Microsoft Windows XP [Version 5.1.2600]
java.lang.UnsupportedClassVersionError: CreatingAglet (Unsupported major.minor v
ersion 50.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
at com.ibm.aglets.tahiti.AgletClassLoader.loadClassFromCodeBase(Unknown
Source)
at com.ibm.aglets.tahiti.AgletClassLoader.findClassInternal(Unknown Sour
ce)
at com.ibm.aglets.tahiti.AgletClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at com.ibm.aglets.tahiti.ResourceManagerImpl.loadClass(Unknown Source)
at com.ibm.aglets.AgletContextImpl.createAglet(Unknown Source)
at com.ibm.aglets.AgletContextImpl.createAglet(Unknown Source)
at com.ibm.aglets.tahiti.MainWindow$TahitiEventHandler.perform(Unknown S
ource)
at com.ibm.aglets.tahiti.MainWindow$TahitiEventHandler.run(Unknown Sourc
e)
at java.lang.Thread.run(Thread.java:534)
When loading CreatingAglet from atp://system:4434/ : java.lang.UnsupportedClassV
ersionErrorCreatingAglet (Unsupported major.minor version 50.0)
java.lang.ClassNotFoundException: When loading CreatingAglet from atp://system:4
434/ : java.lang.UnsupportedClassVersionErrorCreatingAglet (Unsupported major.mi
nor version 50.0)
at com.ibm.aglets.tahiti.AgletClassLoader.loadClassFromCodeBase(Unknown
Source)
at com.ibm.aglets.tahiti.AgletClassLoader.findClassInternal(Unknown Sour
ce)
at com.ibm.aglets.tahiti.AgletClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at com.ibm.aglets.tahiti.ResourceManagerImpl.loadClass(Unknown Source)
at com.ibm.aglets.AgletContextImpl.createAglet(Unknown Source)
at com.ibm.aglets.AgletContextImpl.createAglet(Unknown Source)
at com.ibm.aglets.tahiti.MainWindow$TahitiEventHandler.perform(Unknown S
ource)
at com.ibm.aglets.tahiti.MainWindow$TahitiEventHandler.run(Unknown Sourc
e)
at java.lang.Thread.run(Thread.java:534)The error message says that you have a library that is too new for your JDK/VM.
Kaj -
When i run my web-application with the embedded OC4J server, the following error message is prompted:
java.lang.Exception: ORA-00020: maximum number of processes (150) exceeded
void MyFolder.objects.MyObject.<init>(oracle.jbo.ApplicationModule, java.lang.String, java.lang.String, javax.servlet.http.HttpServletRequest)
void MyFolder.servlet.MyServlet.doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
void javax.servlet.http.HttpServlet.service(com.evermind.server.http.EvermindHttpServletRequest, com.evermind.server.http.EvermindHttpServletResponse)
void javax.servlet.http.HttpServlet.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
void javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
void com.evermind.server.http.ServletRequestDispatcher.invoke(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
void com.evermind.server.http.ServletRequestDispatcher.forwardInternal(javax.servlet.ServletRequest, javax.servlet.http.HttpServletResponse)
boolean com.evermind.server.http.HttpRequestHandler.processRequest(com.evermind.server.ApplicationServerThread, com.evermind.server.http.EvermindHttpServletRequest, com.evermind.server.http.EvermindHttpServletResponse, java.io.InputStream, java.io.OutputStream, boolean)
void com.evermind.server.http.HttpRequestHandler.run(java.lang.Thread)
void com.evermind.util.ThreadPoolThread.run()
Question:
- What is the cause of this error message? How to avoid?
- I intended to deploy my application to 9IAS server. Will the same problem occurs too?
Thanks for your reply!Hi Pig,
When i run my web-application with the embedded OC4J server, the following error message is prompted:
java.lang.Exception: ORA-00020: maximum number of processes (150) exceeded
void MyFolder.objects.MyObject.<init>(oracle.jbo.ApplicationModule, java.lang.String, java.lang.String, javax.servlet.http.HttpServletRequest)
void MyFolder.servlet.MyServlet.doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
void javax.servlet.http.HttpServlet.service(com.evermind.server.http.EvermindHttpServletRequest, com.evermind.server.http.EvermindHttpServletResponse)
void javax.servlet.http.HttpServlet.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
void javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
void com.evermind.server.http.ServletRequestDispatcher.invoke(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
void com.evermind.server.http.ServletRequestDispatcher.forwardInternal(javax.servlet.ServletRequest, javax.servlet.http.HttpServletResponse)
boolean com.evermind.server.http.HttpRequestHandler.processRequest(com.evermind.server.ApplicationServerThread, com.evermind.server.http.EvermindHttpServletRequest, com.evermind.server.http.EvermindHttpServletResponse, java.io.InputStream, java.io.OutputStream, boolean)
void com.evermind.server.http.HttpRequestHandler.run(java.lang.Thread)
void com.evermind.util.ThreadPoolThread.run()
Question:
- What is the cause of this error message? How to avoid?.
From the Oracle error message documentation:
ORA-00020 maximum number of processes (string) exceeded
Cause: All process state objects are in use.
Action: Increase the value of the PROCESSES initialization parameter.
Another alternative approach may be to configure your Connection pool and/or your ApplicationModule pool to optimize the use of
database connections and/or restrict the number of database connections used by the application. For example, if your application
has declared many root ApplicationModules (i.e. more than one ApplicationModule pool is in use) then it may help to enable the
jbo.doconnectionpooling switch so that each ApplicationModule instance in the pools does not maintain a dedicated database
connection while not in use. Another alternative if you are using the BC4J connection pool (not a JDBC datasource) may be to
restrict the number of connections the pool can create to < 150 with the jbo.maxpoolsize switch. However, please note that this
may have an impact on throughput.
- I intended to deploy my application to 9IAS server. Will the same problem occurs too?.
This is a database issue. So, yes.
Hope this helps.
JR
Maybe you are looking for
-
Recovery Window-Based Retention VS Redundancy-Based Retention
Hi Experts, We'd like to know your take on the use of Recovery Window-Based Retention Policy e.g. RMAN> CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 7 DAYS;against the use of Redundancy-Based Retention Policy, e.g. CONFIGURE RETENTION POLICY TO R
-
Serial Profile "2 Inconsistencies in stock data - error" is NOT validating GR&GI
Hi Gurus, I have the following scenario: 1.- We have customized in OIS2 a Serial Profile (X001) and added the following Serializing procedures: MMSL - Maintain goods receipt and issue doc. 03 02 PPAU - Serial numbers in PP order
-
User Defined Function (UDF) help required. Pls advice urgent.
Hi , CRM -- XI (UDF) -- Socket Connection Now in User Defined Function (UDF) of Message Mapping I will open Socket Connection. Send CRM XML request to socket and get XML response from Socket and then map to some system. Can I write Java Class code in
-
Disk Utility - minimum diskimage size
Folks; Using Leopard's Disk Utility, I want to make a disk image for a particular file and size the image to be the minimum required for my ~6.5M file. I create a new image (20M), because a 10M tells me that there is only 1.7M free and won't let me c
-
Long running mapping when using Mapping Transformations
Hi, I have a source table with 8,000 records which I would like to merge using the update/insert operator into my target table. This simple operation takes 15 sec which I am very happy with. The problem I have is when I try to call a series of Functi