Don't understand the java.lang.OutOfMemoryError

Hi there,
I try to create an 'About' frame for a small programm I created and I get an java.lang.OutOfMemoryError which I don't understand. Can somebody help?
Here is my code:
* TabbedPaneDemo.java is a 1.4 example that requires one additional file:
*   images/middle.gif.
import javax.swing.JTabbedPane;
import javax.swing.ImageIcon;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JFrame;
import javax.swing.JComponent;
import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.GridLayout;
import java.awt.event.KeyEvent;
import java.awt.Dimension;
import java.awt.Rectangle;
public class TabbedAbout extends JPanel {
          JLabel label=new JLabel("PRODUCT INFORMATION ");
            JLabel pv=new JLabel("Product version:");
            JLabel pvR=new JLabel("1.0");
            JLabel javav=new JLabel("Java Version:");
            JLabel javavR=new JLabel("1.4.2");
            JLabel sqlv=new JLabel("PostgreSQL Version:");
            JLabel sqlvR=new JLabel("8.1");
            JLabel pt=new JLabel("Programming Team:");
            JLabel onoma1=new JLabel("Gkisis Traianos");
            JLabel onoma2=new JLabel("Zafeiropoulos Ioannis");
            JLabel onoma3=new JLabel("Supervisor Teacher:");
            JLabel onoma3R=new JLabel("Stamatis Dimosthenis");
            JLabel alr=new JLabel("Product developed as dissertation for the ATEI");
            JLabel alr2=new JLabel("Thessaloniki on autumn 2006.");
            JLabel alr1=new JLabel("All rights reserved");
            ImageIcon icon = createImageIcon("images/folder_sticky.gif");
        ImageIcon icon2 = createImageIcon("images/tick.gif");
    public TabbedAbout() {
         JLabel panel1 = new JLabel();
         JFrame frame = new JFrame("About");
         JFrame.setDefaultLookAndFeelDecorated(true);
         frame.setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);
         //super(new GridLayout(1, 1));
        JTabbedPane tabbedPane = new JTabbedPane();
        panel1.setIcon(new ImageIcon("images/TakeANoteProgress.jpg"));
        tabbedPane.addTab("About", icon, panel1);
        tabbedPane.setMnemonicAt(0, KeyEvent.VK_1);
        JPanel panel2 = new JPanel();
        //JFrame frame2 = new JFrame();
        panel2.setLayout(null);
        label.setIcon(icon2);
        label.setBounds(new Rectangle(20, 20, 200, 25));
        pv.setBounds(new Rectangle(20, 40, 175, 45));
        pvR.setBounds(new Rectangle(180, 40, 175, 45));
        javav.setBounds(new Rectangle(20, 60, 175, 45));
        javavR.setBounds(new Rectangle(180, 60, 175, 45));
        sqlv.setBounds(new Rectangle(20, 80, 175, 45));
        sqlvR.setBounds(new Rectangle(180, 80, 175, 45));
        pt.setBounds(new Rectangle(20, 100, 175, 45));
        onoma1.setBounds(new Rectangle(180, 100, 175, 45));
        onoma2.setBounds(new Rectangle(180, 120, 175, 45));
        onoma3.setBounds(new Rectangle(20, 140, 175, 45));
        onoma3R.setBounds(new Rectangle(180, 140, 175, 45));
        alr.setBounds(new Rectangle(20, 190, 500, 45));
        alr2.setBounds(new Rectangle(20, 210, 500, 45));
        alr1.setBounds(new Rectangle(20, 250, 500, 45));
        panel2.add(label);
        panel2.add(pv);
        panel2.add(pvR);
        panel2.add(javav);
        panel2.add(javavR);
        panel2.add(sqlv);
        panel2.add(sqlvR);
        panel2.add(pt);
        panel2.add(onoma1);
        panel2.add(onoma2);
        panel2.add(onoma3);
        panel2.add(onoma3R);
        panel2.add(alr);
        panel2.add(alr2);
        panel2.add(alr1);
        tabbedPane.addTab("Detail", icon, panel2);
        tabbedPane.setMnemonicAt(1, KeyEvent.VK_2);
        tabbedPane.setSize(new Dimension(400, 300));
        //Add the tabbed pane to this panel.
        add(tabbedPane);
        //Uncomment the following line to use scrolling tabs.
        //tabbedPane.setTabLayoutPolicy(JTabbedPane.SCROLL_TAB_LAYOUT);
        //Create and set up the content pane.
        JComponent newContentPane = new TabbedAbout();
        newContentPane.setOpaque(true); //content panes must be opaque
        frame.getContentPane().add(new TabbedAbout(),
                                 BorderLayout.CENTER);
        //Display the window.
        frame.setLocationRelativeTo(super.getComponent(0));
        frame.pack();
        frame.setResizable(false);
        frame.setVisible(true);
    protected JComponent makeTextPanel(String text) {
        JPanel panel = new JPanel(false);
        JLabel filler = new JLabel(text);
        filler.setHorizontalAlignment(JLabel.CENTER);
        //panel.setLayout(new GridLayout(1, 1));
        panel.add(filler);
        return panel;
    /** Returns an ImageIcon, or null if the path was invalid. */
    protected static ImageIcon createImageIcon(String path) {
        java.net.URL imgURL = TabbedAbout.class.getResource(path);
        if (imgURL != null) {
            return new ImageIcon(imgURL);
        } else {
            System.err.println("Couldn't find file: " + path);
            return null;
     * Create the GUI and show it.  For thread safety,
     * this method should be invoked from the
     * event-dispatching thread.
   // private static void createAndShowGUI() {
        //Make sure we have nice window decorations.
        //Create and set up the window.
  public static void main(String[] args) {
  //      //Schedule a job for the event-dispatching thread:
    //    //creating and showing this application's GUI.
        //javax.swing.SwingUtilities.invokeLater(new Runnable() {
         // public void run() {
               TabbedAbout a=new TabbedAbout();
    }Thanks in advance

I will try your suggestions. But still I don't understand. It was running independently very ok and it was what I wanted. It was built excatly as the example in
With run and main etc etc. But when I put it in my rest program it started and stack overflow error. Then I tried to change, change, change and got this last form.
This is what I had before but didn't work with my rest program.
* TabbedPaneDemo.java is a 1.4 example that requires one additional file:
*   images/middle.gif.
import javax.swing.JTabbedPane;
import javax.swing.ImageIcon;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JFrame;
import javax.swing.JComponent;
import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.GridLayout;
import java.awt.event.KeyEvent;
import java.awt.Dimension;
import java.awt.Rectangle;
public class TabbedAbout extends JPanel {
  JLabel label=new JLabel("PRODUCT INFORMATION ");
  JLabel pv=new JLabel("Product version:");
  JLabel pvR=new JLabel("1.0");
  JLabel javav=new JLabel("Java Version:");
  JLabel javavR=new JLabel("1.4.2");
  JLabel sqlv=new JLabel("PostgreSQL Version:");
  JLabel sqlvR=new JLabel("8.1");
  JLabel pt=new JLabel("Programming Team:");
  JLabel onoma1=new JLabel("Gkisis Traianos");
  JLabel onoma2=new JLabel("Zafeiropoulos Ioannis");
  JLabel onoma3=new JLabel("Supervisor Teacher:");
  JLabel onoma3R=new JLabel("Dimosthenis Stamatis");
  JLabel alr=new JLabel("Product developed as dissertation for the ATEI Thessaloniki on autumn 2006.");
  JLabel alr1=new JLabel("All rights reserved");
    public TabbedAbout() {
        //super(new GridLayout(1, 1));
        JTabbedPane tabbedPane = new JTabbedPane();
        ImageIcon icon = createImageIcon("images/folder_sticky.gif");
        JLabel panel1 = new JLabel();
        panel1.setIcon(new ImageIcon("images/TakeANote.jpg"));
        tabbedPane.addTab("About", icon, panel1);
        tabbedPane.setMnemonicAt(0, KeyEvent.VK_1);
        JPanel panel2 = new JPanel();
        JFrame frame = new JFrame();
        panel2.setLayout(null);
         label.setBounds(new Rectangle(170, 20, 150, 25));
         pv.setBounds(new Rectangle(90, 40, 175, 45));
         pvR.setBounds(new Rectangle(220, 40, 175, 45));
         javav.setBounds(new Rectangle(90, 60, 175, 45));
         javavR.setBounds(new Rectangle(220, 60, 175, 45));
         sqlv.setBounds(new Rectangle(90, 80, 175, 45));
         sqlvR.setBounds(new Rectangle(220, 80, 175, 45));
         pt.setBounds(new Rectangle(90, 100, 175, 45));
         onoma1.setBounds(new Rectangle(220, 100, 175, 45));
         onoma2.setBounds(new Rectangle(220, 120, 175, 45));
         onoma3.setBounds(new Rectangle(90, 140, 175, 45));
         onoma3R.setBounds(new Rectangle(220, 140, 175, 45));
         alr.setBounds(new Rectangle(30, 170, 500, 45));
         alr1.setBounds(new Rectangle(170, 190, 500, 45));
        panel2.add(label);
        panel2.add(pv);
        panel2.add(pvR);
        panel2.add(javav);
        panel2.add(javavR);
        panel2.add(sqlv);
        panel2.add(sqlvR);
        panel2.add(pt);
        panel2.add(onoma1);
        panel2.add(onoma2);
        panel2.add(onoma3);
        panel2.add(onoma3R);
        panel2.add(alr);
        panel2.add(alr1);
        tabbedPane.addTab("Detail", icon, panel2);
        tabbedPane.setMnemonicAt(1, KeyEvent.VK_2);
        tabbedPane.setSize(new Dimension(400, 300));
        //Add the tabbed pane to this panel.
        add(tabbedPane);
        //Uncomment the following line to use scrolling tabs.
        //tabbedPane.setTabLayoutPolicy(JTabbedPane.SCROLL_TAB_LAYOUT);
    protected JComponent makeTextPanel(String text) {
        JPanel panel = new JPanel(false);
        JLabel filler = new JLabel(text);
        filler.setHorizontalAlignment(JLabel.CENTER);
        //panel.setLayout(new GridLayout(1, 1));
        panel.add(filler);
        return panel;
    /** Returns an ImageIcon, or null if the path was invalid. */
    protected static ImageIcon createImageIcon(String path) {
        java.net.URL imgURL = TabbedAbout.class.getResource(path);
        if (imgURL != null) {
            return new ImageIcon(imgURL);
        } else {
            System.err.println("Couldn't find file: " + path);
            return null;
     * Create the GUI and show it.  For thread safety,
     * this method should be invoked from the
     * event-dispatching thread.
    private static void createAndShowGUI() {
        //Make sure we have nice window decorations.
        JFrame.setDefaultLookAndFeelDecorated(true);
        //Create and set up the window.
        JFrame frame = new JFrame("About");
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        //Create and set up the content pane.
        JComponent newContentPane = new TabbedAbout();
        newContentPane.setOpaque(true); //content panes must be opaque
        frame.getContentPane().add(new TabbedAbout(),
                                 BorderLayout.CENTER);
        //Display the window.
        frame.pack();
        frame.setVisible(true);
    public static void main(String[] args) {
        //Schedule a job for the event-dispatching thread:
        //creating and showing this application's GUI.
        javax.swing.SwingUtilities.invokeLater(new Runnable() {
            public void run() {
                createAndShowGUI();
}But independetly was working just fine. Excatly as I wanted
Message was edited by:
sickboy

Similar Messages

  • What caused the "java.lang.OutOfMemoryError (no stack trace available)"?

    We just met another problem: after I modified the BDM file on TUXEDO and bdmconfig.xml
    file on WEBLOGIC (with no ACL or authentication setup on both side), when I booted
    up the WebLogic 6.1 server, the ULOG file of Tuxedo says that the connection has
    been set up, however, I got the "java.lang.OutOfMemoryError (no stack trace available)"
    on the WebLogic side. I tried to enlarge the Java heap size even to 1024m, but it
    has no use. If I delete the WTC setting then WebLogic works fine.
    Could somebody helps me on this? Because we have a very tight schedule on development,
    I do appreciate your quick response.
    Thanks!
    Bill

    Hi,
    I am getting same OutofMemoryError. I could not understand change in bdmconfig.xml
    removed the outofmemory error.
    what is bdmconfig.xml file and you specified port#?
    I could not able to see any port # in the config.xml...
    any help is appreciated.
    RajKumar
    "Bill Yuan" <[email protected]> wrote:
    >
    Bob,
    Another expert in our company told me that we should use a different
    PORT# (kind
    of DUMMY port) in the bdmconfig.xml file on WebLogic side, instead of
    the real WebLogic
    instance PORT#. We tried and the OutOfMemoryError disappeared, and the
    WTC connection
    works OK. We don't know why should we do this, maybe it is a bug or some
    hardware
    requirement.
    Anyway, thank you very much for your help and quick respondse!
    have a good day!
    Bill
    Bob Finan <[email protected]> wrote:
    Bill,
    Check the logs to see if the out of memory is the only execption orif
    it is the last exception. It could be that there is something happening
    earlier on that you are missing.
    There are also other JVM problems that can arise besides the heap
    size. The Hotspot VM had an issue where you needed to set a maximum
    permanent generation size( helps garbage collection tuning I think).
    (-XX:MaxPermSize=32m for jdk130,64m for jdk131). It comes into
    play when you are loading many classes.
    Bob Finan
    Bill Yuan wrote:
    Bob,
    Thanks! We didn't set MTYPE in both BDMCONFIG files in Tuxedo and
    WebLogic
    sides.
    From the WTC document and Tuxedo document, it says that if MTYPE is
    not
    specified,
    the default is to turn ENCODING/DECODING on. Do you see any other
    possibilities?
    Thanks!
    Bill
    Bob Finan <[email protected]> wrote:
    Bill,
    One possible reason is if MTYPE is set, in the DMCONFIG on the
    Tuxedo side, as part of your remote domain definitions of the WTC
    domain. This should not be set or set it to NULL. This problem occurs
    because encoding/decoding is always needed between java and non-java
    domains.
    Bob Finan
    Bill Yuan wrote:
    We just met another problem: after I modified the BDM file on TUXEDO
    and
    bdmconfig.xml
    file on WEBLOGIC (with no ACL or authentication setup on both side),
    when
    I booted
    up the WebLogic 6.1 server, the ULOG file of Tuxedo says that the
    connection
    has
    been set up, however, I got the "java.lang.OutOfMemoryError (no
    stack
    trace available)"
    on the WebLogic side. I tried to enlarge the Java heap size even
    to
    1024m,
    but it
    has no use. If I delete the WTC setting then WebLogic works fine.
    Could somebody helps me on this? Because we have a very tight scheduleon development,
    I do appreciate your quick response.
    Thanks!
    Bill

  • Java tutorial - helps, problem  is i don't understand the API

    I don't understand the JAVA Tutorials or the API

    Take two steps back.
    Buy a book on basic Java Programming. You need to understand the concepts behind programming before you should start reading the API.
    But kudos for at least trying to read the API.
    Now look at the column on the left, and follow the link called [url http://developer.java.sun.com/developer/onlineTraining/] Tutorials 
    and then the link titled [url http://java.sun.com/docs/books/tutorial/index.html]The Java Tutorial (Java Series).
    And finally read through the sections starting with [url http://java.sun.com/docs/books/tutorial/getStarted/cupojava/index.html]Your First Cup of Java.
    Then once you have been through all of that, come back and ask for clarification
    on any specific points that you have trouble understanding.
    Finally (Because the Finally always gets executed) Try taking a class in java programming.
    regards

  • Roguelike / java.lang.OutOfMemoryError

    I'm currently working on a Java RogueLike.
    Each level is stored in a Vector grid[][]=new Vector[gridsize][gridsize]
    I wonder why i cannot use gridsize greater than approximatly 230X230 without getting an OutOfMemoryError.
    It appears to occur during the level (current environnement) generation.
    During this generation a lot of Objects are created and stored in the grid.
    What is the general meaning of the java.lang.OutOfMemoryError ?
    What kind of memory is it ? (it doesn't seem to be the RAM)
    You can get the current source here if you want =
    http://cryptmaster.free.fr/cryptrl/

    230*230*(8 bytes/reference)/1024/1024 = 0.2MB, which isn't much.
    But this is a 2D array of Vectors, which can hold other references. So as you create Objects and add their references to the Vector, each one is eating up memory and expanding the size of your grid. You'll need to profile this app to see where all these Objects are coming from.
    I'd think about why you have to add them to this grid. It guarantees that none of the Objects you've added will ever be garbage collected, so your memory requirements will only grow with time. Unless you have a way of removing Objects from the grid when you're done with them, it's only a matter of time before you get an OutOfMemoryError.
    %

  • Java.lang.OutOfMemoryError: PermGen space in Weblogic 10.3

    Hi,
    I Installed OIM in Oracle Weblogic 10.3.When I try to execute the patch_weblogic.cmd ,I am getiing the "java.lang.OutOfMemoryError: PermGen space".I tried increasing the size in xlStartWLS.cmd file.But still the error exists.Any ide?.Following is the error trace:
    wldeploy] Caused by: javax.enterprise.deploy.spi.exceptions.DeploymentManagerCreationException: [J2EE Deployment SPI:260009]Exception caught for class 'weblogic.deploy.api.spi.deploy.internal.ServerConnectionImpl' while attempting to create DeploymentManager: java.lang.OutOfMemoryError: PermGen space
    [wldeploy]      at weblogic.deploy.api.spi.deploy.WebLogicDeploymentManagerImpl.<init>(WebLogicDeploymentManagerImpl.java:130)
    [wldeploy]      at weblogic.deploy.api.spi.factories.internal.DeploymentFactoryImpl.getDeploymentManager(DeploymentFactoryImpl.java:84)
    [wldeploy]      at weblogic.deploy.api.tools.SessionHelper.getDeploymentManager(SessionHelper.java:446)
    [wldeploy]      at weblogic.deploy.api.tools.deployer.Jsr88Operation.connect(Jsr88Operation.java:304)
    [wldeploy]      ... 32 more
    [wldeploy] Caused by: java.lang.OutOfMemoryError: PermGen space
    [wldeploy]      at java.lang.Class.getDeclaredMethods0(Native Method)
    [wldeploy]      at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
    [wldeploy]      at java.lang.Class.getDeclaredMethod(Class.java:1935)
    [wldeploy]      at java.io.ObjectStreamClass.getInheritableMethod(ObjectStreamClass.java:1349)
    [wldeploy]      at java.io.ObjectStreamClass.access$2200(ObjectStreamClass.java:52)
    [wldeploy]      at java.io.ObjectStreamClass$2.run(ObjectStreamClass.java:448)
    [wldeploy]      at java.security.AccessController.doPrivileged(Native Method)
    [wldeploy]      at java.io.ObjectStreamClass.<init>(ObjectStreamClass.java:413)
    [wldeploy]      at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:310)
    [wldeploy]      at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1106)
    [wldeploy]      at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
    [wldeploy]      at weblogic.rjvm.OutboundMsgAbbrev.writeObject(OutboundMsgAbbrev.java:77)
    [wldeploy]      at weblogic.rjvm.OutboundMsgAbbrev.writeAbbrevs(OutboundMsgAbbrev.java:56)
    [wldeploy]      at weblogic.rjvm.OutboundMsgAbbrev.write(OutboundMsgAbbrev.java:39)
    [wldeploy]      at weblogic.rjvm.MsgAbbrevJVMConnection.writeMsgAbbrevs(MsgAbbrevJVMConnection.java:212)
    [wldeploy]      at weblogic.rjvm.MsgAbbrevJVMConnection.sendMsg(MsgAbbrevJVMConnection.java:180)
    [wldeploy]      at weblogic.rjvm.MsgAbbrevJVMConnection.sendMsg(MsgAbbrevJVMConnection.java:142)
    [wldeploy]      at weblogic.rjvm.ConnectionManager.findOrCreateConnection(ConnectionManager.java:1465)
    [wldeploy]      at weblogic.rjvm.ConnectionManager.bootstrap(ConnectionManager.java:437)
    [wldeploy]      at weblogic.rjvm.ConnectionManager.bootstrap(ConnectionManager.java:315)
    [wldeploy]      at weblogic.rjvm.RJVMManager.findOrCreateRemoteInternal(RJVMManager.java:251)
    [wldeploy]      at weblogic.rjvm.RJVMManager.findOrCreate(RJVMManager.java:194)
    [wldeploy]      at weblogic.rjvm.RJVMFinder.findOrCreateRemoteServer(RJVMFinder.java:225)
    [wldeploy]      at weblogic.rjvm.RJVMFinder.findOrCreate(RJVMFinder.java:188)
    [wldeploy]      at weblogic.rjvm.ServerURL.findOrCreateRJVM(ServerURL.java:153)
    [wldeploy]      at weblogic.jndi.WLInitialContextFactoryDelegate$1.run(WLInitialContextFactoryDelegate.java:344)
    [wldeploy]      at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
    [wldeploy]      at weblogic.security.service.SecurityManager.runAs(Unknown Source)
    [wldeploy]      at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:339)
    [wldeploy]      at weblogic.jndi.Environment.getContext(Environment.java:315)
    [wldeploy]      at weblogic.jndi.Environment.getContext(Environment.java:285)
    [wldeploy]      at weblogic.jndi.Environment.createInitialContext(Environment.java:208)
    [ant] Exiting C:\oim910\oimserver\xellerate\setup\weblogic-setup.xml.
    java.lang.OutOfMemoryError: PermGen space
         at org.apache.tools.ant.DefaultLogger.formatTime(DefaultLogger.java:276)
         at org.apache.tools.ant.DefaultLogger.buildFinished(DefaultLogger.java:156)
         at org.apache.tools.ant.Project.fireBuildFinished(Project.java:1848)
         at org.apache.tools.ant.Main.runBuild(Main.java:688)
         at org.apache.tools.ant.Main.startAnt(Main.java:187)
         at org.apache.tools.ant.Main.start(Main.java:150)
         at org.apache.tools.ant.Main.main(Main.java:240)
    PermGen space
    Any input is highly appreciated.Thanks

    # Increase MaxPerm size
    eg: -XX:+MaxPermSize=256m
    # These additional parameters may also be helpful in some cases.
    eg: -Xmn1228m -XX:+AggressiveHeap -Xms2048m -Xmx2048m

  • ! java.lang.OutOfMemoryError in 8.1.6.3.0 !

    Today I have installed path 8.1.6.3.0 on my 8.1.6.0.0 OracleEE (Sun Solaris8 x86). Before that action my JServer work correctly, but after this patch JServer was down. It cannot process any action (loadjava, sess_sh and so on) and always generate the java.lang.OutOfMemoryError or java.lang.NegativeArraySizeException!!!
    What is the problem?
    the trace file:
    Dump file /oracle/app/oracle/admin/PHNET3/bdump/s000_18344.trc
    Oracle8i Enterprise Edition Release 8.1.6.3.0 - Production
    With the Partitioning option
    JServer Release 8.1.6.3.0 - Production
    ORACLE_HOME = /oracle/app/oracle/product/8.1.5
    System name: SunOS
    Node name: phnet3
    Release: 5.8
    Version: Generic
    Machine: i86pc
    Instance name: PHNET3
    Redo thread mounted by this instance: 1
    Oracle process number: 11
    Unix process pid: 18344, image: oracle@phnet3 (S000)
    *** 2001-06-18 10:08:46.137
    *** SESSION ID:(17.1876) 2001-06-18 10:08:46.124
    java.lang.OutOfMemoryError
    at oracle.aurora.rdbms.security.SchemaProtectionDomain.fabricateAccessContext(SchemaProtectionDomain.java)
    at java.security.AccessController.getStackAccessControlContext(AccessController.java)
    at java.security.AccessController.checkPermission(AccessController.java)
    at java.lang.SecurityManager.checkPermission(SecurityManager.java)
    at oracle.aurora.rdbms.SecurityManagerImpl.checkPermission(SecurityManagerImpl.java)
    at java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java)
    at oracle.aurora.rdbms.SecurityManagerImpl.checkPropertyAccess(SecurityManagerImpl.java)
    at java.lang.System.getProperty(System.java)
    at oracle.aurora.rdbms.Compiler.setMemory(Compiler.java)
    at oracle.aurora.rdbms.Compiler.doCompile(Compiler.java)
    at oracle.aurora.rdbms.Compiler.compile(Compiler.java)
    java.lang.OutOfMemoryError
    at oracle.aurora.rdbms.security.SchemaProtectionDomain.fabricateAccessContext(SchemaProtectionDomain.java)
    at java.security.AccessController.getStackAccessControlContext(AccessController.java)
    at java.security.AccessController.checkPermission(AccessController.java)
    at java.lang.SecurityManager.checkPermission(SecurityManager.java)
    at oracle.aurora.rdbms.SecurityManagerImpl.checkPermission(SecurityManagerImpl.java)
    at oracle.aurora.security.JServerPermission.check(JServerPermission.java)
    at oracle.aurora.vm.OracleRuntime.setMaxMemorySize(OracleRuntime.java)
    at oracle.aurora.rdbms.Compiler$1.run(Compiler.java)
    at java.security.AccessController.doPrivileged(AccessController.java)
    at oracle.aurora.rdbms.Compiler.setMemory(Compiler.java)
    at oracle.aurora.rdbms.Compiler.setNumberOfClassesResolved(Compiler.java)
    *** 2001-06-18 10:36:52.247
    *** SESSION ID:(15.1950) 2001-06-18 10:36:52.247
    java.lang.OutOfMemoryError
    at oracle.aurora.rdbms.security.SchemaProtectionDomain.fabricateAccessContext(SchemaProtectionDomain.java)
    at java.security.AccessController.getStackAccessControlContext(AccessController.java)
    at java.security.AccessController.checkPermission(AccessController.java)
    at java.lang.SecurityManager.checkPermission(SecurityManager.java)
    at oracle.aurora.rdbms.SecurityManagerImpl.checkPermission(SecurityManagerImpl.java)
    at oracle.aurora.security.JServerPermission.check(JServerPermission.java)
    at oracle.aurora.vm.OracleRuntime.setMaxMemorySize(OracleRuntime.java)
    at oracle.aurora.rdbms.Compiler$1.run(Compiler.java)
    at java.security.AccessController.doPrivileged(AccessController.java)
    at oracle.aurora.rdbms.Compiler.setMemory(Compiler.java)
    at oracle.aurora.rdbms.Compiler.doCompile(Compiler.java)
    at oracle.aurora.rdbms.Compiler.compile(Compiler.java)
    java.lang.OutOfMemoryError
    at oracle.aurora.rdbms.security.SchemaProtectionDomain.fabricateAccessContext(SchemaProtectionDomain.java)
    at java.security.AccessController.getStackAccessControlContext(AccessController.java)
    at java.security.AccessController.checkPermission(AccessController.java)
    at java.lang.SecurityManager.checkPermission(SecurityManager.java)
    at oracle.aurora.rdbms.SecurityManagerImpl.checkPermission(SecurityManagerImpl.java)
    at oracle.aurora.security.JServerPermission.check(JServerPermission.java)
    at oracle.aurora.vm.OracleRuntime.setMaxMemorySize(OracleRuntime.java)
    at oracle.aurora.rdbms.Compiler$1.run(Compiler.java)
    at java.security.AccessController.doPrivileged(AccessController.java)
    at oracle.aurora.rdbms.Compiler.setMemory(Compiler.java)
    at oracle.aurora.rdbms.Compiler.setNumberOfClassesResolved(Compiler.java)
    P.S.: I try to reinstall JServer usinf javavm/insatall scripts. But the errors still occur.
    null

    I am having similar problems.
    ** 2001-08-09 09:29:09.772
    ** SESSION ID:(13.67) 2001-08-09 09:29:09.772
    ox_call_java_pres_: caught
    RA-04031: unable to allocate 4032 bytes of shared memory ("large
    pool","unknown object","joxu heap init","ioc_allocate_pal")
    I edited the init.ora in $ORACLE_HOME/dbs/ and changed or added the line:
    shared_pool_size=100000000
    java_pool_size=70000000
    I added java_pool_size line because there was no line like that in the typical install of oracle8.1.7 on solaris.
    Then, I used dbshut to shut down all the oracle processes. I also used the listener ctl program in $ORACLE_HOME/bin to stop the listener. Then, I ran dbstart.
    That should re-initialize oracle and the jserver should use the settings in init.ora, right?
    But when I run an entity bean program, i still get the same error (at the top of this message). I get similar problems when I run the basic or entity (customer) demo.
    Am I doing something wrong?
    null

  • Embedded OC4J Error : java.lang.OutOfMemoryError: PermGen space

    Hi all,
    When testing apps using embbed OC4J I experience the java.lang.OutOfMemoryError: PermGen space.
    If occur on OAS, I add :add -X:MaxPermSize=256m to the startup java options on opmn.xml, and problem solved.
    How can I set the startup jaav option for embedded OC4J ?
    Thank you,
    xtanto

    hi xtanto
    To set system properties for the embedded OC4J you could try "Project Properties" > "Run/Debug" > "Edit..." some "Run Configuration" and add your property to "Java Options" on the "Launch Settings" panel.
    success
    Jan Vervecken

  • Java.lang.OutOfMemoryError:PermGen space error

    We haven't been able to go live with our help systems on RoboHelp Server 8 yet due to some major memory issues with Tomcat/RoboHelp Server. We've been working with Tulika on this issue, but I just wanted to check in and see if anyone else here has experienced such a thing, and if so....what did you do to fix it?
    After installing the server, having it up and running for a few months, and posting help systems to the server....it suddenly has serious memory issues that are making it crash.
    We were advised to configure the maximum and minimum heap space setings for Initial memory pool and maximum memory pool both to the following: 256, 512, 768 and 1024. 
    We are receiving the java.lang.OutOfMemoryError: PermGen space error when increasing the setting to 512.  When trying to increase the setting to 768 or 1024 Apache Tomcat uses 100% of the CPU and then stops after about a minute.  When trying to start the service back up it spikes to 100% CPU usage and then dies again. This happens continuously and makes it so the services constantly stop! If you try to hit a site that is hosted on the RH 8 Server it causes it to spike and crashes.
    Overview:
    Software being used Adobe Robohelp8 and Apache Tomcat 6.0.
    We have around 11 sites being hosted on Robohelp8.
    Server specs are 2.93GHz processor and 4G RAM.

    Hi jdcyclone1,
    You need to increase PermSpace available to your tomcat. You can do that using <tomcat-install-dir>/bin/tomcat6w.exe
    Just ensure that your “Maximum memory pool” and “XX:MaxPermSize” should not add up to more than actual memory you can make available to tomcat. The setting is as shown in this snapshot:

  • Java.lang.OutOfMemoryError: GC overhead limit exceeded

    We just installed Livecycle ES2 and we are getting the "java.lang.OutOfMemoryError: GC overhead limit exceeded" error when trying to deploy a new application.  We are running on a Windows 2008 64bit OS.  Any help to resolve this error (it is completely stalling out jboss) would be greatly appreciated!

    On redeployment this problem also occurs in windows machine and 32 bit, 64 bit machine alike? Maybe experts can tell why ?

  • Java.lang.OutOfMemoryError.Error is null

    Hi
    While deploying the adobe-livecycle-websphere.ear file iam getting the "java.lang.OutOfMemoryError.Error is null." Can you help in rectifying this error?
    We are Thinking that this error is because of heap size, if we are correct please do let us know how to increase the heap size.
    We kept Initial Heap Size box as 256 and the Maximum Heap Size box 1024.Also we tried with Maximum Heap Size box as 0(Zero) but we are getting the same error. Please Help us ....

    Do you have WebSphere 6.1 SP5 installed?
    What version do you get when you execute the command %JAVA_HOME%\bin\java -version?
    This is coming from the installation document:
    Installing WebSphere Application Server
    You must install WebSphere Application Server 6.1 for running LiveCycle ES products.
    When you run the LiveCycle ES installer, you should run it as the same user.
    Installing a Fix Pack to WebSphere 6.1
    After you have installed WebSphere 6.1, you must update to Fix Pack 5 or later before you deploy LiveCycle ES.
    Refer to the WebSphere support website for access to the WebSphere updates.
    Setting the JAVA_HOME and PATH environment variables
    As part of your WebSphere installation, a Java SDK was installed. The JAVA_HOME and PATH environment
    variables must point to the Java SDK where LiveCycle ES is to be deployed.
    ➤ To set the JAVA_HOME environment variable (Windows):
    1. Select Start > Control Panel > System.
    2. Click the Advanced tab.
    3. Click Environment Variables.
    4. In the System Variables area, click New.
    5. Enter JAVA_HOME as the variable name and enter the directory where you installed Java SDK. This directory is where WebSphere installed the Java SDK containing the /bin sub directory.
    For example,type the following:
    C:\Program Files\IBM\WebSphere\AppServer\java
    Note: To verify your JAVA_HOME environment variable, open a command prompt and run the following
    command: %JAVA_HOME%\bin\java -version
    You should receive a response that begins with java version "1.5.0".
    Jasmin

  • Error getting while deploying the application (java.lang.OutOfMemoryError).

    Hi,
    I am trying to migrate an application from JBoss to SAP Netweaver WAS.
    I am getting an exception when i am trying to deploy the application from Netweaver developer studio as "<b>java.lang.OutOfMemoryError</b>". The portion of the stack is given below,
    <b>Caused by: com.sap.engine.services.ejb.exceptions.deployment.EJBFileGenerationException: Errors while compiling:
    The system is out of resources.
    Consult the following stack trace for details.
    java.lang.OutOfMemoryError
         at com.sap.engine.services.ejb.util.AdminUtils.compile(AdminUtils.java:476)
         at com.sap.engine.services.ejb.deploy.DeployAdmin.deploySingleJar(DeployAdmin.java:625)
         at com.sap.engine.services.ejb.deploy.DeltaDeployAdmin.makeUpdate(DeltaDeployAdmin.java:185)
         at com.sap.engine.services.ejb.EJBAdmin.makeUpdate(EJBAdmin.java:529)</b>
    I heard that by changing some configuration values, we can resolve the problem (like adjusting -Xms & - Xmx parameters as well as the Max threads). But i don't know in which script/ tool should i find these settings to change.
    Could you please share your knowledge in this regard,
    Best regards,
    Sudheesh...

    Hi
    You can change the XMX and thread  parameter in the Visual Administrator.
    Please refer to the link below:
    http://help.sap.com/saphelp_erp2005/helpdata/en/42/c98d6b11886babe10000000a1553f6/frameset.htm
    Hope this helps,
    Regards,
    Harish
    (Please award points for useful answers)

  • Constantly getting java.lang.OutOfMemoryError when submitting the form.

    Hello,
    I know this doesn't exactly pertain to Form Server, but maybe someone has some insight.
    I set up JBoss 3.2.5 with Java 1.4.2.11 on a seperate machine to do a remote connection to my LiveCycle environment.
    I am using the SOAPClient sample from the developer guide to save my form. I am able to save the submitted form for just fine, but I can only do so once and the second time I always get am error: "javax.servlet.ServletException: Servlet execution threw an exception" root cause: "java.lang.OutOfMemoryError"
    Even with just the code from the guide, I get this error. Does anyone have any insight into fixing this? I really don't know what to fix in the code since I used the sample from the guide and they close the objects if that was an issue. If it matters, the pdf file I am submitting to be saved is about 800KB and then the saved file size is about 1400KB
    I already tried setting within the run.conf file the following: JAVA_OPTS="-server -Xms1028m -Xmx1028m" but I still get the same out of Memory error. The only error within the server.log file is the following:
    2007-01-10 15:46:19,125 ERROR [org.jboss.web.localhost.Engine] StandardWrapperValve[SubmitPart1]: Servlet.service() for servlet SubmitPart1 threw exception
    java.lang.OutOfMemoryError
    Thanks,
    Jennifer

    Hi Jennifer,
    If the problem is not yet resolved here is my suggestion.
    With my interaction with Adobe I came to know that SOAP has a limitation of handling a max of 10 MB and in real-time you may stitch the forms more than 10MB.
    Use the EJBClient instead of SOAPClient.
    You may set this is in FormServerDefinition class.
    Thanks,
    Vijay

  • Serious system error while executing the query: java.lang.OutOfMemoryError

    From ALSB, we are trying to insert records in a table, by calling the ALDSP webservice. It is working fine when the xml (ie., given as input to the ALDSP webservice) is small. But facing the following error when the input xml size is large.
    <ALDSP> <BEA-000000> <Product> <Serious system error while executing the query:
    {ld:ABC/Test}createTest:1
    java.lang.OutOfMemoryError: Java heap space
    We do not want to increase the heap size. Is there any other way we can solve this problem?

    In logical dataservice of ALDSP we have created a procedure called createTest, which is used to insert mulitple rows in the table. We have created a webservice for that logical DataService.
    Using the ALSB, we are calling the webservice -> createTest Operation and we are passing xml as input to that createTest function.
    Input xml:
    <ns1:createTest>
    <ns1:createTemps>
    <ns0:createTemp>
         <ns0:field1>1</ns0:field1>
              <ns0:field10>test1</ns0:field10>
    </ns0:createTemp>                
    <ns0:createTemp>
         <ns0:field1>2</ns0:field1>
              <ns0:field10>test2</ns0:field10>
    </ns0:createTemp>
         </ns1:createTemps>     
    </ns1:createTest>
    each ns0:createTemp represent a row that need to be inserted in the table.
    When the number of ns0:createTemp is less ( when the number of rows that need to be inserted is less) then no problem occurs, it is getting inserted properly. But when there are more number of ns0:createTemp then we are getting the following error
    <ALDSP> <BEA-000000> <Product> <Serious system error while executing the query:
    {ld:ABC/Test}createTest:1
    java.lang.OutOfMemoryError: Java heap space

  • SIGNING IN TO THE JDC - java.lang.OutOfMemoryError

    Today when I try and sign in I keep getting: Exception java.lang.OutOfMemoryError: requested 164 bytes.
    I found a work-around and someone suggested I post a link to it here (I posted it in the Discuss the JDC Web Site forum) so here it is: http://forum.java.sun.com/thread.jsp?forum=10&thread=299468 (see reply 2)

    Thank, Lucke. Your work around works perfect.

  • Java.lang.OutOfMemoryError when click on the  "performance" tab in dbconsol

    THis is 10.2.0.3 DB on Oracle-Linux Rel5. I got the error "java.lang.OutOfMemoryError" in "emoms.log" whenever I click on the "performance" Tab in DBCONSOLE. The rest of the dbconsole features is working fine.
    Please help...
    Thanks!

    It was and Oracle bug#6469196/5880921. I installed patch#5880921 and It foxed the proble.

Maybe you are looking for