JWindow setLocation issue...

Hello,
I got 3 simple lines of code:
window = new JWindow(parent);
window.pack();
window.setLocation(location);
window.setVisible(true);But they doesn't work when my Matrox driver has center-popup-windows flag enabled. But I need this window to be moved to my location not to the center of the screen. Does anyone know how to prevent this from happening? For instance JFrame isn't moved to the center automatically. :(
I use it as a popup in calendar editor.
Help please!

But they doesn't work when my Matrox driver has
center-popup-windows flag enabled. Hi,
does it behave correctly when you turn off that flag? Seems as if the Matrox driver treats a JWindow as a popup.
I think it is hardly possible to override hardwar-driver-settings by Java.
Greets,
Christian

Similar Messages

  • JWindow JTextArea Issue... Help

    Hello guys and gals,
    I'm sure this issue I'm having is very common here to us programmers and people have asked this question several times.
    I'm using JWindow right now and I have a JTextArea that's not editable at all even though I've set it to be editable.. All I can do is setText to be there... It must be a bug or something..
    I will not convert to JFrame though it's easier to do so. JWindow is needed. Is it possible to my JTextArea editable so I can continue to program or am I just wasting time? Can anyone explain to me in simple terms to fix this issue? Maybe my code is incorrect.. Here's my entire code:
    import javax.swing.*;
    import javax.swing.border.EtchedBorder;
    import java.awt.*;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    public class JustToSee extends JWindow implements ActionListener
         Dimension screenSize =
            Toolkit.getDefaultToolkit().getScreenSize();              
         private JPanel background, outpassBox, inpassBox, wrongBox,
         passBoxoutSide, wrongBoxoutside, inwrongBox;
         private JButton exit;
         private JLabel wrongL, passL;
                         private JTextArea wrongT;
         public JustToSee()
              setBackground(Color.BLACK);
              Container pane = getContentPane();
              pane.setLayout(null);
              background = new JPanel();
              background.setSize(Toolkit.getDefaultToolkit().getScreenSize());
              background.setBackground(Color.black);
              background.setLayout(null);          
              outpassBox = new JPanel();
              outpassBox.setSize(650, 750);
              outpassBox.setLocation(600,30);
              outpassBox.setBackground(Color.black);
              outpassBox.setBorder(BorderFactory.createEtchedBorder(EtchedBorder.RAISED, Color.black, Color.blue));
              outpassBox.setLayout(null);
              inpassBox = new JPanel();
              inpassBox.setSize(610,600);
              inpassBox.setLocation(20, 120);
              inpassBox.setBorder(BorderFactory.createEtchedBorder(EtchedBorder.RAISED, Color.black, Color.blue));
              inpassBox.setBackground(Color.black);
              inpassBox.setLayout(null);
              wrongBox = new JPanel();
              wrongBox.setSize(300, 750);
              wrongBox.setLocation(50, 30);
              wrongBox.setBorder(BorderFactory.createEtchedBorder(EtchedBorder.RAISED, Color.black, Color.blue));
              wrongBox.setBackground(Color.black);
              wrongBox.setLayout(null);
              passBoxoutSide = new JPanel();
              passBoxoutSide.setSize(610, 80);
              passBoxoutSide.setLocation(20,30);
              passBoxoutSide.setBorder(BorderFactory.createEtchedBorder(EtchedBorder.RAISED,Color.black, Color.blue));
              passBoxoutSide.setBackground(Color.black);
              passBoxoutSide.setLayout(null);
              wrongBoxoutside = new JPanel();
              wrongBoxoutside.setSize(260, 80);
              wrongBoxoutside.setLocation(20, 30);
              wrongBoxoutside.setBorder(BorderFactory.createEtchedBorder(EtchedBorder.RAISED,Color.black, Color.blue));     
              wrongBoxoutside.setBackground(Color.black);     
              wrongBoxoutside.setLayout(null);
              inwrongBox = new JPanel();
              inwrongBox.setSize(260, 600);
              inwrongBox.setLocation(20, 120);
              inwrongBox.setBorder(BorderFactory.createEtchedBorder(EtchedBorder.RAISED,Color.black, Color.blue));
              inwrongBox.setBackground(Color.red);
              inwrongBox.setLayout(null);
              passL = new JLabel("Password Field...");
              passL.setForeground(Color.blue);
              passL.setFont(new Font("Computerfont", Font.BOLD, 24));
              passL.setSize(300, 60);
              passL.setLocation(10, 30);
              wrongL = new JLabel("Wrong Passwords...");
              wrongL.setForeground(Color.blue);
              wrongL.setFont(new Font("Computerfont", Font.BOLD, 24));
              wrongL.setSize(300, 60);
              wrongL.setLocation(10, 30);
              wrongT = new JTextArea(50, 1);//Inside the 2nd JPanel on the left side. It fills up the entire panel
              wrongT.setBackground(Color.white);
              wrongT.setForeground(Color.blue);
              wrongT.setFont(new Font("Computerfont", Font.BOLD, 18));
              wrongT.setBorder(BorderFactory.createEtchedBorder(EtchedBorder.RAISED,Color.black, Color.blue));
              wrongT.setLocation(0,0);
              wrongT.setSize(260, 600);
              wrongT.setText("This is where the text goes! \nThis needs to be edited. Help =(");
              wrongT.setLineWrap(true);
              wrongT.setEditable(true);
              wrongT.setFocusable(true);
              exit = new JButton("EXIT");
              exit.setBackground(Color.black);
              exit.setForeground(Color.blue);
              exit.setFont(new Font("Computerfont",Font.BOLD,16));
              exit.setLocation(380, 100);
              exit.setSize(100, 60);
              exit.addActionListener(this);
              pane.add(background);
              background.add(exit);
              background.add(outpassBox);
              background.add(wrongBox);
              outpassBox.add(inpassBox);
              outpassBox.add(passBoxoutSide);
              passBoxoutSide.add(passL);
              wrongBox.add(wrongBoxoutside);
              wrongBox.add(wrongT);          
              wrongBoxoutside.add(wrongL);
              wrongBox.add(inwrongBox);
              inwrongBox.add(wrongT);          
         public void actionPerformed(ActionEvent e)
              if(e.getSource() == exit)
                   System.exit(0);
         public static void main(String[] args)
         JustToSee w = new JustToSee();
         GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice().setFullScreenWindow(w);
    }Your help is greatly appreciated... =) Take care.
    Gabriel Young

      public JustToSee()
        super(new JFrame(){public boolean isShowing(){return true;}});//<----------
        setBackground(Color.BLACK);

  • Child JWindow containing JTextField takes focus from JFrame

    I have a bit of a unique problem.
    I have a JFrame as the main application window. I then create a JWindow with a JTextField that I would like to use as a Popup Palette. The problem is that when I click in the text box, the title bar of the JFrame changes it's appearance because the focus is now on the text box in the JWindow.
    If I use setFocusableWindowState(false) on the JWindow then the title bar of the JFrame does not change(which is the behaviour I want), but I cannot type in the JTextField.
    I understand why this is happening. The JTextField needs to have focus in order to recieve input and because it is in the JWindow, the JWindow takes the focus away from the JFrame.
    Does anyone know how I can make it so the JFrame Title Bar does not change appearance when the JTextField in the JWindow gets focus?
    The only thing that I can think of, is to somehow change the JFrame Look & Feel so that the title does not change appearance when the JFrame looses focus. I have no idea how to do that though.
    If you are wondering why I need this, it is because I need a JTextField to display on top of a Heavyweight component. I want it to appear as if it is part of the same window. Having the title bar of the JFrame change when you click in the textbox kind of destroys the illusion that it is part of the heavyweight component.
    Also, if you know of any other ways to get the JTextField to display and work on top of a Heavyweight component then I would appreciate that as well.
    Here is an example that you can run to see the behaviour. You can try it with the setFocusableWindowState line both uncommented and commented out.
    import java.awt.BorderLayout;
    import java.awt.Dimension;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.JTextField;
    import javax.swing.JWindow;
    import javax.swing.SwingUtilities;
    import javax.swing.UIManager;
    public class TestFocus implements Runnable {
        private JFrame frame;
        private JWindow popup;
        public void run() {
            //Create a new Frame
             frame = new JFrame("Frame Test");
             JButton but = new JButton("Does Nothing");
            frame.getContentPane().add(but);
            frame.setPreferredSize(new Dimension( 500, 500 ));
            frame.pack();
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.setVisible(true);
            //Create a JWindow with a JTextField
            popup = new JWindow( frame );
            JPanel p = new JPanel(new BorderLayout());
            JTextField txt = new JTextField();
            p.add( txt, BorderLayout.NORTH );
            JButton but2 = new JButton("Also does nothing");
            p.add(but2, BorderLayout.SOUTH);
            popup.getContentPane().add(p);
            popup.setLocation( frame.getLocation().x + 50, frame.getLocation().y + 50 );
            popup.pack();
            //Proper title behaviour if I have this statement
            //but then I can't type in the text box.
            //popup.setFocusableWindowState(false);
            popup.setVisible(true);
        public static void main(String[] args) {
            try {
                System.setProperty("sun.java2d.noddraw", "true");
                UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
            catch (Exception e) {
            SwingUtilities.invokeLater(new TestFocus());
    }Thanks,
    Jeff

    The code works fine on XP using JDK1.4.2, maybe its a version/platform issue check the bug database.
    -> if you know of any other ways to get the JTextField to display and work on top of a Heavyweight component
    You could try using
    JPopupMenu.setDefaultLightWeightPopupEnabled(false)and then add the JTextField to a jPopupMenu instead of a JWindow (although behind the scenes I think it will use a JWindow as the popup, so it may not solve the problem either if it is a version/platform issue).

  • OIM 11g issues with design console, creating resource

    Hi All,
    I have installed OIM 11g, OAM 11g.
    I am facing issues while starting design console or creating a resouce.
    <Sep 2, 2010 9:30:53 PM GMT+05:30> <Error> <XELLERATE.SCHEDULER.TASK> <BEA-0000
    0> <Error while calling reissue on AUD_JMS messages
    com.thortech.xl.dataaccess.tcClientDataAccessException:
    at com.thortech.xl.dataaccess.tcDataBaseClient.getDatabaseProductName(t
    DataBaseClient.java:944)
    at com.thortech.xl.schedule.tasks.ReIssueAuditMessage.processAllByIdent
    fier(ReIssueAuditMessage.java:87)
    at com.thortech.xl.schedule.tasks.ReIssueAuditMessage.execute(ReIssueAu
    itMessage.java:78)
    at com.thortech.xl.scheduler.tasks.SchedulerBaseTask.execute(SchedulerB
    seTask.java:384)
    at oracle.iam.scheduler.vo.TaskSupport.executeJob(TaskSupport.java:144)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcce
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at oracle.iam.scheduler.impl.quartz.QuartzJob.execute(QuartzJob.java:16
    at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
    at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.
    ava:529)
    >
    <Sep 2, 2010 9:30:53 PM GMT+05:30> <Error> <XELLERATE.DATABASE> <BEA-000000> <Cl
    ass/Method: tcDataBaseClient/bindToInstance encounter some problems: java.lang.A
    ssertionError: Can only export activatable objects
    oracle.iam.platform.utils.ServiceInitializationException: java.lang.AssertionErr
    or: Can only export activatable objects
    at oracle.iam.platform.Platform.getService(Platform.java:264)
    at oracle.iam.platform.OIMInternalClient.getService(OIMInternalClient.ja
    va:152)
    at com.thortech.xl.dataaccess.tcDataBaseClient.bindToInstance(tcDataBase
    Client.java:151)
    at com.thortech.xl.dataaccess.tcDataBaseClient.<init>(tcDataBaseClient.j
    ava:75)
    at com.thortech.xl.server.tcDataBaseClient.<init>(tcDataBaseClient.java:
    33)
    at com.thortech.xl.client.dataobj.tcDataBaseClient.<init>(tcDataBaseClie
    nt.java:67)
    Please help

    You need to copy the files from the linux box to a windows box and change the startup paramaters to meet that of a Windows machine.
    I have the following files once moved to my windows machine:
    basecp.bat:
    >
    set CLASSPATH=.;.\lib\oimclient.jar;.\lib\iam-platform-auth-client.jar;.\lib\iam-platform-pluginframework.jar;.\lib\iam-platform-utils.jar;.\lib\iam-platform-context.jar;.\lib\XellerateClient.jar;.\lib\xlAPI.jar;.\lib\xlLogger.jar;.\lib\xlVO.jar;.\lib\xlUtils.jar;.\lib\xlCrypto.jar;.\lib\xlAuthentication.jar;.\lib\xlDataObjectBeans.jar;.\ext\log4j-1.2.8.jar;.\ext\jhall.jar;
    >
    classpath.bat:
    >
    call basecp.bat
    set CLASSPATH=%CLASSPATH%;.\ext\spring.jar;.\ext\security-api.jar;.\ext\commons-logging.jar;.\ext\logging-utils.jar;.\ext\jakarta-oro-2.0.8.jar;.\ext\bsh.jar;.\ext\mail.jar;.\ext\jboss-j2ee.jar;.\ext\jboss-jaas.jar;.\ext\jbosssx.jar;.\ext\jts.jar;.\ext\jbossall-client.jar;.\ext\concurrent.jar;.\ext\getopt.jar;.\ext\gnu-regexp.jar;.\ext\jacorb.jar;.\ext\jboss-client.jar;.\ext\jboss-common-client.jar;.\ext\jbosscx-client.jar;.\ext\jbossha-client.jar;.\ext\jboss-iiop-client.jar;.\ext\jbossjmx-ant.jar;.\ext\jboss-jsr77-client.jar;.\ext\jbossmq-client.jar;.\ext\jboss-net-client.jar;.\ext\jbosssx-client.jar;.\ext\jboss-system-client.jar;.\ext\jboss-transaction-client.jar;.\ext\jcert.jar;.\ext\jmx-connector-client-factory.jar;.\ext\jmx-ejb-connector-client.jar;.\ext\xdoclet-module-jboss-net.jar;.\ext\jsse.jar;.\ext\jnet.jar;.\ext\jmx-rmi-connector-client.jar;.\ext\jmx-invoker-adapter-client.jar;.\ext\jnp-client.jar;.\ext\wlfullclient.jar;.\ext\webserviceclient+ssl.jar;.\ext\sas.jar;.\ext\oc4jclient.jar;.\ext\ejb.jar;.\ext\oscache.jar;.\ext\commons-logging.jar;.\ext\javagroups-all.jar
    >
    xlclient.cmd:
    >
    @echo off
    setlocal
    call classpath
    REM SET DEBUG_OPTS=-classic -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5001 -DXL.RedirectSysOutErrToFile=TRUE -DXL.SysOutErrLogFile=.\logs\Client.System.Out.Err.log
    REM Make sure to remove java.naming.provider.url and read it from the configuration
    REM once the JNDI Profiles are implemented.
    REM make sure you are using j2sdk1.4.2_05
    "C:\jdk1.6.0_22\bin\java" %DEBUG_OPTS% ^
         -DXL.ExtendedErrorOptions=TRUE -DXL.HomeDir=C:\oracle\oim1_11g\designconsole ^
         -Djava.security.policy=config\xl.policy ^
         -Dlog4j.configuration=config\log.properties ^
         -Dweblogic.security.SSL.trustedCAKeyStore=%TRUSTSTORE_LOCATION% ^
         -Djava.security.manager -Djava.security.auth.login.config=config\authwl.conf ^
         com.thortech.xl.client.base.tcAppWindow -server server
    endlocal
    >
    See if this works.
    -Kevin

  • Layout manager issue.

    I was hoping that someone could shed some light on why one layout manage will allow an applet to be inserted in a class that extends JFrame but not another.
    Here is the guts of the problem I have an class that extends applet to display a pie chart. I then have a seperate class that extends JFrame that display two input boxes and a button. When the user enters two fields and clicks draw the pie chart displays working with the two numbers. The JFrame class that works uses the border layout. I change the class to use gridbag, and now only the textboxes display. Can anyone help. Here is the code for the three classes.
    This is the applet class....
    * File: PieChart.java
    * PieChart class is an Swing applet that use a pie chart
    * to show the percentage. It is used by PieChartExample
    * to show what percetange of a payment actually goes to
    * pay interest. There is no error handling in the program.
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.geom.*;
    import javax.swing.*;
    public class PieChart extends JApplet {
    final static Color bg = Color.white;
    final static Color fg = Color.black;
    private double percent;
    public void init() {
    //Initialize drawing colors
    setBackground(bg);
    setForeground(fg);
    percent = 1.0;
         public void setPercentage(double pct) {
              this.percent = pct;
    public void paint(Graphics g) {
    Graphics2D g2 = (Graphics2D) g;
    g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
    g2.setPaint(fg);
    drawAnnotation(g2);
    drawArc(g2, percent);
    public void drawAnnotation(Graphics2D g2) {
              // draw a small green circle
              g2.setPaint(Color.green);
    g2.fill(new Ellipse2D.Double(200, 200, 10,10));
    // draw a small red circle
    g2.setPaint(Color.red);
    g2.fill(new Ellipse2D.Double(270, 200, 10, 10));
    g2.setPaint(Color.black);
    g2.drawString("Interest", 210, 210); // write "Interest" by green circle
    g2.drawString("Principal", 280, 210); // write "Principal" by red circle
         public void drawArc(Graphics2D g2, double percent) {
    // draw the interest portion
              g2.setPaint(Color.green);
              g2.fill(new Arc2D.Double(10,10,200,200, 0, percent * 360, Arc2D.PIE));
              // draw the rest (principal portion)
              g2.setPaint(Color.red);
              g2.fill(new Arc2D.Double(10,10,200,200, percent * 360, (1-percent)*360, Arc2D.PIE));
    This is the JFrame class using Boarderlayout that works.
    * File: PieChartExample.java
    * The program demonstrate a simple use of pie chart. It takes total
    * payment and interest paid from user input and draws a pie chart
    * to show the percentage of interert to total payment. There is no
    * error handling whatsoever in the example program, so you can see
    * that it can be broken easily.
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.geom.*;
    import javax.swing.*;
    public class PieChartExample extends JFrame {
         final static int CHART_WIDTH = 800;
         final static int CHART_HEIGHT = 300;
         JPanel panel ;
         JLabel paymentLabel;
         JTextField paymentField;
         JLabel interestLabel;
         JTextField interestField;
         JButton show;
    PieChart applet;
    public PieChartExample() {
    super("Pie Chart Example");
    panel = new JPanel();
    paymentLabel = new JLabel("Payment: $");
    panel.add(paymentLabel);
    paymentField = new JTextField(10);
    panel.add(paymentField);
    interestLabel = new JLabel("Interest: $");
    panel.add(interestLabel);
    interestField = new JTextField(10);
    panel.add(interestField);
    show = new JButton("Draw");
    panel.add(show);
    this.getContentPane().add("North", panel);
    applet = new PieChart();
    this.getContentPane().add("Center", applet);
    show.addActionListener(new ActionListener() {
                   public void actionPerformed(ActionEvent evt) {
                        double interest = Double.parseDouble(interestField.getText());
                        double payment = Double.parseDouble(paymentField.getText());
                        double percent = interest / payment;
                        //System.out.println("In event handler, percent is " + percent);
                        applet.setPercentage(percent);
                        applet.repaint();
    private static void createAndShowGUI() {
    PieChartExample f = new PieChartExample();
    f.pack();
    f.setSize(new Dimension(CHART_WIDTH ,CHART_HEIGHT));
    f.show();
    public static void main(String[] args) {
    //Schedule a job for the event-dispatching thread:
    //creating and showing this application's GUI.
    javax.swing.SwingUtilities.invokeLater(new Runnable() {
    public void run() {
    createAndShowGUI();
    This is the modified class to use GridBag that fails.
    * File: PieChartExample2.java
    * The program demonstrate a simple use of pie chart. It takes total
    * payment and interest paid from user input and draws a pie chart
    * to show the percentage of interert to total payment. There is no
    * error handling whatsoever in the example program, so you can see
    * that it can be broken easily.
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.geom.*;
    import javax.swing.*;
    public class PieChartExample2 extends JFrame {
         final static int CHART_WIDTH = 800;
         final static int CHART_HEIGHT = 300;
         JPanel panel ;
         JLabel paymentLabel;
         JTextField paymentField;
         JLabel interestLabel;
         JTextField interestField;
         JButton show;
    PieChart applet;
    public PieChartExample2() {
    super("Pie Chart Example");
    // Get container and set layout manager
    Container contentPane = getContentPane();
    GridBagLayout gridbag = new GridBagLayout();
    GridBagConstraints c = new GridBagConstraints();
    contentPane.setLayout(gridbag);
    c.fill = GridBagConstraints.HORIZONTAL;
    panel = new JPanel();
    paymentLabel = new JLabel("Payment: $");
    panel.add(paymentLabel);
    paymentField = new JTextField(10);
    panel.add(paymentField);
    interestLabel = new JLabel("Interest: $");
    panel.add(interestLabel);
    interestField = new JTextField(10);
    panel.add(interestField);
    show = new JButton("Draw");
    panel.add(show);
    c.gridx = 0;
    c.gridy = 0;
    gridbag.setConstraints(panel, c);
    contentPane.add(panel);
    applet = new PieChart();
    c.gridx = 0;
    c.gridy = 1;
    gridbag.setConstraints(applet, c);
    contentPane.add(applet);
    show.addActionListener(new ActionListener() {
                   public void actionPerformed(ActionEvent evt) {
                        double interest = Double.parseDouble(interestField.getText());
                        double payment = Double.parseDouble(paymentField.getText());
                        double percent = interest / payment;
                        //System.out.println("In event handler, percent is " + percent);
                        applet.setPercentage(percent);
                        applet.repaint();
    private static void createAndShowGUI() {
    PieChartExample2 f = new PieChartExample2();
    f.pack();
    f.setSize(new Dimension(CHART_WIDTH ,CHART_HEIGHT));
    f.show();
    public static void main(String[] args) {
    //Schedule a job for the event-dispatching thread:
    //creating and showing this application's GUI.
    javax.swing.SwingUtilities.invokeLater(new Runnable() {
    public void run() {
    createAndShowGUI();
    }

    Ok. It seems I may be wrong and that this may not be a concurrent call issue. I overode the components setBounds and setLocation methods and it appears that an external class is updating the position of these components while layoutContainer is attempting to position them. I can see that the correct positions are being set in the setBounds method, but this is happening after layoutContainer has called getLocation on the components. To be a little more specific, I am using a JLayeredPane to display some overlapping JLabels with images. I have implemented drag and drop on these labels so that dropping one on another swaps the images. The label positions and sizes are not being changed during the drop (I don't want them to move or resize just change images). However, for some reason I have yet to discover, two calls to set bounds are being made on the labels. The first call is relocating the label to the second labels position, the second call is relocating the label back to it's original position. If anyone has any insight on why the label position are changing when I am not explicitly repositioning them please reply. I will post another reply when I have corrected the problem or found a work around for it. I am awarding the dukes to tjacobs1 since he was the only responses I've had so far.

  • Issue with jtabbedpane created in class a, and data filled from b

    I hope that i can explain this clearly and succinctly. I have a tabbed pane that has 2 panels, a combobox, and some textfields in it. each pane has the same panels that l loaded from another class. Basically, i have a class that creates all the contents that would go into each pane and for each new tab, i create a new instance of that class. that solved my issue of not having to create a bunch of panels with different names. unfortunately, when i do an action on the combobox within the tab, the correct text field is not updated. It only modifies the last tab. does anyone know how i can specify the control i want to use withing that particular tab?? I will post a little pseudo to help describe what is going on:
    class a
      panel1 = new JPanel();
    textfield1 = new JtextField();
    combobox1 = new JComboBox();
    i then add these to the panel1;
    actionlistener:
    if combobox1.getSelectedItem().equals(1)
    textfield1.setEditable(false);
    end actionlistener
    class b
    for( i=0; i< 5; i++)
       tasktabs.add(new instance of class a)
    }If this is confusing, i will try to cut my code down to show you.
    Thanks,
    Jason
    }

    attempt #2 (first post disappeared into the ether)
    works OK like this (java 1.4.0_01)
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    class Testing extends JFrame
      public Testing()
        setLocation(300,200);
        setSize(400,250);
        setDefaultCloseOperation(EXIT_ON_CLOSE);
        JTabbedPane tp = new JTabbedPane();
        tp.addTab("tab 1",new TabPanel());
        tp.addTab("tab 2",new TabPanel());
        tp.addTab("tab 3",new TabPanel());
        getContentPane().add(tp);
      public static void main(String[] args){new Testing().setVisible(true);}
    class TabPanel extends JPanel
      public TabPanel()
        final JTextField tf = new JTextField(10);
        final JComboBox cbo = new JComboBox(new String[]{"0","1","2"});
        add(cbo);
        add(tf);
        cbo.addActionListener(new ActionListener(){
          public void actionPerformed(ActionEvent ae){
            if(cbo.getSelectedItem().equals("1")) tf.setEditable(false);}});
    }

  • Zoom Issues with JScrollPane

    Hello all,
    I have ran into an issue with zoom functionality on a JScrollPane.
    Here is the situation (code to follow):
    I have a JFrame with a JDesktopPane as the contentpane. Then I have a JScrollPane with a JPanel inside. On this JPanel are three rectangles. When they are clicked on, they will open up a JInternalFrame with their name (rect1, rect2, or rect3) as the title bar. Rect3 is positioned (2000,2000).
    I have attached a mousewheel listener to the JPanel so I can zoom in and out.
    I have also attached a mouse listener so I can detect the mouse clicks for the rectangles. I also do a transformation on the point so I can be use it during clicks while the panel is zoomed.
    All of this works fantastic. The only issue I am having is that when the JScrollPane scroll bars change, I cannot select any of the rectangles.
    I will give a step by step reproduction to be used with the code:
    1.) Upon loading you will see two rectangles. Click the far right one. You'll see a window appear. Good. Move it to the far right side.
    2.) Zoom in with your mouse wheel (push it towards you) until you cannot zoom anymore (May have to get focus back on the panel). You should see three rectangles. Click on the newly shown rectangle. Another window, titled rect3 should appear. Close both windows.
    3.) This is where things get alittle tricky. Sometimes it works as intended, other times it doesn't. But do something to this affect: Scroll to the right so that only the third rectangle is showing. Try to click on it. If a window does not appear - that is the problem. But if a window does appear, close it out and try to click on the 3rd rect again. Most times, it will not display another window for me. I have to zoom out one step and back in. Then the window will appear.
    After playing around with it for awhile, I first thought it may be a focus issue...I've put some code in the internal window listeners so the JPanel/JScrollPane can grab the focus upon window closing, but it still does not work. So, either the AffineTransform and/or point conversion could be the problem with the scroll bars? It only happens when the scroll bar has been moved. What affect would this have on the AffineTransform and/or point conversion?
    Any help would be great.
    Here is the code, it consists of two files:
    import java.awt.Color;
    import java.awt.Dimension;
    import javax.swing.BorderFactory;
    import javax.swing.JDesktopPane;
    import javax.swing.JFrame;
    import javax.swing.JScrollPane;
    public class InternalFrameAffineTransformIssue
         public static void main ( String[] args )
              JFrame frame = new JFrame("AffineTransform Scroll Issue");
              frame.setLayout(null);
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              JDesktopPane desktop = new JDesktopPane();
              frame.setContentPane(desktop);
              MyJPanel panel = new MyJPanel(frame);
              JScrollPane myScrollPane = new JScrollPane(panel);
              panel.setScrollPane(myScrollPane);
              myScrollPane.setLocation(0, 0);
              myScrollPane.setSize(new Dimension(800, 800));
              myScrollPane.getVerticalScrollBar().setUnitIncrement(50);
              myScrollPane.getHorizontalScrollBar().setUnitIncrement(50);
              myScrollPane.setViewportBorder(BorderFactory.createLineBorder(Color.black));
              frame.getContentPane().add(myScrollPane);
              frame.setBounds(0, 100, 900, 900);
              frame.setVisible(true);
    import java.awt.Dimension;
    import java.awt.Graphics;
    import java.awt.Graphics2D;
    import java.awt.Rectangle;
    import java.awt.event.MouseAdapter;
    import java.awt.event.MouseEvent;
    import java.awt.event.MouseListener;
    import java.awt.event.MouseWheelEvent;
    import java.awt.event.MouseWheelListener;
    import java.awt.geom.AffineTransform;
    import java.awt.geom.NoninvertibleTransformException;
    import java.awt.geom.Point2D;
    import javax.swing.JFrame;
    import javax.swing.JInternalFrame;
    import javax.swing.JPanel;
    import javax.swing.JScrollPane;
    import javax.swing.event.InternalFrameAdapter;
    import javax.swing.event.InternalFrameEvent;
    import javax.swing.event.InternalFrameListener;
    public class MyJPanel extends JPanel implements MouseWheelListener
              double zoom = 1;
              Rectangle rect1 = new Rectangle(50, 50, 20, 20);
              Rectangle rect2 = new Rectangle(100, 50, 20, 20);
              Rectangle rect3 = new Rectangle(2000, 2000, 20, 20);
              AffineTransform zoomedAffineTransform;
              JFrame frame;
              JPanel myPanel = this;
              JScrollPane myScrollPane;
              public MyJPanel(JFrame inputFrame)
                   setAutoscrolls(true);
                   addMouseListener(new MouseAdapter(){
                        public void mousePressed ( MouseEvent e )
                             System.out.println("Clicked: " + e.getPoint());
                             AffineTransform affineTransform = zoomedAffineTransform;
                             Point2D transformedPoint = e.getPoint();
                             //Do the transform if it is not null
                             if(affineTransform != null)
                                  try
                                       transformedPoint = affineTransform.inverseTransform(transformedPoint, null);
                                  catch (NoninvertibleTransformException ex)
                                       ex.printStackTrace();
                             System.out.println("Tranformed Point: " + transformedPoint);
                             if(rect1.contains(transformedPoint))
                                  System.out.println("You clicked on rect1.");
                                  createInternalFrame("Rect1");
                             if(rect2.contains(transformedPoint))
                                  System.out.println("You clicked on rect2.");
                                  createInternalFrame("Rect2");
                             if(rect3.contains(transformedPoint))
                                  System.out.println("You clicked on rect3.");
                                  createInternalFrame("Rect3");
                   addMouseWheelListener(this);
                   frame = inputFrame;
                   setPreferredSize(new Dimension(4000, 4000));
                   setLocation(0, 0);
              public void paintComponent ( Graphics g )
                   super.paintComponent(g);
                   Graphics2D g2d = (Graphics2D) g;
                   g2d.scale(zoom, zoom);
                   zoomedAffineTransform = g2d.getTransform();
                   g2d.draw(rect1);
                   g2d.draw(rect2);
                   g2d.draw(rect3);
              public void mouseWheelMoved ( MouseWheelEvent e )
                   System.out.println("Mouse wheel is moving.");
                   if(e.getWheelRotation() == 1)
                        zoom -= 0.05;
                        if(zoom <= 0.20)
                             zoom = 0.20;
                   else if(e.getWheelRotation() == -1)
                        zoom += 0.05;
                        if(zoom >= 1)
                             zoom = 1;
                   repaint();
              public void createInternalFrame ( String name )
                   JInternalFrame internalFrame = new JInternalFrame(name, true, true, true, true);
                   internalFrame.setBounds(10, 10, 300, 300);
                   internalFrame.setVisible(true);
                   internalFrame.addInternalFrameListener(new InternalFrameAdapter(){
                        public void internalFrameClosed ( InternalFrameEvent arg0 )
                             //myPanel.grabFocus();
                             myScrollPane.grabFocus();
                        public void internalFrameClosing ( InternalFrameEvent arg0 )
                             //myPanel.grabFocus();
                             myScrollPane.grabFocus();
                   frame.getContentPane().add(internalFrame, 0);
              public void setScrollPane ( JScrollPane myScrollPane )
                   this.myScrollPane = myScrollPane;
         }

    What I'm noticing is your zoomedAffineTransform is changing when you click to close the internal frame. This ends up being passed down the line, thus mucking up your clicks until you do something to reset it (like zoom in and out).
    Clicking on the JInternalFrame appears to add a translate to the g2d transform. This translation is what's throwing everything off. So in the paintComponent where you set the zoomedAffineTransform, you can verify if the transform has a translation before storing the reference:
             if (g2d.getTransform().getTranslateX() == 0.0) {
                zoomedAffineTransform = g2d.getTransform();
             }Edited by: jboeing on Oct 2, 2009 8:23 AM

  • How to gain focus to a JTextField in a Jwindow

    Hi Friends
    I am trying to create a Login screen which covers the entire desktop using a Jwindow.
    I have one JTextfield and JPassword field in the Jwindow but i am not able to gain focus to those text fields and not able to type anything in those fields...
    I am using java 1.4.2
    This is my program...
    public class Login implements ActionListener
            JWindow fs;
            JTextField tx1;
            JPasswordField tx2;
             public Login ()
                 fs= new JWindow(new JFrame());
                 tx1= new JTextField(12);
                 tx2= new JPasswordField(12);
                 JButton jb = new JButton();
                 fs.getContentPane().setLayout(new FlowLayout());
                 fs.getContentPane().add(tx1);
                 fs.getContentPane().add(tx2);
                 fs.getContentPane().add(jb);
                 fs.setSize(300,300);
                 fs.setVisible(true);
                 fs.show();
                 fs.toFront();
    public void actionPerformed (ActionEvent e)
         System.out.println("User id "+tx1.getText()+" and Password is : "+tx2.getText()):
    public static void main(String[] args)
        new Login();
         Can some one help me in solving this issue with JWINDOW... Plz dont suggest JFrame , since i am not willing to use that header....
    Thanks in advance
    Ur Friend.

    Swing releated questions should be posted in the Swing forum.
    Check out this posting, found in the Swing forum:
    http://forum.java.sun.com/thread.jspa?forumID=57&threadID=675445
    Plz dont suggest JFrame , since i am not willing to use that header....
    JFrame.setDefaultLookAndFeelDecorated(false);

  • Trouble during dragging JWindow with my own title bar!

    Hello Everyone!
    While I drag window something like a conture remains behind, aspecially on white background.
    Similar code in VB works perfectly.
    import javax.swing.*;
    import javax.swing.border.*;
    import java.awt.*;
    import java.awt.event.*;
    class NoTitleBar extends JWindow
      JLabel label = new JLabel("Title Bar  ");
        public static void main(String[] args)
          new NoTitleBar();
      public NoTitleBar()
          getContentPane().setLayout(null);
          label.setHorizontalAlignment(JLabel.CENTER);
          label.setBounds(0,0,400,25);
          label.setOpaque(true);
          label.setBackground(Color.blue);
          label.setForeground(Color.white);
          label.setBorder(BorderFactory.createBevelBorder(BevelBorder.RAISED,new Color(100,100,255),new Color(0,0,100)));
          BevelBorder bb = new BevelBorder(BevelBorder.RAISED, Color.blue,Color.blue);
          getContentPane().setBackground(Color.pink);
          getContentPane().add(label);
          setBounds(0,0,400,400);
          setVisible(true);
          label.addMouseListener(new labelListener());
          label.addMouseMotionListener(new labelMotionListener());
          addMouseListener(new MouseAdapter(){
                   public void mouseReleased(MouseEvent me){
                     dispose();
                     System.exit(0);
        boolean moved = false;
        int coorX, coorY;
        class labelListener extends MouseAdapter
            public void mousePressed(MouseEvent me)
                moved = true;
                coorX = me.getX();
                coorY = me.getY();
            public void mouseReleased(MouseEvent me)
                moved = false;
        class labelMotionListener extends MouseMotionAdapter
            public void mouseDragged(MouseEvent me)
                if (moved){
                  Point p = getLocation();
                  setLocation((int)p.getX()+ me.getX()-coorX,(int)p.getY()+ me.getY()-coorY);

    Works ok on my platform: NT 4, JDK 1.3.1_02. What are you running on/with?

  • Jwindow behaves differently in jdk1.5

    Hi,
    I created a splash screen using jwindow. In the earlier versions of jdk the splash screen (Jwindow component) can be moved back and i was able to switch to other applications. But when i used jdk 1.5 the Jwindow stays on top and even if i switch to other applications it remains on top. how can i resolve this ??? Is there any change in the behavior of the JWindow in jdk 1.5. This is urgent can any one help???
    Regards,
    Jonny

    if having the app show up in the task bar is not a problem, you could use a
    JFrame, then setUndecorated(true); so it will look like a JWindow.
    Otherwise, this is just a stab in the dark, but worth a try
    (uses a JFrame parent, but doesn't show in the task bar)
    import javax.swing.*;
    class Testing
      public static void main(String[] args)
        JWindow window = new JWindow(new JFrame(){
          public boolean isShowing(){return true;}});
        window.getContentPane().add(new javax.swing.JLabel("Hello World"));
        window.setLocation(400,300);
        window.setSize(200,200);
        window.setVisible(true);
    }

  • Mouse Coordinate issues caused by Scaling Components in a JScrollPane

    Hi All,
    I've been attempting to write a program that includes a simple modeler. However, I've been having some trouble with being able to select components when attempting to implement zoom functionality - when I "zoom" (which is done via scroll wheel) using the scale Graphics2D method, while it zooms correctly, the mouse location of components do not seem scale.
    I've tried one of the solutions found on the forums here (create a custom event queue that adjusts the mouse coordinates) and while it seemed to work initially, if I zoom in and adjust the current view position using the scrollbars, certain components contained in the JPane will become un-selectable and I haven't been able to work out why.
    I've attached a SSCCE that reproduces the problem below - it implements a JScrollPane with a JPane with a few selectable shapes set as the Viewport. The zoom is done using the mouse scroll wheel (with wheel up being zoom in and wheel down being zoom out)
    Any help in order to fix the selection/de-selection issues on zoom would be greatly appreciated! I've spent some time reading through the forums here but have unfortunately not been able to find a workable solution around it.
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.geom.*;
    import javax.swing.*;
    public class Tester extends JScrollPane
        public Tester() {
            this.setViewportView(new Model());
        public static void main (String[] args) {
            JFrame main = new JFrame();
            main.add(new Tester());
            main.setSize(500,300);
            main.setResizable(false);
            main.setVisible(true);
    class Model extends JPanel implements MouseListener, MouseWheelListener
        private GfxClass selection = null;
        private static double zoomLevel = 1;
        // zoom methods
        public void setZoom(double zoom) {
            if( zoom < 0 && zoomLevel > 1.0)
                zoomLevel += zoom;
            if( zoom > 0 && zoomLevel < 5.0)
                zoomLevel += zoom;
        public static double getZoom() { return zoomLevel; }
        public void resetZoom() { zoomLevel = 1; }
        public Model() {
            super(null);
            addMouseListener(this);
            addMouseWheelListener(this);
            MyEventQueue meq = new MyEventQueue();
            Toolkit.getDefaultToolkit().getSystemEventQueue().push(meq);
            for(int i = 0; i <7; i++) {
                double angle = Math.toRadians(i * 360 / 7);
                GfxClass oc_tmp = new GfxClass((int)(200 + 150 * Math.cos(angle)), (int)(125 + 100 * Math.sin(angle)), "Element"+i);
                add(oc_tmp);
            repaint();
        public void paint (Graphics g) {
            Graphics2D g2 = (Graphics2D) g.create();
            AffineTransform oldTr=g2.getTransform();
            g2.scale(getZoom(),getZoom());
            super.paint(g2);
            g2.setTransform(oldTr);
            setBackground (Color.white);
            super.paintBorder(g2);
        private static class MyEventQueue extends EventQueue  {
            protected void dispatchEvent(AWTEvent event) {
                AWTEvent event2=event;
                if ( !(event instanceof MouseWheelEvent) && (event instanceof MouseEvent) ) {
                    if ( event.getSource() instanceof Component && event instanceof MouseEvent) {
                        MouseEvent me=(MouseEvent)event2;
                        Component c=(Component)event.getSource();
                        Component cursorComponent=SwingUtilities.getDeepestComponentAt(c, me.getX(), me.getY());
                        JPanel zContainer= getZoomedPanel(cursorComponent);
                        if (zContainer!=null) {
                            int x=me.getX();
                            Point p=SwingUtilities.convertPoint(zContainer,0,0,(Component)event.getSource());
                            int cX=me.getX()-p.x;
                            x=x-cX+(int)(cX/getZoom());
                            int y=me.getY();
                            int cY=me.getY()-p.y;
                            y=y-cY+(int)(cY/getZoom());
                            MouseEvent ze = new MouseEvent(me.getComponent(), me.getID(), me.getWhen(), me.getModifiers(), x, y, me.getClickCount(), me.isPopupTrigger());
                            event2=ze;
                super.dispatchEvent(event2);
        public static JPanel getZoomedPanel(Component c) {
            if (c == null)
                return null;
            else if (c instanceof Model)
                return (Model)c;
            else
                return getZoomedPanel(c.getParent());
        private void deselectAll() {
            if(selection != null)
                selection.setSelected(false);
            selection = null;
        public void mouseClicked(MouseEvent arg0)  {    }
        public void mouseEntered(MouseEvent arg0)  {    }
        public void mouseExited(MouseEvent arg0)   {    }
        public void mouseReleased(MouseEvent arg0) {    }   
        public void mousePressed(MouseEvent me) {
            Component c1 = findComponentAt(me.getX(),me.getY());
            if(c1 instanceof GfxClass)
                if(selection != null)
                    selection.setSelected(false);
                selection = (GfxClass)c1;
                selection.setSelected(true);
            else
                deselectAll();
            repaint();
            return;
        public void mouseWheelMoved(MouseWheelEvent e) { // controls zoom
                int notches = e.getWheelRotation();
                if (notches < 0)
                    setZoom(0.1);
                else
                    setZoom(-0.1);
                this.setSize(new Dimension((int)(500*getZoom()),(int)(300*getZoom())));           
                this.setPreferredSize(new Dimension((int)(500*getZoom()),(int)(300*getZoom())));     
                repaint();
    class GfxClass extends Component { // simple graphical component
        private boolean isSelected = false;
        private String name;
        public GfxClass(int xPos, int yPos, String name) {
            this.name = name;
            this.setLocation(xPos,yPos);
            this.setSize(100,35);
        public void setSelected(boolean b) {
            if( b == isSelected )
                return;
            isSelected = b;
            repaint();
        public boolean isSelected() {
            return isSelected;
        public void paint(Graphics g2) {
            Graphics2D g = (Graphics2D)g2;
            if( isSelected )
                g.setColor(Color.RED);
            else
                g.setColor(Color.BLUE);
            g.fill(new Ellipse2D.Double(0,0,100,35));
            g.setColor(Color.BLACK);
            g.drawString(name, getSize().width/2 - 25, getSize().height/2);
    }Edited by: Kys99 on Feb 22, 2010 9:09 AM
    Edited by: Kys99 on Feb 22, 2010 9:10 AM

    Delete your EventQueue class. Change one line of code in your mouse pressed method.
    public void mousePressed(MouseEvent me) {
        Component c1 = findComponentAt((int) (me.getX()/getZoom()),
                                       (int) (me.getY()/getZoom()));
    }

  • Problem in search Issue

    Hi there
    I am creating a Library System. Here i provide a facility User to Search the Books by Title, Author , Category, Publisher.
    In my program Book details are stored in the Books table in the Database When User wants to search a Book By Category, it has to select those category alone and store Them in BSearch table in the database.
    When User clicks on Find Book Button. it has display all the available books Equal to that Category should be displayed on the JTable which is in another Form.
    Here it works well for me. But the Problem is it shows only one Book on the JTable though there are Many Books in the Same Category.
    Here i am posting my code
    Code for SearchBook.java
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.sql.*;
    public class SearchBook extends JInternalFrame implements ActionListener {
         private JPanel pBook = new JPanel ();
         private JLabel lbSearch;
         private JRadioButton rb1,rb2,rb3,rb4;
         private JTextField txtSearch;
         private JButton btnFind, btnCancel;
         private int flag=0;
         private Statement st;
         private String bname,bauthor,bcat,search,bid;
         private int bref,bmid,rows=0;
         private JTable table;
         private JScrollPane jsp;
         private Object data1[][];
         private Container c;
         public SearchBook (Connection con) {
              //super (Title, Resizable, Closable, Maximizable, Iconifiable)
              super ("Search Books", false, true, false, true);
              setSize (510, 300);
              //Setting the Form's Labels.
              lbSearch = new JLabel ("Search Field");
              lbSearch.setForeground (Color.black);
              lbSearch.setBounds (15, 15, 100, 20);
              txtSearch = new JTextField ();
              txtSearch.setBounds (120, 15, 175, 25);
              btnFind = new JButton ("Find Book");
              btnFind.setBounds (25, 175, 125, 25);
              btnFind.addActionListener (this);
              btnCancel = new JButton ("Cancel");
              btnCancel.setBounds (165, 175, 125, 25);
              btnCancel.addActionListener (this);
              rb1=new JRadioButton("By Title");
              rb1.addActionListener(this);
              rb1.setBounds (15, 45, 100, 20);
              rb2=new JRadioButton("By Author");
              rb2.addActionListener(this);
              rb2.setBounds (15, 75, 100, 20);
              rb3=new JRadioButton("By Category");
              rb3.addActionListener(this);
              rb3.setBounds (15, 105, 100, 20);
              rb4=new JRadioButton("By Publisher");
              rb4.addActionListener(this);
              rb4.setBounds(15,135,100,20);
              pBook.setLayout (null);
              pBook.add(lbSearch);
              pBook.add(txtSearch);
              pBook.add(btnFind);
              pBook.add(btnCancel);
              ButtonGroup bg=new ButtonGroup();
              bg.add(rb1);
              bg.add(rb2);
              bg.add(rb3);
              bg.add(rb4);
              pBook.add(rb1);
              pBook.add(rb2);
              pBook.add(rb3);
              pBook.add(rb4);
              rb1.setSelected(true);
              getContentPane().add (pBook, BorderLayout.CENTER);
              c=getContentPane();
              try {
                   st = con.createStatement ();     //Creating Statement Object.
              catch (SQLException sqlex) {               //If Problem then Show the User a Message.
                   JOptionPane.showMessageDialog (null, "A Problem Occurs While Loading Form.");
                   dispose ();                    //Closing the Form.
              setVisible (true);
         public void actionPerformed (ActionEvent ae) {
              Object obj = ae.getSource();
              if (obj == btnFind) {          //If Find Button Pressed.
                   if (txtSearch.getText().equals ("")) {
                        JOptionPane.showMessageDialog (this, "Search Field not Provided.");
                        txtSearch.requestFocus ();
                   else
                        String bname1,bauthor1,bcat1;
                        int num;
                        boolean found = false;                    //To Confirm the Book's Id Existance.
                        try {     //SELECT Query to Retrieved the Record.
                             String q,bavl,bisr;
                             num=st.executeUpdate("Delete * from BSearch");
                             ResultSet rs = st.executeQuery ("SELECT * FROM Books ");     //Executing the Query.
                             search=txtSearch.getText();
                             search=search.toLowerCase();
                             while(rs.next())
                                  bname=rs.getString("BName");
                                  bauthor=rs.getString("BAuthor");
                                  bcat=rs.getString("BCat");
                                  bref=rs.getInt("BRef");
                                  if(bref==1) bisr="Yes";
                                  else bisr="No";
                                  bmid=rs.getInt("Mid");
                                  if(bmid==0) bavl="Available";
                                  else bavl="Issued:"+ bmid;
                                  bid=rs.getString("BId");
                                  if(flag==0)
                                       bname1=bname.toLowerCase();
                                       if(bname1.equals(search)||(bname1.indexOf(search)!=-1))
                                            System.out.println("Came Here as Name Vice");
                                           num=st.executeUpdate("insert into BSearch values("+bid+", '"+bname+"' , '"+bcat+"' , '"+bauthor+"' , '"+bavl+"', '"+bisr+"')");
                                            rows++;
                                           found=true;
                                  else if(flag==1)
                                       bauthor1=bauthor.toLowerCase();
                                       if(bauthor1.equals(search)||(bauthor1.indexOf(search)!=-1))
                                            System.out.println("Came Here as Author Vice");
                                            num=st.executeUpdate("insert into BSearch values("+bid+", '"+bname+"' , '"+bcat+"' , '"+bauthor+"' , '"+bavl+"', '"+bisr+"')");
                                            rows++;
                                            found=true;
                                  else if(flag==2)
                                       bcat1=bcat.toLowerCase();
                                       if(bcat1.equals(search)||(bcat1.indexOf(search)!=-1))
                                            System.out.println("Came Here as Catogery Vice");
                                            num=st.executeUpdate("insert into BSearch values("+bid+", '"+bname+"' , '"+bcat+"' , '"+bauthor+"' , '"+bavl+"', '"+bisr+"')");
                                            rows++;
                                            found=true;
                                  else if(flag==3)
                                       bid=bid.toLowerCase();
                                       if(bid.equals(search))
                                            System.out.println("Came Here as Publisher Vice");
                                            num=st.executeUpdate("insert into BSearch values("+bid+", '"+bname+"' , '"+bcat+"' , '"+bauthor+"' , '"+bavl+"', '"+bisr+"')");
                                            rows++;
                                            found=true;
                        /*     data1=new Object[rows][6];
                             System.out.println("hadsfdsfi i came here");
                             Object[] Colheads={"Book Id","Book Name","Category","Author","Availability","Reference"};
                             rs=st.executeQuery("Select * from BSearch");
                             System.out.println("hai i came here");
                             for(int i1=0;i1<rows;i1++)
                                       rs.next();
                                       for(int j1=0;j1<6;j1++)
                                            data1[i1][j1]=rs.getString(j1);
                             table=new JTable(data1,Colheads);
                             int v=ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED;
                             int h=ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED;
                             System.out.println("hai we came here abd Going to clear the TextBox");
                             jsp=new JScrollPane(table,v,h);
                             TableDisp td=new TableDisp(jsp);
                             txtSearch.setText("");
                             txtSearch.requestFocus();*/
                        catch(SQLException sqlex) {
                             if (found == false) {
                                  JOptionPane.showMessageDialog (this, "Record not Found.");
                        try{
                        data1=new Object[rows][6];
                        Object[] Colheads={"Book Id","Book Name","Category","Author","Availability","Reference"};
                        ResultSet rs=st.executeQuery("Select * from BSearch");
                        for(int i1=0;i1<rows;i1++)
                                  rs.next();
                                  for(int j1=0;j1<6;j1++)
                                       data1[i1][j1]=rs.getString(j1+1);
                        table=new JTable(data1,Colheads);
                        int v=ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED;
                        int h=ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED;
                        System.out.println("hai we came here");
                        txtSearch.setText("");
                        txtSearch.requestFocus();
                        jsp=new JScrollPane(table,v,h);
                        TableDisp td=new TableDisp(table);
                        catch(Exception sqlex) {
                             if (found == false) {
                                  JOptionPane.showMessageDialog (this, "Some prob Found.");
              if (obj == btnCancel) {          //If Cancel Button Pressed Unload the From.
                   setVisible (false);
                   dispose();
              if(obj==rb1)
                   flag=0;
              if(obj==rb2)
                   flag=1;
              if(obj==rb3)
                   flag=2;
              if(obj==rb4)
                   flag=3;
    }Code For TableDisp.java
    import java.awt.*;
    import javax.swing.*;
    public class TableDisp extends JFrame {
         private JPanel pBook = new JPanel ();
         private JScrollPane scroller;
         private JTable table;
         public TableDisp(JTable j)
              super("Table Display");
              setSize(500,300);
              this.setLocation(new Point(10, 10));
              pBook.setLayout (null);
              table=j;
              scroller = new JScrollPane (table);     //Adding Table to ScrollPane.
              scroller.setBounds (20, 50, 460, 200);     //Aligning ScrollPane.
              pBook.add(scroller);
              getContentPane().add (pBook, BorderLayout.CENTER);
              setVisible(true);
    }Please check my code and Give a solution
    Thank you

    hi
    Please go through my code. I My code just i am getting all the Values which are Equal to a Sellected Category. and storing it in BSearch Table. and then Only i get the Datas from BSearch table and show it in the Jtable.
    Now the Problem is System is not getting all the Value Equal to that Sellected Category.
    Please go through my Code and tell give me some idea, Otherwise Just Modify the Code and give me,
    Please help me on this issue.
    Thank you very much

  • How can a Swing JWindow be resized without flickering?

    Hi,
    I'm having trouble trying to get a custom UI I have made based on JWindow to resize in an acceptable way due to the amount of flicker.
    The problem is described here:
    http://stackoverflow.com/questions/4324221/how-can-a-swing-jwindow-be-resized-without-flickering
    I have tried various attempts at (manual) double buffering but it seems that nothing can help with the fact that the top window's ComponentPeer is resizing the window and drawing it with a 'stale' view of the layout and then doing the new layout afterwards. This happens for me in Windows XP and Ubuntu Linux under Sun/Oracle Java 1.6.0_u22 (latest), and apparently in Windows 7 too.
    I am unsure if this is a bug, defect or is this way by design. I also notice that Netbeans suffers from the same issue on resizing but Eclipse does not. Does this mean that Swing is currently incapable of laying out/painting a top level Component to a back buffer before drawing to the screen? Does this affect/annoy anyone else?
    Or if not, any ideas how a smooth redraw can be achieved?
    I understand that this issue does not bother everyone, but for custom UIs like the one I am trying to achieve the result is not really acceptable.
    Any help much appreciated!

    Thanks that's an interesting approach, I think I may use...
    AWTUtilities.setWindowShape(jWindow, newshape)...on a JWindow set to be the same size as the entire desktop as I need the UI to remain in place whilst allowing mouse and key events to reach other applications.
    Does any one think it would be worth submtting a bug report or feature request for the desired behaviour?
    That is: getting top level (heavyweight) containers to layout and repaint into a back buffer, and provide this buffer to the underlying window manager during the resize so that 'stale' window layouts are not drawn to the screen during resizing. This is the way SWT appears to function and so should be possible in theory.

  • Panel sizing issues! IT'S TOO BIG FOR IT'S BOOTS!!!!!

    Hi there,
    I have a Panel which I make the client of a ScrollPane. The ScrollPane is added onto a container. This is all fine. My challenge is that I have about eighteen components (labels - containing pictures, text areas, etc) on the one panel. The panel is set to BoxLayout (up and down style) which results in all the components being stacked one on top of the next. When the program runs the scrollPane is fine, and it has bars both horizontally and vertically. Ideally however I only want to have vertical scrollbars and no horizontal scrollbars because I want my content to be the width of the onscreen window. If I force the scrollPane's horizontal bar off then I can only see some of the content on the Panel because the Panel still takes up heaps of room. I have learned from this that it is not possible to control the size of the component that is the client of the scrollPane by playing with the scroll bars.
    I figured the only logical way to get around my challenge is to control the size of the panel before it is made the client of the scrollPane. I set the size of the Panel explicitly with setSize(value1, value2) however the Panel still takes up a huge screen area.
    Basically trying to explicitly set the Panel failed, the code compiled but there was no desirable outcomes. I really want to work out how to force the Panel to be a given size and then use only one scroll bar on the scrollPane. I figure that this is an issue related to BoxLayout, but I may be well of track with that hypothesis. My code is provided below if anybody can offer any clues they will be greatly appreciated.
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class HelpGUI extends JFrame implements ActionListener
      HelpGUI()
        Toolkit tk = Toolkit.getDefaultToolkit();
        Dimension sSize = tk.getScreenSize();
        /* Fonts created here. */
        Font mainhead = new Font("Tahoma",Font.BOLD,22);
        Font subhead = new Font("Arial Black",Font.PLAIN,16);
        /* Images and there associated accomodations (labels) */
        ImageIcon pic1 = new ImageIcon("Images/launch1a.jpg");
        ImageIcon pic2 = new ImageIcon("Images/launch1b.jpg");
        ImageIcon pic3 = new ImageIcon("Images/launch1c.jpg");
        ImageIcon pic5 = new ImageIcon("Images/launch1e.jpg");
        ImageIcon pic6 = new ImageIcon("Images/launch1f.jpg");
        ImageIcon pic7 = new ImageIcon("Images/launch1g.jpg");
        ImageIcon pic8 = new ImageIcon("Images/launch1h.jpg");
        ImageIcon pic9 = new ImageIcon("Images/launch1i.jpg");
        ImageIcon pic10 = new ImageIcon("Images/launch1j.jpg");
        ImageIcon pic11 = new ImageIcon("Images/launch1k.jpg");
        ImageIcon pic12 = new ImageIcon("Images/launch1l.jpg");
        ImageIcon pic13 = new ImageIcon("Images/launch1m.jpg");
        JLabel icon1 = new JLabel("",pic1,JLabel.LEFT);
        JLabel icon2 = new JLabel("",pic2,JLabel.LEFT);
        JLabel icon3 = new JLabel("",pic3,JLabel.LEFT);
        JLabel icon5 = new JLabel("",pic5,JLabel.LEFT);
        JLabel icon6 = new JLabel("",pic6,JLabel.LEFT);
        JLabel icon7 = new JLabel("",pic7,JLabel.LEFT);
        JLabel icon8 = new JLabel("",pic8,JLabel.LEFT);
        JLabel icon9 = new JLabel("",pic9,JLabel.LEFT);
        JLabel icon10 = new JLabel("",pic10,JLabel.LEFT);
        JLabel icon11 = new JLabel("",pic11,JLabel.LEFT);
        JLabel icon12 = new JLabel("",pic12,JLabel.LEFT);
        //Labels containing strings.
        JLabel heading = new JLabel("INSTRUCTIONS",JLabel.LEFT);
        heading.setFont(mainhead);
        JLabel addhead = new JLabel("Adding a shortcut to the toolbar.");
        addhead.setFont(subhead);
        JLabel delhead = new JLabel("Deleting a shortcut from the toolbar.");
        addhead.setFont(subhead);
        /* Text blocks describing program operation, used in conjunction with the
        labels and images instantiated above. */
        JTextArea intro = new JTextArea(
          "This toolbar contains two established shortcut buttons. It also contains "+
          "three empty shortcut buttons. The toolbar can be customised to your exact "+
          "requirements. Please follow the instructions below if you are uncertain of "+
          "how to enter a shortcut. Alternatively you can delete shortcuts from this "+
          "toolbar by following instructions provided further down this page.");
        intro.setLineWrap(true);
        intro.setWrapStyleWord(true);
        intro.setEditable(false);
        //intro.setBackground(this.getBackground());
        JTextArea inst1 = new JTextArea(
          "1). On the File menu click New.");
        inst1.setLineWrap(true);
        inst1.setWrapStyleWord(true);
        inst1.setEditable(false);
        //intro.setBackground(this.getBackground());
        JTextArea inst2 = new JTextArea(
          "2). In the Please Enter Shortcut Details window enter a Shortcut Name "+
          "for the new shortcut.");
        inst2.setLineWrap(true);
        inst2.setWrapStyleWord(true);
        inst2.setEditable(false);
        //inst2.setBackground(this.getBackground());
        JTextArea inst3 = new JTextArea(
          "3). Click on the Open button. This presents the file browser."+
          "4). Select a relevant subdirectory and click the Open button.");
        inst3.setLineWrap(true);
        inst3.setWrapStyleWord(true);
        inst3.setEditable(false);
        //inst3.setBackground(this.getBackground());
        JTextArea inst5 = new JTextArea(
          "5). Repeat step 4 if necessary.");
        inst5.setLineWrap(true);
        inst5.setWrapStyleWord(true);
        inst5.setEditable(false);
        //inst5.setBackground(this.getBackground());
        JTextArea inst6 = new JTextArea(
          "6). Repeat step 4 if necessary.");
        inst6.setLineWrap(true);
        inst6.setWrapStyleWord(true);
        inst6.setEditable(false);
        //inst6.setBackground(this.getBackground());
        JTextArea inst7 = new JTextArea(
          "7). Select the required executable file and press the Open button.");
        inst7.setLineWrap(true);
        inst7.setWrapStyleWord(true);
        inst7.setEditable(false);
        //inst7.setBackground(this.getBackground());
        JTextArea inst8 = new JTextArea(
          "8). Press the Ok button.");
        inst8.setLineWrap(true);
        inst8.setWrapStyleWord(true);
        inst8.setEditable(false);
        //inst8.setBackground(this.getBackground());
        JButton exitbtn = new JButton("Exit");
        JPanel panel = new JPanel();
        panel.setLayout(new BoxLayout(panel,BoxLayout.Y_AXIS));
        //panel.setSize(sSize.width*14/17,sSize.height*9/10);
        panel.setBackground(Color.CYAN);
        panel.add(heading);          //"INSTRUCTIONS" heading.
        panel.add(icon1);            //First picture of toolbar.
        panel.add(intro);            //First text block.
        panel.add(addhead);          //"Adding a shortcut ..." heading.
        panel.add(inst1);            //First instruction 1).
        panel.add(icon2);            //Picture for 1).
        panel.add(inst2);            //Second instruction 2).
        panel.add(icon5);            //Picture of 2).
        panel.add(inst3);            //3). and 4).
        panel.add(icon6);            //Picture for 3 and 4.
        panel.add(inst5);            //5).
        panel.add(icon7);            //Picture for instruction 5).
        panel.add(inst6);            //6).
        panel.add(icon8);            //Picture for instruction 6).
        panel.add(inst7);            //7).
        panel.add(icon9);            //Pic 7).
        panel.add(inst8);            //8).
        panel.add(icon10);           //Pic 8).
        Container c = getContentPane();
        JScrollPane scrollPane = new JScrollPane(panel);
        scrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
        //scrollPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
        c.add(scrollPane);
        setLocation(sSize.width*18/100,sSize.height*1/20);
        setSize(sSize.width*14/17,sSize.height*9/10);
        setTitle("Java QuickLaunch Toolbar");
        setVisible(true);
      public void actionPerformed(ActionEvent e)
    }Thanks heaps

    Interestingly enough, the preferredLayoutSize method of the layout manager attached to the JScrollPane never gets called when the scroll pane is resized horizontally, only vertically. I found this out by subclassing BoxLayout so that it printed a string when certain methods were called. I did that after noticing that I can resize your help window vertically with no problem, but horizontally is a different story -- when I increase the horizontal size, the JPanel grows to fit, but when I decrease the horizontal size, the JPanel stays the same size. Returning smaller Dimensions in preferredLayoutSize of my overrided BoxLayout class didn't help.
    I investigated further and subclassed JPanel to print a message when setSize or setBounds was called. When I vertically resized the help window, JPanel.setBounds was called to resize the JPanel. I was expecting that. However, when I horizontally resized the help window, the JPanel size wasn't updated... at least not in the way I expected it to be. When I increased the horizontal size past the maximum horizontal size so far, the JPanel's horizontal size was increased to match. However, when I decreased the horizontal size, the JPanels horizontal size was not decreased to match.
    So, here's what I found:
    1) JScrollPane vertical size increased: Scrolled component vertical size increases to match.
    2) JScrollPane vertical size decreased: Scrolled component vertical size decreases to match.
    3) JScrollPane horizontal size increased: Scrolled component horizontal size increases to match.
    4) JScrollPane horizontal size decreased: Scrolled component horizontal does not change.
    So the scrolled component horizontal size gets increased, but never decreased. This is odd... perhaps it is a JScrollPane bug? I'll see if I can't figure out a way around it. Overriding the scroll pane's setBounds and setSize methods didn't work, perhaps I'll target the JViewport next.
    Sorry I couldn't help right away, though. Lemme know if you figure it out.

  • Weblogic Startup Issues

    I've been searching through this board and through other sources to find some answers..... I recently tried to update fusion middleware (Fusion Middleware 11g Release 1 (11.1.1.5)) on top of an existing copy we had installed due to a forms error we kept encountering. I ran the install without any issues and ran it without any "config" options.... After all was said and I done, I was able to start the adminserver services without issues, however my WLS_FORMS will no longer start and I'm not clear as to why at this point and I've pretty much wasted the last day trying to troubleshoot this.... We're running Weblogic and Forms 11g on a Windows 2008 R2 (64bit) server. Here's the output from the WLS_FORMS log... any help would be appreciated!
    +<Feb 2, 2012 9:13:49 AM> <INFO> <NodeManager> <Server output log file is 'C:\Oracle\Middleware\user_projects\domains\ClassicDomain\servers\WLS_FORMS\logs\WLS_FORMS.out'>+
    C:\Oracle\Middleware\user_projects\domains\ClassicDomain>SETLOCAL
    C:\Oracle\Middleware\user_projects\domains\ClassicDomain>GOTO :ENDFUNCTIONS
    C:\Oracle\Middleware\user_projects\domains\ClassicDomain>set DOMAIN_HOME=C:\Oracle\Middleware\user_projects\domains\ClassicDomain
    C:\Oracle\Middleware\user_projects\domains\ClassicDomain>for %i in ("C:\Oracle\Middleware\user_projects\domains\ClassicDomain") do set DOMAIN_HOME=%~fsi
    C:\Oracle\Middleware\user_projects\domains\ClassicDomain>set DOMAIN_HOME=C:\Oracle\MIDDLE~1\USER_P~1\domains\CLASSI~1
    C:\Oracle\Middleware\user_projects\domains\ClassicDomain>call "C:\Oracle\MIDDLE~1\USER_P~1\domains\CLASSI~1\bin\setDomainEnv.cmd"
    +'else' is not recognized as an internal or external command,+
    operable program or batch file.
    +.+
    +.+
    JAVA Memory arguments: -Xms256m -Xmx512m  -XX:MaxPermSize=512m
    +.+
    WLS Start Mode=Development
    +.+
    CLASSPATH=C:\Oracle\MIDDLE~1\WLSERV~1.3\server\ext\jdbc\oracle\11g\ojdbc6dms.jar;C:\Oracle\MIDDLE~1\patch_wls1033\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\PROGRA~1\Java\JDK16~1.0_2\lib\tools.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic_sp.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic.jar;C:\Oracle\MIDDLE~1\modules\features\weblogic.server.modules_10.3.3.0.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\webservices.jar;C:\Oracle\MIDDLE~1\modules\ORGAPA~1.1/lib/ant-all.jar;C:\Oracle\MIDDLE~1\modules\NETSFA~1.0_1/lib/ant-contrib.jar;C:\Oracle\Middleware\wlserver_10.3\server\lib\weblogic.jar;C:\Oracle\Middleware\oracle_common\modules\oracle.dms_11.1.1\dms.jar;C:\Oracle\Middleware\oracle_common\modules\oracle.jmx_11.1.1\jmxframework.jar;C:\Oracle\Middleware\oracle_common\modules\oracle.jmx_11.1.1\jmxspi.jar;C:\Oracle\Middleware\oracle_common\modules\oracle.odl_11.1.1\ojdl.jar;C:\Oracle\Middleware\wlserver_10.3\server\lib\weblogic.jar;C:\Oracle\Middleware\FORMS\opmn\lib\nonj2eembeans.jar;C:\Oracle\Middleware\FORMS\jdbc\lib\ojdbc6.jar;C:\Oracle\Middleware\FORMS\opmn\lib\optic.jar;C:\Oracle\Middleware\FORMS\opmn\lib\iasprovision.jar;C:\Oracle\Middleware\oracle_common\modules\oracle.ldap_11.1.1\ldapjclnt11.jar;C:\Oracle\Middleware\oracle_common\jlib\rcucommon.jar;C:\Oracle\Middleware\FORMS\opmn\lib\opmneditor.jar;C:\Oracle\Middleware\FORMS\opmn\lib\wlfullclient.jar;C:\Oracle\MIDDLE~1\ORACLE~1\soa\modules\commons-cli-1.1.jar;C:\Oracle\MIDDLE~1\ORACLE~1\soa\modules\oracle.soa.mgmt_11.1.1\soa-infra-mgmt.jar;C:\Oracle\MIDDLE~1\ORACLE~1\modules\oracle.jrf_11.1.1\jrf.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\common\derby\lib\derbyclient.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\xqrl.jar
    +.+
    PATH=C:\Oracle\MIDDLE~1\patch_wls1033\profiles\default\native;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\native\win\x64;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\bin;C:\Oracle\MIDDLE~1\modules\ORGAPA~1.1\bin;C:\PROGRA~1\Java\JDK16~1.0_2\jre\bin;C:\PROGRA~1\Java\JDK16~1.0_2\bin;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\native\win\x64;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\bin;C:\PROGRA~1\Java\JDK16~1.0_2\jre\bin;C:\PROGRA~1\Java\JDK16~1.0_2\bin;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\native\win\x64\oci920_8;C:\Oracle\product\11.2.0\client_1\bin;C:\Oracle\product\11.2.0\client32\bin;C:\Oracle\Middleware\FORMS\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\PROGRA~2\MICROF~1\NETEXP~1.1\Base\Bin\WIN64;C:\Oracle\Middleware\oracle_common\bin;C:\MinGW\mingw64\bin;c:\PROGRA~2\Adobe\READER~1.0\Reader;C:\Program Files\ASCI\ActiveBatchV8\;C:\Oracle\Middleware\FORMS\opmn\bin;C:\Oracle\Middleware\FORMS\opmn\lib;C:\Oracle\Middleware\FORMS\perl\bin;C:\Oracle\Middleware\FORMS\OPatch;;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\native\win\x64\oci920_8
    +.+
    +*  To start WebLogic Server, use a username and   *+
    +*  password assigned to an admin-level user.  For *+
    +*  server administration, use the WebLogic Server *+
    +*  console at http:\\hostname:port\console        *+
    starting weblogic with Java version:
    java version "1.6.0_21"
    Java(TM) SE Runtime Environment (build 1.6.0_21-b07)
    Java HotSpot(TM) 64-Bit Server VM (build 17.0-b17, mixed mode)
    Starting WLS with line:
    C:\PROGRA~1\Java\JDK16~1.0_2\bin\java -client   -Xms256m -Xmx512m  -XX:MaxPermSize=512m -Dweblogic.Name=WLS_FORMS -Djava.security.policy=C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic.policy -Dweblogic.system.BootIdentityFile=C:\Oracle\Middleware\user_projects\domains\ClassicDomain\servers\WLS_FORMS\data\nodemanager\boot.properties -Dweblogic.nodemanager.ServiceEnabled=true -Dweblogic.security.SSL.ignoreHostnameVerification=false -Dweblogic.ReverseDNSAllowed=false -Xverify:none  -da -Dplatform.home=C:\Oracle\MIDDLE~1\WLSERV~1.3 -Dwls.home=C:\Oracle\MIDDLE~1\WLSERV~1.3\server -Dweblogic.home=C:\Oracle\MIDDLE~1\WLSERV~1.3\server   -Xms512m -Xmx1024m -XX:PermSize=256m -XX:MaxPermSize=512m -Doracle.home=C:\Oracle\Middleware\FORMS -Ddomain.home=C:\Oracle\Middleware\user_projects\domains\ClassicDomain -Xms256m -Xmx512m -XX:PermSize=256m -XX:MaxPermSize=512m -Djava.ext.dirs=C:\Oracle\Middleware\FORMS\jdk\jre\lib\ext -Doracle.security.jps.config=C:\Oracle\Middleware\user_projects\domains\ClassicDomain\config\fmwconfig\jps-config.xml -Doracle.home=C:\Oracle\Middleware\FORMS -Ddomain.home=C:\Oracle\Middleware\user_projects\domains\ClassicDomain -Doracle.instance=C:\Oracle\Middleware\Instance\Frm_Domain -Doracle.instance.name=Frm_Domain -Doracle.forms.weblogic=1 -Ddomain.name=ClassicDomain -Ddomain.home=C:\Oracle\MIDDLE~1\USER_P~1\domains\CLASSI~1 -Dcommon.components.home=C:\Oracle\MIDDLE~1\ORACLE~1 -Djrf.version=11.1.1 -Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.Jdk14Logger -Djrockit.optfile=C:\Oracle\MIDDLE~1\ORACLE~1\modules\oracle.jrf_11.1.1\jrocket_optfile.txt -Doracle.domain.config.dir=C:\Oracle\MIDDLE~1\USER_P~1\domains\CLASSI~1\config\FMWCON~1 -Doracle.server.config.dir=C:\Oracle\MIDDLE~1\USER_P~1\domains\CLASSI~1\config\FMWCON~1\servers\WLS_FORMS -Doracle.security.jps.config=C:\Oracle\MIDDLE~1\USER_P~1\domains\CLASSI~1\config\fmwconfig\jps-config.xml -Djava.protocol.handler.pkgs=oracle.mds.net.protocol  -Digf.arisidbeans.carmlloc=C:\Oracle\MIDDLE~1\USER_P~1\domains\CLASSI~1\config\FMWCON~1\carml  -Digf.arisidstack.home=C:\Oracle\MIDDLE~1\USER_P~1\domains\CLASSI~1\config\FMWCON~1\arisidprovider -Dweblogic.alternateTypesDirectory=C:\Oracle\MIDDLE~1\ORACLE~1\modules\oracle.ossoiap_11.1.1,C:\Oracle\MIDDLE~1\ORACLE~1\modules\oracle.oamprovider_11.1.1  -Dweblogic.jdbc.remoteEnabled=false  -Dwc.oracle.home=C:\Oracle\Middleware\FORMS -Dclassic.oracle.home=C:\Oracle\Middleware\FORMS  -Dem.oracle.home=C:\Oracle\Middleware\oracle_common -Djava.awt.headless=true -Dweblogic.management.discover=false -Dweblogic.management.server=http://192.168.200.166:7002  -Dwlw.iterativeDev= -Dwlw.testConsole= -Dwlw.logErrorsToConsole= -Dweblogic.ext.dirs=C:\Oracle\MIDDLE~1\patch_wls1033\profiles\default\sysext_manifest_classpath -Dweblogic.management.username=weblogic -Dweblogic.management.password=weblogic1  weblogic.Server
    +<Feb 2, 2012 9:13:50 AM AST> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with Java HotSpot(TM) 64-Bit Server VM Version 17.0-b17 from Sun Microsystems Inc.>+
    +<Feb 2, 2012 9:13:52 AM AST> <Info> <Management> <BEA-141107> <Version: WebLogic Server 10.3.3.0 Fri Apr 9 00:05:28 PDT 2010 1321401 >+
    +<Feb 2, 2012 9:13:53 AM AST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>+
    +<Feb 2, 2012 9:13:53 AM AST> <Info> <WorkManager> <BEA-002900> <Initializing self-tuning thread pool>+
    +<Feb 2, 2012 9:13:53 AM AST> <Notice> <Log Management> <BEA-170019> <The server log file C:\Oracle\Middleware\user_projects\domains\ClassicDomain\servers\WLS_FORMS\logs\WLS_FORMS.log is opened. All server side log events will be written to this file.>+
    +<Feb 2, 2012 9:14:00 AM AST> <Error> <Security> <BEA-090870> <The realm "myrealm" failed to be loaded: weblogic.security.service.SecurityServiceException: com.bea.common.engine.ServiceInitializationException: javax.jdo.JDOFatalInternalException: Unexpected exception caught.+
    NestedThrowables:
    java.lang.reflect.InvocationTargetException.
    weblogic.security.service.SecurityServiceException: com.bea.common.engine.ServiceInitializationException: javax.jdo.JDOFatalInternalException: Unexpected exception caught.
    NestedThrowables:
    java.lang.reflect.InvocationTargetException
    +     at weblogic.security.service.CSSWLSDelegateImpl.initializeServiceEngine(CSSWLSDelegateImpl.java:342)+
    +     at weblogic.security.service.CSSWLSDelegateImpl.initialize(CSSWLSDelegateImpl.java:221)+
    +     at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.InitializeServiceEngine(CommonSecurityServiceManagerDelegateImpl.java:1783)+
    +     at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.initializeRealm(CommonSecurityServiceManagerDelegateImpl.java:442)+
    +     at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.loadRealm(CommonSecurityServiceManagerDelegateImpl.java:840)+
    +     Truncated. see log file for complete stacktrace+
    Caused By: com.bea.common.engine.ServiceInitializationException: javax.jdo.JDOFatalInternalException: Unexpected exception caught.
    NestedThrowables:
    java.lang.reflect.InvocationTargetException
    +     at com.bea.common.engine.internal.ServiceEngineImpl.findOrStartService(ServiceEngineImpl.java:365)+
    +     at com.bea.common.engine.internal.ServiceEngineImpl.findOrStartService(ServiceEngineImpl.java:315)+
    +     at com.bea.common.engine.internal.ServiceEngineImpl.lookupService(ServiceEngineImpl.java:257)+
    +     at com.bea.common.engine.internal.ServicesImpl.getService(ServicesImpl.java:72)+
    +     at weblogic.security.service.internal.WLSIdentityServiceImpl.initialize(WLSIdentityServiceImpl.java:47)+
    +     Truncated. see log file for complete stacktrace+
    Caused By: javax.jdo.JDOFatalInternalException: Unexpected exception caught.
    NestedThrowables:
    java.lang.reflect.InvocationTargetException
    +     at javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java:549)+
    +     at com.bea.common.security.storeservice.util.StoreServiceDelegate.initJDO(StoreServiceDelegate.java:149)+
    +     at com.bea.common.security.storeservice.util.StoreServiceDelegate.<init>(StoreServiceDelegate.java:98)+
    +     at com.bea.common.security.internal.service.StoreServiceImpl.init(StoreServiceImpl.java:76)+
    +     at com.bea.common.engine.internal.ServiceEngineImpl.findOrStartService(ServiceEngineImpl.java:363)+
    +     Truncated. see log file for complete stacktrace+
    Caused By: java.lang.reflect.InvocationTargetException
    +     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 javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java:534)+
    +     Truncated. see log file for complete stacktrace+
    Caused By: <openjpa-1.1.1-SNAPSHOT-r422266:891341 fatal internal error> org.apache.openjpa.util.InternalException: There was an error when invoking the static getInstance method on the named factory class "org.apache.openjpa.abstractstore.AbstractStoreBrokerFactory".  See the nested exception for details.
    +     at org.apache.openjpa.kernel.Bootstrap.getBrokerFactory(Bootstrap.java:95)+
    +     at kodo.jdo.PersistenceManagerFactoryImpl.getPersistenceManagerFactory(PersistenceManagerFactoryImpl.java:41)+
    +     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)+
    +     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)+
    +     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)+
    +     Truncated. see log file for complete stacktrace+
    Caused By: java.lang.OutOfMemoryError: Java heap space
    +     at java.util.Arrays.copyOf(Arrays.java:2734)+
    +     at java.util.ArrayList.ensureCapacity(ArrayList.java:167)+
    +     at java.util.ArrayList.add(ArrayList.java:351)+
    +     at org.apache.openjpa.conf.CacheMarshallerImpl.setInputUrlFromResourceLocation(CacheMarshallerImpl.java:226)+
    +     at org.apache.openjpa.conf.CacheMarshallerImpl.endConfiguration(CacheMarshallerImpl.java:207)+
    +     Truncated. see log file for complete stacktrace+
    +>+
    +<Feb 2, 2012 9:14:00 AM AST> <Notice> <Security> <BEA-090082> <Security initializing using security realm myrealm.>+
    +<Feb 2, 2012 9:14:00 AM AST> <Critical> <WebLogicServer> <BEA-000362> <Server failed. Reason:+
    There are 1 nested errors:
    +weblogic.security.service.SecurityServiceRuntimeException: [Security:090399]Security Services Unavailable+
    +     at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.doBootAuthorization(CommonSecurityServiceManagerDelegateImpl.java:916)+
    +     at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.initialize(CommonSecurityServiceManagerDelegateImpl.java:1050)+
    +     at weblogic.security.service.SecurityServiceManager.initialize(SecurityServiceManager.java:875)+
    +     at weblogic.security.SecurityService.start(SecurityService.java:141)+
    +     at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)+
    +     at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)+
    +     at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)+
    +>+
    +<Feb 2, 2012 9:14:00 AM AST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FAILED>+
    +<Feb 2, 2012 9:14:00 AM AST> <Error> <WebLogicServer> <BEA-000383> <A critical service failed. The server will shut itself down>+
    +<Feb 2, 2012 9:14:00 AM AST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FORCE_SHUTTING_DOWN>+
    +<Feb 2, 2012 9:14:01 AM> <FINEST> <NodeManager> <Waiting for the process to die: 5968>+
    +<Feb 2, 2012 9:14:01 AM> <INFO> <NodeManager> <Server failed during startup so will not be restarted>+
    +<Feb 2, 2012 9:14:01 AM> <FINEST> <NodeManager> <runMonitor returned, setting finished=true and notifying waiters>+

    I increased parameter values, but still similar outcome... I noticed on our production server that the WLS_FORMS server instance has security policy attached to the config (Servers --> WLS_FORMS --> Security (tab) --> Policies (tab), whereas this update now seems to force me to select "XACMLAuthorizer" where I just can't seem to disable this option at all, so based on the error highlighted below, could that have anything to do with it?
    <Feb 2, 2012 10:08:17 AM> <INFO> <NodeManager> <Server output log file is 'C:\Oracle\Middleware\user_projects\domains\ClassicDomain\servers\WLS_FORMS\logs\WLS_FORMS.out'>
    C:\Oracle\Middleware\user_projects\domains\ClassicDomain>SETLOCAL
    C:\Oracle\Middleware\user_projects\domains\ClassicDomain>GOTO :ENDFUNCTIONS
    C:\Oracle\Middleware\user_projects\domains\ClassicDomain>set DOMAIN_HOME=C:\Oracle\Middleware\user_projects\domains\ClassicDomain
    C:\Oracle\Middleware\user_projects\domains\ClassicDomain>for %i in ("C:\Oracle\Middleware\user_projects\domains\ClassicDomain") do set DOMAIN_HOME=%~fsi
    C:\Oracle\Middleware\user_projects\domains\ClassicDomain>set DOMAIN_HOME=C:\Oracle\MIDDLE~1\USER_P~1\domains\CLASSI~1
    C:\Oracle\Middleware\user_projects\domains\ClassicDomain>call "C:\Oracle\MIDDLE~1\USER_P~1\domains\CLASSI~1\bin\setDomainEnv.cmd"
    'else' is not recognized as an internal or external command,
    operable program or batch file.
    JAVA Memory arguments: -Xms512m -Xmx512m -XX:MaxPermSize=512m
    WLS Start Mode=Development
    CLASSPATH=C:\Oracle\MIDDLE~1\WLSERV~1.3\server\ext\jdbc\oracle\11g\ojdbc6dms.jar;C:\Oracle\MIDDLE~1\patch_wls1033\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\PROGRA~1\Java\JDK16~1.0_2\lib\tools.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic_sp.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic.jar;C:\Oracle\MIDDLE~1\modules\features\weblogic.server.modules_10.3.3.0.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\webservices.jar;C:\Oracle\MIDDLE~1\modules\ORGAPA~1.1/lib/ant-all.jar;C:\Oracle\MIDDLE~1\modules\NETSFA~1.0_1/lib/ant-contrib.jar;C:\Oracle\Middleware\wlserver_10.3\server\lib\weblogic.jar;C:\Oracle\Middleware\oracle_common\modules\oracle.dms_11.1.1\dms.jar;C:\Oracle\Middleware\oracle_common\modules\oracle.jmx_11.1.1\jmxframework.jar;C:\Oracle\Middleware\oracle_common\modules\oracle.jmx_11.1.1\jmxspi.jar;C:\Oracle\Middleware\oracle_common\modules\oracle.odl_11.1.1\ojdl.jar;C:\Oracle\Middleware\wlserver_10.3\server\lib\weblogic.jar;C:\Oracle\Middleware\FORMS\opmn\lib\nonj2eembeans.jar;C:\Oracle\Middleware\FORMS\jdbc\lib\ojdbc6.jar;C:\Oracle\Middleware\FORMS\opmn\lib\optic.jar;C:\Oracle\Middleware\FORMS\opmn\lib\iasprovision.jar;C:\Oracle\Middleware\oracle_common\modules\oracle.ldap_11.1.1\ldapjclnt11.jar;C:\Oracle\Middleware\oracle_common\jlib\rcucommon.jar;C:\Oracle\Middleware\FORMS\opmn\lib\opmneditor.jar;C:\Oracle\Middleware\FORMS\opmn\lib\wlfullclient.jar;C:\Oracle\MIDDLE~1\ORACLE~1\soa\modules\commons-cli-1.1.jar;C:\Oracle\MIDDLE~1\ORACLE~1\soa\modules\oracle.soa.mgmt_11.1.1\soa-infra-mgmt.jar;C:\Oracle\MIDDLE~1\ORACLE~1\modules\oracle.jrf_11.1.1\jrf.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\common\derby\lib\derbyclient.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\xqrl.jar
    PATH=C:\Oracle\MIDDLE~1\patch_wls1033\profiles\default\native;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\native\win\x64;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\bin;C:\Oracle\MIDDLE~1\modules\ORGAPA~1.1\bin;C:\PROGRA~1\Java\JDK16~1.0_2\jre\bin;C:\PROGRA~1\Java\JDK16~1.0_2\bin;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\native\win\x64;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\bin;C:\PROGRA~1\Java\JDK16~1.0_2\jre\bin;C:\PROGRA~1\Java\JDK16~1.0_2\bin;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\native\win\x64\oci920_8;C:\Oracle\product\11.2.0\client_1\bin;C:\Oracle\product\11.2.0\client32\bin;C:\Oracle\Middleware\FORMS\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\PROGRA~2\MICROF~1\NETEXP~1.1\Base\Bin\WIN64;C:\Oracle\Middleware\oracle_common\bin;C:\MinGW\mingw64\bin;c:\PROGRA~2\Adobe\READER~1.0\Reader;C:\Program Files\ASCI\ActiveBatchV8\;C:\Oracle\Middleware\FORMS\opmn\bin;C:\Oracle\Middleware\FORMS\opmn\lib;C:\Oracle\Middleware\FORMS\perl\bin;C:\Oracle\Middleware\FORMS\OPatch;;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\native\win\x64\oci920_8
    * To start WebLogic Server, use a username and *
    * password assigned to an admin-level user. For *
    * server administration, use the WebLogic Server *
    * console at http:\\hostname:port\console *
    starting weblogic with Java version:
    java version "1.6.0_21"
    Java(TM) SE Runtime Environment (build 1.6.0_21-b07)
    Java HotSpot(TM) 64-Bit Server VM (build 17.0-b17, mixed mode)
    Starting WLS with line:
    C:\PROGRA~1\Java\JDK16~1.0_2\bin\java -client -Xms512m -Xmx512m -XX:MaxPermSize=512m -Dweblogic.Name=WLS_FORMS -Djava.security.policy=C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic.policy -Dweblogic.system.BootIdentityFile=C:\Oracle\Middleware\user_projects\domains\ClassicDomain\servers\WLS_FORMS\data\nodemanager\boot.properties -Dweblogic.nodemanager.ServiceEnabled=true -Dweblogic.security.SSL.ignoreHostnameVerification=false -Dweblogic.ReverseDNSAllowed=false -Xverify:none -da -Dplatform.home=C:\Oracle\MIDDLE~1\WLSERV~1.3 -Dwls.home=C:\Oracle\MIDDLE~1\WLSERV~1.3\server -Dweblogic.home=C:\Oracle\MIDDLE~1\WLSERV~1.3\server -Xms512m -Xmx1024m -XX:PermSize=256m -XX:MaxPermSize=512m -Doracle.home=C:\Oracle\Middleware\FORMS -Ddomain.home=C:\Oracle\Middleware\user_projects\domains\ClassicDomain -Xms256m -Xmx512m -XX:PermSize=256m -XX:MaxPermSize=512m -Djava.ext.dirs=C:\Oracle\Middleware\FORMS\jdk\jre\lib\ext -Doracle.security.jps.config=C:\Oracle\Middleware\user_projects\domains\ClassicDomain\config\fmwconfig\jps-config.xml -Doracle.home=C:\Oracle\Middleware\FORMS -Ddomain.home=C:\Oracle\Middleware\user_projects\domains\ClassicDomain -Doracle.instance=C:\Oracle\Middleware\Instance\Frm_Domain -Doracle.instance.name=Frm_Domain -Doracle.forms.weblogic=1 -Ddomain.name=ClassicDomain -Ddomain.home=C:\Oracle\MIDDLE~1\USER_P~1\domains\CLASSI~1 -Dcommon.components.home=C:\Oracle\MIDDLE~1\ORACLE~1 -Djrf.version=11.1.1 -Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.Jdk14Logger -Djrockit.optfile=C:\Oracle\MIDDLE~1\ORACLE~1\modules\oracle.jrf_11.1.1\jrocket_optfile.txt -Doracle.domain.config.dir=C:\Oracle\MIDDLE~1\USER_P~1\domains\CLASSI~1\config\FMWCON~1 -Doracle.server.config.dir=C:\Oracle\MIDDLE~1\USER_P~1\domains\CLASSI~1\config\FMWCON~1\servers\WLS_FORMS -Doracle.security.jps.config=C:\Oracle\MIDDLE~1\USER_P~1\domains\CLASSI~1\config\fmwconfig\jps-config.xml -Djava.protocol.handler.pkgs=oracle.mds.net.protocol -Digf.arisidbeans.carmlloc=C:\Oracle\MIDDLE~1\USER_P~1\domains\CLASSI~1\config\FMWCON~1\carml -Digf.arisidstack.home=C:\Oracle\MIDDLE~1\USER_P~1\domains\CLASSI~1\config\FMWCON~1\arisidprovider -Dweblogic.alternateTypesDirectory=C:\Oracle\MIDDLE~1\ORACLE~1\modules\oracle.ossoiap_11.1.1,C:\Oracle\MIDDLE~1\ORACLE~1\modules\oracle.oamprovider_11.1.1 -Dweblogic.jdbc.remoteEnabled=false -Dwc.oracle.home=C:\Oracle\Middleware\FORMS -Dclassic.oracle.home=C:\Oracle\Middleware\FORMS -Dem.oracle.home=C:\Oracle\Middleware\oracle_common -Djava.awt.headless=true -Dweblogic.management.discover=false -Dweblogic.management.server=http://192.168.200.166:7002 -Dwlw.iterativeDev= -Dwlw.testConsole= -Dwlw.logErrorsToConsole= -Dweblogic.ext.dirs=C:\Oracle\MIDDLE~1\patch_wls1033\profiles\default\sysext_manifest_classpath -Dweblogic.management.username=weblogic -Dweblogic.management.password=weblogic1 weblogic.Server
    <Feb 2, 2012 10:08:18 AM AST> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with Java HotSpot(TM) 64-Bit Server VM Version 17.0-b17 from Sun Microsystems Inc.>
    <Feb 2, 2012 10:08:20 AM AST> <Info> <Management> <BEA-141107> <Version: WebLogic Server 10.3.3.0 Fri Apr 9 00:05:28 PDT 2010 1321401 >
    <Feb 2, 2012 10:08:22 AM AST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
    <Feb 2, 2012 10:08:22 AM AST> <Info> <WorkManager> <BEA-002900> <Initializing self-tuning thread pool>
    <Feb 2, 2012 10:08:22 AM AST> <Notice> <Log Management> <BEA-170019> <The server log file C:\Oracle\Middleware\user_projects\domains\ClassicDomain\servers\WLS_FORMS\logs\WLS_FORMS.log is opened. All server side log events will be written to this file.>
    *<Feb 2, 2012 10:08:28 AM AST> <Error> <Security> <BEA-090870> <The realm "myrealm" failed to be loaded: weblogic.security.service.SecurityServiceException: com.bea.common.engine.ServiceInitializationException: javax.jdo.JDOFatalInternalException: Unexpected exception caught.*
    NestedThrowables:
    java.lang.reflect.InvocationTargetException.
    weblogic.security.service.SecurityServiceException: com.bea.common.engine.ServiceInitializationException: javax.jdo.JDOFatalInternalException: Unexpected exception caught.
    NestedThrowables:
    java.lang.reflect.InvocationTargetException
         at weblogic.security.service.CSSWLSDelegateImpl.initializeServiceEngine(CSSWLSDelegateImpl.java:342)
         at weblogic.security.service.CSSWLSDelegateImpl.initialize(CSSWLSDelegateImpl.java:221)
         at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.InitializeServiceEngine(CommonSecurityServiceManagerDelegateImpl.java:1783)
         at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.initializeRealm(CommonSecurityServiceManagerDelegateImpl.java:442)
         at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.loadRealm(CommonSecurityServiceManagerDelegateImpl.java:840)
         Truncated. see log file for complete stacktrace
    Caused By: com.bea.common.engine.ServiceInitializationException: javax.jdo.JDOFatalInternalException: Unexpected exception caught.
    NestedThrowables:
    java.lang.reflect.InvocationTargetException
         at com.bea.common.engine.internal.ServiceEngineImpl.findOrStartService(ServiceEngineImpl.java:365)
         at com.bea.common.engine.internal.ServiceEngineImpl.findOrStartService(ServiceEngineImpl.java:315)
         at com.bea.common.engine.internal.ServiceEngineImpl.lookupService(ServiceEngineImpl.java:257)
         at com.bea.common.engine.internal.ServicesImpl.getService(ServicesImpl.java:72)
         at weblogic.security.service.internal.WLSIdentityServiceImpl.initialize(WLSIdentityServiceImpl.java:47)
         Truncated. see log file for complete stacktrace
    Caused By: javax.jdo.JDOFatalInternalException: Unexpected exception caught.
    NestedThrowables:
    java.lang.reflect.InvocationTargetException
         at javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java:549)
         at com.bea.common.security.storeservice.util.StoreServiceDelegate.initJDO(StoreServiceDelegate.java:149)
         at com.bea.common.security.storeservice.util.StoreServiceDelegate.<init>(StoreServiceDelegate.java:98)
         at com.bea.common.security.internal.service.StoreServiceImpl.init(StoreServiceImpl.java:76)
         at com.bea.common.engine.internal.ServiceEngineImpl.findOrStartService(ServiceEngineImpl.java:363)
         Truncated. see log file for complete stacktrace
    Caused By: java.lang.reflect.InvocationTargetException
         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 javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java:534)
         Truncated. see log file for complete stacktrace
    Caused By: <openjpa-1.1.1-SNAPSHOT-r422266:891341 fatal internal error> org.apache.openjpa.util.InternalException: There was an error when invoking the static getInstance method on the named factory class "org.apache.openjpa.abstractstore.AbstractStoreBrokerFactory". See the nested exception for details.
         at org.apache.openjpa.kernel.Bootstrap.getBrokerFactory(Bootstrap.java:95)
         at kodo.jdo.PersistenceManagerFactoryImpl.getPersistenceManagerFactory(PersistenceManagerFactoryImpl.java:41)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         Truncated. see log file for complete stacktrace
    Caused By: java.lang.OutOfMemoryError: Java heap space
         at java.util.Arrays.copyOf(Arrays.java:2734)
         at java.util.ArrayList.ensureCapacity(ArrayList.java:167)
         at java.util.ArrayList.add(ArrayList.java:351)
         at org.apache.openjpa.conf.CacheMarshallerImpl.setInputUrlFromResourceLocation(CacheMarshallerImpl.java:226)
         at org.apache.openjpa.conf.CacheMarshallerImpl.endConfiguration(CacheMarshallerImpl.java:207)
         Truncated. see log file for complete stacktrace
    >
    <Feb 2, 2012 10:08:28 AM AST> <Notice> <Security> <BEA-090082> <Security initializing using security realm myrealm.>
    <Feb 2, 2012 10:08:28 AM AST> <Critical> <WebLogicServer> <BEA-000362> <Server failed. Reason:
    There are 1 nested errors:
    weblogic.security.service.SecurityServiceRuntimeException: [Security:090399]Security Services Unavailable
         at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.doBootAuthorization(CommonSecurityServiceManagerDelegateImpl.java:916)
         at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.initialize(CommonSecurityServiceManagerDelegateImpl.java:1050)
         at weblogic.security.service.SecurityServiceManager.initialize(SecurityServiceManager.java:875)
         at weblogic.security.SecurityService.start(SecurityService.java:141)
         at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    >
    <Feb 2, 2012 10:08:28 AM AST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FAILED>
    <Feb 2, 2012 10:08:28 AM AST> <Error> <WebLogicServer> <BEA-000383> <A critical service failed. The server will shut itself down>
    <Feb 2, 2012 10:08:28 AM AST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FORCE_SHUTTING_DOWN>
    <Feb 2, 2012 10:08:29 AM> <FINEST> <NodeManager> <Waiting for the process to die: 3140>
    <Feb 2, 2012 10:08:29 AM> <INFO> <NodeManager> <Server failed during startup so will not be restarted>
    <Feb 2, 2012 10:08:29 AM> <FINEST> <NodeManager> <runMonitor returned, setting finished=true and notifying waiters>

Maybe you are looking for

  • ERS PO

    Hello, If I am checking a PO as ERS , the terms of payment along with tax code is mandatory ? regards NBanu

  • COunt no of rows  of  all the tables

    hai Pls tell me COunt no of rows of all the tables in the user SOP Output like this Tablename rows sen 31 van 45 etc pls help S

  • List of employees with a wage type

    Hi, Is there a way of finding the list of employees who have a particular wage type? thank you r s

  • About pkgadd error

    when i're install packages , system report: pkgadd error :no packages found in <dir > used command: #pkgadd -d . or #pkgadd -d <dir > pkgname

  • Blank row in excel

    Hi Experts, while uploading an excel sheet having data from my system in a context node, i m getting a blank row in the node. But my requiremenet is , if there is any blank row in the excel sheet then it shuld not get into the context nodei.e while p