Questioning design decision in java.lang.Character

Having a look at the source code for java.lang.Character, I have the Character class explicitly extends Object
I am using jre1.6.0_07 on window XP
Now the question is what is the reason for such a decision and we all know that any class implicitly extends Object class.
public final class Character extends Object implements java.io.Serializable, Comparable<Character> {
}Regards,
Alan Mehio
London, UK
Edited by: alan_mehio on 24-Jul-2009 12:31

I cannot answer with anything but personal intuition, and give non-conclusive details:
first this is not a design decision, merely a style decision, since, as you mention, any class implicitly extends directly java.lang.Object if not explicitly extending anything else (and at the bytecode level, the source-level difference is undetectable).
As far as style is concerned, I would have assumed that the whole JDK team is required to strictly follow consistent rules, but different classes suggest otherwise.
Sun's public [Code Conventions for the JavaTM Programming Language|http://java.sun.com/docs/codeconv/html/CodeConventions.doc5.html#2991] do not have an explicit rule about this; section +6.4 Class and Interface Declarations+ provide an example with an extends Object clause, but the rule is not explicit in the text; and the previous section 5.2 does provide an example without this clause...
I went on speculating that the developpers for the Character class had a special intent in mind, as they override Object methods equals() and hascode(), but other class in the same package do the same without the explicit extends Object clause (Void, System, Number). At that step I gave up trying to find a reason other than the developers' own style...

Similar Messages

  • Java.lang.Character... is in KVM?

    Hi all,
    java.lang.Character ... is giving a problem it complies but doesn't run..
    private String decodeKey(int keyCode){
    //Method Variables
    final char ch = (char)keyCode;
    // Characters
    if(new java.lang.Character(ch).isLetterOrDigit(ch))
    return new java.lang.Character(ch).toString();
    Error:
    ALERT: No such method isLetterOrDigit.(C)Z
    Regards,
    Neo

    Hi Neo,
    KVM API doesn't include isLetterOrDigit(ch) method in java.lang.Character.
    If you compile sources with '-bootclasspath KVM_API_CLASSES' instead of -classpath ... you'll get error at compile time.
    GaRRy

  • JDeveloper design-time exception (java.lang.IllegalArgumentException)

    Using JDev 11.1.1.3; to speed up the chart renders in pages, we've switched the chart from dynamic-size to fixed-size which brings the chart in 1 - 2 seconds quicker which is good, but in order to continue supporting expand/reduce functionality (requested by user via af:commandImageLink press) the width on the chart is set via EL or managed-bean. Either way, now when we load up the page in JDeveloper we get ...
    13/09/2010 4:27:19 PM oracle.adfinternal.view.faces.bi.renderkit.imageView.ImageViewRenderer
    WARNING: Exception in parsing the inlineStyle.
    java.lang.IllegalArgumentException: Invalid length: #{viewScope.AdminActivity.trend1Width}
         at oracle.adfinternal.view.faces.bi.util.CSSStyleUtils.parseLength(CSSStyleUtils.java:645)
    ... appearing in the Messages - Log view for each chart when switching the editor to Design mode.
    Is there some way to turn this off, or is it considered a bug to be fixed, or should we (despite the fact the run-time works) consider this bad design. (NB: client rates performance highly and the improvement delivered here important).
    Thanks,

    Hi,
    exception:java.lang.IllegalArgumentException.1 .This means that u passed an illegal or inappropriate argument to some method.
    page first loads then the error appears, if I go to
    next page and come back to the initial page, then the
    applet works!2. This means that the value of the argument u are passing changes between init,start,stop of the Applets methods.
    3.So u should be checking the values of the arg are passing .
    Hope it helps
    Cheers!

  • Method equalsIgnoreCase raise java.lang.StackOverflowError

    Is anyone encountered the following? is it an encodiong problem (java.lang.CharacterDataLatin1 etc.)? thanks, david.
    executing:
    public int getColumnIndex(String column)
    int col_id = 0;
    String col_name = null;
    int count = 0;
    try
    if (columns != null)
    count = columns.length;
    for (int i = 0; i < count; i++)
    col_name = columns;
    if (col_name.equalsIgnoreCase(column))
    col_id = i;
    break;
    catch(Exception e)
    col_id = 0;
    e.printStackTrace();
    return col_id;
    raise:
    Exception in thread "Thread-5" java.lang.StackOverflowError
         at java.lang.CharacterDataLatin1.getProperties(CharacterDataLatin1.java:58)
         at java.lang.CharacterDataLatin1.toUpperCase(CharacterDataLatin1.java:156)
         at java.lang.Character.toUpperCase(Character.java:4307)
         at java.lang.Character.toUpperCase(Character.java:4274)
         at java.lang.String.regionMatches(String.java:1214)
         at java.lang.String.equalsIgnoreCase(String.java:950)
         at model.DataEntity.getColumnIndex(DataEntity.java:118)

    That's probably not the full stack trace? I'd say that you have an infinitive recursive call some where.
    Kaj

  • Design Mode not working - java.lang.Null Pointer exception

    When attempting to use the Design mode Flash Builder has started to completely fail to display the design and issues following erros in the components tab:
    "Could not create the view: An unexpected exception was thrown."
    "java.lang.NullPointerException
        at com.adobe.flexbuilder.codemodel.internal.design.ComponentCategoryList.getCustomComponents Filtered(ComponentCategoryList.java:207)
        at com.adobe.flexbuilder.mxml.editor.views.components.ComponentsView$ViewContentProvider.get Elements(ComponentsView.java:339)
        at org.eclipse.jface.viewers.StructuredViewer.getRawChildren(StructuredViewer.java:959)
        at org.eclipse.jface.viewers.ColumnViewer.getRawChildren(ColumnViewer.java:703)
        at org.eclipse.jface.viewers.AbstractTreeViewer.getRawChildren(AbstractTreeViewer.java:1330)
        at org.eclipse.jface.viewers.TreeViewer.getRawChildren(TreeViewer.java:390)
        at org.eclipse.jface.viewers.AbstractTreeViewer.getFilteredChildren(AbstractTreeViewer.java: 636)
        at org.eclipse.jface.viewers.AbstractTreeViewer.getSortedChildren(AbstractTreeViewer.java:60 2)
        at org.eclipse.jface.viewers.AbstractTreeViewer$1.run(AbstractTreeViewer.java:799)
        at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
        at org.eclipse.jface.viewers.AbstractTreeViewer.createChildren(AbstractTreeViewer.java:776)
        at org.eclipse.jface.viewers.TreeViewer.createChildren(TreeViewer.java:639)
        at org.eclipse.jface.viewers.AbstractTreeViewer.internalInitializeTree(AbstractTreeViewer.ja va:1490)
        at org.eclipse.jface.viewers.TreeViewer.internalInitializeTree(TreeViewer.java:828)
        at org.eclipse.jface.viewers.AbstractTreeViewer$5.run(AbstractTreeViewer.java:1474)
        at org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:1392 )
        at org.eclipse.jface.viewers.TreeViewer.preservingSelection(TreeViewer.java:402)
        at org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:1353 )
        at org.eclipse.jface.viewers.AbstractTreeViewer.inputChanged(AbstractTreeViewer.java:1467)
        at org.eclipse.jface.viewers.ContentViewer.setInput(ContentViewer.java:274)
        at org.eclipse.jface.viewers.StructuredViewer.setInput(StructuredViewer.java:1634)
        at com.adobe.flexbuilder.mxml.editor.views.components.ComponentsView.createMainControl(Compo nentsView.java:594)
        at com.adobe.flexbuilder.mxml.editor.views.AbstractDesignOnlyView.createPartControl(Abstract DesignOnlyView.java:125)
        at com.adobe.flexbuilder.mxml.editor.views.components.ComponentsView.createPartControl(Compo nentsView.java:1036)
        at org.eclipse.ui.internal.ViewReference.createPartHelper(ViewReference.java:367)
        at org.eclipse.ui.internal.ViewReference.createPart(ViewReference.java:226)
        at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595)
        at org.eclipse.ui.internal.Perspective.showView(Perspective.java:2229)
        at org.eclipse.ui.internal.WorkbenchPage.busyShowView(WorkbenchPage.java:1067)
        at org.eclipse.ui.internal.WorkbenchPage$20.run(WorkbenchPage.java:3816)
        at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
        at org.eclipse.ui.internal.WorkbenchPage.showView(WorkbenchPage.java:3813)
        at com.adobe.flexbuilder.editorcore.editor.CodeAndDesignViewManager$EditorListener.showViews (CodeAndDesignViewManager.java:665)
        at com.adobe.flexbuilder.editorcore.editor.CodeAndDesignViewManager$EditorListener.reconfigP anels(CodeAndDesignViewManager.java:547)
        at com.adobe.flexbuilder.editorcore.editor.CodeAndDesignViewManager$EditorListener.pageAbout ToChange(CodeAndDesignViewManager.java:409)
        at com.adobe.flexbuilder.editorcore.editor.CodeAndDesignEditor.pageAboutToChange(CodeAndDesi gnEditor.java:582)
        at com.adobe.flexbuilder.editorcore.editor.CodeAndDesignEditor.setActivePage(CodeAndDesignEd itor.java:682)
        at com.adobe.flexbuilder.mxml.editor.MXMLEditor.setActivePage(MXMLEditor.java:544)
        at com.adobe.flexbuilder.editorcore.editor.CodeAndDesignEditor$1.clicked(CodeAndDesignEditor .java:454)
        at com.adobe.flexide.editorcore.ui.controls.ButtonBar.clicked(ButtonBar.java:289)
        at com.adobe.flexide.editorcore.ui.controls.AbstractButton.sendClickEvent(AbstractButton.jav a:41)
        at com.adobe.flexide.editorcore.ui.controls.ToggleButton.handleChange(ToggleButton.java:79)
        at com.adobe.flexide.editorcore.ui.controls.ToggleButton.mouseDown(ToggleButton.java:66)
        at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:179)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1598)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1622)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1607)
        at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1396)
        at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3484)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3068)
        at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2405)
        at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
        at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221)
        at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
        at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
        at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:493)
        at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
        at com.adobe.flexbuilder.standalone.FlexBuilderApplication.start(FlexBuilderApplication.java :109)
        at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLau ncher.java:110)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.jav a:79)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:368)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1311)"
    This makes Flash Builder 4 pretty much useless to me. Anybody happen to know how to fix this issue?
    Thanks a lot in advance

    Uninstalling Flash Builder 4 (my machine is a Mac Pro) and re-installing it solved the issue. Not my favourite way to resolve issues ... but desperate times ask for desperate measures.

  • Java.lang.ExceptionInInitializerError question

    Hi, the following two postings were sent to the Programming forum, and we were referred to the Cryptography forum. Any ides on this problem, cryptography gurus?
    This topic has 2 replies on 1 page (Most recent message: Jul 8, 2002 11:27 AM)
    Having a problem with Java Cryptography Extension (JCE)
    Author: dnhll23 Jul 6, 2002 2:11 AM
    Hi, this is my first attempt at using the JCE. I'm using JCE 1.2.1
    and basically all I'm trying to do at this point is encrypt a
    FileInputStream object using the DES standard, with the JCE
    classes. Here is my code Fragment.
    protected FileOutputStream encriptFile(FileInputStream baseFile,
    File encFileName) throws IOException
    try
    // Create the output file for the encrypted document
    FileOutputStream encriptedFile = new FileOutputStream
    (encFileName);
    // Must register the provider that implements the algorithm
    Provider sunJce = new com.sun.crypto.provider.SunJCE();
    Security.addProvider(sunJce);
    char[] pbeKeyData = password.toCharArray();
    PBEKeySpec pbeKeySpec = new PBEKeySpec(pbeKeyData);
    SecretKeyFactory keyFactory = SecretKeyFactory.getInstance
    ("DES");
    SecretKey pbeKey = keyFactory.generateSecret(pbeKeySpec);
    Cipher pbe = Cipher.getInstance("DES"); // Same as above.
    pbe.init(Cipher.ENCRYPT_MODE, pbeKey);
    CipherOutputStream cout = new CipherOutputStream
    (encriptedFile, pbe);
    // Use a byte array to write the file output in blocks of 64
    bytes.
    byte[] buffer = new byte[64];
    while (true)
    int bytesRead = -1;
    bytesRead = baseFile.read(buffer);
    if (bytesRead == -1) break;
    cout.write(buffer, 0, bytesRead);
    cout.flush();
    cout.close();
    baseFile.close(); // Close the input file.
    catch (java.security.NoSuchAlgorithmException nsA)
    System.err.println(nsA);
    nsA.printStackTrace();
    catch (java.lang.ExceptionInInitializerError eIIE)
    System.err.println(eIIE);
    eIIE.printStackTrace();
    catch (Exception e)
    System.err.println(e);
    e.printStackTrace();
    My problem arises with the line "SecretKeyFactory keyFactory =
    SecretKeyFactory.getInstance("DES");" This line throws an
    ExceptionInInitializerError and the catch block tells me this
    java.lang.ExceptionInInitializerError
    java.lang.ExceptionInInitializerError: java.lang.SecurityException:
    Cannot set up certs for trusted CAs
    (The rst of the stackCall here)...
    From what I've read in the documentation, I need to have a provider
    set up that handles the SecretKeyFactory and encryption algorithms,
    but the documentation also says that the SunJCE provider that I set
    up near the start of my method should have been able to handle this.
    Is there anyone out there with expeience doing this kind of thing
    that can help.
    Thanks
    Re: Having a problem with Java Cryptography Extension (JCE)
    Author: mutmansky
    In Reply To: Having a problem with Java Cryptography Extension (JCE) Jul 8, 2002 11:22 AM
    Reply 1 of 2
    Have you figured out an answer to this problem yet? I'm having a very similar problem. I'm running an applet that needs to decrypt information that it is retrieving from CORBA and I'm getting the following exception:
    java.lang.ExceptionInInitializerError
    at javax.crypto.Cipher.getInstance(DashoA6275)
    at CorbaDecrypt.doDecryption(CorbaDecrypt.java:132)
    at EventChannelListener.run(EventChannelListener.java:325)
    Caused by: java.lang.SecurityException: Cannot set up certs for trusted CAs: java.lang.SecurityException: Cannot verify jar:file:C:/PROGRA~1/Java/J2RE14~1.0_0/lib/security/local_policy.jar!/
    at javax.crypto.SunJCE_b.<clinit>(DashoA6275)
    ... 3 more
    I'm using JDK 1.4 so, there's no need for my code to have the two Provider setup lines, but otherwise my code looks much the same as yours. The code works fine when run in a test app on the server, but not in the Applet. The file that it's looking to verify (local_policy.jar) does not exist, and I don't want to create one manually, because my users would have to do that then too, which is unacceptable. I am using a trusted applet, so I'm not sure what more I can do to grant the applet the proper permissions. Does anyone have any ideas what we need to do here?
    Thanks.
    Steve

    Hi all --
    I'm have the same problem as the initially posted question. I'm using JDK 1.3.03 and I get the following excepion:
    Exception in thread "main" java.lang.ExceptionInInitializerError: java.lang.SecurityException: Cannot set up certs for trusted CAs
    at javax.crypto.b.<clinit>([DashoPro-V1.2-120198])
    at javax.crypto.SecretKeyFactory.getInstance([DashoPro-V1.2-120198])
    at PasswordEncoder.encrypt(PasswordEncoder.java:28)
    at PasswordEncoder.main(PasswordEncoder.java:89)
    I've followed all the instructions for installation and configuration in the JCE User's Guide.
    Any suggestions?
    Thanks all.
    Niran

  • Java.lang.instrument related question.

    Hi, all
    Small question regardign java.lang.instrument.
    java.lang.instrument package docs describes how the customer transformer ClassFileTransformer may be introduces using *-javaagent:{jar.file | class.name}* JVM command line arg. Looks rather obvious.
    My question is as follows. This is about the JVM startup definitions. IDEs (for instace, IDEA I use) are able to reload recompiled classes during remote dubugging (the debuggee process is started with standard remote debug flags). How do they do it? - I mean how do they introduce their ClassFileTransformer to use it's redefine() during jmv's runtime?
    Thanx in advance for any inputs
    Sincerely,
    Jabb

    Security: you might not want all classes loaded off e. g. the internet to have full access to your computer.
    Runtime code generation: you can make a class loader that rather generates java byte code than reads it from a source; think about optimizing arithmetic expression interpreters that you give an expression as a string like "x^8 + log(x)*sqrt(8+y)".. instead of generating the expression tree and traversing it every time values for x and y change, you could transparently generate a class that has a method that takes the variables as parameters and computes the value of the expression much much faster...

  • Java.lang.ClassCastException: org.model.Question

    I'm trying to typecast a list of question Objects to Object StudyQuestionPage. Im doing this becase i want to set the list of question to its boolean validate property to validate the return of validate. Im getting a typecast error:
    [ROOT] ERROR [http-8080-1] DispatcherUtils.serviceAction(237) | Could not execute action
    java.lang.ClassCastException: org.model.Question
    at org.webapp.action.DemogAction.saveQuesOrder(DemogAction.java:1147).
    Here is the code of what im doing:
    questionsList = demogManager.getQuestions(sqp);
    for(Object sqpTemp:questionsList){
         questionTemp = (StudyQuestionsPage)sqpTemp; <---- /* im getting the line error here*/
         questionTemp.setValidate(validate);
         studyPageManager.saveStudyPage(sqp);
    }

    shendel wrote:
    I'm trying to typecast a list of question Objects to Object StudyQuestionPage. Im doing this becase i want to set the list of question to its boolean validate property to validate the return of validate. Im getting a typecast error:
    [ROOT] ERROR [http-8080-1] DispatcherUtils.serviceAction(237) | Could not execute action
    java.lang.ClassCastException: org.model.Question
    at org.webapp.action.DemogAction.saveQuesOrder(DemogAction.java:1147).Okay so?
    You don't have a StudyQuestionPage you have an org.model.Question. If StudyQuestionPage extended org.model.Question then you could, but it doesn't so you can't.

  • Questions with java.lang.Class

    1.What's the use of Class.getClasses() & Class.getDeclaredClasses()?
    I wrote the class below:
    public class ClassDemo {
       public String str = new String();
       public Integer inte = new Integer(0);
       public static void main(String[] args) throws Exception {
         ClassDemo cd = new ClassDemo();
         Class c = cd.getClass();
         Class classes[] = c.getDeclaredClasses();
         for(int i = 0; i <= classes.length; i++) {
            System.out.println(classes.getName());
    But it thrown java.lang.ArrayIndexOutOfBoundsException.
    I checked, just because the classes.length is zero.
    Why? I declared two String class inside the ClassDemo,but why the getDeclaredClasses() return zero class?
    What does the declared classes mean?
    And , what 's the difference between getClasses() & getDeclaredClasses()?
    Can u give me an example?
    2.What's the use of Class.getComponentType()? what is the component type ?

    Dude, they never give you a direct answer on this
    forum. read it as they never spoon feed you(actually they do somethimes!).
    They much prefer to have you spend more time
    trying to figure it out for yourself (which is good)
    than you already have done. And, if you're like me,
    you've probably been giving whatever your problem is
    a blast for a number of days before you've given in
    and come here to ask this wretched batch of not very
    helpful individuals.You think this wonderful batch of highly helpful indivisuals get paid for answering your question. They tell you where your mouth is, where the food is, even how to grab it and eat it. If you are expecting them to grab it and put it into your mouth.....you need to checkout the best kindergarten around. Best of Luck.
    Oh, once your page drops off the first page in the
    forum, no one will ever read if again!If you have taken notice you would know that hardly a question goes past the first page, if it really does then it either has to be a cross-post/something irrelevant/ wrong forum /written by a boor(I mean someone like u).
    I've found answers for all my questions I've asked them so far. I find this place wonderful to hang out rather than trawling the web for interview questions. May be u should change your attitude.

  • Java.lang.ArrayIndexOutOfBoundsException Question

    This page worked until this weekend when our dba's did a database upgrade and now I am getting an java.lang.ArrayIndexOutOfBoundsException error. Can someone explain why this is now happening and how to fix the issue in the following code.
    This is the part of the code that is causing the issue:
      String[] arCntry = new String[250];   int count2 = 0;   con = TransactionScope.getConnection();   try {     String sqlStr3 = "SELECT TERRITORY_SHORT_NAME \n" + "FROM APPS.FND_TERRITORIES_TL \n" + "WHERE LANGUAGE = 'US' \n" + "ORDER BY 1";     pstmt=con.prepareStatement(sqlStr3);     rs=pstmt.executeQuery();     while (rs.next()) {       arCntry[count2] = rs.getString(1);       count2++;     }   }   catch (SQLException se) { %> <jsp:forward page="ibeCZzdError.jsp" /> <%   }
    It is happening on the statement arCntry[count2] = rs.getString(1); because if I comment out that piece of code the page will now load. Any ideas on how to fix this issue?

    Note: This thread was originally posted in the [Java Programming|http://forums.sun.com/forum.jspa?forumID=31] forum, but moved to this forum for closer topic alignment.

  • Question on java.lang.Thread "starting problems"

    hi everybody
    i've just little trouble running a tiny program which uses Threads.
    maybe there's a misunderstanding from my side:
    About my code:
    01  public class MyThread extends Thread {
    02
    03    String any_string = null;
    04
    05    public MyThread(String param) {
    06      any_string = param;
    07      this.start();
    08    }
    09
    10    public void run() {
    11      while(!isInterrupted()) {
    12        System.out.println(" > This Thread is running!");
    13        // any other operation...
    14        try {
    15        sleep(1000);
    16      }
    17      catch(Exception e) {}
    18    }
    19  }This is a Thread's code similar to those you can find it in the java.lang.Thread Documentation or in the java Tutorial.
    In my example I got a IllegalThreadStateException in codeline 07 which means (compare to java.lang.Thread Documentation) that the code tries to start the Thread while the Thread is still running.
    I always thought a Thread will not start itself.
    I thought (and that's the way, i red it in the documentation) that the constructor of a Thread only allocates the new Thead-Object.
    But by constructing MyThread I got the descripted exception (i'm beginning to repeat myself...). The "funny" thing on this exception is that the Thread at least IS running but there could be no Object allocated
    01  ...
    02  /**
    03   * construction of a new Object of the class MyThread.
    04   * test will be auto-started by the MyThread constructor
    05   */
    06  MyThread test = new MyThread("any-string");
    07  ...
    08  test.anyMethodOfClassMyThread();This little code generates a java.lang.NullPointerException in line 08 (when trying to access the object of class MyThread). Even after the application exits (in case of this exception), the run()-Method of MyThread generates its Text-Output " > This Thread is running!". argh
    Does anyone see my mistake / misunderstanding??
    It's really frustrating if you are sitting in front of your pc and can't get the reason why your prog is generating that "bullshit" (ok... i know - it's only generatting the bullshit I told it to generate :( )
    Any suggestions or ideas
    thanks,
    Thof

    Well now, I don't get a NullPointerException, when I try to call a method of MyThread. Here's your code, with slight modifications by me:
    public class MyThread extends Thread {
        String any_string = null;
        public MyThread(String param) {
            any_string = param;
            this.start();
        public String getAnyString(){
            return any_string;
        public void run() {
            while(!isInterrupted()) {
                System.out.println(" > This Thread is running!");
                try {
                    sleep(1000);
                catch(Exception e) {}
    }To test the app I wrote this class:
    public class TestMyThread {
        public static void main(String[] args) {
            MyThread temp = new MyThread("Hello World");
            System.out.println(temp.getAnyString());
    }Now it does print out the correct "Hello World".
    Your other problem of the thread not shutting down is because it is not a daemon thread. To solve this you will need to add this Thread to a ThreadGroup and set the ThreadGroup as a Daemon group. (see ThreadGroup::setDaemon() )
    Or you can put a little boolean in your while loop and break out when you change the value of the boolean. Then when you want to shut down you simply change the boolean
    Hope this helps
    -Philip

  • Java.lang.NoSuchMethodError

    Hi all,
    In SAP NetWeaver Developer studio i have created a Java module to read excel files into XI. The purpose is to read this excel file into XI with a file adapter.
    Hearby the code in SAP NWDS: (i only put for test reasons the first cell of the excel workbook in my code)
    package com.kk.ExcelModule;
    import java.io.ByteArrayInputStream;
    import javax.ejb.CreateException;
    import javax.ejb.SessionBean;
    import javax.ejb.SessionContext;
    import jxl.Workbook;
    import com.sap.aii.af.mp.module.ModuleContext;
    import com.sap.aii.af.mp.module.*;
    import com.sap.aii.af.mp.module.ModuleData;
    import com.sap.aii.af.mp.module.ModuleException;
    import com.sap.aii.af.ra.ms.api.Message;
    import com.sap.aii.af.ra.ms.api.XMLPayload;
    public class GetExcelFileBean implements SessionBean, Module{
         private SessionContext myContext;
         public void ejbRemove() {     
         public void ejbActivate (){
         public void ejbPassivate (){
         public void setSessionContext (SessionContext context) {
              myContext = context;
         public void ejbCreate () throws CreateException {
    @ejbHome <{com.sap.aii.af.mp.module.ModuleHome}>
    @ejbLocal <{com.sap.aii.af.mp.module.ModuleLocal}>
    @ejbLocalHome <{com.sap.aii.af.mp.module.ModuleLocalHome}>
    @ejbRemote
    @stateless <{com.sap.aii.af.mp.module.ModuleStateless}>
    @transactionType Container
    public ModuleData process(
           ModuleContext mc,
           ModuleData imd)
           throws ModuleException {
                Object obj = null;
                Message msg = null;
                try {
                      obj = imd.getPrincipalData();
                      msg = (Message) obj;
                      XMLPayload xp = msg.getDocument ();
                      if (xp != null) {
                           byte by [] = convert (xp.getContent());
                           xp.setContent (by);
                      imd.setPrincipalData (msg);
                } catch (Exception e) {
                return imd;
         public byte [] convert(byte src[]) throws Exception
         String xmldata = "";
         try
              String err = "";
              ByteArrayInputStream f5 = new ByteArrayInputStream(src);
              Workbook wb = Workbook.getWorkbook(f5);
              xmldata ="";
            wb.close();
         catch (Exception e)
         return xmldata.getBytes();
    Create Method.
    i did not yet deploy it to the J2EE engine.
    before doing that i've created a main module to read the excel file and run it for test reason.
    but there i 've get an error while running it.
    This is the code of the second part :
    Created on 27-aug-2007
    To change the template for this generated file go to
    Window&gt;Preferences&gt;Java&gt;Code Generation&gt;Code and Comments
    package com.kk.ExcelModule;
    import java.io.ByteArrayInputStream;
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.InputStream;
    import jxl.Workbook;
    @author Admin
    To change the template for this generated type comment go to
    Window&gt;Preferences&gt;Java&gt;Code Generation&gt;Code and Comments
    public class TestClass {
         public static void main(String[] args) {
              System.out.println("test");
              //GetExcelFileBean excFb = new GetExcelFileBean();
              try{
                   File file = new File("c:/Escapo/XI/IN/Prijzen_SAP.xls");
                   InputStream is = new FileInputStream(file);
                   long length = file.length();
                   System.out.println("DEBUG: Length of " + file + " is " + length + "
                   // Create the byte array to hold the data
                   byte[] bytes = new byte[(int)length];
                   // Read in the bytes
                   int offset = 0;
                   int numRead = 0;
                   while ( (offset (WorkbookSettings.java:156)
         at jxl.Workbook.getWorkbook(Workbook.java:228)
         at com.kk.ExcelModule.TestClass.convert(TestClass.java:79)
         at com.kk.ExcelModule.TestClass.main(TestClass.java:59)
    Exception in thread "main"
    My questions :
    1) Why i  have this error and how can i fix it? Is it a problem inside my code? Or is it somewhere else?
    2) if i would like to add multiple cells in my first code how i can manage this , which is the right way to do it ?
    i'm using XI 7.0 SP 11
    my SAP NWDS settings are :
    Date: 28/08/07 8:52
    System properties:
    JDK1.3.1_HOME=C:j2sdk1.4.2_09
    JDK1.4_HOME=C:j2sdk1.4.2_09
    allUserDir=C:ProgramData
    awt.toolkit=sun.awt.windows.WToolkit
    file.encoding=UTF-8
    file.encoding.pkg=sun.io
    file.separator=
    java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment
    java.awt.printerjob=sun.awt.windows.WPrinterJob
    java.class.path=C:Program FilesSAPIDEIDE70eclipseSapStartup.jar
    java.class.version=48.0
    java.endorsed.dirs=C:j2sdk1.4.2_09jrelibendorsed
    java.ext.dirs=C:j2sdk1.4.2_09jrelibext
    java.home=C:j2sdk1.4.2_09jre
    java.io.tmpdir=C:UsersAdminAppDataLocalTemp
    java.library.path=C:j2sdk1.4.2_09 in;.;C:Windowssystem32;C:Windows;C:Program FilesSAPIDEIDE70eclipse;C:Windowssystem32;C:Windows;C:WindowsSystem32Wbem;c:Program FilesCommon FilesRoxio SharedDLLShared;c:Program FilesCommon FilesRoxio SharedDLLShared;c:Program FilesCommon FilesRoxio Shared9.0DLLShared;c:Program FilesHewlett-PackardIAM in;C:Program FilesQuickTimeQTSystem
    java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition
    java.runtime.version=1.4.2_09-b05
    java.specification.name=Java Platform API Specification
    java.specification.vendor=Sun Microsystems Inc.
    java.specification.version=1.4
    java.util.prefs.PreferencesFactory=java.util.prefs.WindowsPreferencesFactory
    java.vendor=Sun Microsystems Inc.
    java.vendor.url=http://java.sun.com/
    java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi
    java.version=1.4.2_09
    java.vm.info=mixed mode
    java.vm.name=Java HotSpot(TM) Client VM
    java.vm.specification.name=Java Virtual Machine Specification
    java.vm.specification.vendor=Sun Microsystems Inc.
    java.vm.specification.version=1.0
    java.vm.vendor=Sun Microsystems Inc.
    java.vm.version=1.4.2_09-b05
    line.separator=
    os.arch=x86
    os.name=Windows NT (unknown)
    os.version=6.0
    path.separator=;
    sun.arch.data.model=32
    sun.boot.class.path=C:j2sdk1.4.2_09jrelib
    t.jar;C:j2sdk1.4.2_09jrelibi18n.jar;C:j2sdk1.4.2_09jrelibsunrsasign.jar;C:j2sdk1.4.2_09jrelibjsse.jar;C:j2sdk1.4.2_09jrelibjce.jar;C:j2sdk1.4.2_09jrelibcharsets.jar;C:j2sdk1.4.2_09jreclasses
    sun.boot.library.path=C:j2sdk1.4.2_09jre in
    sun.cpu.endian=little
    sun.cpu.isalist=pentium i486 i386
    sun.io.unicode.encoding=UnicodeLittle
    sun.java2d.fontpath=
    sun.os.patch.level=
    user.country=BE
    user.dir=C:Program FilesSAPIDEIDE70Eclipse
    user.home=C:UsersAdmin
    user.language=nl
    user.name=Admin
    user.timezone=GMT
    user.variant=
    user.workspace=C:UsersAdminDocumentsSAPworkspace
    Features:
    com.sap.ip.me.mdk.developmentTools (2.5.12) "com.sap.ip.me.mdk.developmentTools"
    org.eclipse.gef (2.0.0) "org.eclipse.gef"
    org.eclipse.gef.source (2.0.0) "org.eclipse.gef.source"
    org.eclipse.jdt (2.1.2) "org.eclipse.jdt"
    org.eclipse.jdt.source (2.1.2) "org.eclipse.jdt.source"
    org.eclipse.pde (2.1.2) "org.eclipse.pde"
    org.eclipse.platform (2.1.2) "org.eclipse.platform"
    org.eclipse.platform.source (2.1.2) "org.eclipse.platform.source"
    org.eclipse.platform.win32 (2.1.2) "org.eclipse.platform.win32"
    org.eclipse.platform.win32.source (2.1.2) "org.eclipse.platform.win32.source"
    org.eclipse.sdk.win32 (2.1.2) "org.eclipse.sdk.win32"
    Plug-in Registry:
    com.sap.bc.proj.jstartup (2.0.0) "J2EE Jstartup"
    com.sap.caf.designer (1.0.0) "com.sap.caf.designer"
    com.sap.cms.client (2.0.0) "Infrastructure CMS Client"
    com.sap.cms.organizer (1.0.0) "Infrastructure CMS Transport Organizer"
    com.sap.cms.tcs (2.0.0) "Infrastructure TCS Deploy Servlet"
    com.sap.devmanual.doc.user (2.0.0) "Documentation Development Manual"
    com.sap.dictionary.database (2.0.0) "Dictionary Database"
    com.sap.dictionary.designtime (1.0.0) "Dictionary Types Designtime"
    com.sap.dictionary.projectbrowser (2.0.0) "Dictionary Project Browser"
    com.sap.dictionary.runtime (2.0.0) "Dictionary Types Runtime"
    com.sap.dictionary.runtime.javadoc (2.0.0) "Documentation Dictionary Types Runtime"
    com.sap.dictionary.services (2.0.0) "Dictionary Types Services"
    com.sap.dictionary.tools.archivebuilder (2.0.0) "Dictionary Archive Builder"
    com.sap.dictionary.tools.generation (2.0.0) "Dictionary Generation"
    com.sap.dictionary.tools.nameserver (2.0.0) "Dictionary Nameserver"
    com.sap.dictionary.tools.simpletype (2.0.0) "Dictionary Simple Type Editor"
    com.sap.dictionary.tools.sqlj (2.0.0) "Persistence SQLJ"
    com.sap.dictionary.tools.structureeditor (2.0.0) "Dictionary Structure Editor"
    com.sap.dictionary.tools.tablebrowser (2.0.0) "Dictionary Table Browser"
    com.sap.dictionary.tools.tableeditor (2.0.0) "Dictionary Table Editor"
    com.sap.dictionary.tools.tsmodel.dictionary (2.0.0) "Dictionary TS Model"
    com.sap.dictionary.tools.ui (2.0.0) "Dictionary User Interface"
    com.sap.dictionary.types.mdi2metamodel (2.0.0) "Dictionary MDI Metamodel"
    com.sap.engine.javadoc (2.0.0) "Documentation J2EE Engine"
    com.sap.engine.webservices (2.0.0) "Web Service Runtime Libs"
    com.sap.ep.applicationDevelopment (7.0.0) "Enterprise Portal Application Development"
    com.sap.ep.configurationManager (7.0.0) "Enterprise Portal Configuration Manager"
    com.sap.ep.connectionManager (7.0.0) "Enterprise Portal Connection Manager"
    com.sap.ep.documentation.api (7.0.0) "Enterprise Portal Java API Documentation"
    com.sap.ep.unitTest (7.0.0) "Enterprise Portal Unit Test"
    com.sap.ep.webServices (7.0.0) "Enterprise Portal Web Services"
    com.sap.exception (2.0.0) "Core Exceptions"
    com.sap.ext.libs.webservices (2.0.0) "Web Service External Libs"
    com.sap.ide.eclipse.cbs.activation (2.0.0) "Infrastructure CBS Activation"
    com.sap.ide.eclipse.component.provider (2.0.0) "Infrastructure Component Provider"
    com.sap.ide.eclipse.content (2.0.0) "Content Plug-in"
    com.sap.ide.eclipse.debugExtensionPlugin (2.0.0) "Core Debug Extension"
    com.sap.ide.eclipse.dii (2.0.0) "Infrastructure DII"
    com.sap.ide.eclipse.ext.libs.iaik (2.0.0) "Infrastructure SSL Support External Libs"
    com.sap.ide.eclipse.ext.libs.jdo (2.0.0) "Persistence JDO Libs"
    com.sap.ide.eclipse.import.iaik (2.0.0) "Infrastructure SSL Support Import Wizard"
    com.sap.ide.eclipse.j2ee.engine (2.0.0) "J2EE Engine Utilities"
    com.sap.ide.eclipse.j2ee.model.ui (2.0.0) "J2EE Model Extensions UI"
    com.sap.ide.eclipse.jarsap (2.0.0) "Infrastructure JarSap"
    com.sap.ide.eclipse.login (2.0.0) "Infrastructure Login"
    com.sap.ide.eclipse.s2x.editor (2.0.0) "I18N S2X Editor"
    com.sap.ide.eclipse.sdm (1.0.0) "Infrastructure SDM"
    com.sap.ide.eclipse.umepermissions (2.0.0) "UME Permissions Plug-in"
    com.sap.ide.eclipse.wizards.jpx.ui (2.0.0) "Core JPX Import Wizard"
    com.sap.ide.generationfwk (2.0.0) "Generation Framework"
    com.sap.ide.jcb.core (2.0.0) "Connectivity Builder Core"
    com.sap.ide.jcb.ui (2.0.0) "Connectivity Enterprise Connector User Interface"
    com.sap.ide.metamodel.common (2.0.0) "Metamodel Common"
    com.sap.ide.metamodel.common.libs (2.0.0) "Metamodel Common Libs"
    com.sap.ide.metamodel.core (2.0.0) "Metamodel Core"
    com.sap.ide.metamodel.core.libs (2.0.0) "Metamodel Core Libs"
    com.sap.ide.metamodel.dictionary (2.0.0) "Dictionary Metamodel"
    com.sap.ide.metamodel.dictionary.libs (2.0.0) "Dictionary Metamodel Libs"
    com.sap.ide.metamodel.merger (2.0.0) "Metamodel Merger"
    com.sap.ide.metamodel.vi (2.0.0) "Web Service Virtual Interface Metamodel"
    com.sap.ide.metamodel.vi.check.libs (2.0.0) "Web Service Virtual Interface Check Metamodel Libs"
    com.sap.ide.metamodel.vi.libs (2.0.0) "Web Service Virtual Interface Metamodel Libs"
    com.sap.ide.metamodel.webdynpro (2.0.0) "Web Dynpro Metamodel"
    com.sap.ide.metamodel.webdynpro.libs (2.0.0) "Web Dynpro Metamodel Libs"
    com.sap.ide.metamodel.ws (2.0.0) "Web Service Metamodel"
    com.sap.ide.metamodel.ws.libs (2.0.0) "Web Service Metamodel Libs"
    com.sap.ide.metamodel.wsproxy (2.0.0) "Web Service Proxy Metamodel"
    com.sap.ide.metamodel.wsproxy.libs (2.0.0) "Web Service Proxy Metamodel Libs"
    com.sap.ide.metamodelsupplement.webdynpro (2.0.0) "Web Dynpro Metamodel Supplement"
    com.sap.ide.services.metamodel.webdynpro (2.0.0) "Metamodel Web Dynpro Services"
    com.sap.ide.tools.core.patternfwk (2.0.0) "Core Tools Pattern Framework"
    com.sap.ide.tools.core.template (2.0.0) "Core Tools Template"
    com.sap.ide.tools.core.template.service (2.0.0) "Core Tools Template Service"
    com.sap.ide.tools.core.treemappingcomponent (2.0.0) "Core Tools Tree Mapping"
    com.sap.ide.vi (2.0.0) "Web Service Virtual Interface"
    com.sap.ide.vi.check (2.0.0) "Web Service Virtual Interface Check"
    com.sap.ide.virtualInterface.tsmodel (2.0.0) "Web Service Virtual Interface TS Model"
    com.sap.ide.webdynpro.adobetemplatedesigner (2.0.0) "Web Dynpro Adobe Template Designer"
    com.sap.ide.webdynpro.applicationeditor (2.0.0) "Web Dynpro Application Editor"
    com.sap.ide.webdynpro.archivebuilder (2.0.0) "Web Dynpro Archive Builder"
    com.sap.ide.webdynpro.chartdesigner (2.0.0) "Web Dynpro Chart Designer"
    com.sap.ide.webdynpro.checklayer (2.0.0) "Web Dynpro Checklayer"
    com.sap.ide.webdynpro.controllereditor (2.0.0) "Web Dynpro Controller Editor"
    com.sap.ide.webdynpro.controllereditor.methodextraction (2.0.0) "Web Dynpro Method Extraction"
    com.sap.ide.webdynpro.customuielements (2.0.0) "WebDynpro Customuielements"
    com.sap.ide.webdynpro.ecatt (2.0.0) "Web Dynpro Ecatt"
    com.sap.ide.webdynpro.generation (2.0.0) "Web Dynpro Generation"
    com.sap.ide.webdynpro.messageeditor (2.0.0) "Web Dynpro Message Editor"
    com.sap.ide.webdynpro.modeleditor (2.0.0) "Web Dynpro Model Editor"
    com.sap.ide.webdynpro.projectbrowser (2.0.0) "Web Dynpro Project Browser"
    com.sap.ide.webdynpro.rendering (2.0.0) "Web Dynpro Rendering"
    com.sap.ide.webdynpro.service.applicationeditor (2.0.0) "Web Dynpro Application Editor Services"
    com.sap.ide.webdynpro.service.applicationmodeler (2.0.0) "Web Dynpro Application Modeler Services"
    com.sap.ide.webdynpro.service.controllereditor (2.0.0) "Web Dynpro Controller Editor Services"
    com.sap.ide.webdynpro.service.core (2.0.0) "Web Dynpro Core Services"
    com.sap.ide.webdynpro.service.modeleditor (2.0.0) "Web Dynpro Model Editor Services"
    com.sap.ide.webdynpro.service.viewdesigner (2.0.0) "Web Dynpro View Designer Services"
    com.sap.ide.webdynpro.template.contextcopy (2.0.0) "Web Dynpro context copy template"
    com.sap.ide.webdynpro.template.generation (2.0.0) "Web Dynpro Template Generation"
    com.sap.ide.webdynpro.template.portaleventing (2.0.0) "Web Dynpro Portal Eventing Template"
    com.sap.ide.webdynpro.template.simplescenario (2.0.0) "WebDynpro Declarative Template Wizards"
    com.sap.ide.webdynpro.template.simplescenario.generation (2.0.0) "WebDynpro Declarative Template Wizards Generation"
    com.sap.ide.webdynpro.template.wizards (2.0.0) "Web Dynpro Template Wizards"
    com.sap.ide.webdynpro.template.wizards.generation (2.0.0) "Web Dynpro Template Wizards Generation"
    com.sap.ide.webdynpro.tsmodel.application (2.0.0) "Web Dynpro TS Model"
    com.sap.ide.webdynpro.ui (2.0.0) "Web Dynpro User Interface"
    com.sap.ide.webdynpro.viewdesigner (2.0.0) "Web Dynpro View Designer"
    com.sap.ide.webservices.tsmodel (2.0.0) "Web Service TS Model"
    com.sap.ide.ws (2.0.0) "Web Service Tools"
    com.sap.ide.ws.cafintegration (1.0.0) "CAF Integration Utilities"
    com.sap.ide.ws.core (2.0.0) "Web Service Core"
    com.sap.ide.ws.model (2.0.0) "Web Service Model"
    com.sap.ide.ws.navigator (2.0.0) "Web Service Navigator"
    com.sap.ide.ws.perspective (2.0.0) "Web Service Perspective"
    com.sap.ide.ws.portalintegration (1.0.0) "Portal Web Service Endpoint View"
    com.sap.ide.ws.portalintegration.soapapp (1.0.0) "Portal Web Service Soap Application"
    com.sap.ide.ws.proxygenerator (2.0.0) "Web Service Proxy Generator"
    com.sap.ide.ws.soapapp (2.0.0) "Web Service SOAP Application"
    com.sap.ide.wsproxy (2.0.0) "Web Service Proxy Tools"
    com.sap.ip.bi.sdk.doc (3.5.0) "BI Java SDK Documentation"
    com.sap.ip.me.mdk.developmentTools (2.5.12) "Mobile Development Kit Tools"
    com.sap.ip.me.mdk.pios.docgen (1.1.4) "MDK Peripheral Support Plug-in"
    com.sap.jdo.api (2.0.0) "Persistence JDO API"
    com.sap.jdo.utils (2.0.0) "Persistence JDO Util"
    com.sap.jrfc (2.0.0) "Connectivity JFRC Libs"
    com.sap.km.rfwizard (7.1.5) "Knowledge Management RF Wizard"
    com.sap.km.rfwizard.pdk (7.1.5) "Knowledge Management RF PDK Wizard"
    com.sap.mdi (2.0.0) "Dictionary MDI"
    com.sap.mw.jco (2.0.0) "Connectivity JCO Libs"
    com.sap.mw.jco.javadoc (2.0.0) "Documentation JCO"
    com.sap.mw.jra.javadoc (2.0.0) "Documentation Java Resource Adapter"
    com.sap.netweaver.bc.uwl.plugin (1.0.0) "UWLPlugin"
    com.sap.netweaver.kmc.doc (1.0.0) "Knowledgemanagement and Collaboration"
    com.sap.opensql (2.0.0) "Core OpenSQL"
    com.sap.opensql.javadoc (2.0.0) "Documentation OpenSQL"
    com.sap.s2x (2.0.0) "I18N S2X"
    com.sap.sdm.api (2.0.0) "Infrastructure SDM API"
    com.sap.security (2.0.0) "Infrastructure Security APIs"
    com.sap.security.https.javadoc (2.0.0) "Documentation SSL/HTTPS Client Connections"
    com.sap.security.javadoc (2.0.0) "Documentation Security"
    com.sap.security.securestorage.javadoc (2.0.0) "Documentation Secure Storage"
    com.sap.sld.client (2.0.0) "Infrastructure SLD Client"
    com.sap.sld.namealloc (2.0.0) "Infrastructure SLD Name Allocation"
    com.sap.sqlj (2.0.0) "Persistence SQLJ Libs"
    com.sap.tc.ap (2.0.0) "Infrastructure Archive Pool"
    com.sap.tc.build (2.0.0) "Infrastructure Build"
    com.sap.tc.cmi (1.0.0) "Common Model Interface"
    com.sap.tc.cmi.javadoc (2.0.0) "Documentation Common Model Interface"
    com.sap.tc.col (2.0.0) "Enterprise Service Framework"
    com.sap.tc.complib (2.0.0) "Infrastructure Component Library"
    com.sap.tc.jarm (2.0.0) "Core Java Application Responsetime Measurement"
    com.sap.tc.jtools.jlin.core (2.0.0) "JLin core"
    com.sap.tc.jtools.jlin.devel (2.0.0) "JLin Test Developer Plugin"
    com.sap.tc.jtools.jlin.java (2.0.0) "JLin Java Module"
    com.sap.tc.jtools.jlin.ui (2.0.0) "Java LINt tool"
    com.sap.tc.jtools.jver.core (2.0.0) "JTools JVer Core"
    com.sap.tc.jtools.source (2.0.0) "Jtools Plugin Developer Resources"
    com.sap.tc.jtools.util (2.0.0) "Jtools Utilities"
    com.sap.tc.logging.javadoc (2.0.0) "Documentation Logging"
    com.sap.tc.security (2.0.0) "Infrastructure Security"
    com.sap.tc.security.https (2.0.0) "Infrastructure Security HTTPS"
    com.sap.tc.webdynpro.model.webservice (2.0.0) "Web Dynpro Webservice Model Runtime"
    com.sap.tc.webdynpro.runtime (2.0.0) "Web Dynpro Runtime"
    com.sap.tc.webdynpro.runtime.javadoc (2.0.0) "Documentation Web Dynpro Runtime"
    com.sap.ume.javadoc (2.0.0) "Documentation User Management Engine"
    com.sap.ur.ideservlet (1.0.0) "UR IDE Servlet Plug-in"
    com.sap.util.cache.ide (2.0.0) "Cache Management Library"
    com.sap.voice.plugin (1.0.0) "VoicePlugin"
    com.togethersoft.sapient.audit (0.9.0) "Sapient Audits"
    com.togethersoft.sapient.core (0.9.0) "Sapient Core"
    com.togethersoft.sapient.depend (0.9.0) "Sapient Dependency Analyzer"
    com.togethersoft.sapient.detect (0.9.0) "Sapient Detection Strategies"
    com.togethersoft.sapient.metric (0.9.0) "Sapient Metrics"
    com.togethersoft.sapient.report (0.9.0) "Sapient Reports"
    com.togethersoft.selena.cmf (0.9.0) "Selena Patterns and Templates Support"
    com.togethersoft.selena.examples (0.9.0) "Together Examples"
    com.togethersoft.selena.gde.printing (0.9.0) "Diagram Printing"
    com.togethersoft.selena.gde.svgexport (0.9.0) "Diagram to SVG Export"
    com.togethersoft.selena.gendoc (0.9.0) "Documentation generator"
    com.togethersoft.selena.launcher (0.9.0) "Launcher Plugin"
    com.togethersoft.selena.license.sanctuary (0.9.0) "Sanctuary Plug-in"
    com.togethersoft.selena.model.navigation (0.9.0) "Model Navigation"
    com.togethersoft.selena.model.providers.patterns (0.9.0) "Patterns Providers"
    com.togethersoft.selena.model.ui.actions.java (0.9.0) "Java Actions Plugin"
    com.togethersoft.selena.model.ui.actions.patterns (0.9.0) "Pattern Actions on Model Elements"
    com.togethersoft.selena.patterns (0.9.0) "Patterns Generation"
    com.togethersoft.selena.patterns.gof (0.9.0) "GoF Patterns"
    com.togethersoft.selena.patterns.java (0.9.0) "Java Patterns"
    com.togethersoft.selena.patterns.sapient (0.9.0) "Sapient Based Pattern Recognition"
    com.togethersoft.selena.profiles (0.9.0) "Selena Profiles Support"
    com.togethersoft.selena.profiles.businessModeling (0.9.0) "UML Profile for Business Modeling"
    com.togethersoft.selena.profiles.ep (0.9.0) "Eriksson-Penker Business Extensions Profile"
    com.togethersoft.selena.profiles.incolor (0.9.0) "UML Modeling in Color Profile Plugin"
    com.togethersoft.selena.profiles.sap (0.9.0) "Web Dynpro Modeling Profile"
    com.togethersoft.selena.profiles.sdp (0.9.0) "UML Profile for Software Development Processes"
    com.togethersoft.selena.sapient (0.9.0) "Sapient Plugin"
    com.togethersoft.selena.sapient.ui (0.9.0) "QA Actions for the Model Entities"
    com.togethersoft.selena.selector (0.9.0) "Selector"
    com.togethersoft.selena.selector.model (0.9.0) "Model Selector"
    com.togethersoft.selena.viewmanagement (0.9.0) "Together View Management"
    com.togethersoft.selena.viewmaps (0.9.0) "Together Viewmaps"
    com.togethersoft.selena.xmi (0.9.0) "XMI Import/Export Plugin"
    com.togethersoft.togethersap (6.1.9) "Borland® Together® Edition for SAP NetWeaver(TM) Developer Studio"
    com.togethersoft.togethersap.presentation (1.0.0) "com.togethersoft.togethersap.presentation"
    com.togethersoft.togetherxj.doc.user (0.9.0) "Borland® Together® Edition for SAP NETWEAVER(TM) DEVELOPER STUDIO User Guide"
    com.togethersoft.togetherxj.gsd.code (0.9.0) "com.togethersoft.togetherxj.gsd.code"
    com.togethersoft.togetherxj.gsd.core (0.9.0) "Gsd Core Plug-in"
    com.togethersoft.togetherxj.gsd.ui (0.9.0) "GsdUIPlugin"
    com.togethersoft.togetherxj.java.explorer (0.9.0) "Together Java Explorer"
    com.togethersoft.togetherxj.java.properties (0.9.0) "Java Properties Plug-in"
    com.togethersoft.togetherxj.model.ui.addlinked (0.9.0) "com.togethersoft.togetherxj.model.ui.addlinked"
    com.togethersoft.togetherxj.sap.integration (0.9.0) "SAP NetWeaver(tm) Developer Studio Integration"
    com.togethersoft.togetherxj.uml (0.9.0) "Generic UML Modeling"
    com.togethersoft.togetherxj.uml.cdl (0.9.0) "CDL Plug-in"
    com.togethersoft.togetherxj.uml.interaction (0.9.0) "Interaction Diagrams Plug-in"
    com.togethersoft.togetherxj.uml.uml20 (0.9.0) "UML 2.0 Support"
    com.togethersoft.togetherxj.uml.uml20.actions (0.9.0) "UML 2.0 Actions Fragment"
    com.togethersoft.togetherxj.uml.uml20.providers (0.9.0) "UML 2.0 Providers Fragment"
    com.togethersoft.togetherxj.uml.uml20.viewmaps (0.9.0) "UML 2.0 Viewmaps Fragment"
    com.tssap.config (1.0.0) "Core Startup Configuration"
    com.tssap.dii (2.0.0) "Infrastructure DII"
    com.tssap.dtr.client.eclipse (2.0.0) "Infrastructure DTR UI"
    com.tssap.dtr.client.vfs (2.0.0) "Infrastructure DTR Client Library (VFS)"
    com.tssap.editors (2.0.0) "Core Editors"
    com.tssap.ext.libs.j2ee (1.3.0) "J2EE External Libs"
    com.tssap.j2ee.core.descriptor (2.0.0) "J2EE Descriptor Support"
    com.tssap.j2ee.core.ear (2.0.0) "J2EE Ear Model"
    com.tssap.j2ee.core.ear.impl (2.0.0) "J2EE Ear Model Implementation"
    com.tssap.j2ee.core.ejb (2.0.0) "J2EE Ejb Model"
    com.tssap.j2ee.core.ejb.impl (1.0.0) "J2EE Ejb Model Implementation"
    com.tssap.j2ee.core.ejbjar (2.0.0) "J2EE Ejb Jar Model"
    com.tssap.j2ee.core.ejbjar.impl (2.0.0) "J2EE Ejb Jar Model Implementation"
    com.tssap.j2ee.core.inheritance (1.0.0) "J2EE Ejb Inheritance"
    com.tssap.j2ee.core.inheritance.impl (1.0.0) "J2EE Ejb Inheritance Implementation"
    com.tssap.j2ee.core.providers.dtr (2.0.0) "J2EE DTR Providers"
    com.tssap.j2ee.core.providers.ear (2.0.0) "J2EE Ear Providers"
    com.tssap.j2ee.core.providers.ejb (2.0.0) "J2EE Ejb Providers"
    com.tssap.j2ee.core.providers.ejbjar (2.0.0) "J2EE Ejb Jar Providers"
    com.tssap.j2ee.core.providers.vi (2.0.0) "J2EE Web Service Virtual Interface Providers"
    com.tssap.j2ee.core.providers.web (2.0.0) "J2EE Web Providers"
    com.tssap.j2ee.core.providers.webapp (2.0.0) "J2EE Web App Providers"
    com.tssap.j2ee.core.providers.ws (2.0.0) "J2EE Web Service Providers"
    com.tssap.j2ee.core.utils (2.0.0) "J2EE Utils Plug-in"
    com.tssap.j2ee.core.web (2.0.0) "J2EE Web Model"
    com.tssap.j2ee.core.web.impl (2.0.0) "J2EE Web Model Implementation"
    com.tssap.j2ee.core.webapp (2.0.0) "J2EE Web App Model"
    com.tssap.j2ee.core.webapp.impl (2.0.0) "J2EE Web App Model Implementation"
    com.tssap.j2ee.doc.user (1.3.0) "Documentation J2EE 1.3"
    com.tssap.j2ee.external (2.0.0) "J2EE External"
    com.tssap.j2ee.library (2.0.0) "J2EE Library"
    com.tssap.j2ee.model (2.0.0) "J2EE Model"
    com.tssap.j2ee.model.ext (2.0.0) "J2EE Model Extensions"
    com.tssap.j2ee.ui (2.0.0) "J2EE UI core"
    com.tssap.j2ee.ui.ear (2.0.0) "J2EE UI ear"
    com.tssap.j2ee.ui.ejb (2.0.0) "J2EE UI ejb"
    com.tssap.j2ee.ui.ejbjar (2.0.0) "J2EE UI ejb-jar"
    com.tssap.j2ee.ui.perspective (2.0.0) "J2EE UI perspective/views"
    com.tssap.j2ee.ui.web (2.0.0) "J2EE UI web"
    com.tssap.j2ee.util (2.0.0) "J2EE Core Utilities"
    com.tssap.j2ee.viewmaps (2.0.0) "J2EE Viewmaps"
    com.tssap.j2ee.viewmaps.java (2.0.0) "J2EE Simple Java Viewmaps"
    com.tssap.j2se.doc.user (1.4.2) "Documentation J2SE 1.4.2"
    com.tssap.sap.libs.ejbql (2.0.0) "J2EE EJBQL"
    com.tssap.sap.libs.logging (2.0.0) "Core Logging"
    com.tssap.sap.libs.xmltoolkit (2.0.0) "Core XML Toolkit"
    com.tssap.selena.cmf (2.0.0) "Core Selena Patterns and Templates"
    com.tssap.selena.dom (1.0.0) "Core Selena DOM"
    com.tssap.selena.draw2d (2.0.0) "Core Selena Draw2D Extensions"
    com.tssap.selena.gde (2.0.0) "Core Selena GDE Extensions"
    com.tssap.selena.java.comment (2.0.0) "Core Selena Java Comment Parser"
    com.tssap.selena.layout (1.0.0) "Core Selena Layout"
    com.tssap.selena.license (2.0.0) "Core Selena Common License"
    com.tssap.selena.license.unlimited (2.0.0) "Core Selena Common License Unlimited"
    com.tssap.selena.model (2.0.0) "Core Selena Model"
    com.tssap.selena.model.extension (2.0.0) "Core Selena Model Extensions"
    com.tssap.selena.model.platform.eclipse (1.0.0) "Core Selena Model Platform"
    com.tssap.selena.model.preferences (1.0.0) "Core Selena Model Preference Store"
    com.tssap.selena.model.providers.design (0.9.0) "Design Plugin"
    com.tssap.selena.model.providers.java (2.0.0) "Core Selena Model Java Providers"
    com.tssap.selena.model.providers.proxy (2.0.0) "Core Selena Model Proxy Providers"
    com.tssap.selena.model.providers.rc (1.0.0) "Core Selena Model Reference Collections Support"
    com.tssap.selena.model.providers.resources (2.0.0) "Core Selena Model Resources Providers"
    com.tssap.selena.model.ui (2.0.0) "Core Selena Model UI"
    com.tssap.selena.model.ui.navigator (2.0.0) "Core Selena Model UI Navigator"
    com.tssap.selena.model.undo (2.0.0) "Core Selena Model Undo Support"
    com.tssap.selena.model.update (2.0.0) "Core Selena Model Graphical Diagram Editor Updater"
    com.tssap.selena.properties (2.0.0) "Core Selena Properties"
    com.tssap.selena.ui (2.0.0) "Core Selena UI"
    com.tssap.selena.viewmanagement (2.0.0) "Core Selena View Management"
    com.tssap.selena.viewmaps.figures (2.0.0) "Core Selena Viewmap Figures"
    com.tssap.tools (2.0.0) "Core Tools"
    com.tssap.tools.ui (2.0.0) "Core Tools UI"
    com.tssap.util (2.0.0) "Core Utilities"
    com.tssap.util.xml (2.0.0) "Core XML Utilities"
    org.antlr (2.0.0) "Core Antlr"
    org.apache.ant (1.5.3) "Apache Ant"
    org.apache.batik (1.5.0) "Apache Batik"
    org.apache.lucene (1.2.1) "Apache Lucene"
    org.apache.regexp (1.1.9) "Apache Regular Expression package"
    org.apache.velocity (0.9.0) "org.apache.velocity"
    org.apache.xerces (4.0.13) "Xerces Based XML Parser"
    org.eclipse.ant.core (2.1.1) "Ant Build Tool Core"
    org.eclipse.compare (2.1.0) "Compare Support"
    org.eclipse.core.boot (2.1.2) "Core Boot"
    org.eclipse.core.resources (2.1.1) "Core Resource Management"
         org.eclipse.core.resources.win32 (2.1.0) "%win32FragmentName"
    org.eclipse.core.runtime (2.1.1) "Core Runtime"
    org.eclipse.debug.core (2.1.2) "Debug Core"
    org.eclipse.debug.ui (2.1.1) "Debug UI"
    org.eclipse.draw2d (2.0.0) "Draw2d"
    org.eclipse.draw2d.doc.isv (2.0.0) "Draw2d Documentation"
    org.eclipse.gef (2.0.0) "Graphical Editor Framework"
    org.eclipse.gef.doc.isv (2.0.0) "GEF Documentation"
    org.eclipse.gef.examples.logicdesigner (2.0.0) "Logic GEF Example"
    org.eclipse.help (2.1.2) "Help System Core"
    org.eclipse.help.appserver (2.1.0) "Help Application Server"
    org.eclipse.help.ui (2.1.1) "Help System UI"
         org.eclipse.help.ui.win32 (2.1.0) "%help_system_plugin_name_win32"
    org.eclipse.help.webapp (2.1.2) "Help System Webapp"
    org.eclipse.jdt (2.1.2) "Eclipse Java Development Tools"
    org.eclipse.jdt.core (2.1.2) "Java Development Tools Core"
    org.eclipse.jdt.debug (2.1.2) "JDI Debug Model"
    org.eclipse.jdt.debug.ui (2.1.1) "JDI Debug UI"
    org.eclipse.jdt.doc.isv (2.1.0) "Eclipse JDT Plug-in Developer Guide"
    org.eclipse.jdt.doc.user (2.1.0) "Eclipse Java Development User Guide"
    org.eclipse.jdt.junit (2.1.1) "Java Development Tools JUnit support"
    org.eclipse.jdt.launching (2.1.1) "Java Development Tools Launching Support"
    org.eclipse.jdt.source (2.1.2) "Eclipse Java Development Tools SDK"
    org.eclipse.jdt.ui (2.1.2) "Java Development Tools UI"
    org.eclipse.jface (2.1.1) "JFace"
    org.eclipse.jface.text (2.1.0) "JFace Text"
    org.eclipse.pde (2.1.0) "Eclipse Plug-in Development Environment"
    org.eclipse.pde.build (2.1.0) "Plug-in Development Environment Build Support"
    org.eclipse.pde.core (2.1.2) "Plug-in Development Core"
    org.eclipse.pde.doc.user (2.1.0) "Eclipse Plug-in Development User Guide"
    org.eclipse.pde.runtime (2.1.0) "Plug-in Development Environment Runtime"
    org.eclipse.pde.source (2.1.2) "Eclipse Plug-in Development Environment Source Code"
    org.eclipse.pde.ui (2.1.2) "Plug-in Development UI"
    org.eclipse.platform (2.1.2) "Eclipse Platform"
    org.eclipse.platform.doc.isv (2.1.0) "Eclipse Platform Plug-in Developer Guide"
    org.eclipse.platform.doc.user (2.1.1) "Eclipse Workbench User Guide"
    org.eclipse.platform.source (2.1.2) "Eclipse Platform Plug-in Developer Resources"
    org.eclipse.platform.win32 (2.1.2) "Eclipse Platform (Windows)"
    org.eclipse.platform.win32.source (2.1.2) "Eclipse Platform Plug-in Developer Resources (Windows)"
    org.eclipse.sdk.win32 (2.1.2) "Eclipse Project SDK (Windows)"
    org.eclipse.search (2.1.1) "Search Support"
    org.eclipse.swt (2.1.2) "Standard Widget Toolkit"
         org.eclipse.swt.win32 (2.1.2) "%fragmentName"
    org.eclipse.team.core (2.1.1) "Team Support Core"
    org.eclipse.team.ui (2.1.0) "Team Support UI"
    org.eclipse.text (2.1.0) "Text"
    org.eclipse.tomcat (4.0.6.2) "Tomcat Wrapper"
    org.eclipse.ui (2.1.1) "Eclipse UI"
    org.eclipse.ui.editors (2.1.0) "Default Text Editor"
    org.eclipse.ui.externaltools (2.1.1) "External Tools"
    org.eclipse.ui.versioncheck (2.1.1) "Eclipse Version Check"
    org.eclipse.ui.views (2.1.0) "Views"
    org.eclipse.ui.workbench (2.1.1) "Workbench"
         org.eclipse.ui.win32 (2.1.0) "%Win32Fragment.fragmentName"
    org.eclipse.ui.workbench.texteditor (2.1.0) "Text Editor Framework"
    org.eclipse.update.core (2.1.0) "Install/Update Core"
         org.eclipse.update.core.win32 (2.1.0) "%fragmentNameWin"
    org.eclipse.update.ui.forms (2.1.0) "Install/Update Forms"
    org.junit (3.8.1) "JUnit Testing Framework"
    User Preferences:
    #Tue Aug 28 08:52:22 GMT 2007
    org.eclipse.ui.workbench/reopen_active=false
    com.tssap.dtr.client.eclipse/automerge_exclusionflag=11111111111111111111111111111111111111
    org.eclipse.jdt.core/org.eclipse.jdt.core.codeComplete.visibilityCheck=enabled
    org.eclipse.jdt.core/org.eclipse.jdt.core.classpathVariable.ORG_ECLIPSE_JDT_SOURCE_SRC=C:/Program Files/SAP/IDE/IDE70/eclipse/plugins/org.eclipse.jdt.source_2.1.2/src
    org.eclipse.jdt.core/org.eclipse.jdt.core.classpathVariable.SAP_SECURITY_LIB_HOME=C:/Program Files/SAP/IDE/IDE70/eclipse/plugins/com.sap.ide.eclipse.ext.libs.iaik_2.0.0/
    com.tssap.config=1.0.0
    org.eclipse.ui.workbench/snap_to_grid=true
    org.eclipse.ui.workbench/ShowM3ElementsOnSAPDiagrams=true
    org.eclipse.ui.workbench/srt_enabled=true
    org.eclipse.ui.workbench/class_width=200
    org.eclipse.jdt.core/org.eclipse.jdt.core.classpathVariable.SAP_ENGINE_WEBSERVICES_LIBS_HOME=C:/Program Files/SAP/IDE/IDE70/eclipse/plugins/com.sap.engine.webservices_2.0.0/
    org.eclipse.pde.core/ext_locations=COM_SAP_TC_JTOOLS_SOURCE_SRC@C:
    Program Files
    SAP
    IDE
    IDE70
    eclipse
    plugins
    com.sap.tc.jtools.source_2.0.0
    src,t;ORG_ECLIPSE_PDE_SOURCE_SRC@C:
    Program Files
    SAP
    IDE
    IDE70
    eclipse
    plugins
    org.eclipse.pde.source_2.1.2
    src,t;ORG_ECLIPSE_PLATFORM_SOURCE_SRC@C:
    Program Files
    SAP
    IDE
    IDE70
    eclipse
    plugins
    org.eclipse.platform.source_2.1.2
    src,t;ORG_ECLIPSE_PLATFORM_WIN32_SOURCE_SRC@C:
    Program Files
    SAP
    IDE
    IDE70
    eclipse
    plugins
    org.eclipse.platform.win32.source_2.1.2
    src,t;ORG_ECLIPSE_JDT_SOURCE_SRC@C:
    Program Files
    SAP
    IDE
    IDE70
    eclipse
    plugins
    org.eclipse.jdt.source_2.1.2
    src,t
    com.tssap.dtr.client.eclipse/workspaceMonitor_ADD=true
    org.eclipse.ui.workbench/ignored_folders=CVS
    org.eclipse.jdt.core/org.eclipse.jdt.core.classpathVariable.SAP_LOGGING_LIB_HOME=C:/Program Files/SAP/IDE/IDE70/eclipse/plugins/com.tssap.sap.libs.logging_2.0.0/
    org.eclipse.ui.workbench/optimize_import_enabled=true
    org.eclipse.ui.workbench/hide_properties_participants=true
    org.eclipse.jdt.ui/outlinesortoption=T,SI,SF,SM,I,F,C,M,
    com.tssap.config/proxyHost=proxy.escapo.local
    org.eclipse.jdt.core/org.eclipse.jdt.core.classpathVariable.MWD_RUNTIME=C:/Program Files/SAP/IDE/IDE70/eclipse/plugins/
    org.eclipse.jdt.core/org.eclipse.jdt.core.classpathVariable.SAP_EXCEPTION_LIB_HOME=C:/Program Files/SAP/IDE/IDE70/eclipse/plugins/com.sap.exception_2.0.0/
    org.eclipse.ui.workbench/FilterCMPAccessors=false
    com.sap.ide.eclipse.j2ee.engine/MsgSrvHost=sideshow-mel
    org.eclipse.ui.workbench/ENABLED_DECORATORS=com.tssap.dtr.client.eclipse.ui.decorator:false,org.eclipse.pde.ui.binaryProjectDecorator:false,org.eclipse.ui.LinkedResourceDecorator:true,
    com.tssap.j2ee.ui/com.tssap.j2ee.ui.perspective.view.j2ee.J2eeView_OptimisticChildrenCheckStoreKey=false
    com.tssap.j2ee.ui=2.0.0
    com.togethersoft.selena.sapient/CONFIG_FILE=C:/Users/Admin/Documents/SAP/workspace/default.qa
    org.eclipse.jdt.core/org.eclipse.jdt.core.classpathVariable.TSSAP_JAVAX_HOME=C:/Program Files/SAP/IDE/IDE70/eclipse/plugins/com.tssap.ext.libs.j2ee_1.3.0/
    org.eclipse.ui.workbench/inner_class_name_template=InnerClass
    com.tssap.dtr.client.eclipse/automerge_exclusionlist=mmdiagram
    mmtemplateinstance
    dtlist
    dtlogicalddic
    dtindex
    dtsimpletype
    dtdbview
    dtdbindex
    dtstructure
    dtdbtable
    wdlocalcompintfdef
    wdwindow
    wdviewsetdefinition
    wdnavigation
    wdmodeltype
    wdcomponent
    wdapplication
    wduielib
    wdmodelclass
    wdcompinterfacedef
    wdcontroller
    wduielementdef
    wdapplpropertiesdef
    wdinterfaceview
    wdview
    wdcompconfig
    wdmodel
    wdconfigobject
    wdmessagepool
    wdproperties
    wdlayoutdef
    wdcomponentinterface
    vicheck
    wsprxdef
    videf
    wsdef
    xlf
    wsmodel
    org.eclipse.ui.workbench/method_name_template=method
    org.eclipse.jdt.core/org.eclipse.jdt.core.classpathVariable.WD_RUNTIME=C:/Program Files/SAP/IDE/IDE70/eclipse/plugins/
    org.eclipse.ui.workbench/class_name_template=Class
    org.eclipse.jdt.core/org.eclipse.jdt.core.classpathVariable.SAP_XML_TOOLKIT_LIBS_HOME=C:/Program Files/SAP/IDE/IDE70/eclipse/plugins/com.tssap.sap.libs.xmltoolkit_2.0.0/
    com.sap.ide.eclipse.j2ee.engine=2.0.0
    org.eclipse.ui.workbench/default_visibility_order=Public,Package Local,Protected,Private
    org.eclipse.ui.workbench/org.eclipse.ui.commands=<info extension="dtdbtable" name=""><editor id="com.sap.dictionary.tools.tableeditor.TableEditor"/></info><info extension="jpage" name=""><info extension="wdapplication" name=""><editor id="com.sap.ide.webdynpro.editors.application"/></info><info extension="dtsimpletype" name=""><info extension="jardesc" name=""><editor id="org.eclipse.jdt.ui.JARDescEditor"/></info><info extension="sqlj" name=""><info extension="java" name=""><editor id="org.eclipse.jdt.ui.CompilationUnitEditor"/></info><info extension="xml" name="provider"><editor id="com.sap.ide.eclipse.j2ee.model.ui.saplibrary.saplibraryeditor"/></info><info extension="wdcomponent" name=""><info extension="class" name=""><editor id="org.eclipse.jdt.ui.ClassFileEditor"/></info><info extension="mxsd" name=""><info extension="html" name=""><editor id="com.tssap.editors.htmleditor"/></info><info extension="dtstructure" name=""><info extension="htm" name=""><editor id="com.tssap.editors.htmleditor"/></info><info extension="xml" name="application"><editor id="com.tssap.j2ee.ui.ear.editor.eareditor"/></info><info extension="xml" name="DriverRequirementDocument"><editor id="com.sap.ip.me.mdk.pios.docgen.editors.DRDEditor"/></info><info extension="wsdef" name=""><info extension="txt" name=""><editor id="org.eclipse.ui.DefaultTextEditor"/></info><info extension="xml" name="sda-dd"><editor id="com.sap.ide.eclipse.j2ee.model.ui.sapsda.sapsdaeditor"/></info><info extension="xml" name="fragment"><editor id="org.eclipse.pde.ui.fragmentEditor"/></info><info extension="mpe" name=""><info extension="wdview" name=""><editor id="com.sap.ide.webdynpro.editors.controller"/></info><info extension="xml" name=""><info extension="xlf" name=""><editor id="com.sap.ide.eclipse.s2x.editor.editors.S2XMultiPageEditor"/></info><info extension="xml.old" name="web"><editor id="com.tssap.j2ee.ui.editor.webeditorold"/></info><info extension="wdbusiness" name=""><info extension="wdcompinterfacedef" name=""><editor id="com.sap.ide.webdynpro.editors.controller"/></info><info extension="xsd" name=""><info extension="metamodel" name=""><editor id="com.sap.ide.metamodel.core.metamodel"/></info><info extension="testscript" name=""><info extension="wdcontroller" name=""><editor id="com.sap.ide.webdynpro.editors.controller"/></info><info extension="xml" name="data-source-aliases"><editor id="com.sap.ide.eclipse.j2ee.model.ui.sapdsaliases.sapdsaliaseseditor"/></info><info extension="properties" name="build"><editor id="org.eclipse.pde.ui.buildEditor"/></info><info extension="lp" name=""><info extension="xxx" name=""><editor id="com.sap.ide.webdynpro.editors.implementation"/><editor id="com.sap.ide.webdynpro.editors.componentControllerUsage"/></info><info extension="xml" name="ejb-j2ee-engine"><editor id="com.sap.ide.eclipse.j2ee.model.ui.sapejbjar.sapejbjardescriptioneditor"/></info><info extension="xml" name="feature"><editor id="org.eclipse.pde.ui.featureEditor"/></info><info extension="wdwindow" name=""><info extension="exsd" name=""><editor id="org.eclipse.pde.ui.schemaEditor"/></info><info extension="xml" name="portalapp"><editor id="com.sap.portal.developmenttools.PortalappXmlEditor"/></info><info extension="testresult" name=""><info extension="logic" name=""><editor id="Logic Graphical Editor"/></info><info extension="videf" name=""><info extension="jsp" name=""><editor id="com.tssap.editors.jspeditor"/></info><info extension="wdcomponentinterface" name=""><info extension="wdnavigation" name=""><editor id="com.sap.ide.webdynpro.tsmodel.application.window"/></info><info extension="properties" name=""><info extension="wdinterfaceview" name=""><editor id="com.sap.ide.webdynpro.editors.controller"/></info><info extension="wdmodelclass" name=""><info extension="wsprxdef" name=""><editor id="com.sap.ide.wsproxy.wsproxyeditor"/></info><info extension="xml" name="application-j2ee-engine"><editor id="com.sap.ide.eclipse.j2ee.model.ui.sapear.sapeareditor"/></info><info extension="xml" name="ejb-jar"><editor id="com.tssap.j2ee.ui.ejbjar.editor.ejbjareditor"/></info><info extension="tag" name="">
    org.eclipse.jdt.ui/hoverModifierMasks=org.eclipse.jdt.ui.BestMatchHover;0;org.eclipse.jdt.ui.JavadocHover;0;org.eclipse.jdt.ui.ProblemHover;0;org.eclipse.jdt.ui.JavaSourceHover;262144;org.eclipse.jdt.internal.debug.ui.JavaDebugHover;0;
    com.tssap.config/sapInitialized=true
    org.eclipse.ui.workbench/save_resources_automatically=true
    org.eclipse.jdt.core/org.eclipse.jdt.core.classpathVariable.JRE_SRC=C:/j2sdk1.4.2_09/src.zip
    org.eclipse.ui.workbench/grid_height=10
    com.togethersoft.selena.sapient=0.9.0
    com.tssap.config/proxySet=true
    org.eclipse.ui.workbench/RemoveAssembledInterfacePairOnRemovingParticipant=false
    org.eclipse.jdt.core/org.eclipse.jdt.core.classpathVariable.ECLIPSE_HOME=C:/Program Files/SAP/IDE/IDE70/eclipse
    org.eclipse.ui.workbench/tab_placement=top
    org.eclipse.pde.core=2.1.2
    org.eclipse.jdt.launching=2.1.1
    org.eclipse.jdt.core/org.eclipse.jdt.core.classpathVariable.SAP_USER_ADD_LIBS=C:/Escapo/JarFiles
    org.eclipse.jdt.ui/fontPropagated=true
    com.tssap.dtr.client.eclipse/workspaceMonitor_GENERAL=true
    org.eclipse.ui.workbench/field_name_template=field
    org.eclipse.debug.ui=2.1.1
    org.eclipse.jdt.junit=2.1.1
    org.eclipse.ui.workbench/refactor_default_names=false
    org.eclipse.ui.workbench/default_member_order=Field,Constructor,Method,Inner Class,Inner Interface
    com.sap.ide.eclipse.component.provider=2.0.0
    org.eclipse.jdt.junit/org.eclipse.jdt.junit.active_filters=org.eclipse.jdt.internal.junit.runner.,org.eclipse.jdt.internal.junit.ui.,junit.framework.TestCase,junit.framework.TestResult,junit.framework.TestSuite,junit.framework.Assert,java.lang.reflect.Method.invoke
    Update Manager Log:
    Configuration=3-jul-2007 18:15:45
    Is current configuration=false
    Date=3/07/07 16:15
    Activities=file:C:/Program Files/SAP/IDE/IDE70/eclipse/
    Action=Site installed
    Status=Success
    Date=3/07/07 16:15
    Activities=file:C:/Users/Admin/Documents/SAP/workspace/.metadata/.config/platform.cfg.metadata/v2LocalSite.xml
    Action=Reconcile
    Status=Success
    Configuration=17-jul-2007 9:48:44
    Is current configuration=true
    Date=17/07/07 9:48
    Activities=file:C:/Program Files/SAP/IDE/IDE70/eclipse/
    Action=Site installed
    Status=Success
    Date=17/07/07 9:48
    Activities=file:C:/Users/Admin/Documents/SAP/workspace/.metadata/.config/platform.cfg.metadata/v2LocalSite.xml
    Action=Reconcile
    Status=Success
    Error Log:
    !SESSION aug 27, 2007 13:27:00.12 -
    java.version=1.4.2_09
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=nl_BE
    Command-line arguments: -os win32 -ws win32 -arch x86 -feature com.sap.java.ide C:j2sdk1.4.2_09 injavaw.exe
    -Xmx512m
    -Xms128m
    -XX:PermSize=32m
    -XX:MaxPermSize=128m
    -DallUserDir='C:ProgramData'
    -cp C:Program FilesSAPIDEIDE70eclipseSapStartup.jar com.sap.ide.eclipse.startup.Main
    -os win32
    -ws win32
    -arch x86
    -feature com.sap.java.ide
    -showsplash C:Program FilesSAPIDEIDE70eclipseSapIde.exe -showsplash 600  -data C:UsersAdminDocumentsSAPworkspace -install file:C:/Program Files/SAP/IDE/IDE70/eclipse/
    !ENTRY com.tssap.util 1 0 aug 27, 2007 13:27:00.12
    !MESSAGE .log file backup. Backup file: backup2007827_132659.log
    !ENTRY Startup 1 0 aug 27, 2007 13:27:00.52
    !MESSAGE Sap NetWeaver Developer Studio - Build: 200701062019
    !ENTRY com.sap.ide.metamodel.core 1 1 aug 27, 2007 13:27:06.150
    !MESSAGE Updating metamodel archives from classpath for project ExcelFileAdapterModule
    !SESSION aug 28, 2007 08:45:21.796 -
    java.version=1.4.2_09
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=nl_BE
    Command-line arguments: -os win32 -ws win32 -arch x86 -feature com.sap.java.ide C:j2sdk1.4.2_09 injavaw.exe
    -Xmx512m
    -Xms128m
    -XX:PermSize=32m
    -XX:MaxPermSize=128m
    -DallUserDir='C:ProgramData'
    -cp C:Program FilesSAPIDEIDE70eclipseSapStartup.jar com.sap.ide.eclipse.startup.Main
    -os win32
    -ws win32
    -arch x86
    -feature com.sap.java.ide
    -showsplash C:Program FilesSAPIDEIDE70eclipseSapIde.exe -showsplash 600  -data C:UsersAdminDocumentsSAPworkspace -install file:C:/Program Files/SAP/IDE/IDE70/eclipse/
    !ENTRY Startup 1 0 aug 28, 2007 08:45:21.796
    !MESSAGE Sap NetWeaver Developer Studio - Build: 200701062019
    !ENTRY com.sap.ide.metamodel.core 1 1 aug 28, 2007 08:45:29.375
    !MESSAGE Updating metamodel archives from classpath for project ExcelFileAdapterModule

    Hi ,
    <b><i>
          1) Why i have this error and how can i fix it? Is it a problem inside my code? Or is it somewhere else?</i></b>
               No problem at ur side .
                There is no Executable Java file  in the EJB  . It will show like this for EJB applications  .  Don't worry about this . Just deploy  .
    Assign Points if you  found helpful!
    Regards.,
    V.Rangarajan

  • JPA Arhitectural Design Decision

    Hi,
    I'm building a 1 tier web shop, using mostly Ajax, Servlets and JPA and I need your advice on a design decision.
    When a user demands to see the products belonging to a particular category of products, my DAO object returns to the servlet a java.util.List<Product>, where Product is a JPA entity. In the servlet class I "manually" create the Ajax XML response, the user gets to see the products, everything is nice and great.
    I am not happy with the fact that the list of products remains detached in the servlet class, sort of say, and when another user demands to see the same products another list gets greated. These are objects that have method scope, but still they are on the stack, right? For 100 users who want to see 100 products each, the no. of objects created could cause the application to have a slower reponse time.
    So my question is about the design of the application.
    I obtain the list of products in the servlet class and construct the XML response. Right before sending the response, should I pass the list of products back to the DAO, and ask the EntityManager to merge the products? Will this reduce the no. of objects my application creates? Shouldn't I do this because I'm merging entities that have not been changed and the merge operation is time consuming?
    Should I not pass back the products to the DAO and set each product in the list to reference null and call System.gc() ?
    Keeping in mind, that my main concern is application response time, not reduced development time, are there any other suggestions you can make?

    first of all, a merge is only used to synchronize a changed entity that is not managed by an entity manager with the database. Why did you even come to the conclusion that you might need this?
    No you don't nullify the entities in the list. You let the entire list go when you are done with it. Manually nullifying can hinder the garbage collector, just don't do it unless you have a very good reason for doing so.
    Your main problem seems to be that you don't like the fact that you are fetching 100 objects for both users, putting duplicate objects in memory on the server. Are you sure this is a problem? You shouldn't be thinking about optimizations while you are still developing you know. I would wait until you are done, then profile the application to see where bottlenecks are; if fetching those 100 products turns out to take a lot of system resources, THEN optimize it.
    You may want to look into caching. If for example under water you use Hibernate as the persistence provider, search for "hibernate cache" using google.

  • Getting java.lang.IllegalStateException error with response.getOutputStream

    Hi,
    I am writer a JSP site for displaying JFreeChart. The main JSP page gets some parameters then the second page out put the chart as binary data with a Java class.
    I've located the part which generated the error, as follows:
    Code:
    OutputStream os = response.getOutputStream(); <--- this line cause the error
    response.setContentType("image/png");
    ChartUtilities.writeChartAsPNG(os, chart, 400, 300);
    (other than it, the JSP does nothing with response or out)
    Error:
    Servlet.service().for servlet jsp threw exception java.lang.IllegalStateException
    at org.apache.jasper.runtime.ServletResponseWrapperInclude.getOutputStream(ServletResponseWrapperInclude.java:62)
    at org.apache.jsp.build005f005.seriesChart_jsp.jspService(org.apache.jsp.build_005f005.seriesChart_jsp:110)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWarpper.java:325)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
    I've searched this forum and google and seeking for solution for thousands times. But sadly, ways such as adding out.reset(); doesn't work.
    Would any one has some suggestion for me? Your help is very appreciated. Thanks!

    A similar question / answers from jGuru.com
    Question I used getOutputStream() of response object in JSP. Below is the code for download a file in JSP.
    %>
    <%@ page import="java.util.*,
                        java.io.*"
    %>
    <%@ page language="java"
              session="false"
              contentType="text/html; charset=8859_1"
    %>
    <%
         //read the file name.
         File fFile = new File ("D:/Ibs/outdir/batchres.conf");
         String stFileName = "batchres.conf";
         //the content type set as excel
         response.setContentType ("application/excel");
         //the header and also the Nameis set by which user will be prompted to save
         response.setHeader ("Content-Disposition", "attachment;filename=\""+stFileName+"\"");
         //Open an input stream to the file and post the file contents thru the
         //servlet output stream to the client m/c
         InputStream isStream = null;
         ServletOutputStream sosStream = null;
         try
              //response.flushBuffer();
              isStream = new FileInputStream(fFile);
              sosStream = response.getOutputStream();
              int ibit = 256;
              while ((ibit) >= 0)
              ibit = isStream.read();
              sosStream.write(ibit);
         catch (IOException ioeException)
    sosStream.flush();
    sosStream.close();
    isStream.close();
    %>
    If run this code in Tomcat i am getting following error.. �<h1>Error: 500</h1> <h2>Location: /imu/jsp/ibUTLCmnDownloadView.jsp</h2>Internal Servlet Error:
    java.lang.IllegalStateException: getOutputStream() has already been called
         at org.apache.tomcat.facade.HttpServletResponseFacade.getWriter(Unknown Source)
         at org.apache.jasper.runtime.JspWriterImpl.initOut(Unknown Source)
         at org.apache.jasper.runtime.JspWriterImpl.flushBuffer(Unknown Source)
         at jsp.ibUTLCmnDownloadView_12._jspService(ibUTLCmnDownloadView_12.java, Compiled Code)
         at org.apache.jasper.runtime.HttpJspBase.service(Unknown Source)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java)
         at org.apache.tomcat.facade.ServletHandler.doService(Unknown Source)
         at org.apache.tomcat.core.Handler.invoke(Unknown Source)
         at org.apache.tomcat.core.Handler.service(Unknown Source)
         at org.apache.tomcat.facade.ServletHandler.service(Unknown Source)
         at org.apache.tomcat.facade.RequestDispatcherImpl.doForward(Unknown Source)
         at org.apache.tomcat.facade.RequestDispatcherImpl.forward(Unknown Source)
         at JP.co.Hitachi.soft.IBS.Common.Servlet.ibUTLCmnDownloadScrGenServlet.doPost(ibUTLCmnDownloadScrGenServlet.java:75)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java)
         at org.apache.tomcat.facade.ServletHandler.doService(Unknown Source)
         at org.apache.tomcat.core.Handler.invoke(Unknown Source)
         at org.apache.tomcat.core.Handler.service(Unknown Source)
         at org.apache.tomcat.facade.ServletHandler.service(Unknown Source)
         at org.apache.tomcat.core.ContextManager.internalService(Unknown Source)
         at org.apache.tomcat.core.ContextManager.service(Unknown Source)
         at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Unknown Source)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown Source)
         at java.lang.Thread.run(Thread.java:479)
    Answer
    Don't know if this will help--your code worked as is on my system (J2SDK 1.4.1, Tomcat 4.1.12, Linux)--but you're setting the content-type twice, and to two different values. In the page directive, you specify contentType="text/html; charset=8859_1", and then in the scriptlet, you do a response.setContentType ("application/excel");. Try changing the one in the page directive and deleting the one in the scriptlet. The servlet container may be calling getOutputStream() when it sees the text MIME type so it can prepare the out built-in variable.
    Also, according to the J2EE design patterns, JSP's should only be used to produce text output. Any binary output (such as Excel files) should be produced with servlets--otherwise, the JSP becomes one big scriptlet (like this one).
    If you still want to do this with a JSP, you might want to take out your try ... catch block since you're not doing anything with it. Doing so will allow you to let the servlet container handle the errors (i.e. specify error pages in the web application deployment descriptor). Either that, or at least put the close() and flush()calls in it since they can throw IOExceptions, too. :)
    Finally, you should never close the servlet's output stream. Leave that up to the servlet container.
    Is this item helpful? yes no Previous votes Yes: 2 No: 3
    To transfer file from client to server using jsp programs
    chalpati Rao, Aug 11, 2004 [replies:1]
    How to Download File using JSP program
    Re: To transfer file from client to server using jsp programs
    Saravanan Mani, Aug 24, 2004
    Try restarting the server.It worked for me (ie.you did all the code changes mentioned in the previous reply)
    Breakline problems
    David Machado, Jan 27, 2005 [replies:1]
    Hi! Maybe a problem with breaklines. Try this: ------------------------------------------------------
    %><%@ // don't send breakline here!!!
    page import="java.util.*,
    java.io.*"
    %><%@ // don't send breakline here too!!!
    page language="java"
    session="false"
    contentType="text/html; charset=8859_1"
    %><% // finally, don't send breakline here!!!
    //read the file name.
    File fFile = new File ("D:/Ibs/outdir/batchres.conf");
    String stFileName = "batchres.conf";
    //the content type set as excel
    response.setContentType ("application/excel"); // twice???
    //the header and also the Nameis set by which user will be prompted to save
    response.setHeader ("Content-Disposition", "attachment;filename=\""+stFileName+"\"");
    //Open an input stream to the file and post the file contents thru the
    //servlet output stream to the client m/c
    InputStream isStream = null;
    ServletOutputStream sosStream = null;
    try
    //response.flushBuffer();
    isStream = new FileInputStream(fFile);
    sosStream = response.getOutputStream();
    int ibit = 256;
    while ((ibit) >= 0)
    ibit = isStream.read();
    sosStream.write(ibit);
    catch (IOException ioeException)
    sosStream.flush();
    sosStream.close();
    isStream.close();
    %> // make sure that's no breakline an no spaces at the end!!
    Re: Breakline problems
    Aarthi Sivaram, Apr 19, 2005
    In the above code sosStream = response.getOutputStream(); must be removed. Use 'out' instead of sosStream i.e. out.write(""+ibit); If you look at the Java code generated for your JSP, you can find JspWriter out = null ... .. JspWriter calls response.getOutputStream(), thats why when u call getOutputStream, u get IllegalStateException. 'out' variable is available for direct use in all JSP's, like 'request'. So that can be directly used to write.
    A quick and working workaround
    Leslie Leng, May 20, 2005 [replies:1]
    I am not going to discuss the theory behind, as others gurus mentioned before me, are valid.
    In short, getOutputStream() could not be used more than once, and also it will conflict with JSPWriter's out.
    So, the quick workaround would be, at the end of the JSP page, add the following:
    out.clear();
    out = pageContext.pushBody();
    in example:
    catch(Exception e){
    System.out.print(e);
    out.clear();
    out = pageContext.pushBody();
    %>
    Re: A quick and working workaround
    ajit Pandey, Jul 15, 2005
    Thanks a ton Leslie ,it worked(Production issue) :) credit goes to you....indebted

  • Java.lang.InstantiatiCould not read mime-mappings config file: ./mime.types

    I am about to had enough of this moronic container call OC4J that's compatible to to itself.
    I did a
    1. clean unzip and installation.
    2. setup admin account.
    3. config the autodeploy in server.xml (Who in their right phreakin mind design a container with no hot deploy nowaday).
    4. configure the data source.
    5. test data source using a webapp with one page jsp do a JSF jdbc connection.
    When try and deploy the error-free webapp (tested in tomcat) using both frontend and autodeploy,a cryptic error occur: could not read mime.types.
    I have never see this error before in my life. its in oracle.oc4j.admin.internal.ApplicationDeployer.addApplication
    This error happened after I configure my webapp to do phreakin orion-application.xml disable toplink, orion-webapp xml prefer local class file. If I don't get this resolve within couple days, I'll put my career on the line with full force and request we do not use OC4J anywhere in this group.
    A M$FT .NET project looks very promising and efficient compare this deployment hell they call OC4J
    2007-06-20 13:22:50.500 NOTIFICATION Application Deployer for norm STARTS.
    2007-06-20 13:22:50.546 NOTIFICATION Copy the archive to C:\oc4j101320_SA\j2ee\home\applications\norm.ear
    2007-06-20 13:22:50.890 NOTIFICATION Initialize C:\oc4j101320_SA\j2ee\home\applications\norm.ear begins...
    2007-06-20 13:22:50.890 NOTIFICATION Auto-unpacking C:\oc4j101320_SA\j2ee\home\applications\norm.ear...
    2007-06-20 13:22:50.890 NOTIFICATION Unpacking norm.ear
    2007-06-20 13:22:50.890 NOTIFICATION Unjar C:\oc4j101320_SA\j2ee\home\applications\norm.ear in C:\oc4j101320_SA\j2ee\home\applications\norm
    2007-06-20 13:22:53.625 NOTIFICATION Done unpacking norm.ear
    2007-06-20 13:22:53.625 NOTIFICATION Finished auto-unpacking C:\oc4j101320_SA\j2ee\home\applications\norm.ear
    2007-06-20 13:22:53.640 NOTIFICATION Auto-unpacking C:\oc4j101320_SA\j2ee\home\applications\norm\norm.war...
    2007-06-20 13:22:53.640 NOTIFICATION Unpacking norm.war
    2007-06-20 13:22:53.640 NOTIFICATION Unjar C:\oc4j101320_SA\j2ee\home\applications\norm\norm.war in C:\oc4j101320_SA\j2ee\home\applications\norm\norm
    2007-06-20 13:22:59.828 NOTIFICATION Done unpacking norm.war
    2007-06-20 13:22:59.828 NOTIFICATION Finished auto-unpacking C:\oc4j101320_SA\j2ee\home\applications\norm\norm.war
    2007-06-20 13:22:59.906 NOTIFICATION Initialize C:\oc4j101320_SA\j2ee\home\applications\norm.ear ends...
    2007-06-20 13:22:59.906 NOTIFICATION Starting application : norm
    2007-06-20 13:22:59.906 NOTIFICATION Initializing ClassLoader(s)
    2007-06-20 13:22:59.906 NOTIFICATION Initializing EJB container
    2007-06-20 13:22:59.906 NOTIFICATION Loading connector(s)
    2007-06-20 13:23:00.062 NOTIFICATION Starting up resource adapters
    2007-06-20 13:23:00.078 NOTIFICATION Initializing EJB sessions
    2007-06-20 13:23:00.078 NOTIFICATION Committing ClassLoader(s)
    2007-06-20 13:23:00.078 NOTIFICATION Initialize norm begins...
    2007-06-20 13:23:00.187 NOTIFICATION application : norm is in failed state
    07/06/20 13:23:00 WARNING: Application.setConfig Application: norm is in failed state as initialization failed.
    java.lang.InstantiationException: Error loading web-app 'norm' at C:\oc4j101320_SA\j2ee\home\applications\norm\norm: Could not read mime-mappings config file: ./mime.types
    07/06/20 13:23:00 oracle.oc4j.admin.internal.DeployerException: java.lang.InstantiationException: Application: norm is in failed state as initialization failed
    07/06/20 13:23:00 at oracle.oc4j.admin.internal.ApplicationDeployer.addApplication(ApplicationDeployer.java:515)
    07/06/20 13:23:00 at oracle.oc4j.admin.internal.ApplicationDeployer.doDeploy(ApplicationDeployer.java:196)
    07/06/20 13:23:00 at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.java:93)
    07/06/20 13:23:00 at oracle.oc4j.admin.jmx.server.mbeans.deploy.OC4JDeployerRunnable.doRun(OC4JDeployerRunnable.java:52)
    07/06/20 13:23:00 at oracle.oc4j.admin.jmx.server.mbeans.deploy.DeployerRunnable.run(DeployerRunnable.java:81)
    07/06/20 13:23:00 at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    07/06/20 13:23:00 at java.lang.Thread.run(Thread.java:595)
    07/06/20 13:23:00 Caused by: java.lang.InstantiationException: Application: norm is in failed state as initialization failed
    07/06/20 13:23:00 at com.evermind.server.Application.setConfig(Application.java:497)
    07/06/20 13:23:00 at com.evermind.server.Application.setConfig(Application.java:340)
    07/06/20 13:23:00 at com.evermind.server.ApplicationServer.addApplication(ApplicationServer.java:1879)
    07/06/20 13:23:00 at oracle.oc4j.admin.internal.ApplicationDeployer.addApplication(ApplicationDeployer.java:512)
    07/06/20 13:23:00 ... 6 more
    07/06/20 13:23:00 Caused by: java.lang.InstantiationException: Error loading web-app 'norm' at C:\oc4j101320_SA\j2ee\home\applications\norm\norm: Could not read mime-mappings config file: ./mime.types
    07/06/20 13:23:00 at com.evermind.server.http.XMLHttpApplicationConfigContext.getConfiguration(XMLHttpApplicationConfigContext.java:155)
    07/06/20 13:23:00 at com.evermind.server.Application.getHttpApplicationConfig(Application.java:593)
    07/06/20 13:23:00 at com.evermind.server.Application.initHttp(Application.java:1345)
    07/06/20 13:23:00 at com.evermind.server.Application.setConfig(Application.java:451)
    07/06/20 13:23:00 ... 9 more
    2007-06-20 13:23:00.218 NOTIFICATION Application Deployer for norm FAILED.
    2007-06-20 13:23:00.218 NOTIFICATION Application UnDeployer for norm STARTS.
    2007-06-20 13:23:00.281 NOTIFICATION Removing all web binding(s) for application norm from all web site(s)
    07/06/20 13:23:00 SEVERE: ProgressObjectImpl.reportError java.lang.InstantiationException: Application: norm is in failed state as initialization failedoracle.oc4j.admin.jmx.shared.exceptions.InternalException: java.lang.InstantiationException: Application: norm is in failed state as initialization failed
    at oracle.oc4j.admin.jmx.shared.deploy.NotificationUserData.<init>(NotificationUserData.java:107)
    at oracle.oc4j.admin.internal.Notifier.reportError(Notifier.java:429)
    at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.java:123)
    at oracle.oc4j.admin.jmx.server.mbeans.deploy.OC4JDeployerRunnable.doRun(OC4JDeployerRunnable.java:52)
    at oracle.oc4j.admin.jmx.server.mbeans.deploy.DeployerRunnable.run(DeployerRunnable.java:81)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    at java.lang.Thread.run(Thread.java:595)
    Caused by: oracle.oc4j.admin.internal.DeployerException: java.lang.InstantiationException: Application: norm is in failed state as initialization failed
    at oracle.oc4j.admin.internal.ApplicationDeployer.addApplication(ApplicationDeployer.java:515)
    at oracle.oc4j.admin.internal.ApplicationDeployer.doDeploy(ApplicationDeployer.java:196)
    at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.java:93)
    ... 4 more
    Caused by: java.lang.InstantiationException: Application: norm is in failed state as initialization failed
    at com.evermind.server.Application.setConfig(Application.java:497)
    at com.evermind.server.Application.setConfig(Application.java:340)
    at com.evermind.server.ApplicationServer.addApplication(ApplicationServer.java:1879)
    at oracle.oc4j.admin.internal.ApplicationDeployer.addApplication(ApplicationDeployer.java:512)
    ... 6 more
    Caused by: java.lang.InstantiationException: Error loading web-app 'norm' at C:\oc4j101320_SA\j2ee\home\applications\norm\norm: Could not read mime-mappings config file: ./mime.types
    at com.evermind.server.http.XMLHttpApplicationConfigContext.getConfiguration(XMLHttpApplicationConfigContext.java:155)
    at com.evermind.server.Application.getHttpApplicationConfig(Application.java:593)
    at com.evermind.server.Application.initHttp(Application.java:1345)
    at com.evermind.server.Application.setConfig(Application.java:451)
    ... 9 more

    Thank you Steve for your help. I really do appreciate ppl taking the time to answer questions from n00b like me.
    I tried and disable global.libraries and global.tag.libraries when deploy, and at one point the login page (its Spring 1.2.8 + hibernate 3.1.3 + Myface 1.1.4 + acegi 1.0.1 ) came out, but cannot login and without exceptions, so I was guessing acegi poblem. But the spring and hibernate is working, I can see the conn and other activities. And after a couple tries, cannot even get the login page display now in MyFace, with exceptions:
    include(java.lang.String) in javax.servlet.jsp.PageContext cannot be applied to (java.lang.String,boolean)
    And then after some googling found out there will be code change for this webapp as well.
    - change webapp.listener for double instantiation in OC4J (Code Change)
    - create new class OrionSessionListener implements HttpSessionListener for session invalidation (Code Change) NEW JAVA CLASS
    - acegi j_security_check URL reference change (Code Change, but minor)
    I think the container has great performance, but I just wish they can look more to the compatabilities/common practices issues
    full stacktrace:
    2007-06-22 14:12:04.437 NOTIFICATION J2EE JSP-0008 Unable to dispatch JSP Page : oracle.jsp.provider.JspCompileException: Errors compiling:C:\oc4j101320_SA\j2ee\home\application-deployments\norm\norm\persistence\_pages\\_login.java
    [jsp src:line #:13] include(java.lang.String) in javax.servlet.jsp.PageContext cannot be applied to (java.lang.String,boolean)
    pageContext.include( __url,false);
         at oracle.jsp.app.JspJavacCompiler.compile(JspJavacCompiler.java:304)
         at oracle.jsp.runtimev2.JspPageCompiler.attemptCompilePage(JspPageCompiler.java:731)
         at oracle.jsp.runtimev2.JspPageCompiler.compileBothModes(JspPageCompiler.java:456)
         at oracle.jsp.runtimev2.JspPageCompiler.compilePage(JspPageCompiler.java:413)
         at oracle.jsp.runtimev2.JspPageInfo.compileAndLoad(JspPageInfo.java:705)
         at oracle.jsp.runtimev2.JspPageTable.compileAndServe(JspPageTable.java:694)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:414)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:597)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:521)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
         at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:118)
         at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
         at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:375)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)

Maybe you are looking for