Java.lang.system and InputStream

java.lang.system has 3 fields defined:
static PrintStream err;
static InputStream in;
static PrintStream out;
As InputStream is a abstract class, can it be used to declare a variable? If so, how to instantiate?
Thanks

java.lang.system has 3 fields defined:
static PrintStream err;
static InputStream in;
static PrintStream out;
As InputStream is a abstract class, can it be used to declare a variable? If so, how to instantiate?You cannot create an object from an abstract class; you can create an object from a sub class of
that abstract class, and that's exactly what that Stystem.in is refering to, an object from a sub
class of the abstract class InputStream. This sub class still IS-A Inputstream and all you have
to know that it behaves exacty as an InputStream.
Think of it this way -- 'birds' by themselves do not exist; sparrows exist and parrots and penguins exist.
Still you can point to a penguin and say "hey! That's a bird". And so is the object refered to by the
System.in variable an InputStream.
kind regards,
Jos

Similar Messages

  • 8i on RH7.1 with java.lang.System error

    Hi all,
    Please excuse me if this is the incorrect forum for this message.
    I've installed 8i on redhat 7.1 quite a few times, but have never experienced this problem. When I try to start dbassist, netca or any GUI driven app that requires a JVM, I get the following error:
    Can't not find java.lang.System
    Can't not create JVM
    I've installed blackdown 1.1.8_v3, and have changed the JRE symlink in $ORACLE_HOME to point ot where blackdown is located.
    I've already tried unset LANG and unset NLS_LANG. Any suggestions will be greatly appreciated!! Thanks in advance.
    Ed

    Hi
    I'll say that you have to post this message to the "Installation" forum, i.e. Database Installation
    Chris

  • Java/lang/system.gc() error

    Hi there, i have a problem with java.
    When i enter a webpage that uses a java menu script i get this message: " The applet is trying to invoke the java/lang/system.gc() operation " then i get 3 choises Allow, Disallow and Stop applet.
    I have tryed them all :( but it still popping up
    http://img246.imageshack.us/img246/3773/errorow3.jpg <-- image of the problem (The menu to the left contains alot of submenues)
    and the message appears when i just click at one of them, its quite annoying :s
    Its not the internet page, i have tryed it on another computer and there it works fine
    I am using J2SE(TM) Runtime Environment 5.0 Update 8 and have tryed some older versions to
    can someone help me :) ?
    Best regards
    Kristoffer
    Ps. sorry for bad english

    Can you export the log messages from the java console to a file, the export should contain a detailed exception stack for the issue which may give some hints of the issue. The Unsupported Features and APIs (Release 13.2) does not explicitly mention garbage collection as restricted, however it does mention:
        Setting of operating system environment variables, Java system properties, or JVM/Server command-line parameters.
    Since the issue seems to come from the gc call you could try disabling it from your by calling the WorkbookSettings.setGCDisabled(true) to see if that makes any difference. Note that if GC is disabled there will be impact on performance and / or resource consumption.
    Jani Rautiainen
    Fusion Applications Developer Relations
    https://blogs.oracle.com/fadevrel/

  • Can't resolve java.lang.System.out

    Hi,develpoers:
    Does anyone know how to fix this problem:
    C:\cai\VCTest\robo-sdk\build\sun\robot\vision\Search1.java:57: cannot resolve symbol
    symbol : variable out
    location: class java.lang.System
    System.out.println("Look returned null VisionImage");
    I don't know why this error occured because this application ran well last day.
    Thanks in advance!
    Cai

    But there is no other variable named "System". All the fields of "System" cannot be used but System.exit(1)can work. And all the methods of String like trim()can not work. Below is the codes:
    package sun.robot.vision;
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.image.*;
    import SK.gnome.twain.*;
    import sun.robot.vision.*;
    import java.lang.System;
    import java.io.*;
    public class Search1
    public Search1() {
    public void searchPuck(String colourString) {
    Image i;
    boolean found = false;
    VisionImage image = null;
    byte colour = VisionImage.NO_COLOUR;
    if (colourString.equals("red"))
    colour = VisionImage.RED;
    if (colourString.equals("blue"))
    colour = VisionImage.BLUE;
    if (colour == VisionImage.NO_COLOUR) {
    System.out.println("Invalid colour. Must be one of red or blue");
    System.exit(1);
    while (!found) {
    TwainSource source = null;
    /* grab an image from the camera */
    try {
              try{      source=TwainManager.getDefaultSource();}catch(Exception e){}
                   i=Toolkit.getDefaultToolkit().createImage(source);
              image = new VisionImage(i);          
              if (image == null) {
    System.out.println("Look returned null VisionImage");//here got the error
    System.exit(1);
    } catch (VisionException ve) {
    // System.out.println("Unable to look");
    // System.out.println(ve.getMessage());
    System.exit(1);
    image.setDebugLevel(2);
    if (image.canYouSee(colour) == false){}
    //do nothing
    else
    found = true;
    VisionObject puck = image.getVisionObject(colour);
    if (puck == null) {
    // System.out.println("Internal Error: ball is null object");
    System.exit(1);
    /* Print a message to tell the user that we've found the ball and
    * where it is relative to the robot
    StringBuffer saw = new StringBuffer("I see the ball " );
              StringBuffer size = new StringBuffer( );
    if (puck != null) {
    int pos = puck.getPosition();
    switch (pos) {
    case VisionObject.LEFT:
    saw.append("to the left of the robot");
    break;
    case VisionObject.CENTRE:
    saw.append("in front of the robot");
    break;
    case VisionObject.RIGHT:
    saw.append("to the right of the robot");
    break;
              size.append(image.getHeight()+","+image.getWidth());
    // System.out.println(size.toString());
    // System.out.println(saw.toString());
    Point c = puck.getCentre();
    mc.send(3);
    //System.exit(0);
    public static void main(String[] args) {
    if (args.length < 1) {
    //System.out.println("Usage: Fetch <ball_colour>");
    System.exit(1);
    //System.out.println("it is me");
    // String colourString = args[0].toLowerCase();
         String colourString = args[0];
         colourString= colourString.trim();//trim cannot work
    Search1 f = new Search1();
    f.searchPuck(colourString);
    Any help will be highly approciated.
    Cai

  • URGENT- PLEASE HELP: java.lang.threads and BC4J

    Hi,
    according to my issue "no def found for view" in the same titled thread I'm wondering how you would implement asynchronous calls of methods that use BC4J to update a couple of data.
    To be more precise:
    A requirement of our software is to start an update database job, which can take a couple of minutes/hours, from the web browser. Before it will be executed the logged-in user receives a notification that this batch job has been started.
    I dont't want to use JMS overhead and MD Beans for this simple requirement, therefore I implemented a class that extends java.lang.Thread and put all the update codings within the run method. After having called the start-method of the thread I get a JBO-25022(No XML file found) error when I try to set a new value for an attribute of the row. The row consists of attributes which belong to four entity objects that mus be updated.
    When calling the run method directly, everything works fine.
    My questions:
    * do you know any workaround how to make the xml files
    reachable?
    * how would you implement anschronous calls of long time-
    consuming jobs?
    * is this a bug of BC4J?
    Any help, tip, hint is really appreciated.
    Stefan

    Arno,
    many thanks for your reply:
    Here is an excerpt of the source code of my thread "Aenderungsdienst":
    public class Aenderungsdienst extends java.lang.Thread
    private SviAdministrationModuleImpl mSviModul;
    // Application module that contains view object
    // IKViewImpl
    public Aenderungsdienst(SviAdministrationModuleImpl aSviModul)
    mSviModul = aSviModul;
    public void run()
    ausfuehrenAenderungsdienst(mAenderungsdienstNr); <--error within this methode
    private int ausfuehrenAenderungsdienst(String aAenderungsdienstNr)
    int rAnzahlSaetze = 0;
    try
    IkViewImpl aenderungen = mSviModul.getIkView();
    aenderungen.suchenAenderungssaetze(aAenderungsdienstNr); <-- method within View Object Impl that executes a query with customized where-clauses
    if ((rAnzahlSaetze = aenderungen.getRowCount()) > 0)
    IkViewRowImpl ik = null;
    while (aenderungen.hasNext())
    ik = (IkViewRowImpl) aenderungen.next();
    ik.setBestandsstatus("B"); <-- error occurs here when setting the status of a current row in my rowset to "B"
    mSviModul.getTransaction().postChanges();
    mSviModul.getTransaction().commit();
    catch (Exception e)
    e.printStackTrace();
    mSviModul.getTransaction().rollback();
    //todo: Verarbeitungsprotokoll erstellen
    return rAnzahlSaetze;
    This thread will be called by the application module "sviAdministrationModuleImpl":
    public void ausfuehrenAenderungsdienst(String
    aAenderungsdienstNr)
    Aenderungsdienst aenderungsdienst = new
    Aenderungsdienst(this);
    aenderungsdienst.setAenderungsdienstNr
    (aAenderungsdienstNr);
    aenderungsdienst.start();
    Using the start() method of the thread causes this exception:
    [653] No xml file: /hvbg/svi/model/businessobjects/businessobjects.xml, metaobj = hvbg.svi.model.businessobjects.businessobjects
    [654] Cannot Load parent Package : hvbg.svi.model.businessobjects.businessobjects
    [655] Business Object Browsing may be unavailable
    [656] No xml file: /hvbg/svi/model/businessobjects/IK_Inlandsbankverb.xml, metaobj = hvbg.svi.model.businessobjects.IK_Inlandsbankverb
    09.03.2004 10:27:41 hvbg.common.businessobjects.HvbgEntityImpl setAttributeInternal
    SCHWERWIEGEND: Fehler beim Setzen des Attributs 1 im Entity Objekt: JBO-25002: Definition hvbg.svi.model.businessobjects.IK_Inlandsbankverb vom Typ Entitätszuordnung nicht gefunden.
    09.03.2004 10:27:42 hvbg.svi.model.dienste.Aenderungsdienst ausfuehrenAenderungsdienst
    SCHWERWIEGEND: Beim Ausführen des Aenderungsdienstes 618 trat während der DB-Aktualisierung ein schwerer Fehler auf:
    JBO-25002: Definition hvbg.svi.model.businessobjects.IK_Inlandsbankverb vom Typ Entitätszuordnung nicht gefunden.
    oracle.jbo.NoDefException: JBO-25002: Definition hvbg.svi.model.businessobjects.IK_Inlandsbankverb vom Typ Entitätszuordnung nicht gefunden.
         at oracle.jbo.mom.DefinitionManager.findDefinitionObject(DefinitionManager.java:328)
         at oracle.jbo.mom.DefinitionManager.findDefinitionObject(DefinitionManager.java:268)
         at oracle.jbo.server.MetaObjectManager.findMetaObject(MetaObjectManager.java:649)
         at oracle.jbo.server.EntityAssociation.findEntityAssociation(EntityAssociation.java:98)
         at oracle.jbo.server.AssociationDefImpl.resolveEntityAssociation(AssociationDefImpl.java:725)
         at oracle.jbo.server.AssociationDefImpl.getEntityAssociation(AssociationDefImpl.java:135)
         at oracle.jbo.server.AssociationDefImpl.hasContainer(AssociationDefImpl.java:546)
         at oracle.jbo.server.AssociationDefImpl.getContainer(AssociationDefImpl.java:468)
         at oracle.jbo.server.EntityImpl.getContainer(EntityImpl.java:1573)
         at oracle.jbo.server.EntityImpl.setValidated(EntityImpl.java:1649)
         at oracle.jbo.server.EntityImpl.setAttributeValueInternal(EntityImpl.java:2081)
         at oracle.jbo.server.EntityImpl.setAttributeValue(EntityImpl.java:1985)
         at oracle.jbo.server.AttributeDefImpl.set(AttributeDefImpl.java:1700)
         at oracle.jbo.server.EntityImpl.setAttributeInternal(EntityImpl.java:946)
         at hvbg.common.businessobjects.HvbgEntityImpl.setAttributeInternal(HvbgEntityImpl.java:56)
         at hvbg.svi.model.businessobjects.IKImpl.setBestandsstatus(IKImpl.java:174)
         at hvbg.svi.model.businessobjects.IKImpl.setAttrInvokeAccessor(IKImpl.java:770)
         at oracle.jbo.server.EntityImpl.setAttribute(EntityImpl.java:859)
         at oracle.jbo.server.ViewRowStorage.setAttributeValue(ViewRowStorage.java:1108)
         at oracle.jbo.server.ViewRowStorage.setAttributeInternal(ViewRowStorage.java:1019)
         at oracle.jbo.server.ViewRowImpl.setAttributeInternal(ViewRowImpl.java:1047)
         at hvbg.svi.model.dataviews.IkViewRowImpl.setBestandsstatus(IkViewRowImpl.java:264)
         at hvbg.svi.model.dienste.Aenderungsdienst.ausfuehrenAenderungsdienst(Aenderungsdienst.java:337)
         at hvbg.svi.model.dienste.Aenderungsdienst.run(Aenderungsdienst.java:290)
    Using run(), everything works perfectly.
    The view object IKView consists of four entity objects which are linked by associations. There exists an association between the entity objects ik and inlandbankverb. The xml-file for the association object is named "ik_inlandsbankverb.xml". It seems so that this definition could not be found when calling my thread in asynchronous (via start()-method call) mode.
    Is this a bug of JDeveloper?
    Thanks in advance,
    Stefan

  • Hi java.lang.System.gc() vs java.lang.Runtime.gc()

    hi all what is the exact diff.,
    java.lang.System.gc() vs java.lang.Runtime.gc()
    why dont I call Runtime.gc() like System.gc(), is ther any possibility ?
    Thanks in advance

    Thanks, but I just want to call Runtime.gc() like
    System.gc() forcefully to invoke finalize() method
    Thanks in advanceThe calls are the same. Read the javadoc:
    http://java.sun.com/j2se/1.5.0/docs/api/java/lang/System.html#gc()
    public static void gc()
    Runs the garbage collector.
    Calling the gc method suggests that the Java Virtual Machine expend effort toward recycling unused objects in order to make the memory they currently occupy available for quick reuse. When control returns from the method call, the Java Virtual Machine has made a best effort to reclaim space from all discarded objects.
    The call System.gc() is effectively equivalent to the call:
    Runtime.getRuntime().gc()

  • Help required on java.lang.StackOverFlowError and static initializer

    I wanted to create an instance of a class that contains another instance of the same class. So I wrote:
    class A {
         A z = new A ();     
         void display () {
              System.out.println ("Hello World");
         public static void main (String [] args) {
              A y = new A();
              y.display ();
    }During execution I got java.lang.StackOverFlowError. But if I put a static initializer, it works fine. Here is the code using static initializer.
    class A {
         static{
              A z = new A ();     
         void display () {
              System.out.println ("Hello World");
         public static void main (String [] args) {
              A y = new A();
              y.display ();
    }Could anyone please help me to understand the logic why "java.lang.StackOverFlowError" is happening here and how the same program runs fine by putting a static initializer ?
    Regards,
    Shambhu

    Could anyone please help me to understand the logic
    why "java.lang.StackOverFlowError" is happening hereWhen you instantiate an A object with A y = new A () then A z = new A () also gets executed inside the A class, which in it's turn executes A z = new A () again, and again, and again...
    and how the same program runs fine by putting a
    static initializer ?Because the static block gets executed only once.
    The use of class- and instance variables is explained in more detail here:
    http://java.sun.com/docs/books/tutorial/java/javaOO/classvars.html

  • Java.lang.NullPointerException and ConnectionPool problem

    refresh page , problem gone
    java.lang.NullPointerException
    at Deferment.UpdatePostgraduate.getStatus(UpdatePostgraduate.java:278)
    at Deferment.UpdatePostgraduate.doPost(UpdatePostgraduate.java:175)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:402)
    at org.apache.catalina.servlets.InvokerServlet.doPost(InvokerServlet.java:170)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    UpdatePostgraduate.java:278
    ->while (rs.next()) {
    175-> tarCount=getStatus(userid);
    now I have
    Connection conn = null;
    CallableStatement calstat=null;
    ResultSet rs = null;
    in every of my function
    and my
    public Connection getConnection()         throws SQLException, ServletException       {           Connection conn = null;           try{           pool.getConnection();           }catch (SQLException sqle) {             throw new ServletException(sqle.getMessage());         }           return conn;       }

    private DataSource pool = null; 
        int tarCount;
        int sendMail;
        @Override
        public void init() throws ServletException {
            Context env = null;
            try {
                env = (Context) new InitialContext().lookup("java:comp/env");
                pool = (DataSource) env.lookup("jdbc/test");
                if (pool == null) {
                    throw new ServletException(
                            "'jdbc/test' is an unknown DataSource");            }
            } catch (NamingException ne) {
                throw new ServletException(ne);
          public Connection getConnection()
            throws SQLException, ServletException
              Connection conn = null;
              try{
             conn=pool.getConnection();
              }catch (SQLException sqle) {
                System.out.println("JDBC error:" + sqle.getMessage());
                sqle.printStackTrace();
              return conn;
          }then on every function I call it like
    private int getFound(String UNumber) throws Exception {
            Connection conn = null;
            CallableStatement calstat=null;
            ResultSet rs = null;
            try {
                conn = pool.getConnection();
                calstat = (CallableStatement) conn.prepareCall("{call DuplicatePost(?)}");
                calstat.setString(1, UNumber);
                rs = calstat.executeQuery();
                tarCount = 0;
                while (rs.next()) {
                    tarCount++;
            } catch (SQLException se) {
                System.out.println("JDBC error:" + se.getMessage());
                se.printStackTrace();
            } catch (Exception e) {
                System.out.println("other error:" + e.getMessage());
                e.printStackTrace();
            } finally {
                try {
                    if (rs != null) {
                        rs.close();
                    if (calstat != null) {
                        calstat.close();
                } catch (SQLException e) {
                    e.printStackTrace();
            } //end finally
            return tarCount;
        }// end function
    }// end

  • Java.lang.OutOfMemoryError and PermGen errors

    We are getting outOfMemoryErrors and cannot find the cause. Does anybody know how to solve this? Every day we get OutOfMemory and PermGen errors, and nobody seems to be able to solve them. This is from our logs:
    <2008-11-18 13:45:04,627> <ERROR> <crps.collaxa.cube.engine.dispatch> <DispatchHelper::handleMessage> failed to handle message
    javax.ejb.EJBException: java.lang.OutOfMemoryError
         at com.evermind.server.ejb.EJBUtils.getLocalUserException(EJBUtils.java:317)
         at com.evermind.server.ejb.interceptor.system.AbstractTxInterceptor.convertAndHandleMethodException(AbstractTxInterceptor.java:73)
         at com.evermind.server.ejb.interceptor.system.TxRequiredInterceptor.invoke(TxRequiredInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
         at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
         at CubeDeliveryBean_LocalProxy_4bin6i8.resolveCallback(Unknown Source)
         at com.collaxa.cube.engine.dispatch.message.delivery.ResolveCallbackMessageHandler.handle(ResolveCallbackMessageHandler.java:46)
         at com.collaxa.cube.engine.dispatch.DispatchHelper.handleMessage(DispatchHelper.java:138)
         at com.collaxa.cube.engine.dispatch.BaseScheduledWorker.process(BaseScheduledWorker.java:70)
         at com.collaxa.cube.engine.ejb.impl.WorkerBean.onMessage(WorkerBean.java:86)
         at sun.reflect.GeneratedMethodAccessor53.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.SetContextActionInterceptor.invoke(SetContextActionInterceptor.java:44)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
         at oracle.j2ee.connector.messageinflow.MessageEndpointImpl.OC4J_invokeMethod(MessageEndpointImpl.java:297)
         at WorkerBean_EndPointProxy_4bin6i8.onMessage(Unknown Source)
         at oracle.j2ee.ra.jms.generic.WorkConsumer.run(WorkConsumer.java:268)
         at oracle.j2ee.connector.work.WorkWrapper.runTargetWork(WorkWrapper.java:242)
         at oracle.j2ee.connector.work.WorkWrapper.doWork(WorkWrapper.java:215)
         at oracle.j2ee.connector.work.WorkWrapper.run(WorkWrapper.java:190)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:814)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: java.lang.OutOfMemoryError
         at java.util.zip.ZipFile.open(Native Method)
         at java.util.zip.ZipFile.<init>(ZipFile.java:203)
         at java.util.jar.JarFile.<init>(JarFile.java:132)
         at java.util.jar.JarFile.<init>(JarFile.java:97)
         at oracle.classloader.SharedJar.doOpen(SharedJar.java:208)
         at oracle.classloader.SharedCodeSource.open(SharedCodeSource.java:1136)
         at oracle.classloader.SharedCodeSource.ensureOpen(SharedCodeSource.java:948)
         at oracle.classloader.SharedCodeSource.getResourceBytes(SharedCodeSource.java:967)
         at oracle.classloader.CodeSourceSearchPolicy.findResourceBytes(CodeSourceSearchPolicy.java:57)
         at oracle.classloader.PolicyClassLoader.findLocalClass(PolicyClassLoader.java:1455)
         at oracle.classloader.SearchPolicy$FindLocal.getClass(SearchPolicy.java:167)
         at oracle.classloader.SearchSequence.getClass(SearchSequence.java:119)
         at oracle.classloader.SearchPolicy.loadClass(SearchPolicy.java:645)
         at oracle.classloader.SearchPolicy$CheckSharedLibraries.getClass(SearchPolicy.java:396)
         at oracle.classloader.SearchSequence.getClass(SearchSequence.java:119)
         at oracle.classloader.PolicyClassLoader.internalLoadClass(PolicyClassLoader.java:1674)
         at oracle.classloader.PolicyClassLoader.loadClass(PolicyClassLoader.java:1635)
         at oracle.classloader.PolicyClassLoader.loadClass(PolicyClassLoader.java:1620)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:242)
         at java.sql.DriverManager.getCallerClass(DriverManager.java:442)
         at java.sql.DriverManager.getDrivers(DriverManager.java:336)
         at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:587)
         at oracle.oc4j.sql.DriverDataSource.getConnection(DriverDataSource.java:116)
         at oracle.oc4j.sql.DriverDataSource.getConnection(DriverDataSource.java:75)
         at oracle.oc4j.sql.DataSourceConnectionPoolDataSource.getPooledConnection(DataSourceConnectionPoolDataSource.java:57)
         at oracle.oc4j.sql.xa.EmulatedXADataSource.getXAConnection(EmulatedXADataSource.java:92)
         at oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl.createXAConnection(ManagedConnectionFactoryImpl.java:211)
         at oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl.createManagedConnection(ManagedConnectionFactoryImpl.java:170)
         at com.evermind.server.connector.ApplicationConnectionManager.createManagedConnection(ApplicationConnectionManager.java:1377)
         at oracle.j2ee.connector.ConnectionPoolImpl.createManagedConnectionFromFactory(ConnectionPoolImpl.java:327)
         at oracle.j2ee.connector.ConnectionPoolImpl.access$800(ConnectionPoolImpl.java:98)
         at oracle.j2ee.connector.ConnectionPoolImpl$FixedWaitPoolingScheme.getManagedConnection(ConnectionPoolImpl.java:1455)
         at oracle.j2ee.connector.ConnectionPoolImpl.getManagedConnection(ConnectionPoolImpl.java:785)
         at com.evermind.server.connector.ApplicationConnectionManager.getConnectionFromPool(ApplicationConnectionManager.java:1575)
         at com.evermind.server.connector.ApplicationConnectionManager.acquireConnectionContext(ApplicationConnectionManager.java:1520)
         at com.evermind.server.connector.ApplicationConnectionManager.allocateConnection(ApplicationConnectionManager.java:1465)
         at oracle.j2ee.connector.OracleConnectionManager.unprivileged_allocateConnection(OracleConnectionManager.java:238)
         at oracle.j2ee.connector.OracleConnectionManager.allocateConnection(OracleConnectionManager.java:192)
         at oracle.oc4j.sql.ManagedDataSource.getConnection(ManagedDataSource.java:272)
         at oracle.oc4j.sql.ManagedDataSource.getConnection(ManagedDataSource.java:200)
         at oracle.oc4j.sql.ManagedDataSource.getConnection(ManagedDataSource.java:142)
         at oracle.oc4j.sql.ManagedDataSource.getConnection(ManagedDataSource.java:127)
         at com.collaxa.cube.engine.data.ConnectionFactory$ConnectionFactoryImpl.getConnection(ConnectionFactory.java:336)
         at com.collaxa.cube.engine.data.ConnectionFactory.getConnection(ConnectionFactory.java:140)
         at com.collaxa.cube.engine.adaptors.common.BaseDeliveryPersistenceAdaptor.__loadCallback(BaseDeliveryPersistenceAdaptor.java:368)
         at com.collaxa.cube.engine.adaptors.common.BaseDeliveryPersistenceAdaptor.loadCallback(BaseDeliveryPersistenceAdaptor.java:247)
         at com.collaxa.cube.engine.data.DeliveryPersistenceMgr.loadCallback(DeliveryPersistenceMgr.java:48)
         at com.collaxa.cube.engine.delivery.DeliveryService.resolveCallback(DeliveryService.java:598)
         at com.collaxa.cube.engine.ejb.impl.CubeDeliveryBean.resolveCallback(CubeDeliveryBean.java:307)
         at sun.reflect.GeneratedMethodAccessor84.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.JAASInterceptor$1.run(JAASInterceptor.java:31)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAs(Subject.java:396)
         at com.evermind.server.ThreadState.runAs(ThreadState.java:648)
         at com.evermind.server.ejb.interceptor.system.JAASInterceptor.invoke(JAASInterceptor.java:34)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.TxRequiredInterceptor.invoke(TxRequiredInterceptor.java:50)
         ... 28 more
    <2008-11-18 13:45:04,650> <ERROR> <crps.collaxa.cube.engine.dispatch> <BaseScheduledWorker::process> Failed to handle dispatch message ... exception java.lang.OutOfMemoryError
    java.lang.OutOfMemoryError
         at java.util.zip.ZipFile.open(Native Method)
         at java.util.zip.ZipFile.<init>(ZipFile.java:203)
         at java.util.jar.JarFile.<init>(JarFile.java:132)
         at java.util.jar.JarFile.<init>(JarFile.java:97)
         at oracle.classloader.SharedJar.doOpen(SharedJar.java:208)
         at oracle.classloader.SharedCodeSource.open(SharedCodeSource.java:1136)
         at oracle.classloader.SharedCodeSource.ensureOpen(SharedCodeSource.java:948)
         at oracle.classloader.SharedCodeSource.getResourceBytes(SharedCodeSource.java:967)
         at oracle.classloader.CodeSourceSearchPolicy.findResourceBytes(CodeSourceSearchPolicy.java:57)
         at oracle.classloader.PolicyClassLoader.findLocalClass(PolicyClassLoader.java:1455)
         at oracle.classloader.SearchPolicy$FindLocal.getClass(SearchPolicy.java:167)
         at oracle.classloader.SearchSequence.getClass(SearchSequence.java:119)
         at oracle.classloader.SearchPolicy.loadClass(SearchPolicy.java:645)
         at oracle.classloader.SearchPolicy$CheckSharedLibraries.getClass(SearchPolicy.java:396)
         at oracle.classloader.SearchSequence.getClass(SearchSequence.java:119)
         at oracle.classloader.PolicyClassLoader.internalLoadClass(PolicyClassLoader.java:1674)
         at oracle.classloader.PolicyClassLoader.loadClass(PolicyClassLoader.java:1635)
         at oracle.classloader.PolicyClassLoader.loadClass(PolicyClassLoader.java:1620)
         at java.util.ResourceBundle.loadBundle(ResourceBundle.java:1050)
         at java.util.ResourceBundle.findBundle(ResourceBundle.java:925)
         at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:762)
         at java.util.ResourceBundle.getBundle(ResourceBundle.java:699)
         at com.collaxa.cube.CubeException.getResourceBundle(CubeException.java:142)
         at com.collaxa.cube.engine.dispatch.DispatchException.<clinit>(DispatchException.java:39)
         at com.collaxa.cube.engine.dispatch.DispatchHelper.handleMessage(DispatchHelper.java:171)
         at com.collaxa.cube.engine.dispatch.BaseScheduledWorker.process(BaseScheduledWorker.java:70)
         at com.collaxa.cube.engine.ejb.impl.WorkerBean.onMessage(WorkerBean.java:86)
         at sun.reflect.GeneratedMethodAccessor53.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.SetContextActionInterceptor.invoke(SetContextActionInterceptor.java:44)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
         at oracle.j2ee.connector.messageinflow.MessageEndpointImpl.OC4J_invokeMethod(MessageEndpointImpl.java:297)
         at WorkerBean_EndPointProxy_4bin6i8.onMessage(Unknown Source)
         at oracle.j2ee.ra.jms.generic.WorkConsumer.run(WorkConsumer.java:268)
         at oracle.j2ee.connector.work.WorkWrapper.runTargetWork(WorkWrapper.java:242)
         at oracle.j2ee.connector.work.WorkWrapper.doWork(WorkWrapper.java:215)
         at oracle.j2ee.connector.work.WorkWrapper.run(WorkWrapper.java:190)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:814)
         at java.lang.Thread.run(Thread.java:595)
    <2008-11-18 13:45:07,781> <ERROR> <crps.collaxa.cube.engine.dispatch> <DispatchHelper::handleMessage> failed to handle message
    javax.ejb.EJBException: java.lang.OutOfMemoryError
         at com.evermind.server.ejb.EJBUtils.getLocalUserException(EJBUtils.java:317)
         at com.evermind.server.ejb.interceptor.system.AbstractTxInterceptor.convertAndHandleMethodException(AbstractTxInterceptor.java:73)
         at com.evermind.server.ejb.interceptor.system.TxRequiredInterceptor.invoke(TxRequiredInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
         at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
         at CubeDeliveryBean_LocalProxy_4bin6i8.resolveCallback(Unknown Source)
         at com.collaxa.cube.engine.dispatch.message.delivery.ResolveCallbackMessageHandler.handle(ResolveCallbackMessageHandler.java:46)
         at com.collaxa.cube.engine.dispatch.DispatchHelper.handleMessage(DispatchHelper.java:138)
         at com.collaxa.cube.engine.dispatch.BaseScheduledWorker.process(BaseScheduledWorker.java:70)
         at com.collaxa.cube.engine.ejb.impl.WorkerBean.onMessage(WorkerBean.java:86)
         at sun.reflect.GeneratedMethodAccessor53.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.SetContextActionInterceptor.invoke(SetContextActionInterceptor.java:44)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
         at oracle.j2ee.connector.messageinflow.MessageEndpointImpl.OC4J_invokeMethod(MessageEndpointImpl.java:297)
         at WorkerBean_EndPointProxy_4bin6i8.onMessage(Unknown Source)
         at oracle.j2ee.ra.jms.generic.WorkConsumer.run(WorkConsumer.java:268)
         at oracle.j2ee.connector.work.WorkWrapper.runTargetWork(WorkWrapper.java:242)
         at oracle.j2ee.connector.work.WorkWrapper.doWork(WorkWrapper.java:215)
         at oracle.j2ee.connector.work.WorkWrapper.run(WorkWrapper.java:190)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:814)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: java.lang.OutOfMemoryError
         at java.util.zip.ZipFile.open(Native Method)
         at java.util.zip.ZipFile.<init>(ZipFile.java:203)
         at java.util.jar.JarFile.<init>(JarFile.java:132)
         at java.util.jar.JarFile.<init>(JarFile.java:97)
         at oracle.classloader.SharedJar.doOpen(SharedJar.java:208)
         at oracle.classloader.SharedCodeSource.open(SharedCodeSource.java:1136)
         at oracle.classloader.SharedCodeSource.ensureOpen(SharedCodeSource.java:948)
         at oracle.classloader.SharedCodeSource.getResourceBytes(SharedCodeSource.java:967)
         at oracle.classloader.CodeSourceSearchPolicy.findResourceBytes(CodeSourceSearchPolicy.java:57)
         at oracle.classloader.PolicyClassLoader.findLocalClass(PolicyClassLoader.java:1455)
         at oracle.classloader.SearchPolicy$FindLocal.getClass(SearchPolicy.java:167)
         at oracle.classloader.SearchSequence.getClass(SearchSequence.java:119)
         at oracle.classloader.SearchPolicy.loadClass(SearchPolicy.java:645)
         at oracle.classloader.SearchPolicy$CheckSharedLibraries.getClass(SearchPolicy.java:396)
         at oracle.classloader.SearchSequence.getClass(SearchSequence.java:119)
         at oracle.classloader.PolicyClassLoader.internalLoadClass(PolicyClassLoader.java:1674)
         at oracle.classloader.PolicyClassLoader.loadClass(PolicyClassLoader.java:1635)
         at oracle.classloader.PolicyClassLoader.loadClass(PolicyClassLoader.java:1620)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:242)
         at java.sql.DriverManager.getCallerClass(DriverManager.java:442)
         at java.sql.DriverManager.getDrivers(DriverManager.java:336)
         at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:587)
         at oracle.oc4j.sql.DriverDataSource.getConnection(DriverDataSource.java:116)
         at oracle.oc4j.sql.DriverDataSource.getConnection(DriverDataSource.java:75)
         at oracle.oc4j.sql.DataSourceConnectionPoolDataSource.getPooledConnection(DataSourceConnectionPoolDataSource.java:57)
         at oracle.oc4j.sql.xa.EmulatedXADataSource.getXAConnection(EmulatedXADataSource.java:92)
         at oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl.createXAConnection(ManagedConnectionFactoryImpl.java:211)
         at oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl.createManagedConnection(ManagedConnectionFactoryImpl.java:170)
         at com.evermind.server.connector.ApplicationConnectionManager.createManagedConnection(ApplicationConnectionManager.java:1377)
         at oracle.j2ee.connector.ConnectionPoolImpl.createManagedConnectionFromFactory(ConnectionPoolImpl.java:327)
         at oracle.j2ee.connector.ConnectionPoolImpl.access$800(ConnectionPoolImpl.java:98)
         at oracle.j2ee.connector.ConnectionPoolImpl$FixedWaitPoolingScheme.getManagedConnection(ConnectionPoolImpl.java:1455)
         at oracle.j2ee.connector.ConnectionPoolImpl.getManagedConnection(ConnectionPoolImpl.java:785)
         at com.evermind.server.connector.ApplicationConnectionManager.getConnectionFromPool(ApplicationConnectionManager.java:1575)
         at com.evermind.server.connector.ApplicationConnectionManager.acquireConnectionContext(ApplicationConnectionManager.java:1520)
         at com.evermind.server.connector.ApplicationConnectionManager.allocateConnection(ApplicationConnectionManager.java:1465)
         at oracle.j2ee.connector.OracleConnectionManager.unprivileged_allocateConnection(OracleConnectionManager.java:238)
         at oracle.j2ee.connector.OracleConnectionManager.allocateConnection(OracleConnectionManager.java:192)
         at oracle.oc4j.sql.ManagedDataSource.getConnection(ManagedDataSource.java:272)
         at oracle.oc4j.sql.ManagedDataSource.getConnection(ManagedDataSource.java:200)
         at oracle.oc4j.sql.ManagedDataSource.getConnection(ManagedDataSource.java:142)
         at oracle.oc4j.sql.ManagedDataSource.getConnection(ManagedDataSource.java:127)
         at com.collaxa.cube.engine.data.ConnectionFactory$ConnectionFactoryImpl.getConnection(ConnectionFactory.java:336)
         at com.collaxa.cube.engine.data.ConnectionFactory.getConnection(ConnectionFactory.java:140)
         at com.collaxa.cube.engine.adaptors.common.BaseDeliveryPersistenceAdaptor.__loadCallback(BaseDeliveryPersistenceAdaptor.java:368)
         at com.collaxa.cube.engine.adaptors.common.BaseDeliveryPersistenceAdaptor.loadCallback(BaseDeliveryPersistenceAdaptor.java:247)
         at com.collaxa.cube.engine.data.DeliveryPersistenceMgr.loadCallback(DeliveryPersistenceMgr.java:48)
         at com.collaxa.cube.engine.delivery.DeliveryService.resolveCallback(DeliveryService.java:598)
         at com.collaxa.cube.engine.ejb.impl.CubeDeliveryBean.resolveCallback(CubeDeliveryBean.java:307)
         at sun.reflect.GeneratedMethodAccessor84.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.JAASInterceptor$1.run(JAASInterceptor.java:31)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAs(Subject.java:396)
         at com.evermind.server.ThreadState.runAs(ThreadState.java:648)
         at com.evermind.server.ejb.interceptor.system.JAASInterceptor.invoke(JAASInterceptor.java:34)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.TxRequiredInterceptor.invoke(TxRequiredInterceptor.java:50)
         ... 28 more
    <2008-11-18 13:45:07,782> <ERROR> <crps.collaxa.cube.engine.dispatch> <BaseScheduledWorker::process> Failed to handle dispatch message ... exception java.lang.NoClassDefFoundError
    java.lang.NoClassDefFoundError
         at com.collaxa.cube.engine.dispatch.DispatchHelper.handleMessage(DispatchHelper.java:171)
         at com.collaxa.cube.engine.dispatch.BaseScheduledWorker.process(BaseScheduledWorker.java:70)
         at com.collaxa.cube.engine.ejb.impl.WorkerBean.onMessage(WorkerBean.java:86)
         at sun.reflect.GeneratedMethodAccessor53.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.SetContextActionInterceptor.invoke(SetContextActionInterceptor.java:44)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
         at oracle.j2ee.connector.messageinflow.MessageEndpointImpl.OC4J_invokeMethod(MessageEndpointImpl.java:297)
         at WorkerBean_EndPointProxy_4bin6i8.onMessage(Unknown Source)
         at oracle.j2ee.ra.jms.generic.WorkConsumer.run(WorkConsumer.java:268)
         at oracle.j2ee.connector.work.WorkWrapper.runTargetWork(WorkWrapper.java:242)
         at oracle.j2ee.connector.work.WorkWrapper.doWork(WorkWrapper.java:215)
         at oracle.j2ee.connector.work.WorkWrapper.run(WorkWrapper.java:190)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:814)
         at java.lang.Thread.run(Thread.java:595)

    Marc Kelderman wrote:
    Make sure you set in heap size correctly.
    I do not know how large the heap size is. But I suggest to increase is.
    Oracle EM -> oc4j_soa -> administrtation -> Server
    set min / max equal to 1GB
    and the -XX:MaxPermSize is 256 M
    Marc
    >Make sure you set in heap size correctly.
    I do not know how large the heap size is. But I suggest to increase is.
    Oracle EM -> oc4j_soa -> administrtation -> Server
    set min / max equal to 1GB
    and the -XX:MaxPermSize is 256 M
    Marc
    Hi Tlwi and Marc,
    Im facing the same error in my environment. This is an Oracle Application Server which hosts a J2EE envionment. The application works fine without any issues, but all of a sudden the following error comes up and stalls the application. I have to restart the conatiner to handle the situation, but this is not the solution.
    Based on my searching it reveals that this error does not mean that the jvm is running out of heap space instead it uses some memory outside the heap to unzip the zip files.
    Can you let me know on the solution that you had applied or what can be done to fix this as i have enough heap space.
    09/03/11 14:58:23.851 APPNAME: Servlet error
    java.lang.OutOfMemoryError
         at java.util.zip.ZipFile.open(Native Method)
         at java.util.zip.ZipFile.<init>(ZipFile.java:203)
         at java.util.jar.JarFile.<init>(JarFile.java:132)
         at java.util.jar.JarFile.<init>(JarFile.java:97)
         at oracle.classloader.SharedJar.doOpen(SharedJar.java:208)
         at oracle.classloader.SharedCodeSource.open(SharedCodeSource.java:1136)
    Thanks,

  • Java.lang.OutOfMemory and http error 404

    Hi.
    my application is throwing
    <Oct 2, 2003 10:41:14 AM GMT+01:00> <Error> <HTTP> <SSESMADD001> <myserver_TDE_2>
    <ExecuteThread: '1' for queue: '__weblogic_admin_html_qu
    eue'> <system> <> <101020> <[WebAppServletContext(4301103,console)] Servlet failed
    with Exception>
    java.lang.OutOfMemoryError
    <<no stack trace available>>
    After we did a deployed of the application, and then we recieved the error:
    [02/Oct/2003:12:19:16 +0100] "POST /webgfdxt/xf HTTP/1.1" 404 0
    What's happening? We re-started weblogic and we get the same error (http 404).
    We use welogic 6.1 and jdk 1.3.1
    Thanks in advanced

    Increase the value of the -Xmx setting in the startWebLogic script file.
    "oscar" <[email protected]> wrote:
    >
    Hi.
    my application is throwing
    <Oct 2, 2003 10:41:14 AM GMT+01:00> <Error> <HTTP> <SSESMADD001> <myserver_TDE_2>
    <ExecuteThread: '1' for queue: '__weblogic_admin_html_qu eue'> <system>
    <> <101020>
    <[WebAppServletContext(4301103,console)] Servlet failed with Exception>
    java.lang.OutOfMemoryError
    <<no stack trace available>>
    After we did a deployed of the application, and then we recieved the
    error: [02/Oct/2003:12:19:16
    +0100] "POST /webgfdxt/xf HTTP/1.1" 404 0
    What's happening? We re-started weblogic and we get the same error (http
    404).
    We use welogic 6.1 and jdk 1.3.1
    Thanks in advanced

  • Java.lang.NullPointerException and javaBeans

    I think that part of the problem is due to some wonky requirements, but maybe not. There are three classes:
    lab02.util.MySlider -- has a JSlider and a few other bits
    lab02.util.ColorSelector -- has three JSliders and creates a Color (not a JColorChooser)
    lab02.view.View -- the driver and JFrame, has two ColorSelectors and JTextField
    However, a requirement is to have ColorSelector load as a jar file. The only way I could find of doing that was create two parallel projects: beans and lab2.
    I added MySlider to the palette for ColorSelector, and then added ColorSelector to the palette. Switching over the lab2 project, I added ColorSelector to View. When I received the following error:
    xception in thread "AWT-EventQueue-0" java.lang.NullPointerException
            at a00720398.lab02.util.MySlider.jSlider1StateChanged(MySlider.java:53)
            at a00720398.lab02.util.MySlider.access$000(MySlider.java:6)
            at a00720398.lab02.util.MySlider$1.stateChanged(MySlider.java:39)I then added both MySlider and ColorSlider to the Library Manager, and then added them to the library for lab2 project. Same result.
    Is it a coding problem? A netbeans problem? A packaging problem? I've tried some System.out statements to try to track it down but couldn't get anywhere.
    Keepin in mind that there are two projects with overlapping package structures, here's the code:
    thufir@arrakis:~/bcit3621$
    thufir@arrakis:~/bcit3621$ cat lab2beans/src/a00720398/lab02/util/MySlider.java
    package a00720398.lab02.util;
    import javax.swing.event.ChangeListener;
    public class MySlider extends javax.swing.JPanel {
        private ChangeListener changeListener;
        /** Creates new form MySlider */
        public MySlider() {
            initComponents();
        public MySlider(ChangeListener changeListener) {
            this();
            this.changeListener = changeListener;
        /** This method is called from within the constructor to
         * initialize the form.
         * WARNING: Do NOT modify this code. The content of this method is
         * always regenerated by the Form Editor.
        // <editor-fold defaultstate="collapsed" desc="Generated
    Code">//GEN-BEGIN:initComponents
        private void initComponents() {
            bindingGroup = new org.jdesktop.beansbinding.BindingGroup();
            jLabel1 = new javax.swing.JLabel();
            jSlider1 = new javax.swing.JSlider();
            jTextField1 = new javax.swing.JTextField();
            jLabel1.setText("jLabel1");
            add(jLabel1);
            jSlider1.setMaximum(255);
            jSlider1.addChangeListener(new javax.swing.event.ChangeListener() {
                public void stateChanged(javax.swing.event.ChangeEvent evt) {
                    jSlider1StateChanged(evt);
            add(jSlider1);
            org.jdesktop.beansbinding.Binding binding =
    org.jdesktop.beansbinding.Bindings.createAutoBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE,
    jSlider1, org.jdesktop.beansbinding.ELProperty.create("${value}"), jTextField1,
    org.jdesktop.beansbinding.BeanProperty.create("text"));
            bindingGroup.addBinding(binding);
            add(jTextField1);
            bindingGroup.bind();
        }// </editor-fold>//GEN-END:initComponents
        private void jSlider1StateChanged(javax.swing.event.ChangeEvent evt)
    {//GEN-FIRST:event_jSlider1StateChanged
            // TODO add your handling code here:
            changeListener.stateChanged(evt);
        }//GEN-LAST:event_jSlider1StateChanged
        public void setName(String string) {
            jLabel1.setText(string);
        public int getValue() {
            return jSlider1.getValue();
        public void setValue(int value) {
            jSlider1.setValue(value);
        // Variables declaration - do not modify//GEN-BEGIN:variables
        private javax.swing.JLabel jLabel1;
        private javax.swing.JSlider jSlider1;
        private javax.swing.JTextField jTextField1;
        private org.jdesktop.beansbinding.BindingGroup bindingGroup;
        // End of variables declaration//GEN-END:variables
    thufir@arrakis:~/bcit3621$
    thufir@arrakis:~/bcit3621$ cat lab2beans/src/a00720398/lab02/util/ColorSelector.java
    package a00720398.lab02.util;
    import java.awt.Color;
    import javax.swing.event.ChangeEvent;
    import javax.swing.event.ChangeListener;
    public class ColorSelector extends javax.swing.JPanel implements ChangeListener {
        private ChangeListener changeListener;
        private Color color;
        /** Creates new form ColorSelector */
        public ColorSelector() {
            initComponents();
        public ColorSelector(Color color) {
            //initComponents();
            red = new a00720398.lab02.util.MySlider(this);
            green = new a00720398.lab02.util.MySlider(this);
            blue = new a00720398.lab02.util.MySlider(this);
            setLayout(new javax.swing.BoxLayout(this, javax.swing.BoxLayout.Y_AXIS));
            add(red);
            add(green);
            add(blue);
            this.color = color;
        public ColorSelector(Color color, ChangeListener changeListener) {
            //initComponents();
            this(color);
            this.changeListener = changeListener;
            //initComponents();
        /** This method is called from within the constructor to
         * initialize the form.
         * WARNING: Do NOT modify this code. The content of this method is
         * always regenerated by the Form Editor.
        // <editor-fold defaultstate="collapsed" desc="Generated
    Code">//GEN-BEGIN:initComponents
        private void initComponents() {
            red = new a00720398.lab02.util.MySlider();
            green = new a00720398.lab02.util.MySlider();
            blue = new a00720398.lab02.util.MySlider();
            setLayout(new javax.swing.BoxLayout(this, javax.swing.BoxLayout.Y_AXIS));
            add(red);
            add(green);
            add(blue);
        }// </editor-fold>//GEN-END:initComponents
        // Variables declaration - do not modify//GEN-BEGIN:variables
        private a00720398.lab02.util.MySlider blue;
        private a00720398.lab02.util.MySlider green;
        private a00720398.lab02.util.MySlider red;
        // End of variables declaration//GEN-END:variables
        public void stateChanged(ChangeEvent arg0) {
            throw new UnsupportedOperationException("Not supported yet.");
            //color = new Color(red.getValue(), green.getValue(), blue.getValue());
        public Color getColor() {
            System.out.println("getColor   " + color);
            return color;
    thufir@arrakis:~/bcit3621$
    thufir@arrakis:~/bcit3621$ cat lab2/src/a00720398/lab02/view/Lab02View.java
    package a00720398.lab02.view;
    import a00720398.lab02.util.*;
    import java.awt.*;
    import javax.swing.*;
    import javax.swing.event.*;
    public class Lab02View extends javax.swing.JFrame implements ChangeListener {
        private Color color;
        /** Creates new form Lab02View */
        public Lab02View() {
            initComponents();
        /** This method is called from within the constructor to
         * initialize the form.
         * WARNING: Do NOT modify this code. The content of this method is
         * always regenerated by the Form Editor.
        // <editor-fold defaultstate="collapsed" desc="Generated
    Code">//GEN-BEGIN:initComponents
        private void initComponents() {
            jTextArea1 = new javax.swing.JTextArea();
            colorSelector1 = new a00720398.lab02.util.ColorSelector();
            setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
            getContentPane().setLayout(new javax.swing.BoxLayout(getContentPane(),
    javax.swing.BoxLayout.Y_AXIS));
            jTextArea1.setColumns(20);
            jTextArea1.setRows(5);
            getContentPane().add(jTextArea1);
            getContentPane().add(colorSelector1);
            pack();
        }// </editor-fold>//GEN-END:initComponents
         * @param args the command line arguments
        public static void main(String args[]) {
            java.awt.EventQueue.invokeLater(new Runnable() {
                public void run() {
                    //new Lab02View().setVisible(true);
                    JFrame frame = new Lab02View();
                    frame.setLocationRelativeTo(null);
                    frame.setSize(600,400);
                    frame.setVisible(true);
        public void stateChanged(ChangeEvent arg0) {
            throw new UnsupportedOperationException("Not supported yet.");
            //jTextArea1.setBackground(colorSelector1.getColor());
            //color = colorSelector1.getColor();
        // Variables declaration - do not modify//GEN-BEGIN:variables
        private a00720398.lab02.util.ColorSelector colorSelector1;
        private javax.swing.JTextArea jTextArea1;
        // End of variables declaration//GEN-END:variables
    thufir@arrakis:~/bcit3621$
    thufir@arrakis:~/bcit3621$ thanks,
    Thufir

    don't respond to this question, it's too "large". I'm creating another thread.

  • Java.lang.parseInt() and NT???

    Please help;
    When I compile It is fine but when I run it it gives this message.
    C:\jdk1.3.1_01\Html\classes>java myRectangle1
    Enter Width:
    34
    java.lang.NumberFormatException: 34
    at java.lang.Integer.parseInt(Integer.java:423)
    at java.lang.Integer.valueOf(Integer.java:516)
    at RecHW.run(myRectangle1.java:16)
    at java.lang.Thread.run(Thread.java:484)
    Here is the source code:
    import java.io.*;
    import java.lang.*;
    import Shapes.Rectangle;
    class RecHW implements Runnable {
    Rectangle rect;
    Thread kicker=null;
    public void run() {
    try {
    int w,h;
    char ch;
    StringBuffer str=new StringBuffer();
    System.out.println("Enter Width:");
    while((ch = (char)System.in.read())!='\n') {
    str.append(ch);
    w = Integer.valueOf(str.toString()).intValue();
    System.out.println("2");
    System.out.println("Enter Height:");
    str=new StringBuffer();
    while((ch=(char)System.in.read())!='\n') {
    str.append(ch);
    h = Integer.valueOf(str.toString()).intValue();
    Rectangle rect=new Rectangle(w,h);
    rect.setWH(w,h);
    rect.drawRect();
    } catch (IOException e) {
    System.out.println("Here");
    public void start(Rectangle r) {
    rect=r;
    kicker=new Thread(this);
    kicker.start();
    class myRectangle1 {
    public static void main(String args[]) {
    RecHW rec=new RecHW();
    new Thread(rec).start();

    Can you tell me why an applet like this
    <applet codebase="http://java.sun.com/applets/jdk/1.1/demo/NervousText"code="NervousText.class" width=400 height=75>
    <param name="text" value="Welcome to HotJavaTM Browser!">
    <hr>
    If you were using a JavaTM technology-enabled browser such as HotJava,
    you would see dancing text instead of this paragraph.
    <hr>
    </applet>
    works fine when it is loaded and when I change codebase related to a file on my computer and change the code which runs fine as a standalone, then the html page does not give what it was expected to do?
    Thanks!

  • "AWT-EventQueue-0" java.lang.NullPointerException and JInternalFrame

    I have two classes one with main method second with GUI methods (JFrame, JInternalFrame). When I call method to start second JInternalFrame from main everything is working but if i call it form any other method i get:
    Exception in thread "main" java.lang.NullPointerException
    at pkg1.GUI.createFrame(GUI.java:123)
    at pkg1.GUI.startFrame2(GUI.java:66)
    at pkg1.Top.cos(Top.java:25)
    at pkg1.Top.main(Top.java:20) My code:
    GUI class
    package pkg1;
    import java.awt.Component;
    import java.awt.Dimension;
    import java.awt.Frame;
    import java.awt.Toolkit;
    import java.awt.event.MouseMotionListener;
    import javax.swing.JDesktopPane;
    import javax.swing.JFrame;
    import javax.swing.JInternalFrame;
    import javax.swing.JPanel;
    import javax.swing.plaf.basic.BasicInternalFrameUI;
    import oracle.jdeveloper.layout.XYLayout;
    public class GUI
        public JDesktopPane desktop;
        private XYLayout xYLayout1 = new XYLayout();
        public int openFrameCount = 0;
        JFrame f = new JFrame();
        public void GUII()  // Prepare JFrame
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.setSize(500, 600);
            f.setVisible(true);
        public void startFrame()
            desktop = new JDesktopPane();
            createFrame(); //create first "window"
            f.setContentPane(desktop);
            desktop.setDragMode(JDesktopPane.OUTLINE_DRAG_MODE);
        public void startFrame2()
            createFrame(); //create second "window"
            f.setContentPane(desktop);
            desktop.setDragMode(JDesktopPane.OUTLINE_DRAG_MODE);
        public void createFrame()
            MyInternalFrame frame = new MyInternalFrame();
            frame.setVisible(true); //necessary as of 1.3
            desktop.add(frame);
            frame.add(new GUI2());
        } Top class
    public class Top
        public static void main(String[] args)
            GUI g = new GUI();
            g.GUII(); //Create JFrame
            g.startFrame(); //Create JInternalFrame
            Top t = new Top();
            t.sth();
        public void sth()
            GUI gui = new GUI();
            gui.startFrame2();
    } MyIntternalFrame class
    import javax.swing.JInternalFrame;
    import java.awt.event.*;
    import java.awt.*;
    import javax.swing.BorderFactory;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JPanel;
    import javax.swing.SwingConstants;
    import oracle.jdeveloper.layout.XYConstraints;
    import oracle.jdeveloper.layout.XYLayout;
    /* Used by InternalFrameDemo.java. */
    public class MyInternalFrame extends JInternalFrame {
        static int openFrameCount =  0;      
        static final int xOffset = 30, yOffset = 30;
        private XYLayout xYLayout1 = new XYLayout();
        private JButton jButton1 = new JButton();
        private JLabel jLabel1 = new JLabel();
        private JFrame c = new JFrame();
        private JPanel d = new JPanel();
        private XYLayout xYLayout2 = new XYLayout();
        public MyInternalFrame() {         
            super("Document #"  + (++openFrameCount),true /*resizable*/,true /*closable*/,true /*maximizable*/,true);//iconifiable*/
            //...Create the GUI and put it in the window...
            //...Then set the window size or call pack...
            int width = new GUI2().width + 10;
            int height = new GUI2().height + 40;
            setSize(width,height);
            setLocation(xOffset*openFrameCount, yOffset*openFrameCount);
    } Please tel me where is my mistake or maybe you knew another way to open JInternalFrame with public method form another class

    Some possibly helpful suggestions:
    1) Create one JDesktopPane, and do it in the constructor of GUI. You should call this constructor only once.
    2) Get rid of GUII. The GUI constructor will do all this and more.
    3) Get rid of startFrame and startFrame2.
    4) In GUI2, change your width and height to static variables if you are going to use them in outside classes. There is no reason to have to create a GUI2 object just to get those values. Get them from the class, not the instances.
    5) You're doing something funky in your Top class with your mixing of static code and non-static code. My gut tells me that Top is just a static universe that exists to get your code up and running, and that the code within it should all be static, but that's just my personal opinion.
    6) In MyInternalFrame, get the height and width from GUI2 (if that's what you want to do) again in a static fashion. Rather than new GUI2().width which makes no sense, use GUI2.width.
    Why can't you put the button inside of the JInternalFrame object? I believe that the contentPane of this object which may hold your button (unless you embed a jpanel) uses BorderLayout, so you have to take care how you add jcomponents to the jinternalframe (or more precisely, it's contentPane).

  • The technique to solving Uncaught exception: java.lang.Error (and probably many like it too)

    It was a blessing in disguise that the above error came about or else I wouldn't have taken the effort to find a solution. At first, I tried to delete several apps, do a hard reboot several variations but it still wouldn't go. Then I thought of downgrading the OS back to the default version so that made me give the Blackberry Desktop Manager a try. Linking handphone to notebook, it was only then I found out an updated version was available so immediately I decided to update since the jump from version 5 to 6 was worth it. After the corrupted version was wiped out being replaced by a newer one, my problem was solved!
    ubuntu: Linux for human beings

    poppi2000 wrote:
    Hi,
    After downloading the twitter app the following shows when I try to open it.
    uncaught exception: Java.lang.Error
    Does anyone know what it means and how to fix it.
    Thanks!
    Hi 
    1. Try to remove the batteries first reboot that will clear the application error
    2. Also try uninstalling the last application you installed before the error appears and reboot / unplug the battery. You can reinstall these applications later.
    3. If it still errors, you can wipe your handheld to clear / delete all the applications and reinstall the application required. How to delete all data and applications from the BlackBerry smartphone using the Security Wipe optio...
    4. The final solution is to reinstall OS or all OS upgrade to the latest version. How to update or reinstall BlackBerry Device Software using BlackBerry Desktop Software
    Please thank those who help you by clicking the button.
    If your issue has been solved, please resolve it by marking "Accept as Solution"

  • Java.lang.IllegalThreadStateException and Thread.State ?TERMINATED?

    Hi,
    I have class derived from Thread. If I call the start() the run() method is called and the thread code is started being executed. After some time the run() method is finished. Then, using the same class instance I call the start() method again, but then I have exception java.lang.IllegalThreadStateException. I found that the first I start the thread, it is in the NEW state, while second time it is TERMINATED. What I have to do to start the thread again in the same instance?
    Thank you for response
    BR
    STeN

    thanks for reply - surprising for me - I'm a newebie.Well, any Java question asked politely deserves and gets a response here. Being new doesn't make you underprivileged :p
    The proper way to handle threads, which should be started more times is to create the insance of the class that extends Thread (or implements Runnable ) again. Right?You got the idea, but you can't create the same instance again -- you have to construct a new instance.
    Just a matter of exactness in terminology, which is important in discussions.
    cheers, db

Maybe you are looking for

  • How to transfer the progress of just one game from one iPad to another iPad

    Hi everyone!  When I purchased an iPad Air, I gave my old iPad 3 to a family member who kept one of my games and its progress, but changed every other App to suit his requirements.  My iPad Air has all MY Apps, which are different to the ones on the

  • 10g installation error... Need help

    I launched the ./runInstaller comman, met all the installer requirements, and then this:... [oracle@localhost database]$ Exception in thread "main" java.lang.InteranalError: Can't connect to X11 window server using 'localhost.localdomain:0.0' as the

  • HT4623 How can i solve installation problem with iOS 6.

    How can i solve installation problem with iOS 6. I've tried to install it on my iPhone 4 but nothing turned out. Thanks in advance!!!!

  • VB to Java Converter

    Help! I am looking for a Visual Basic to Java Converter. Can anyone recommend a good site, product or resource?

  • Opening pdf-files at a specific page, bookmark or goal.

    Hi, I have a PDf-file which i can open when I click on a button. But, is it possible to open a specific bookmark(Page) on this button click. Here is the code to open a pdf file: import java.awt.BorderLayout; import java.awt.event.ActionEvent; import