Compiling with jdk1.3
I have not been able to compile test programs with jdk1.3. Mostly I get "Bad Command or File name".
E.G., "C:\J21work>javac Ellsworth.java
Bad command or file name "
among quite a number of attempts to set AUTOEXEC.BAT right
are
"PATH C:\jdk1.3\bin; %PATH%
@SET CLASSPATH=;C:\jdk1.3\lib\tools.jar; %CLASSPATH%"
and
SET PATH=%PATH%;%JAVAHOME%\BIN
PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;C:\JDK\BIN;
any advice?
Gordon GOdbersen
[email protected]
Forget about autoexec.bat for a while..
it is one way to do it..
other way is:
on DOS prompt type:
1. edit abc.bat (abc is just a name, it can be anything except a DOS command)
2.in this file - abc.bat write:
set path=c:\jdk1.3\bin
set classpath=c:\Name of the directory where your class files reside, if yourfile.class is in c:\temp, write c:\temp here...
3. save this file
4. type abc, don't type abc.bat on DOS prompt
5. u will see the path & classpath set as per your abc file..
you can edit this abc.bat anytime u want..
One more thing, when u exit DOS prompt and again
open it, u need to run ie type abc on DOS prompt again..
Hope this hepls !!
Mayur
I have not been able to compile test programs with
jdk1.3. Mostly I get "Bad Command or File name".
E.G., "C:\J21work>javac Ellsworth.java
Bad command or file name "
among quite a number of attempts to set AUTOEXEC.BAT
right
are
"PATH C:\jdk1.3\bin; %PATH%
@SET CLASSPATH=;C:\jdk1.3\lib\tools.jar; %CLASSPATH%"
and
SET PATH=%PATH%;%JAVAHOME%\BIN
PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;C:\JDK\BIN;
any advice?
Gordon GOdbersen
[email protected]
Similar Messages
-
Compiled with jdk1.3.1_01 and run under VM 2.0
I have compilied all my source code with jdk1.3.1_01 and ias6.0 sp3 uses jdk1.2.2 or 2.0VM....is this difference going to affect my application?
Hi,
It depends upon how your application is coded. If you use some of
the functionalities which JDK 1.2 uses and incase JDK 1.3 doesn't likes
that, you are likely to get errors. Infact, iAS encourages you to use
the JVM which is bundled along with iAS SP3 and using JDK apart from
that troubles. Please refer to my previous posting on iAS SP3 & JDK 1.3,
I've tested them, which threw lots of errors. Hope this helps.
Regards
Raj
Mansoor Quraishi wrote:
I have compilied all my source code with jdk1.3.1_01 and ias6.0 sp3
uses jdk1.2.2 or 2.0VM....is this difference going to affect my
application?
Try our New Web Based Forum at http://softwareforum.sun.com
Includes Access to our Product Knowledge Base! -
Compiling with jdk1.4.beta2
i have my project running with jdk.1.3.1, but i want to compiler it in 1.4 beta2 ant i haven't sucess because a class have the error:
Error: (0) initialization error: class Error const *; class file has wrong version 48.0, should be 45.3 or 46.0.
Why this?
i don't know if it's configuration's problem
Thank you for your help.jquattro -
How did you get jsdk1.4.0 to work with JDeveloper 9i?
That IS JDeveloper3.2.3 right? I'm also using it and
recently upgraded from jdk1.3.1 to jsdk1.4.0 and get
the same "wrong version 48.0" error that everyone
else seems to be getting... Can you describe the
steps you took to get you're setup working properly??
It would be GREATLY appreciated!!!!
Thanks!JDev 3.2.3 and JDev 9i are NOT the same thing. Oracle maintains separate lists of functionality for the two products, so I am guessing that they are different.
http://otn.oracle.com/products/jdev/htdocs/jdev323oc4j.html -
Is there any change in the constant pool entires with JDK1.4?
Hi,
Here is my simple java class,
class Base
String manuf = "MRF";
class Derived extends Base
Derived() {
manuf = "ABC";
After compiling this class with JDK 1.3 and JDK1.4, i could see the difference in constant pool entries
so please let me know more about these cahnges.
P.S. : written a java program TClass.java to browse the constant pool entries.
i.e if compiled with JDK1.3 , constant pool entries looks as follows,
E:\bugs\jdk1.4\pramila>java TClass E:\bugs\jdk1.4\pramila\Derived.class
There are 21 + 1 entries in the Constant Pool:
Index Tag Reference(s)/Value(s)
1 10 5 15
2 8 16
3 9 5 17
4 7 18
5 7 19
6 1 <init>
7 1 ()V
8 1 Code
9 1 LineNumberTable
10 1 LocalVariableTable
11 1 this
12 1 LDerived;
13 1 SourceFile
14 1 Test.java
15 12 6 7
16 1 ABC
17 12 20 21
18 1 Derived
19 1 Base
20 1 manuf
21 1 Ljava/lang/String;
There are 1 methods:
Code array in method <init> of length 11 starting at byte 231.
If compiled with JDK1.4 constant pool entries looks as follows,
E:\bugs\jdk1.4\pramila>java TClass E:\bugs\jdk1.4\pramila\Derived.class
There are 21 + 1 entries in the Constant Pool:
Index Tag Reference(s)/Value(s)
1 10 5 15
2 8 16
3 9 4 17
4 7 18
5 7 19
6 1 <init>
7 1 ()V
8 1 Code
9 1 LineNumberTable
10 1 LocalVariableTable
11 1 this
12 1 LDerived;
13 1 SourceFile
14 1 Test.java
15 12 6 7
16 1 ABC
17 12 20 21
18 1 Derived
19 1 Base
20 1 manuf
21 1 Ljava/lang/String;
There are 1 methods:
Code array in method <init> of length 11 starting at byte 231.
There is a change in the index 3 can be noticed.
i.e
with JDK1.3 it is "3 9 5 17"
with JDK1.4 it is "3 9 4 17"
Thanks in advance.
Pramilajavac v1.4 emits by default Java 1.2 compatible .class files while all javac implementations since between 1.1.0 and 1.3.1 emit byte default Java 1.1 .class files.
Check to see what effect using the -target option in javac to get the two versions to produce Java 1.1, 1.2, or 1.3 .class files.
Chuck -
Can anybody tell me the problem with this code when compiled in jdk1.4
Can anybody help me find out the error in this code.
Try to drag a file from your desktop and drop it on the first textpane on my GUI. Then try to drag another file. This time the dragdrop event handler throws a null pointer exception. This happened when I compiled the code with jdk1.4. With jdk1.3 it is working fine. Actually, I need jdk1.4 to get the systemicons for the files I drop on my desktop.
/* Client.java*/
import java.util.Vector;
import java.util.Enumeration;
import java.util.Arrays;
import java.awt.*;
import java.awt.event.*;
import java.rmi.*;
import java.rmi.server.*;
import javax.swing.*;
import javax.swing.tree.*;
import javax.swing.filechooser.*;
import java.io.*;
import java.awt.dnd.*;
import java.awt.datatransfer.*;
import java.util.Iterator;
import javax.swing.plaf.*;
import javax.swing.plaf.basic.*;
import java.util.Hashtable;
import javax.swing.text.*;
import javax.swing.event.*;
public class Client extends JFrame{
static String newline = System.getProperty("line.separator");
static Client client;
//ServerInterface server;
//ClientProperties clp;
Vector v1=new Vector();
ByteArrayOutputStream out;
Runtime r1;
//file objects,together with array of bytes
Hashtable files=new Hashtable(); //files sent
Hashtable rfiles=new Hashtable(); //files received
//file objects,together with button handlers
Hashtable hfiles=new Hashtable(); //files sent,files received
JButton button1=new JButton();
JButton button2=new JButton();
JButton button3=new JButton();
JLabel label1=new JLabel();
JLabel label2=new JLabel();
JLabel label3=new JLabel();
JLabel label4=new JLabel();
JLabel label5=new JLabel();
JLabel label6=new JLabel();
JLabel label7=new JLabel();
JLabel label8=new JLabel();
JOptionPane dialog=new JOptionPane();
JFileChooser chooser = new JFileChooser();
JPanel panel1;
JPanel panel2;
DropTarget dtarget;
DragSource dsource;
JTextPane textArea1=new JTextPane();
TextArea textArea2=new TextArea();
JTextPane textpanel=new JTextPane();
Style defstyle,style;
StyledDocument doc,doc1;
JPopupMenu popup;
JTree tree;
JScrollPane jsppane;
JScrollPane jsp,jsp2;
DefaultMutableTreeNode top;
Container cp;
private String toalias;
private String togroup;
private String fromalias;
private String fromgroup;
private boolean CONNECT;
public Client()
cp=getContentPane();
cp.setLayout(null);
setForeground(java.awt.Color.red);
setFont(new Font("Dialog", Font.PLAIN, 14));
setVisible(false);
label1.setText(" CHAT APPLICATION");
cp.add(label1);
label1.setFont(new Font("Dialog", Font.BOLD, 16));
label1.setBounds(72,20,319,30);
label2.setText("List of Users Connected.");
cp.add(label2);
label2.setForeground(java.awt.Color.blue);
label2.setFont(new Font("Dialog", Font.BOLD, 12));
label2.setBounds(24,60,192,26);
label8.setBounds(280,60,100,26);
cp.add(label8);
cp.add(textArea2);
textArea2.setBounds(204,120,268,90);
jsppane=new JScrollPane(textArea1);
doc1=textArea1.getStyledDocument();
jsppane.setBounds(12,264,456,109);
cp.add(jsppane);
label3.setText("TO::");
cp.add(label3);
label3.setFont(new Font("Dialog", Font.BOLD, 12));
label3.setBounds(12,228,36,20);
cp.add(label4);
label4.setBackground(java.awt.Color.lightGray);
label4.setBounds(60,228,172,19);
label5.setText("SERVER RESPONSE");
cp.add(label5);
label5.setFont(new Font("Dialog", Font.BOLD, 12));
label5.setBounds(204,96,204,21);
label7.setText("MESSAGE FOR YOU.");
cp.add(label7);
label7.setFont(new Font("Dialog", Font.BOLD, 14));
label7.setBounds(12,371,288,25);
jsp2=new JScrollPane(textpanel);
setTextPaneStyle();
jsp2.setBounds(12,401,456,109);
cp.add(jsp2);
button1.setLabel("Send");
button1.setEnabled(false);
cp.add(button1);
button1.setBackground(java.awt.Color.lightGray);
button1.setForeground(java.awt.Color.black);
button1.setFont(new Font("Dialog", Font.BOLD|Font.ITALIC, 10));
button1.setBounds(60,520,78,36);
button2.setLabel("Attach");
//button2.setEnabled(false);
cp.add(button2);
button2.setBackground(java.awt.Color.lightGray);
button2.setForeground(java.awt.Color.black);
button2.setFont(new Font("Dialog", Font.BOLD|Font.ITALIC, 10));
button2.setBounds(180,520,72,36);
button3.setLabel("Connect");
cp.add(button3);
button3.setBackground(java.awt.Color.lightGray);
button3.setForeground(java.awt.Color.black);
button3.setFont(new Font("Dialog", Font.BOLD|Font.ITALIC, 10));
button3.setBounds(288,520,72,33);
setSize(500,620);
show();
addWindowListener(new WindowEventHandler());
button1.addActionListener(new ButtonHandler());
button2.addActionListener(new ButtonHandler());
button3.addActionListener(new ButtonHandler());
textArea1.addContainerListener(new ComponentHandler());
dtarget=new DropTarget(textArea1,new DragDropHandler());
textArea2.setEnabled(false);
textpanel.setEnabled(false);
r1=Runtime.getRuntime();
r1.addShutdownHook(new onshutdown());
addMenu();
cp.repaint();
//adds attachments to the textArea1
synchronized private void addAttach(java.util.List fileList)
Iterator iterator=fileList.iterator();
JButton bw;
while(iterator.hasNext())
File file=(File)iterator.next();
Icon icon=chooser.getIcon(file);
bw=new JButton(icon);
bw.setBackground(java.awt.Color.gray);
bw.setToolTipText(file.getAbsolutePath());
bw.addMouseListener(new AttachmentHandler());
Dimension d1=new Dimension(icon.getIconWidth(),icon.getIconHeight());
bw.setMaximumSize(d1);
hfiles.put(bw,file);
textArea1.insertComponent(bw);
textArea1.setCaretPosition(doc1.getLength());
bw.setSize(icon.getIconWidth(),icon.getIconHeight());
//only one file at a time
break;
cp.repaint();
public void setAudioStream(ByteArrayOutputStream out)
this.out=out;
private void addMenu()
JMenuBar mbar=new JMenuBar();
mbar.setVisible(true);
mbar.setBounds(0,0,500,20);
mbar.setBackground(java.awt.Color.gray);
//first menu
JMenu m1=new JMenu("Connection");
m1.setBounds(0,0,80,20);
m1.setBackground(java.awt.Color.gray);
JMenuItem mitem1=new JMenuItem("Connect");
JMenuItem mitem2=new JMenuItem("Disconnect");
m1.add(mitem1);
m1.add(mitem2);
mitem1.addActionListener(new ButtonHandler());
mitem2.addActionListener(new ButtonHandler());
mbar.add(m1);
//second menu
JMenu m2=new JMenu("Send...");
m2.setBounds(90,0,80,20);
m2.setBackground(java.awt.Color.gray);
JMenuItem mitem3=new JMenuItem("Send");
JMenuItem mitem4=new JMenuItem("Send with Audio...");
mitem3.addActionListener(new ButtonHandler());
mitem4.addActionListener(new ButtonHandler());
m2.add(mitem3);
m2.add(mitem4);
mbar.add(m2);
cp.add(mbar);
private void setTextPaneStyle()
StyleContext stylecontext =StyleContext.getDefaultStyleContext();
defstyle=stylecontext.getStyle(StyleContext.DEFAULT_STYLE);
doc= textpanel.getStyledDocument();
//style 1
style= textpanel.addStyle("bold",defstyle);
StyleConstants.setBackground(style,Color.white);
StyleConstants.setForeground(style,Color.blue);
StyleConstants.setItalic(style, false);
StyleConstants.setBold(style, true);
StyleConstants.setFontSize(style,16);
//style 2
style= textpanel.addStyle("normal",defstyle);
StyleConstants.setBackground(style,Color.white);
StyleConstants.setForeground(style,Color.black);
StyleConstants.setItalic(style, false);
StyleConstants.setBold(style, false);
StyleConstants.setFontSize(style,14);
//style3
style= textpanel.addStyle("attach",defstyle);
StyleConstants.setBackground(style,Color.white);
StyleConstants.setForeground(style,Color.red);
StyleConstants.setItalic(style, true);
StyleConstants.setBold(style, false);
StyleConstants.setFontSize(style,12);
//remote method called by server
public void addClient(String alias,String group,JTree tree)
//if old client remove old tree
if(!alias.equals(""))
cp.remove(this.jsp);
//add new tree
this.tree=tree;
setTreeModel();
getSound(2);
if(!alias.equals(""))
textArea2.append("\nNew Client:" + alias + "has joined");
else
textArea2.append("\nYou have been connected to the Server.");
jsp=new JScrollPane(this.tree);
jsp.setBounds(12,96,168,120);
jsp.setBackground(java.awt.Color.lightGray);
cp.add(jsp);
this.tree.addMouseListener(new MouseHandler());
//remote method called by server
public void sendMessage(String str,Hashtable rfiles,String alias,String group) throws RemoteException
receiveMessage(str,rfiles,alias,group);
//remote method called by server
public void removeClient(JTree tree,String alias,String group) throws RemoteException
cp.remove(this.jsp);
this.tree=tree;
setTreeModel();
getSound(3);
jsp=new JScrollPane(this.tree);
jsp.setBounds(12,96,168,120);
jsp.setBackground(java.awt.Color.lightGray);
cp.add(jsp);
this.tree.addMouseListener(new MouseHandler());
textArea2.append("\nClient:" + alias + "has disconnected");
private void receiveMessage(String str,Hashtable rfiles,String alias,String group)
boolean flag=true;
UIManager.put("JFrame.activeTitleBackground", new Color(64,128,255));
UIManager.put("JFrame.activeTitleForeground", Color.white);
UIManager.put("JFrame.inactiveTitleBackground", new Color(128,128,128));
UIManager.put("JFrame.inactiveTitleForeground", Color.black);
SwingUtilities.updateComponentTreeUI(this);
try{
if(alias.equals(""))
doc.insertString(doc.getLength(),"CHATMASTER>>",textpanel.getStyle("bold"));
doc.insertString(doc.getLength(),str+ newline,textpanel.getStyle("normal"));
else
doc.insertString(doc.getLength(),alias + "@" + group + ">>",textpanel.getStyle("bold"));
doc.insertString(doc.getLength(),str,textpanel.getStyle("normal"));
//add files to textpanel
if(rfiles!=null && rfiles.size()>0)
doc.insertString(doc.getLength(),newline+"Attachments>>",textpanel.getStyle("attach"));
showattach(rfiles);
addtoList(rfiles);
doc.insertString(doc.getLength(),newline,textpanel.getStyle("normal"));
catch(Exception e)
e.printStackTrace();
dialog.showMessageDialog(client,e.toString(),"Error:ChatApplication",JOptionPane.ERROR_MESSAGE);
cp.repaint();
protected boolean ContactServer(String alias,String servername,String group)
try{
//UnicastRemoteObject.exportObject(this);
//server=(ServerInterface)Naming.lookup("//gpt02d05:5500/" + servername);
// server.notifyMe(this,alias,group);
//change the settings of buttons
button1.setEnabled(true);
button2.setEnabled(true);
button3.setLabel("Disconnect");
label8.setVisible(true);
label8.setText(" Welcome::" + alias);
//putting values of alias and group for sending messages
fromalias=alias;
fromgroup=group;
CONNECT=true;
return true;
catch(UnsupportedOperationException e)
dialog.showMessageDialog(client,"Client with the Same Alias in " + group + " already exists","Error:ChatApplication",JOptionPane.ERROR_MESSAGE);
try{
// UnicastRemoteObject.unexportObject(client,true);
catch(Exception ev){System.out.println(ev.toString());}
catch(Exception e)
dialog.showMessageDialog(client,"Unable to connect to Server","Error:ChatApplication",JOptionPane.ERROR_MESSAGE);
try{
// UnicastRemoteObject.unexportObject(client,true);
catch(Exception ev){System.out.println(ev.toString());}
return false;
public static void main(String args[]) throws RemoteException{
client=new Client();
}//main ends
public void getSound(int count)
Toolkit t1=getToolkit();
for(int i=0;i<count;i++)
t1.beep();
try{
Thread.sleep(500);
catch(Exception e){}
public void setTreeModel()
ImageIcon i1=new ImageIcon("Lock.gif","No Users");
ImageIcon i2=new ImageIcon("Connec.gif","Users in Group");
ImageIcon i3=new ImageIcon("authorbn.gif","An User");
DefaultTreeCellRenderer dr1= new DefaultTreeCellRenderer();
dr1.setClosedIcon(i1);
dr1.setOpenIcon(i2);
dr1.setLeafIcon(i3);
dr1.setTextSelectionColor(java.awt.Color.red);
tree.setCellRenderer(dr1);
//add received files to the list
private void addtoList(Hashtable rfiles)
Enumeration filelist=rfiles.keys();
while(filelist.hasMoreElements())
File file=(File)filelist.nextElement();
this.rfiles.put(file,rfiles.get(file));
//show the attachments received
private void showattach(Hashtable rfiles)
Enumeration filelist=rfiles.keys();
dsource=DragSource.getDefaultDragSource();
JButton b1=null;
while(filelist.hasMoreElements())
File file=(File)filelist.nextElement();
Icon icon=chooser.getIcon(file);
b1=new JButton(icon);
b1.setBackground(java.awt.Color.gray);
b1.setToolTipText(file.getName());
b1.addMouseListener(new AttachmentHandler());
Dimension d1=new Dimension(icon.getIconWidth(),icon.getIconHeight());
b1.setMaximumSize(d1);
hfiles.put(b1,file);
textpanel.setCaretPosition(doc.getLength());
textpanel.insertComponent(b1);
b1.setSize(icon.getIconWidth(),icon.getIconHeight());
dsource.createDefaultDragGestureRecognizer(b1, DnDConstants.ACTION_COPY_OR_MOVE,new DragGestureHandler());
cp.repaint();
private void savefile(File file,Object parent)
//ExtensionFileFilter filter = new ExtensionFileFilter(false);
//filter.addExtension("txt",true);
//chooser.setFileFilter(filter);
int returnVal = chooser.showSaveDialog(client);
if(returnVal ==JFileChooser.APPROVE_OPTION)
try{
FileOutputStream fstream=new FileOutputStream(chooser.getSelectedFile());
//decide whether the file received or sent is to be saved
if(((Container)parent).equals(textArea1))
fstream.write((byte[])files.get(file));
else
fstream.write((byte[])rfiles.get(file));
fstream.close();
System.out.println(file.getName());
catch(Exception e)
{System.out.println(e.toString()); }
private void openfile(File file,Object parent)
File tempfile=null;
try{
String fname=file.getName();
tempfile=File.createTempFile("temp",fname.substring(fname.lastIndexOf(".")));
FileOutputStream fstream=new FileOutputStream(tempfile);
System.out.println(tempfile.getAbsolutePath());
//decide whether the file received or sent is to be saved
if(((Container)parent).equals(textArea1))
fstream.write((byte[])files.get(file));
else
fstream.write((byte[])rfiles.get(file));
fstream.close();
catch(Exception e){System.out.println(e.toString());}
try{
Process p1=r1.exec("cmd /c start " + tempfile.getAbsolutePath());
p1.waitFor();
catch(Exception e){System.out.println(e.toString());}
//inner classes
class ComponentHandler implements ContainerListener{
public void componentRemoved(ContainerEvent ev)
Container cont=(Container)ev.getChild();
if(cont.getComponentCount()>0)
JButton but=(JButton)cont.getComponent(0);
files.remove((File)hfiles.get(but));
hfiles.remove(but);
public void componentAdded(ContainerEvent ev){}
class AttachmentHandler extends MouseAdapter{
public void mouseClicked(MouseEvent ev){
if(ev.getModifiers()==4)
Component comp=(Component)ev.getSource();
File file=(File)hfiles.get(comp);
popup=new JPopupMenu();
JMenuItem popopen=new JMenuItem("Open");
JMenuItem popsave=new JMenuItem("Save As..");
popup.add(popopen);
System.out.println(comp.getParent().getParent().getClass().toString());
popopen.addActionListener(new ButtonHandler(file,comp.getParent().getParent()));
popup.add(popsave);
popsave.addActionListener(new ButtonHandler(file,comp.getParent().getParent()));
popup.show(comp,12,12);
class DragGestureHandler extends Vector implements DragGestureListener,DragSourceListener,Transferable{
final static int FILE = 0;
final static int STRING = 1;
final static int PLAIN = 2;
DataFlavor flavors[] = {DataFlavor.javaFileListFlavor,DataFlavor.stringFlavor,DataFlavor.plainTextFlavor};
public void dragDropEnd(DragSourceDropEvent ev){}
public void dragEnter(DragSourceDragEvent ev){}
public void dragExit(DragSourceEvent ev){}
public void dragOver(DragSourceDragEvent ev){}
public void dropActionChanged(DragSourceDragEvent ev){}
public void dragGestureRecognized(DragGestureEvent ev)
System.out.println("recognized");
File file=(File)hfiles.get(ev.getComponent());
addElement(file);
ev.startDrag(DragSource.DefaultCopyDrop,this,this);
/* Returns the array of flavors in which it can provide the data. */
public synchronized DataFlavor[] getTransferDataFlavors() {
return flavors;
/* Returns whether the requested flavor is supported by this object. */
public boolean isDataFlavorSupported(DataFlavor flavor) {
boolean b = false;
b |=flavor.equals(flavors[FILE]);
b |= flavor.equals(flavors[STRING]);
b |= flavor.equals(flavors[PLAIN]);
return (b);
public synchronized Object getTransferData(DataFlavor flavor) throws UnsupportedFlavorException,IOException
if(flavor.equals(flavors[FILE])){return this;}
else if (flavor.equals(flavors[PLAIN])) {
return new StringReader(((File)elementAt(0)).getAbsolutePath());
} else if (flavor.equals(flavors[STRING])) {
return((File)elementAt(0)).getAbsolutePath();
} else {
throw new UnsupportedFlavorException(flavor);
//inner class for draging in the files on java frame
class DragDropHandler implements DropTargetListener{
public void dragEnter(DropTargetDragEvent ev){
public void dragExit(DropTargetEvent ev){
public void dragOver(DropTargetDragEvent ev){
public void drop(DropTargetDropEvent ev){
Transferable tf1=ev.getTransferable();
DataFlavor fl[]=ev.getCurrentDataFlavors();
if(ev.isDataFlavorSupported(DataFlavor.javaFileListFlavor))
ev.acceptDrop (DnDConstants.ACTION_COPY_OR_MOVE);
try{
java.util.List fileList = (java.util.List)tf1.getTransferData(DataFlavor.javaFileListFlavor);
Iterator iterator = fileList.iterator();
while (iterator.hasNext())
File file = (File)iterator.next();
if(file.isFile())
Icon icon=chooser.getIcon(file);
FileInputStream fstream=new FileInputStream(file);
int filedata=(new Double(file.length())).intValue();
byte bytes[]=new byte[filedata];
fstream.read(bytes);
files.put(file,bytes);
ev.getDropTargetContext().dropComplete(true);
addAttach(fileList);
catch(Exception e)
{System.out.println(e.toString() + "here");}
public void dropActionChanged(DropTargetDragEvent ev){
class MouseHandler extends MouseAdapter{
public void mouseClicked(MouseEvent me)
TreePath tp=tree.getPathForLocation(me.getX(),me.getY());
if(tp!=null)
if(tp.getPathCount()==3)
toalias=tp.getPathComponent(2).toString();
togroup=tp.getPathComponent(1).toString();
System.out.println(toalias);
if (!(toalias.equals(fromalias) && togroup.equals(fromgroup)))
System.out.println("hh " + toalias);
label4.setText(tp.getPathComponent(2).toString() + "_@" + tp.getPathComponent(1).toString());
class ButtonHandler implements ActionListener{
private File file;
private Object parent;
//constructors
public ButtonHandler()
public ButtonHandler(File file,Object parent)
this.file=file;
this.parent=parent;
//other functions
public void actionPerformed(ActionEvent ev){
String s=ev.getActionCommand();
System.out.println(s);
if(s.equals("Send with Audio..."))
//Audio audio=new Audio(client,false,"CAPTURE");
if(s.equals("Disconnect"))
try{
// server.disconnect(client);
client.getSound(3);
cp.remove(jsp);
label6.setVisible(false);
//UnicastRemoteObject.unexportObject(client,true);
button3.setLabel("Connect");
textArea2.append("\nYou have been disconnected to Server");
client.repaint();
catch(Exception e)
System.out.println(e.toString());
if(s.equals("Connect"))
// clp=new ClientProperties(client,false);
if(s.equals("Save As.."))
savefile(file,parent);
if(s.equals("Open"))
openfile(file,parent);
if(s.equals("Attach"))
//ExtensionFileFilter filter = new ExtensionFileFilter(false);
//filter.addExtension(".txt",true);
//filter.setDescription("Text Files(.txt)");
// chooser.setFileFilter(filter);
chooser.setFileSelectionMode(JFileChooser.FILES_ONLY);
//chooser.setMultiSelectionEnabled(true);
int returnVal = chooser.showOpenDialog(client);
if(returnVal ==JFileChooser.APPROVE_OPTION)
//File fp[]=chooser.getSelectedFiles();
File fp[]=new File[1];
fp[0]=chooser.getSelectedFile();
int i=0;
while(i<fp.length)
try{
File file=fp;
Icon icon=chooser.getIcon(file);
FileInputStream fstream=new FileInputStream(file);
int filedata=(new Double(file.length())).intValue();
byte bytes[]=new byte[filedata];
fstream.read(bytes);
files.put(file,bytes);
catch(Exception e){dialog.showMessageDialog(client,e.toString(),"Error:ChatApplication",JOptionPane.ERROR_MESSAGE);
return; }
i++;
java.util.List fileList=Arrays.asList(fp);
addAttach(fileList);
if(s.equals("Send"))
try{
if(toalias==null)
dialog.showMessageDialog(client,"Select the Recepient First!!","Error:ChatApplication",JOptionPane.ERROR_MESSAGE);
return;
if(toalias!=null && togroup!=null && (!toalias.equals(fromalias)))
// server.sendMessage(textArea1.getText(),files,toalias,togroup,fromalias,fromgroup);
textArea1.setText("");
catch(Exception e)
e.printStackTrace();
}//if ends
class WindowEventHandler extends WindowAdapter{
public void windowClosing(WindowEvent ev){
try{
//server.disconnect(client);
client.getSound(3);
// UnicastRemoteObject.unexportObject(client,true);
catch(Exception e){System.out.println(e.toString());}
dispose();
private class onshutdown extends Thread{
public void run(){
try{
//server.disconnect(client);
//UnicastRemoteObject.unexportObject(client,true);
catch(Exception e){}
}//run endsHere is the working code :
There was an error line 724
File file=fp; -> File file=fp[0];
Several method were deprecated and try to replace the deprecated static field : DataFlavor.plainTextFlavor which was deprecated since 1.4.
/* Client.java*/
import java.util.*;
import java.awt.*;
import java.awt.event.*;
import java.rmi.*;
import java.rmi.server.*;
import javax.swing.*;
import javax.swing.tree.*;
import javax.swing.filechooser.*;
import java.io.*;
import java.awt.dnd.*;
import java.awt.datatransfer.*;
import javax.swing.plaf.*;
import javax.swing.plaf.basic.*;
import javax.swing.text.*;
import javax.swing.event.*;
public class Client extends JFrame{
static String newline = System.getProperty("line.separator");
static Client client;
//ServerInterface server;
//ClientProperties clp;
Vector v1=new Vector();
ByteArrayOutputStream out;
Runtime r1;
//file objects,together with array of bytes
Hashtable files=new Hashtable(); //files sent
Hashtable rfiles=new Hashtable(); //files received
//file objects,together with button handlers
Hashtable hfiles=new Hashtable(); //files sent,files received
JButton button1=new JButton();
JButton button2=new JButton();
JButton button3=new JButton();
JLabel label1=new JLabel();
JLabel label2=new JLabel();
JLabel label3=new JLabel();
JLabel label4=new JLabel();
JLabel label5=new JLabel();
JLabel label6=new JLabel();
JLabel label7=new JLabel();
JLabel label8=new JLabel();
JOptionPane dialog=new JOptionPane();
JFileChooser chooser = new JFileChooser();
JPanel panel1;
JPanel panel2;
DropTarget dtarget;
DragSource dsource;
JTextPane textArea1=new JTextPane();
TextArea textArea2=new TextArea();
JTextPane textpanel=new JTextPane();
Style defstyle,style;
StyledDocument doc,doc1;
JPopupMenu popup;
JTree tree;
JScrollPane jsppane;
JScrollPane jsp,jsp2;
DefaultMutableTreeNode top;
Container cp;
private String toalias;
private String togroup;
private String fromalias;
private String fromgroup;
private boolean CONNECT;
public Client()
cp=getContentPane();
cp.setLayout(null);
setForeground(java.awt.Color.red);
setFont(new Font("Dialog", Font.PLAIN, 14));
setVisible(false);
label1.setText(" CHAT APPLICATION");
cp.add(label1);
label1.setFont(new Font("Dialog", Font.BOLD, 16));
label1.setBounds(72,20,319,30);
label2.setText("List of Users Connected.");
cp.add(label2);
label2.setForeground(java.awt.Color.blue);
label2.setFont(new Font("Dialog", Font.BOLD, 12));
label2.setBounds(24,60,192,26);
label8.setBounds(280,60,100,26);
cp.add(label8);
cp.add(textArea2);
textArea2.setBounds(204,120,268,90);
jsppane=new JScrollPane(textArea1);
doc1=textArea1.getStyledDocument();
jsppane.setBounds(12,264,456,109);
cp.add(jsppane);
label3.setText("TO::");
cp.add(label3);
label3.setFont(new Font("Dialog", Font.BOLD, 12));
label3.setBounds(12,228,36,20);
cp.add(label4);
label4.setBackground(java.awt.Color.lightGray);
label4.setBounds(60,228,172,19);
label5.setText("SERVER RESPONSE");
cp.add(label5);
label5.setFont(new Font("Dialog", Font.BOLD, 12));
label5.setBounds(204,96,204,21);
label7.setText("MESSAGE FOR YOU.");
cp.add(label7);
label7.setFont(new Font("Dialog", Font.BOLD, 14));
label7.setBounds(12,371,288,25);
jsp2=new JScrollPane(textpanel);
setTextPaneStyle();
jsp2.setBounds(12,401,456,109);
cp.add(jsp2);
button1.setText("Send");
button1.setEnabled(false);
cp.add(button1);
button1.setBackground(java.awt.Color.lightGray);
button1.setForeground(java.awt.Color.black);
button1.setFont(new Font("Dialog", Font.BOLD|Font.ITALIC, 10));
button1.setBounds(60,520,78,36);
button2.setText("Attach");
//button2.setEnabled(false);
cp.add(button2);
button2.setBackground(java.awt.Color.lightGray);
button2.setForeground(java.awt.Color.black);
button2.setFont(new Font("Dialog", Font.BOLD|Font.ITALIC, 10));
button2.setBounds(180,520,72,36);
button3.setText("Connect");
cp.add(button3);
button3.setBackground(java.awt.Color.lightGray);
button3.setForeground(java.awt.Color.black);
button3.setFont(new Font("Dialog", Font.BOLD|Font.ITALIC, 10));
button3.setBounds(288,520,72,33);
setSize(500,620);
show();
addWindowListener(new WindowEventHandler());
button1.addActionListener(new ButtonHandler());
button2.addActionListener(new ButtonHandler());
button3.addActionListener(new ButtonHandler());
textArea1.addContainerListener(new ComponentHandler());
dtarget=new DropTarget(textArea1,new DragDropHandler());
textArea2.setEnabled(false);
textpanel.setEnabled(false);
r1=Runtime.getRuntime();
r1.addShutdownHook(new onshutdown());
addMenu();
cp.repaint();
//adds attachments to the textArea1
synchronized private void addAttach(java.util.List fileList)
Iterator iterator=fileList.iterator();
JButton bw;
while(iterator.hasNext())
File file=(File)iterator.next();
Icon icon=chooser.getIcon(file);
bw=new JButton(icon);
bw.setBackground(java.awt.Color.gray);
bw.setToolTipText(file.getAbsolutePath());
bw.addMouseListener(new AttachmentHandler());
Dimension d1=new Dimension(icon.getIconWidth(),icon.getIconHeight());
bw.setMaximumSize(d1);
hfiles.put(bw,file);
textArea1.insertComponent(bw);
textArea1.setCaretPosition(doc1.getLength());
bw.setSize(icon.getIconWidth(),icon.getIconHeight());
//only one file at a time
break;
cp.repaint();
public void setAudioStream(ByteArrayOutputStream out)
this.out=out;
private void addMenu()
JMenuBar mbar=new JMenuBar();
mbar.setVisible(true);
mbar.setBounds(0,0,500,20);
mbar.setBackground(java.awt.Color.gray);
//first menu
JMenu m1=new JMenu("Connection");
m1.setBounds(0,0,80,20);
m1.setBackground(java.awt.Color.gray);
JMenuItem mitem1=new JMenuItem("Connect");
JMenuItem mitem2=new JMenuItem("Disconnect");
m1.add(mitem1);
m1.add(mitem2);
mitem1.addActionListener(new ButtonHandler());
mitem2.addActionListener(new ButtonHandler());
mbar.add(m1);
//second menu
JMenu m2=new JMenu("Send...");
m2.setBounds(90,0,80,20);
m2.setBackground(java.awt.Color.gray);
JMenuItem mitem3=new JMenuItem("Send");
JMenuItem mitem4=new JMenuItem("Send with Audio...");
mitem3.addActionListener(new ButtonHandler());
mitem4.addActionListener(new ButtonHandler());
m2.add(mitem3);
m2.add(mitem4);
mbar.add(m2);
cp.add(mbar);
private void setTextPaneStyle()
StyleContext stylecontext =StyleContext.getDefaultStyleContext();
defstyle=stylecontext.getStyle(StyleContext.DEFAULT_STYLE);
doc= textpanel.getStyledDocument();
//style 1
style= textpanel.addStyle("bold",defstyle);
StyleConstants.setBackground(style,Color.white);
StyleConstants.setForeground(style,Color.blue);
StyleConstants.setItalic(style, false);
StyleConstants.setBold(style, true);
StyleConstants.setFontSize(style,16);
//style 2
style= textpanel.addStyle("normal",defstyle);
StyleConstants.setBackground(style,Color.white);
StyleConstants.setForeground(style,Color.black);
StyleConstants.setItalic(style, false);
StyleConstants.setBold(style, false);
StyleConstants.setFontSize(style,14);
//style3
style= textpanel.addStyle("attach",defstyle);
StyleConstants.setBackground(style,Color.white);
StyleConstants.setForeground(style,Color.red);
StyleConstants.setItalic(style, true);
StyleConstants.setBold(style, false);
StyleConstants.setFontSize(style,12);
//remote method called by server
public void addClient(String alias,String group,JTree tree)
//if old client remove old tree
if(!alias.equals(""))
cp.remove(this.jsp);
//add new tree
this.tree=tree;
setTreeModel();
getSound(2);
if(!alias.equals(""))
textArea2.append("\nNew Client:" + alias + "has joined");
else
textArea2.append("\nYou have been connected to the Server.");
jsp=new JScrollPane(this.tree);
jsp.setBounds(12,96,168,120);
jsp.setBackground(java.awt.Color.lightGray);
cp.add(jsp);
this.tree.addMouseListener(new MouseHandler());
//remote method called by server
public void sendMessage(String str,Hashtable rfiles,String alias,String group) throws RemoteException
receiveMessage(str,rfiles,alias,group);
//remote method called by server
public void removeClient(JTree tree,String alias,String group) throws RemoteException
cp.remove(this.jsp);
this.tree=tree;
setTreeModel();
getSound(3);
jsp=new JScrollPane(this.tree);
jsp.setBounds(12,96,168,120);
jsp.setBackground(java.awt.Color.lightGray);
cp.add(jsp);
this.tree.addMouseListener(new MouseHandler());
textArea2.append("\nClient:" + alias + "has disconnected");
private void receiveMessage(String str,Hashtable rfiles,String alias,String group)
boolean flag=true;
UIManager.put("JFrame.activeTitleBackground", new Color(64,128,255));
UIManager.put("JFrame.activeTitleForeground", Color.white);
UIManager.put("JFrame.inactiveTitleBackground", new Color(128,128,128));
UIManager.put("JFrame.inactiveTitleForeground", Color.black);
SwingUtilities.updateComponentTreeUI(this);
try{
if(alias.equals(""))
doc.insertString(doc.getLength(),"CHATMASTER>>",textpanel.getStyle("bold"));
doc.insertString(doc.getLength(),str+ newline,textpanel.getStyle("normal"));
else
doc.insertString(doc.getLength(),alias + "@" + group + ">>",textpanel.getStyle("bold"));
doc.insertString(doc.getLength(),str,textpanel.getStyle("normal"));
//add files to textpanel
if(rfiles!=null && rfiles.size()>0)
doc.insertString(doc.getLength(),newline+"Attachments>>",textpanel.getStyle("attach"));
showattach(rfiles);
addtoList(rfiles);
doc.insertString(doc.getLength(),newline,textpanel.getStyle("normal"));
catch(Exception e)
e.printStackTrace();
dialog.showMessageDialog(client,e.toString(),"Error:ChatApplication",JOptionPane.ERROR_MESSAGE);
cp.repaint();
protected boolean ContactServer(String alias,String servername,String group)
try{
//UnicastRemoteObject.exportObject(this);
//server=(ServerInterface)Naming.lookup("//gpt02d05:5500/" + servername);
// server.notifyMe(this,alias,group);
//change the settings of buttons
button1.setEnabled(true);
button2.setEnabled(true);
button3.setText("Disconnect");
label8.setVisible(true);
label8.setText(" Welcome::" + alias);
//putting values of alias and group for sending messages
fromalias=alias;
fromgroup=group;
CONNECT=true;
return true;
catch(UnsupportedOperationException e)
dialog.showMessageDialog(client,"Client with the Same Alias in " + group + " already exists","Error:ChatApplication",JOptionPane.ERROR_MESSAGE);
try{
// UnicastRemoteObject.unexportObject(client,true);
catch(Exception ev){System.out.println(ev.toString());}
catch(Exception e)
dialog.showMessageDialog(client,"Unable to connect to Server","Error:ChatApplication",JOptionPane.ERROR_MESSAGE);
try{
// UnicastRemoteObject.unexportObject(client,true);
catch(Exception ev){System.out.println(ev.toString());}
return false;
public static void main(String args[]) throws RemoteException{
client=new Client();
}//main ends
public void getSound(int count)
Toolkit t1=getToolkit();
for(int i=0;i<count;i++)
t1.beep();
try{
Thread.sleep(500);
catch(Exception e){}
public void setTreeModel()
ImageIcon i1=new ImageIcon("Lock.gif","No Users");
ImageIcon i2=new ImageIcon("Connec.gif","Users in Group");
ImageIcon i3=new ImageIcon("authorbn.gif","An User");
DefaultTreeCellRenderer dr1= new DefaultTreeCellRenderer();
dr1.setClosedIcon(i1);
dr1.setOpenIcon(i2);
dr1.setLeafIcon(i3);
dr1.setTextSelectionColor(java.awt.Color.red);
tree.setCellRenderer(dr1);
//add received files to the list
private void addtoList(Hashtable rfiles)
Enumeration filelist=rfiles.keys();
while(filelist.hasMoreElements())
File file=(File)filelist.nextElement();
this.rfiles.put(file,rfiles.get(file));
//show the attachments received
private void showattach(Hashtable rfiles)
Enumeration filelist=rfiles.keys();
dsource=DragSource.getDefaultDragSource();
JButton b1=null;
while(filelist.hasMoreElements())
File file=(File)filelist.nextElement();
Icon icon=chooser.getIcon(file);
b1=new JButton(icon);
b1.setBackground(java.awt.Color.gray);
b1.setToolTipText(file.getName());
b1.addMouseListener(new AttachmentHandler());
Dimension d1=new Dimension(icon.getIconWidth(),icon.getIconHeight());
b1.setMaximumSize(d1);
hfiles.put(b1,file);
textpanel.setCaretPosition(doc.getLength());
textpanel.insertComponent(b1);
b1.setSize(icon.getIconWidth(),icon.getIconHeight());
dsource.createDefaultDragGestureRecognizer(b1, DnDConstants.ACTION_COPY_OR_MOVE,new DragGestureHandler());
cp.repaint();
private void savefile(File file,Object parent)
//ExtensionFileFilter filter = new ExtensionFileFilter(false);
//filter.addExtension("txt",true);
//chooser.setFileFilter(filter);
int returnVal = chooser.showSaveDialog(client);
if(returnVal ==JFileChooser.APPROVE_OPTION)
try{
FileOutputStream fstream=new FileOutputStream(chooser.getSelectedFile());
//decide whether the file received or sent is to be saved
if(((Container)parent).equals(textArea1))
fstream.write((byte[])files.get(file));
else
fstream.write((byte[])rfiles.get(file));
fstream.close();
System.out.println(file.getName());
catch(Exception e)
{System.out.println(e.toString()); }
private void openfile(File file,Object parent)
File tempfile=null;
try{
String fname=file.getName();
tempfile=File.createTempFile("temp",fname.substring(fname.lastIndexOf(".")));
FileOutputStream fstream=new FileOutputStream(tempfile);
System.out.println(tempfile.getAbsolutePath());
//decide whether the file received or sent is to be saved
if(((Container)parent).equals(textArea1))
fstream.write((byte[])files.get(file));
else
fstream.write((byte[])rfiles.get(file));
fstream.close();
catch(Exception e){System.out.println(e.toString());}
try{
Process p1=r1.exec("cmd /c start " + tempfile.getAbsolutePath());
p1.waitFor();
catch(Exception e){System.out.println(e.toString());}
//inner classes
class ComponentHandler implements ContainerListener{
public void componentRemoved(ContainerEvent ev)
Container cont=(Container)ev.getChild();
if(cont.getComponentCount()>0)
JButton but=(JButton)cont.getComponent(0);
files.remove((File)hfiles.get(but));
hfiles.remove(but);
public void componentAdded(ContainerEvent ev){}
class AttachmentHandler extends MouseAdapter{
public void mouseClicked(MouseEvent ev){
if(ev.getModifiers()==4)
Component comp=(Component)ev.getSource();
File file=(File)hfiles.get(comp);
popup=new JPopupMenu();
JMenuItem popopen=new JMenuItem("Open");
JMenuItem popsave=new JMenuItem("Save As..");
popup.add(popopen);
System.out.println(comp.getParent().getParent().getClass().toString());
popopen.addActionListener(new ButtonHandler(file,comp.getParent().getParent()));
popup.add(popsave);
popsave.addActionListener(new ButtonHandler(file,comp.getParent().getParent()));
popup.show(comp,12,12);
class DragGestureHandler extends Vector implements DragGestureListener,DragSourceListener,Transferable{
final static int FILE = 0;
final static int STRING = 1;
final static int PLAIN = 2;
DataFlavor flavors[] = {DataFlavor.javaFileListFlavor,DataFlavor.stringFlavor,DataFlavor.plainTextFlavor};
public void dragDropEnd(DragSourceDropEvent ev){}
public void dragEnter(DragSourceDragEvent ev){}
public void dragExit(DragSourceEvent ev){}
public void dragOver(DragSourceDragEvent ev){}
public void dropActionChanged(DragSourceDragEvent ev){}
public void dragGestureRecognized(DragGestureEvent ev)
System.out.println("recognized");
File file=(File)hfiles.get(ev.getComponent());
addElement(file);
ev.startDrag(DragSource.DefaultCopyDrop,this,this);
/* Returns the array of flavors in which it can provide the data. */
public synchronized DataFlavor[] getTransferDataFlavors() {
return flavors;
/* Returns whether the requested flavor is supported by this object. */
public boolean isDataFlavorSupported(DataFlavor flavor) {
boolean b = false;
b |=flavor.equals(flavors[FILE]);
b |= flavor.equals(flavors[STRING]);
b |= flavor.equals(flavors[PLAIN]);
return (b);
public synchronized Object getTransferData(DataFlavor flavor) throws UnsupportedFlavorException,IOException
if(flavor.equals(flavors[FILE])){return this;}
else if (flavor.equals(flavors[PLAIN])) {
return new StringReader(((File)elementAt(0)).getAbsolutePath());
} else if (flavor.equals(flavors[STRING])) {
return((File)elementAt(0)).getAbsolutePath();
} else {
throw new UnsupportedFlavorException(flavor);
//inner class for draging in the files on java frame
class DragDropHandler implements DropTargetListener{
public void dragEnter(DropTargetDragEvent ev){
public void dragExit(DropTargetEvent ev){
public void dragOver(DropTargetDragEvent ev){
public void drop(DropTargetDropEvent ev){
Transferable tf1=ev.getTransferable();
DataFlavor fl[]=ev.getCurrentDataFlavors();
if(ev.isDataFlavorSupported(DataFlavor.javaFileListFlavor))
ev.acceptDrop (DnDConstants.ACTION_COPY_OR_MOVE);
try{
java.util.List fileList = (java.util.List)tf1.getTransferData(DataFlavor.javaFileListFlavor);
Iterator iterator = fileList.iterator();
while (iterator.hasNext())
File file = (File)iterator.next();
if(file.isFile())
Icon icon=chooser.getIcon(file);
FileInputStream fstream=new FileInputStream(file);
int filedata=(new Double(file.length())).intValue();
byte bytes[]=new byte[filedata];
fstream.read(bytes);
files.put(file,bytes);
ev.getDropTargetContext().dropComplete(true);
addAttach(fileList);
catch(Exception e)
{System.out.println(e.toString() + "here");}
public void dropActionChanged(DropTargetDragEvent ev){
class MouseHandler extends MouseAdapter{
public void mouseClicked(MouseEvent me)
TreePath tp=tree.getPathForLocation(me.getX(),me.getY());
if(tp!=null)
if(tp.getPathCount()==3)
toalias=tp.getPathComponent(2).toString();
togroup=tp.getPathComponent(1).toString();
System.out.println(toalias);
if (!(toalias.equals(fromalias) && togroup.equals(fromgroup)))
System.out.println("hh " + toalias);
label4.setText(tp.getPathComponent(2).toString() + "_@" + tp.getPathComponent(1).toString());
class ButtonHandler implements ActionListener{
private File file;
private Object parent;
//constructors
public ButtonHandler()
public ButtonHandler(File file,Object parent)
this.file=file;
this.parent=parent;
//other functions
public void actionPerformed(ActionEvent ev){
String s=ev.getActionCommand();
System.out.println(s);
if(s.equals("Send with Audio..."))
//Audio audio=new Audio(client,false,"CAPTURE");
if(s.equals("Disconnect"))
try{
// server.disconnect(client);
client.getSound(3);
cp.remove(jsp);
label6.setVisible(false);
//UnicastRemoteObject.unexportObject(client,true);
button3.setText("Connect");
textArea2.append("\nYou have been disconnected to Server");
client.repaint();
catch(Exception e)
System.out.println(e.toString());
if(s.equals("Connect"))
// clp=new ClientProperties(client,false);
if(s.equals("Save As.."))
savefile(file,parent);
if(s.equals("Open"))
openfile(file,parent);
if(s.equals("Attach"))
//ExtensionFileFilter filter = new ExtensionFileFilter(false);
//filter.addExtension(".txt",true);
//filter.setDescription("Text Files(.txt)");
// chooser.setFileFilter(filter);
chooser.setFileSelectionMode(JFileChooser.FILES_ONLY);
//chooser.setMultiSelectionEnabled(true);
int returnVal = chooser.showOpenDialog(client);
if(returnVal ==JFileChooser.APPROVE_OPTION)
//File fp[]=chooser.getSelectedFiles();
File fp[]=new File[1];
fp[0]=chooser.getSelectedFile();
int i=0;
while(i<fp.length)
try{
File file=fp[0];
Icon icon=chooser.getIcon(file);
FileInputStream fstream=new FileInputStream(file);
int filedata=(new Double(file.length())).intValue();
byte bytes[]=new byte[filedata];
fstream.read(bytes);
files.put(file,bytes);
catch(Exception e){dialog.showMessageDialog(client,e.toString(),"Error:ChatApplication",JOptionPane.ERROR_MESSAGE);
return; }
i++;
java.util.List fileList=Arrays.asList(fp);
addAttach(fileList);
if(s.equals("Send"))
try{
if(toalias==null)
dialog.showMessageDialog(client,"Select the Recepient First!!","Error:ChatApplication",JOptionPane.ERROR_MESSAGE);
return;
if(toalias!=null && togroup!=null && (!toalias.equals(fromalias)))
// server.sendMessage(textArea1.getText(),files,toalias,togroup,fromalias,fromgroup);
textArea1.setText("");
catch(Exception e)
e.printStackTrace();
}//if ends
class WindowEventHandler extends WindowAdapter{
public void windowClosing(WindowEvent ev){
try{
//server.disconnect(client);
client.getSound(3);
// UnicastRemoteObject.unexportObject(client,true);
catch(Exception e){System.out.println(e.toString());}
dispose();
private class onshutdown extends Thread{
public void run(){
try{
//server.disconnect(client);
//UnicastRemoteObject.unexportObject(client,true);
catch(Exception e){}
}//run ends
I hope this helps,
Denis -
[svn] 3050: Removed compile warning with JDK1.5
Revision: 3050
Author: [email protected]
Date: 2008-08-29 16:48:58 -0700 (Fri, 29 Aug 2008)
Log Message:
Removed compile warning with JDK1.5
Modified Paths:
blazeds/trunk/modules/core/src/java/flex/messaging/io/BeanProxy.javaDid you try this:
http://forum.java.sun.com/thread.jsp?thread=434718&forum=60&message=1964421 -
Java webdynpro development with jdk1.5.7
hi,
I have installed the CE server and the Netweaver Developer Studio, to try some java developments.
I was working with jdk1.5.7, but the server has only version 1.5.017.
Is it possible to upgrade the java in the server, so it can work with the current jdk version?
thx,
Erikhi again,
I could solve the problem:
in the developer studio you can chose to compile for lower versions.
To do so, go to windows>preferences>java-->compiler and chose compliance level 5 or 1.4(it was on 6), and now the development works fine. -
Weblogic 5.1 SP8 with JDK1.3 installed as an NT Service Fails
I've just completed the installation of sp8 of Weblogic Server. I used wlconfig to set the environment parameters as outlined in the sp8_readme.html file. I have Weblogic Server installed as a NT Service. When I start the service with Weblogic configured to use JDK1.2 it works just fine. However, when I switch Weblogic to use the JDK1.3, using wlconfig, I receive an Application error stating:"The instruction at "0x04e4d0d6" referenced memory at "0x00000000". The memory could not be written."If I start the WEblogic Server from the command line and configure the environment to use the JDK1.3, everything works fine. It's only when you are trying to run the Weblogic server as an NT Service.Any suggestions?
I don't think this problem was specific at all to SP8 - I ran into
this with an earlier version of the fixpack and just decided to run it
from the startweblogic.cmd file, instead. I never did try to set the
compiler to none as you did. BTW - it wasn't just as a service that
this problem existed for me - it also happened if you used the program
shortcut to start the server - i.e. any way you started it that used
those registry settings would experience the problem.
How has the stability been under 1.3 - have you seen any problems with
that? I was running with 1.3 and the Sun Server Hotspot VM and the
server kept crashing after just a few pages being displayed from my
site. This problem could have also been the -noclassgc switch though
since with that switch I was still seeing the problem under 1.2 - just
not as fast.
On Tue, 23 Jan 2001 09:49:05 -0800, "Christopher A. Mathrusse"
<[email protected]> wrote:
Seeing as no one has come up with a solution for me, I thought I would at
least post the fix. If you use JDK1.3 with WLS and are running the server as
an NT Service, you will need to set your JAVA_HOME value to the JDK1.3 using
wlconfig, and then set your java.compiler=NONE using
wlconfig -Djava.copiler=NONE. After completing these changes, WLS will run
as a service with JDK1.3.
"Christopher Mathrusse" <[email protected]> wrote in
message news:[email protected]...
I've just completed the installation of sp8 of Weblogic Server. I usedwlconfig to set the environment parameters as outlined in the
sp8_readme.html file. I have Weblogic Server installed as a NT Service. When
I start the service with Weblogic configured to use JDK1.2 it works just
fine. However, when I switch Weblogic to use the JDK1.3, using wlconfig, I
receive an Application error stating:"The instruction at "0x04e4d0d6"
referenced memory at "0x00000000". The memory could not be written."If I
start the WEblogic Server from the command line and configure the
environment to use the JDK1.3, everything works fine. It's only when you are
trying to run the Weblogic server as an NT Service.Any suggestions? -
JDeveloper Build Error with JDK1.3beta
Dear JDev Team,
I have a project that uses SQLJ and has been compiling fine with both JDK1.2.2 and 1.3beta. This morning it stopped working. There have been no great code changes. Once it fails using 1.3beta it will also fail using 1.2.2.
There error message in the window is as follows. Your help would be very much appreciated, as this project cannot be built.
Many thanks,
Richard
JniPortal for D:\Program Files\JDeveloper 3.0\java1.2\jre\bin\ferrari\jvm.dll reported
InnerClasses attribute
java.lang.IncompatibleClassChangeError: InnerClasses attribute
int sqlj.runtime.profile.util.CustomizerHarness.customizeProfile(sqlj.runtime.profile.util.ProfileIOContext)
void oracle.jdeveloper.sqlj.TranslatorInternal.customizeProfiles(borland.compiler.interfaces.Log)
void oracle.jdeveloper.sqlj.TranslatorSystemImpl.customizeProfiles(borland.jbuilder.jipcbmj.portal.ComLog)
void oracle.jdeveloper.sqlj.TranslatorSystem_JavaDispatch.invoke(int, borland.javaport.JavaCallStack)Richard,
SQLJ is not supported with JDK1.2 in JDev 3.0:
(from the release notes)
Using SQLJ under JDK 1.2
The 8.1.5 SQLJ version distributed with this release of JDeveloper only supports JDK 1.1.X, it does not run under JDK 1.2. A future version of SQLJ will support JDK 1.2
Having said that it looks like you have it working anyway :-)
There have been no great code changes. Once >it fails using 1.3beta it will also fail >using 1.2.2.Try the following :
-Locate the output directory from Project|Project Properties
-Close JDeveloper
-Go to the output directory and delete all the classes and profiles related to your SQLJ project
-Restart JDev and recompile
Hope this helps.
Regards,
Arun
null -
JAXP: code works with JDK1.3.1/Xerces but not JDK1.4.1
Switching from JDK 1.3.1 with the Xerces XML parser to JDK 1.4.1 with its
bundled XML parser breaks my code. Here is the exception I am
seeing:
Exception in thread "main" com.post.bean.BeanException com.post.bean.Bea
nException: Relative URI "bean.dtd"; can not be resolved without a base URI.
at com.post.bean.BeanSerializer.deserialize(BeanSerializer.java:176)
at com.post.BeanSerializer1.deserialize(BeanSerializer1.java:38)
at com.post.BeanSerializer1.main(BeanSerializer1.java:17)
Here is a code fragment that worked fine with JDK1.3.1 and xerces but
not with JDK1.4.1:
public static Object deserialize(InputStream input, EntityResolver
resolver)
throws BeanException
Object bean = null;
try
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
factory.setValidating(true);
factory.setNamespaceAware(false);
DocumentBuilder builder = factory.newDocumentBuilder();
if (resolver != null)
builder.setEntityResolver(resolver);
Document doc = builder.parse(input); // exception thrown here
Element root = doc.getDocumentElement();
The entity resolver I'm using searches for dtds in
a certain directory. Again this works fine with JDK1.3.1
and Xerces but not with JDK1.4.1.
Any ideas on how to remedy this situation?
Thanksthis generally happens when two similar libs conflict with each other. Try any of theses quick fixes: (Remember, 90% of probs in java are Classpath, packages and directory structure issues)
1. remove completely your previous version of JDK and Xerces.
2. Remove your classpath variable from system path.
3. Have "only the required" jar files during compilation. For this use the -D option.
4. If everything fails, download ANT. Write a simple build.xml file. This is a good replacement to the -D option. But make sure, you are working in a clean JDK environment. Try to monitor your classpaths at run time, and get rid of all the unnecessary once.
5. MAke sure that Xerces libs bundled with 1.4 are in your classpath at runtime.
Finally All the best, and happy XMLing+Javing !!
Rakesh -
IBM AIX4.3.3 with JDK1.2.2(IBM)
Hi!... I'm running WLS5.1 SP9 under IBM AIX4.3.3 with JDK1.2.2(IBM) and
Connecting with DB2...
Starting WLS successfully, in later WLS crashes and Core Dump.
See below, WLS dump message....Why this problem is occurred?
Is JDK problem? or WLS or AIX4.3.3..
Fri Sep 21 11:12:58 2001
SIGILL received at 1 in . Processing terminated.
Current Thread Details
"ExecuteThread-21" (TID:0x80032c38, sys_thread_t:0x309d7ba0, state:R,
native ID:0x1b1c) prio=5: pending=java.lang.NullPointerException
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
(Compiled Code))
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
l.java(Compiled Code))
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
l.java(Compiled Code))
at
weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContext
Manager.java(Compiled Code))
at
weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java(Compi
led Code))
at
weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java(Compiled
Code))
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:129)
----- Native Stack -----
unavailable - iar 1 not in text area
J2RE 1.2.2 IBM build ca122-19991217
Operating Environment
Host : ecedi:10.3.101.11
OS Level : AIX 4.3.3.0
Processors -
Architecture : POWER_PC (impl: unknown, ver: unknown)
How Many : 6
Enabled : 6
User Limits (in bytes except for NOFILE and NPROC) -
RLIMIT_FSIZE : infinity
RLIMIT_DATA : 1342177280
RLIMIT_STACK : infinity
RLIMIT_CORE : 1073741312
RLIMIT_NOFILE : 4000
NPROC(max) : 1024
Page Space (in blocks) -
/dev/hd6: size=393216, free=152532
/dev/paging00: size=393216, free=153025
Application Environment
Signal Handlers -
SIGHUP : ignored
SIGINT : ignored
SIGQUIT : intrDispatchMD (libhpi.a)
SIGILL : intrDispatchMD (libhpi.a)
SIGTRAP : unknown handler (libjitc.a)
SIGABRT : intrDispatchMD (libhpi.a)
SIGEMT : intrDispatchMD (libhpi.a)
SIGFPE : intrDispatchMD (libhpi.a)
SIGBUS : intrDispatchMD (libhpi.a)
SIGSEGV : intrDispatchMD (libhpi.a)
SIGSYS : intrDispatchMD (libhpi.a)
SIGPIPE : ignored
SIGUSR1 : sigusr1Handler (libhpi.a)
SIGUSR2 : unknown handler (libjitc.a)
Environment Variables -
_=/usr/java_dev2/jre/sh/../bin/java
CICSREGION=ecedi
LANG=ko_KR
LOGIN=weblogic
IMQCONFIGCL=/etc/IMNSearch/dbcshelp
AIX_LOCKKEY=38
ORA_NLS_CHARACTERSET_CONVERSION=NO_CHARACTER_SET_CONVERSION
PATH=.:/usr/java_dev2/jre/sh:/usr/java_dev2/sh:/usr/bin:/etc:/usr/sbin:/usr/
ucb:/weblogic/bin:/usr/bin/X11:/sbin:/usr/vac/bin:/usr/lpp/cics/bin:/oracle/
bin:/shadow/bin:/usr/local/bin
NLS_LANG=AMERICAN_AMERICA.KO16KSC5601
DB2DIR=/usr/lpp/db2_06_01
ORACLE_BASE=/oracle
JAVACLASSPATH=:./lib/weblogic510sp9boot.jar:./classes/boot:./db2lib/db2java.
zip:./db2lib/runtime.zip:./eval/cloudscape/lib/cloudscape.jar
LC__FASTMSG=true
CGI_DIRECTORY=/var/docsearch/cgi-bin
IMQCONFIGSRV=/etc/IMNSearch
CLASSPATH=.:/weblogic/classes/:/usr/jdk_base/lib/classes.zip:/usr/java_dev2/
jre/lib/rt.jar:/usr/java_dev2/jre/lib/:/usr/java_dev2/lib/tools.jar:/weblogi
c/lib/weblogicaux.jar:/weblogic/lib/weblogic510sp9.jar:/oracle/jdbc/lib/clas
ses12.zip:/oracle/jdbc/lib/classes111.zip:/oracle/jdbc/lib/nls_charset11.zip
:/oracle/lib/servlet.jar:/oracle/xdk/lib/xmlparserv2.jar:/oracle/xdk/lib/ora
clexsql.jar:/oracle/xdk/lib/xmlplsql.jar:/oracle/xdk/lib/jdev-rt.zip.jar:/or
acle/rdbms/jlib/xsu12.jar:/oracle/xdk/lib:/weblogic/db2lib/db2java.zip:/webl
ogic/db2lib/runtime.zip:/weblogic/db2lib/sqlj.zip:/weblogic/xecure/xecureweb
_ver4/lib/java/weblogic5/:/app/ecxml/ecxml.jar
ENCINA_BIND_FILE=/var/cics_servers/server_bindings
LOGNAME=weblogic
MAIL=/usr/spool/mail/weblogic
CICSPATH=/usr/lpp/cics
ORACLE_SID=EDI
LOCPATH=/usr/lib/nls/loc
AIX_LOCKBITS=00
EPC_DISABLED=TRUE
DOCUMENT_SERVER_MACHINE_NAME=localhost
USER=weblogic
JRE_HOME=/usr/java_dev2/jre
NLS_DATE_FORMAT=YYYY-MM-DD
AUTHSTATE=compat
LC_MESSAGES=ko_KR
DCE_USE_WCHAR_NAMES=1
DISPLAY=:0.0
SHELL=/bin/ksh
ODMDIR=/etc/objrepos
JAVA_HOME=/usr/java_dev2
JAVAHOME=/usr/java_dev2/jre/sh/..
JDK_HOME=/usr/java_dev2
DOCUMENT_SERVER_PORT=49213
ORA_NLS33=/oracle/ocommon/nls/admin/data
AIX_LOCKMASK=08
XFILESEARCHPATH=/usr/java_dev2/jre/sh/../lib/locale/%L/%T/%N%S:
HOME=/weblogic
WEBLOGICCLASSPATH=:./lib/weblogic510sp9.jar:./lib/weblogicaux.jar:./license:
./classes:./slib/scjd11.jar:/oracle/jdbc/lib/classes12.zip:/oracle/jdbc/lib/
classes111.zip:/weblogic/xecure/xecureweb_ver4/lib/java/weblogic5:/weblogic/
xecure/xecureweb_ver4/demo/servlet/class
DB2INSTANCE=db2inst1
TERM=vt100
LD_LIBRARY_PATH=/epilot/shadow:/epilot/shadow/lib:/usr/jdk_base/lib:/epilot
MAILMSG=[YOU HAVE NEW MAIL]
ORACLE_HOME=/oracle
NEONTRACE=LOCKTHREAD
PWD=/weblogic
DOCUMENT_DIRECTORY=/usr/docsearch/html
CICS_SFS_SERVER=/.:/cics/sfs/ecedi
TZ=KORST-9
WL_HOME=/weblogic
AIXTHREAD_SCOPE=S
INSTHOME=/home/db2inst1
A__z=! LOGNAME
LIBPATH=/usr/java_dev2/jre/sh/../bin:/usr/java_dev2/jre/sh/../bin/classic::/
home/db2inst1/sqllib/lib:/weblogic/lib/aix:/weblogic/slib:/weblogic/slib:/us
r/shadow/lib:/epilot/shadow/lib:/epilot/shadow:/epilot:/usr/local/lib:/usr/j
ava_dev2/jre/bin/classic:/usr/java_dev2/jre/bin:/weblogic/xecure/xecureweb_v
er4/lib/java/jni
NLSPATH=/usr/lib/nls/msg/%L/%N:/usr/lib/nls/msg/%L/%N.cat:/usr/lib/nls/msg/%
L/%N:/usr/lib/nls/msg/prime/%N
Loaded Libraries (sizes in bytes)
/usr/lib/libXtst.a
filesize : 79981
text start : d6787100
text size : 563e
data start : 32dbe480
date size : 4b4
/usr/lib/libodm.a
filesize : 269244
text start : d0043100
text size : 12919
data start : 32dbfe30
date size : 55f4
/usr/lib/libgair4.a
filesize : 42672
text start : d0145100
text size : 284e
data start : 32dc6d38
date size : 880
/usr/lib/libgaimisc.a
filesize : 9270
text start : d678d0f8
text size : 7b4
data start : 32dc8660
date size : a4
/usr/lib/libXext.a
filesize : 492706
text start : d6767100
text size : 1f5d8
data start : 32dc91f8
date size : 373c
/usr/lib/libICE.a
filesize : 322947
text start : d0a02100
text size : 1624b
data start : 32dcd088
date size : 3bac
/usr/lib/libSM.a
filesize : 146658
text start : d09f8100
text size : 9ed3
data start : 32dd1d68
date size : 1324
/usr/lib/libXt.a
filesize : 1743571
text start : d07b41c0
text size : 64af3
data start : 32dd44e8
date size : c14c
/usr/lib/libXm.a
filesize : 11702307
text start : d651b100
text size : 24bc4c
data start : 32de1f70
date size : 40b00
/usr/lib/libpthreads_compat.a
filesize : 14611
text start : d00ae0f8
text size : 168d
data start : 32e230f8
date size : 0
/usr/lib/libIM.a
filesize : 68477
text start : d013f100
text size : 4f5f
data start : 32e24df8
date size : 84c
/usr/lib/libX11.a
filesize : 3799981
text start : d05e5100
text size : 100243
data start : 32e26670
date size : 25a58
/usr/java_dev2/jre/bin/libawt.a
filesize : 1921036
text start : d63b1000
text size : 169a94
data start : 32e4d8b8
date size : d67c
/weblogic/lib/aix/libmuxer.so
filesize : 19622
text start : d62fa000
text size : 3038
data start : 32b2d400
date size : 280
/home/db2inst1/sqllib/lib/libdtcp.a
filesize : 68305
text start : d62ef000
text size : ab71
data start : 3198cde0
date size : 218
/home/db2inst1/sqllib/lib/libdb2e.a
filesize : 37222294
text start : d47d70b0
text size : 1b17470
data start : 317d90b0
date size : 14c1d8
/home/db2inst1/sqllib/lib/libdb2licm.a
filesize : 1570603
text start : d471e000
text size : b81a8
data start : 319260a8
date size : 15600
/home/db2inst1/sqllib/lib/libddcs.a
filesize : 641048
text start : d46a7000
text size : 766c4
data start : 317cd990
date size : a798
/home/db2inst1/sqllib/lib/libdb2lai.a
filesize : 2486
text start : d46a6000
text size : 504
data start : 317cc2dc
date size : 2c
/usr/lib/libpthreads.a
filesize : 712882
text start : d00b0000
text size : 1ec94
data start : 316a2000
date size : 4008
/home/db2inst1/sqllib/lib/libdb2.a
filesize : 10465576
text start : d3f1a0a8
text size : 78be04
data start : 316a70a8
date size : 1226a8
/usr/lpp/db2_06_01/lib/libdb2jdbc.so
filesize : 157793
text start : d3f00000
text size : 19889
data start : 317ca000
date size : 1698
/usr/java_dev2/jre/bin/libmath.a
filesize : 65667
text start : d3ef5000
text size : aeb3
data start : 30c60fa8
date size : 3ac
/usr/java_dev2/jre/bin/libnet.a
filesize : 51723
text start : d3bf4000
text size : 7b57
data start : 30c5f370
date size : 338
/usr/java_dev2/jre/bin/libjitc.a
filesize : 2179758
text start : d383c000
text size : 1b4734
data start : 302b1778
date size : c8bc
/usr/lib/libiconv.a
filesize : 377832
text start : d002e100
text size : 13f3a
data start : 30213da0
date size : a574
/usr/lib/libi18n.a
filesize : 122601
text start : d0026100
text size : 78b4
data start : 3021f4b0
date size : 1124
/usr/lib/nls/loc/ko_KR
filesize : 1450075
text start : d0322000
text size : 161591
data start : d0484130
date size : 160b2c
/usr/java_dev2/jre/sh/../bin/libzip.a
filesize : 101623
text start : d3829000
text size : 126f3
data start : 30070250
date size : 1e90
/usr/java_dev2/jre/sh/../bin/libjava.a
filesize : 358899
text start : d37f0000
text size : 38d57
data start : 30059180
date size : 6078
/usr/java_dev2/jre/sh/../bin/libhpi.a
filesize : 81880
text start : d37e5000
text size : a17c
data start : 30037b18
date size : b2c
/usr/java_dev2/jre/sh/../bin/libxhpi.a
filesize : 11569
text start : d37e3000
text size : 14e9
data start : 30036e40
date size : 1b8
/usr/java_dev2/jre/sh/../bin/classic/libjvm.a
filesize : 1104523
text start : d3729000
text size : b9c85
data start : 300113d0
date size : 23d54
/usr/lib/libdl.a
filesize : 5248
text start : d16cd0f8
text size : 1e0
data start : f03e30f8
date size : 0
/usr/lib/libbsd.a
filesize : 62186
text start : d012a4e0
text size : 7deb
data start : f011fb28
date size : 1460
/usr/lib/libpthreads.a
filesize : 712882
text start : d0004000
text size : 2020a
data start : f00c4000
date size : 400c
/usr/lib/libpthreads.a
filesize : 712882
text start : d0001000
text size : 2290
data start : f0082000
date size : 41004
/usr/lpp/xlC/lib/libC.a
filesize : 3902821
text start : d0af3d20
text size : 67b6
data start : f01bf720
date size : cc8
/usr/lpp/xlC/lib/libC.a
filesize : 3902821
text start : d0aeb540
text size : 7a0e
data start : f01bd740
date size : a54
/usr/lpp/xlC/lib/libC.a
filesize : 3902821
text start : d0a4e1c0
text size : 9cad3
data start : f01a93c0
date size : 139d8
/usr/lpp/xlC/lib/libC.a
filesize : 3902821
text start : d0a1e100
text size : 2f891
data start : f01a4d00
date size : 421c
/usr/lib/libcrypt.a
filesize : 11167
text start : d00250f8
text size : 87a
data start : f0081528
date size : 13c
/usr/lib/libc.a
filesize : 6407694
text start : d015f720
text size : 1c2493
data start : f0000820
date size : 7f8f0
"ListenThread" (TID:0x80032740, sys_thread_t:0x32069490, state:R, native
ID:0x262a) prio=5
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:411)
at java.net.ServerSocket.implAccept(ServerSocket.java:242)
at java.net.ServerSocket.accept(ServerSocket.java:226)
at weblogic.t3.srvr.ListenThread.run(ListenThread.java:286)
----- Native Stack -----
sysAccept
JVM_Accept
Java_java_net_PlainSocketImpl_socketAccept
mmisInvoke_O_VHelper
entryCmp
"NBExecuteThread-1" (TID:0x800327d8, sys_thread_t:0x312403a0, state:CW,
native ID:0x2526) prio=5
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:426)
at weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java:99)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:126)
----- Native Stack -----
unavailable - iar 0 not in text area
"NBExecuteThread-0" (TID:0x80032848, sys_thread_t:0x3123be50, state:CW,
native ID:0x2425) prio=5
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:426)
at weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java:99)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:126)
----- Native Stack -----
unavailable - iar 0 not in text area
"ExecuteThread-29" (TID:0x800328b8, sys_thread_t:0x311e8b10, state:MW,
native ID:0x2324) prio=5
----- Native Stack -----
allocObject
pthread_mutex_lock
cooperative_mutex_lock
sysMonitorEnter
lkMonitorEnter
"ExecuteThread-28" (TID:0x80032928, sys_thread_t:0x3119f640, state:MW,
native ID:0x2223) prio=5
----- Native Stack -----
allocObject
pthread_mutex_lock
cooperative_mutex_lock
sysMonitorEnter
lkMonitorEnter
"ExecuteThread-27" (TID:0x80032998, sys_thread_t:0x30c5ed70, state:R,
native ID:0x2122) prio=5
at weblogic.socket.PosixSocketMuxer.poll(Native Method)
at
weblogic.socket.PosixSocketMuxer.processSockets(PosixSocketMuxer.java:284)
at weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:23)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:129)
----- Native Stack -----
unavailable - iar 124 not in text area
"ExecuteThread-26" (TID:0x80032a08, sys_thread_t:0x30c5ea50, state:CW,
native ID:0x2021) prio=5
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:426)
at weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java:99)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:126)
----- Native Stack -----
unavailable - iar 30038234 not in text area
"ExecuteThread-25" (TID:0x80032a78, sys_thread_t:0x30c5e7b0, state:CW,
native ID:0x1f20) prio=5
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java(Compiled Code))
at weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java(Compiled
Code))
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:126)
----- Native Stack -----
unavailable - iar 30038234 not in text area
"ExecuteThread-24" (TID:0x80032ae8, sys_thread_t:0x30c5b4e0, state:CW,
native ID:0x1e1f) prio=5
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java(Compiled Code))
at weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java(Compiled
Code))
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:126)
----- Native Stack -----
unavailable - iar 30036f1c not in text area
"ExecuteThread-23" (TID:0x80032b58, sys_thread_t:0x309d81e0, state:CW,
native ID:0x1d1e) prio=5
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:426)
at weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java:99)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:126)
----- Native Stack -----
unavailable - iar 30038234 not in text area
"ExecuteThread-22" (TID:0x80032bc8, sys_thread_t:0x309d7ec0, state:CW,
native ID:0x1c1d) prio=5
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java(Compiled Code))
at weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java(Compiled
Code))
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:126)
----- Native Stack -----
unavailable - iar 30036f1c not in text area
"ExecuteThread-21" (TID:0x80032c38, sys_thread_t:0x309d7ba0, state:R,
native ID:0x1b1c) prio=5: pending=java.lang.NullPointerException
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
(Compiled Code))
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
l.java(Compiled Code))
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
l.java(Compiled Code))
at
weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContext
Manager.java(Compiled Code))
at
weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java(Compi
led Code))
at
weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java(Compiled
Code))
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:129)
----- Native Stack -----
unavailable - iar 1 not in text area
"ExecuteThread-20" (TID:0x80032ca8, sys_thread_t:0x309d5870, state:CW,
native ID:0x1a1b) prio=5
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java(Compiled Code))
at weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java(Compiled
Code))
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:126)
----- Native Stack -----
unavailable - iar 300b5da0 not in text area
"ExecuteThread-19" (TID:0x80032d18, sys_thread_t:0x309d2580, state:CW,
native ID:0x191a) prio=5
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java(Compiled Code))
at weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java(Compiled
Code))
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:126)
----- Native Stack -----
unavailable - iar 30038234 not in text area
"ExecuteThread-18" (TID:0x80032d88, sys_thread_t:0x309cf290, state:CW,
native ID:0x1819) prio=5
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java(Compiled Code))
at weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java(Compiled
Code))
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:126)
----- Native Stack -----
unavailable - iar 30036f1c not in text area
"ExecuteThread-17" (TID:0x80032df8, sys_thread_t:0x309cbfa0, state:CW,
native ID:0x1718) prio=5
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:426)
at weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java:99)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:126)
----- Native Stack -----
unavailable - iar 30038234 not in text area
"ExecuteThread-16" (TID:0x80032e68, sys_thread_t:0x309c8cb0, state:CW,
native ID:0x1617) prio=5
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java(Compiled Code))
at weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java(Compiled
Code))
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:126)
----- Native Stack -----
unavailable - iar 30038234 not in text area
"ExecuteThread-15" (TID:0x80032ed8, sys_thread_t:0x309c59c0, state:CW,
native ID:0x1516) prio=5
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java(Compiled Code))
at weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java(Compiled
Code))
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:126)
----- Native Stack -----
unavailable - iar 0 not in text area
"ExecuteThread-14" (TID:0x80032f48, sys_thread_t:0x309c26d0, state:CW,
native ID:0x1415) prio=5
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:426)
at weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java:99)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:126)
----- Native Stack -----
unavailable - iar 0 not in text area
"ExecuteThread-13" (TID:0x80032fb8, sys_thread_t:0x309bf3e0, state:CW,
native ID:0x1314) prio=5
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:426)
at weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java:99)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:126)
----- Native Stack -----
unavailable - iar 0 not in text area
"ExecuteThread-12" (TID:0x80033028, sys_thread_t:0x309bc170, state:CW,
native ID:0x1213) prio=5
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:426)
at weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java:99)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:126)
----- Native Stack -----
unavailable - iar 0 not in text area
"ExecuteThread-11" (TID:0x80033098, sys_thread_t:0x309b8ea0, state:CW,
native ID:0x1112) prio=5
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:426)
at weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java:99)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:126)
----- Native Stack -----
unavailable - iar 0 not in text area
"ExecuteThread-10" (TID:0x80033108, sys_thread_t:0x309b5c50, state:CW,
native ID:0x1011) prio=5
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:426)
at weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java:99)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:126)
----- Native Stack -----
unavailable - iar 0 not in text area
"ExecuteThread-9" (TID:0x80033178, sys_thread_t:0x309b2a00, state:CW,
native ID:0xf10) prio=5
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:426)
at weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java:99)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:126)
----- Native Stack -----
unavailable - iar 0 not in text area
"ExecuteThread-8" (TID:0x800331e8, sys_thread_t:0x309af7b0, state:CW,
native ID:0xe0f) prio=5
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:426)
at weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java:99)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:126)
----- Native Stack -----
unavailable - iar 0 not in text area
"ExecuteThread-7" (TID:0x80033258, sys_thread_t:0x30996c90, state:CW,
native ID:0xd0e) prio=5
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:426)
at weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java:99)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:126)
----- Native Stack -----
unavailable - iar ffffffff not in text area
"ExecuteThread-6" (TID:0x800332c8, sys_thread_t:0x30996950, state:CW,
native ID:0xc0d) prio=5
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:426)
at weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java:99)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:126)
----- Native Stack -----
unavailable - iar 0 not in text area
"ExecuteThread-5" (TID:0x80033338, sys_thread_t:0x309966b0, state:CW,
native ID:0xb0c) prio=5
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:426)
at weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java:99)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:126)
----- Native Stack -----
unavailable - iar 0 not in text area
"ExecuteThread-4" (TID:0x800333a8, sys_thread_t:0x30996430, state:CW,
native ID:0xa0b) prio=5
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:426)
at weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java:99)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:126)
----- Native Stack -----
unavailable - iar ffffffff not in text area
"ExecuteThread-3" (TID:0x80033418, sys_thread_t:0x3098ff40, state:CW,
native ID:0x90a) prio=5
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:426)
at weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java:99)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:126)
----- Native Stack -----
unavailable - iar 0 not in text area
"ExecuteThread-2" (TID:0x80033488, sys_thread_t:0x3098fcc0, state:CW,
native ID:0x809) prio=5
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:426)
at weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java:99)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:126)
----- Native Stack -----
unavailable - iar 0 not in text area
"ExecuteThread-1" (TID:0x800334f8, sys_thread_t:0x3098fa40, state:CW,
native ID:0x708) prio=5
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:426)
at weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java:99)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:126)
----- Native Stack -----
unavailable - iar 0 not in text area
"ExecuteThread-0" (TID:0x80033568, sys_thread_t:0x3098cca0, state:CW,
native ID:0x607) prio=5
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:426)
at weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java:99)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:126)
----- Native Stack -----
unavailable - iar 0 not in text area
"TimeEventGenerator" (TID:0x800335d8, sys_thread_t:0x308a41e0, state:CW,
native ID:0x506) prio=5
at java.lang.Object.wait(Native Method)
at weblogic.time.common.internal.TimeTable.snooze(TimeTable.java:279)
at
weblogic.time.common.internal.TimeEventGenerator.run(TimeEventGenerator.java
:141)
at java.lang.Thread.run(Thread.java:481)
----- Native Stack -----
gettimeofday
pthreadevent_wait
condwait_local
condwait
pthread_cond_timedwait
condvarTimedWait
sysMonitorWait
lkMonitorWait
JVM_MonitorWait
"SpinnerRandomSource" (TID:0x80033618, sys_thread_t:0x3087cdd0,
state:CW, native ID:0x405) prio=5
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:426)
at
weblogic.security.SpinnerThread.stopSpinning(SpinnerRandomBitsSource.java:10
4)
at weblogic.security.SpinnerThread.run(SpinnerRandomBitsSource.java:121)
----- Native Stack -----
unavailable - iar 0 not in text area
"Finalizer" (TID:0x80033728, sys_thread_t:0x300d1f30, state:CW, native
ID:0x304) prio=8
at java.lang.Object.wait(Native Method)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:114)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:129)
at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:176)
----- Native Stack -----
unavailable - iar 0 not in text area
"Reference Handler" (TID:0x80033768, sys_thread_t:0x300cc300, state:CW,
native ID:0x203) prio=10
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:426)
at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:116)
----- Native Stack -----
unavailable - iar 0 not in text area
"Signal dispatcher" (TID:0x800337a8, sys_thread_t:0x300c7670, state:CW,
native ID:0x102) prio=5
----- Native Stack -----
unavailable - iar 0 not in text area
"main" (TID:0x800337e8, sys_thread_t:0x3000c390, state:CW, native
ID:0x1) prio=5
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:426)
at weblogic.t3.srvr.T3Srvr.waitForDeath(T3Srvr.java:1862)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.Server.startServerDynamically(Server.java:139)
at weblogic.Server.main(Server.java:92)
at weblogic.Server.main(Server.java:58)
----- Native Stack -----
unavailable - iar 4 not in text area
Monitor pool info:
Initial monitor count: 32
Minimum number of free monitors before expansion: 5
Pool will next be expanded by: 36
Current total number of monitors: 72
Current number of free monitors: 15
Monitor Pool Dump (inflated object-monitors):
sys_mon_t:0x3000a9b8 infl_mon_t: 0x3000a628:
java.lang.ref.Reference$Lock@8003B760/8003B768: <unowned>
Waiting to be notified:
"Reference Handler" (0x300cc300)
sys_mon_t:0x3000aa38 infl_mon_t:Hi!... I'm running WLS5.1 SP9 under IBM AIX4.3.3 with JDK1.2.2(IBM) and
Connecting with DB2...
Starting WLS successfully, in later WLS crashes and Core Dump.
See below, WLS dump message....Why this problem is occurred?
Is JDK problem? or WLS or AIX4.3.3..
Fri Sep 21 11:12:58 2001
SIGILL received at 1 in . Processing terminated.
Current Thread Details
"ExecuteThread-21" (TID:0x80032c38, sys_thread_t:0x309d7ba0, state:R,
native ID:0x1b1c) prio=5: pending=java.lang.NullPointerException
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
(Compiled Code))
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
l.java(Compiled Code))
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
l.java(Compiled Code))
at
weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContext
Manager.java(Compiled Code))
at
weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java(Compi
led Code))
at
weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java(Compiled
Code))
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:129)
----- Native Stack -----
unavailable - iar 1 not in text area
J2RE 1.2.2 IBM build ca122-19991217
Operating Environment
Host : ecedi:10.3.101.11
OS Level : AIX 4.3.3.0
Processors -
Architecture : POWER_PC (impl: unknown, ver: unknown)
How Many : 6
Enabled : 6
User Limits (in bytes except for NOFILE and NPROC) -
RLIMIT_FSIZE : infinity
RLIMIT_DATA : 1342177280
RLIMIT_STACK : infinity
RLIMIT_CORE : 1073741312
RLIMIT_NOFILE : 4000
NPROC(max) : 1024
Page Space (in blocks) -
/dev/hd6: size=393216, free=152532
/dev/paging00: size=393216, free=153025
Application Environment
Signal Handlers -
SIGHUP : ignored
SIGINT : ignored
SIGQUIT : intrDispatchMD (libhpi.a)
SIGILL : intrDispatchMD (libhpi.a)
SIGTRAP : unknown handler (libjitc.a)
SIGABRT : intrDispatchMD (libhpi.a)
SIGEMT : intrDispatchMD (libhpi.a)
SIGFPE : intrDispatchMD (libhpi.a)
SIGBUS : intrDispatchMD (libhpi.a)
SIGSEGV : intrDispatchMD (libhpi.a)
SIGSYS : intrDispatchMD (libhpi.a)
SIGPIPE : ignored
SIGUSR1 : sigusr1Handler (libhpi.a)
SIGUSR2 : unknown handler (libjitc.a)
Environment Variables -
_=/usr/java_dev2/jre/sh/../bin/java
CICSREGION=ecedi
LANG=ko_KR
LOGIN=weblogic
IMQCONFIGCL=/etc/IMNSearch/dbcshelp
AIX_LOCKKEY=38
ORA_NLS_CHARACTERSET_CONVERSION=NO_CHARACTER_SET_CONVERSION
PATH=.:/usr/java_dev2/jre/sh:/usr/java_dev2/sh:/usr/bin:/etc:/usr/sbin:/usr/
ucb:/weblogic/bin:/usr/bin/X11:/sbin:/usr/vac/bin:/usr/lpp/cics/bin:/oracle/
bin:/shadow/bin:/usr/local/bin
NLS_LANG=AMERICAN_AMERICA.KO16KSC5601
DB2DIR=/usr/lpp/db2_06_01
ORACLE_BASE=/oracle
JAVACLASSPATH=:./lib/weblogic510sp9boot.jar:./classes/boot:./db2lib/db2java.
zip:./db2lib/runtime.zip:./eval/cloudscape/lib/cloudscape.jar
LC__FASTMSG=true
CGI_DIRECTORY=/var/docsearch/cgi-bin
IMQCONFIGSRV=/etc/IMNSearch
CLASSPATH=.:/weblogic/classes/:/usr/jdk_base/lib/classes.zip:/usr/java_dev2/
jre/lib/rt.jar:/usr/java_dev2/jre/lib/:/usr/java_dev2/lib/tools.jar:/weblogi
c/lib/weblogicaux.jar:/weblogic/lib/weblogic510sp9.jar:/oracle/jdbc/lib/clas
ses12.zip:/oracle/jdbc/lib/classes111.zip:/oracle/jdbc/lib/nls_charset11.zip
:/oracle/lib/servlet.jar:/oracle/xdk/lib/xmlparserv2.jar:/oracle/xdk/lib/ora
clexsql.jar:/oracle/xdk/lib/xmlplsql.jar:/oracle/xdk/lib/jdev-rt.zip.jar:/or
acle/rdbms/jlib/xsu12.jar:/oracle/xdk/lib:/weblogic/db2lib/db2java.zip:/webl
ogic/db2lib/runtime.zip:/weblogic/db2lib/sqlj.zip:/weblogic/xecure/xecureweb
_ver4/lib/java/weblogic5/:/app/ecxml/ecxml.jar
ENCINA_BIND_FILE=/var/cics_servers/server_bindings
LOGNAME=weblogic
MAIL=/usr/spool/mail/weblogic
CICSPATH=/usr/lpp/cics
ORACLE_SID=EDI
LOCPATH=/usr/lib/nls/loc
AIX_LOCKBITS=00
EPC_DISABLED=TRUE
DOCUMENT_SERVER_MACHINE_NAME=localhost
USER=weblogic
JRE_HOME=/usr/java_dev2/jre
NLS_DATE_FORMAT=YYYY-MM-DD
AUTHSTATE=compat
LC_MESSAGES=ko_KR
DCE_USE_WCHAR_NAMES=1
DISPLAY=:0.0
SHELL=/bin/ksh
ODMDIR=/etc/objrepos
JAVA_HOME=/usr/java_dev2
JAVAHOME=/usr/java_dev2/jre/sh/..
JDK_HOME=/usr/java_dev2
DOCUMENT_SERVER_PORT=49213
ORA_NLS33=/oracle/ocommon/nls/admin/data
AIX_LOCKMASK=08
XFILESEARCHPATH=/usr/java_dev2/jre/sh/../lib/locale/%L/%T/%N%S:
HOME=/weblogic
WEBLOGICCLASSPATH=:./lib/weblogic510sp9.jar:./lib/weblogicaux.jar:./license:
./classes:./slib/scjd11.jar:/oracle/jdbc/lib/classes12.zip:/oracle/jdbc/lib/
classes111.zip:/weblogic/xecure/xecureweb_ver4/lib/java/weblogic5:/weblogic/
xecure/xecureweb_ver4/demo/servlet/class
DB2INSTANCE=db2inst1
TERM=vt100
LD_LIBRARY_PATH=/epilot/shadow:/epilot/shadow/lib:/usr/jdk_base/lib:/epilot
MAILMSG=[YOU HAVE NEW MAIL]
ORACLE_HOME=/oracle
NEONTRACE=LOCKTHREAD
PWD=/weblogic
DOCUMENT_DIRECTORY=/usr/docsearch/html
CICS_SFS_SERVER=/.:/cics/sfs/ecedi
TZ=KORST-9
WL_HOME=/weblogic
AIXTHREAD_SCOPE=S
INSTHOME=/home/db2inst1
A__z=! LOGNAME
LIBPATH=/usr/java_dev2/jre/sh/../bin:/usr/java_dev2/jre/sh/../bin/classic::/
home/db2inst1/sqllib/lib:/weblogic/lib/aix:/weblogic/slib:/weblogic/slib:/us
r/shadow/lib:/epilot/shadow/lib:/epilot/shadow:/epilot:/usr/local/lib:/usr/j
ava_dev2/jre/bin/classic:/usr/java_dev2/jre/bin:/weblogic/xecure/xecureweb_v
er4/lib/java/jni
NLSPATH=/usr/lib/nls/msg/%L/%N:/usr/lib/nls/msg/%L/%N.cat:/usr/lib/nls/msg/%
L/%N:/usr/lib/nls/msg/prime/%N
Loaded Libraries (sizes in bytes)
/usr/lib/libXtst.a
filesize : 79981
text start : d6787100
text size : 563e
data start : 32dbe480
date size : 4b4
/usr/lib/libodm.a
filesize : 269244
text start : d0043100
text size : 12919
data start : 32dbfe30
date size : 55f4
/usr/lib/libgair4.a
filesize : 42672
text start : d0145100
text size : 284e
data start : 32dc6d38
date size : 880
/usr/lib/libgaimisc.a
filesize : 9270
text start : d678d0f8
text size : 7b4
data start : 32dc8660
date size : a4
/usr/lib/libXext.a
filesize : 492706
text start : d6767100
text size : 1f5d8
data start : 32dc91f8
date size : 373c
/usr/lib/libICE.a
filesize : 322947
text start : d0a02100
text size : 1624b
data start : 32dcd088
date size : 3bac
/usr/lib/libSM.a
filesize : 146658
text start : d09f8100
text size : 9ed3
data start : 32dd1d68
date size : 1324
/usr/lib/libXt.a
filesize : 1743571
text start : d07b41c0
text size : 64af3
data start : 32dd44e8
date size : c14c
/usr/lib/libXm.a
filesize : 11702307
text start : d651b100
text size : 24bc4c
data start : 32de1f70
date size : 40b00
/usr/lib/libpthreads_compat.a
filesize : 14611
text start : d00ae0f8
text size : 168d
data start : 32e230f8
date size : 0
/usr/lib/libIM.a
filesize : 68477
text start : d013f100
text size : 4f5f
data start : 32e24df8
date size : 84c
/usr/lib/libX11.a
filesize : 3799981
text start : d05e5100
text size : 100243
data start : 32e26670
date size : 25a58
/usr/java_dev2/jre/bin/libawt.a
filesize : 1921036
text start : d63b1000
text size : 169a94
data start : 32e4d8b8
date size : d67c
/weblogic/lib/aix/libmuxer.so
filesize : 19622
text start : d62fa000
text size : 3038
data start : 32b2d400
date size : 280
/home/db2inst1/sqllib/lib/libdtcp.a
filesize : 68305
text start : d62ef000
text size : ab71
data start : 3198cde0
date size : 218
/home/db2inst1/sqllib/lib/libdb2e.a
filesize : 37222294
text start : d47d70b0
text size : 1b17470
data start : 317d90b0
date size : 14c1d8
/home/db2inst1/sqllib/lib/libdb2licm.a
filesize : 1570603
text start : d471e000
text size : b81a8
data start : 319260a8
date size : 15600
/home/db2inst1/sqllib/lib/libddcs.a
filesize : 641048
text start : d46a7000
text size : 766c4
data start : 317cd990
date size : a798
/home/db2inst1/sqllib/lib/libdb2lai.a
filesize : 2486
text start : d46a6000
text size : 504
data start : 317cc2dc
date size : 2c
/usr/lib/libpthreads.a
filesize : 712882
text start : d00b0000
text size : 1ec94
data start : 316a2000
date size : 4008
/home/db2inst1/sqllib/lib/libdb2.a
filesize : 10465576
text start : d3f1a0a8
text size : 78be04
data start : 316a70a8
date size : 1226a8
/usr/lpp/db2_06_01/lib/libdb2jdbc.so
filesize : 157793
text start : d3f00000
text size : 19889
data start : 317ca000
date size : 1698
/usr/java_dev2/jre/bin/libmath.a
filesize : 65667
text start : d3ef5000
text size : aeb3
data start : 30c60fa8
date size : 3ac
/usr/java_dev2/jre/bin/libnet.a
filesize : 51723
text start : d3bf4000
text size : 7b57
data start : 30c5f370
date size : 338
/usr/java_dev2/jre/bin/libjitc.a
filesize : 2179758
text start : d383c000
text size : 1b4734
data start : 302b1778
date size : c8bc
/usr/lib/libiconv.a
filesize : 377832
text start : d002e100
text size : 13f3a
data start : 30213da0
date size : a574
/usr/lib/libi18n.a
filesize : 122601
text start : d0026100
text size : 78b4
data start : 3021f4b0
date size : 1124
/usr/lib/nls/loc/ko_KR
filesize : 1450075
text start : d0322000
text size : 161591
data start : d0484130
date size : 160b2c
/usr/java_dev2/jre/sh/../bin/libzip.a
filesize : 101623
text start : d3829000
text size : 126f3
data start : 30070250
date size : 1e90
/usr/java_dev2/jre/sh/../bin/libjava.a
filesize : 358899
text start : d37f0000
text size : 38d57
data start : 30059180
date size : 6078
/usr/java_dev2/jre/sh/../bin/libhpi.a
filesize : 81880
text start : d37e5000
text size : a17c
data start : 30037b18
date size : b2c
/usr/java_dev2/jre/sh/../bin/libxhpi.a
filesize : 11569
text start : d37e3000
text size : 14e9
data start : 30036e40
date size : 1b8
/usr/java_dev2/jre/sh/../bin/classic/libjvm.a
filesize : 1104523
text start : d3729000
text size : b9c85
data start : 300113d0
date size : 23d54
/usr/lib/libdl.a
filesize : 5248
text start : d16cd0f8
text size : 1e0
data start : f03e30f8
date size : 0
/usr/lib/libbsd.a
filesize : 62186
text start : d012a4e0
text size : 7deb
data start : f011fb28
date size : 1460
/usr/lib/libpthreads.a
filesize : 712882
text start : d0004000
text size : 2020a
data start : f00c4000
date size : 400c
/usr/lib/libpthreads.a
filesize : 712882
text start : d0001000
text size : 2290
data start : f0082000
date size : 41004
/usr/lpp/xlC/lib/libC.a
filesize : 3902821
text start : d0af3d20
text size : 67b6
data start : f01bf720
date size : cc8
/usr/lpp/xlC/lib/libC.a
filesize : 3902821
text start : d0aeb540
text size : 7a0e
data start : f01bd740
date size : a54
/usr/lpp/xlC/lib/libC.a
filesize : 3902821
text start : d0a4e1c0
text size : 9cad3
data start : f01a93c0
date size : 139d8
/usr/lpp/xlC/lib/libC.a
filesize : 3902821
text start : d0a1e100
text size : 2f891
data start : f01a4d00
date size : 421c
/usr/lib/libcrypt.a
filesize : 11167
text start : d00250f8
text size : 87a
data start : f0081528
date size : 13c
/usr/lib/libc.a
filesize : 6407694
text start : d015f720
text size : 1c2493
data start : f0000820
date size : 7f8f0
"ListenThread" (TID:0x80032740, sys_thread_t:0x32069490, state:R, native
ID:0x262a) prio=5
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:411)
at java.net.ServerSocket.implAccept(ServerSocket.java:242)
at java.net.ServerSocket.accept(ServerSocket.java:226)
at weblogic.t3.srvr.ListenThread.run(ListenThread.java:286)
----- Native Stack -----
sysAccept
JVM_Accept
Java_java_net_PlainSocketImpl_socketAccept
mmisInvoke_O_VHelper
entryCmp
"NBExecuteThread-1" (TID:0x800327d8, sys_thread_t:0x312403a0, state:CW,
native ID:0x2526) prio=5
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:426)
at weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java:99)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:126)
----- Native Stack -----
unavailable - iar 0 not in text area
"NBExecuteThread-0" (TID:0x80032848, sys_thread_t:0x3123be50, state:CW,
native ID:0x2425) prio=5
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:426)
at weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java:99)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:126)
----- Native Stack -----
unavailable - iar 0 not in text area
"ExecuteThread-29" (TID:0x800328b8, sys_thread_t:0x311e8b10, state:MW,
native ID:0x2324) prio=5
----- Native Stack -----
allocObject
pthread_mutex_lock
cooperative_mutex_lock
sysMonitorEnter
lkMonitorEnter
"ExecuteThread-28" (TID:0x80032928, sys_thread_t:0x3119f640, state:MW,
native ID:0x2223) prio=5
----- Native Stack -----
allocObject
pthread_mutex_lock
cooperative_mutex_lock
sysMonitorEnter
lkMonitorEnter
"ExecuteThread-27" (TID:0x80032998, sys_thread_t:0x30c5ed70, state:R,
native ID:0x2122) prio=5
at weblogic.socket.PosixSocketMuxer.poll(Native Method)
at
weblogic.socket.PosixSocketMuxer.processSockets(PosixSocketMuxer.java:284)
at weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:23)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:129)
----- Native Stack -----
unavailable - iar 124 not in text area
"ExecuteThread-26" (TID:0x80032a08, sys_thread_t:0x30c5ea50, state:CW,
native ID:0x2021) prio=5
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:426)
at weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java:99)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:126)
----- Native Stack -----
unavailable - iar 30038234 not in text area
"ExecuteThread-25" (TID:0x80032a78, sys_thread_t:0x30c5e7b0, state:CW,
native ID:0x1f20) prio=5
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java(Compiled Code))
at weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java(Compiled
Code))
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:126)
----- Native Stack -----
unavailable - iar 30038234 not in text area
"ExecuteThread-24" (TID:0x80032ae8, sys_thread_t:0x30c5b4e0, state:CW,
native ID:0x1e1f) prio=5
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java(Compiled Code))
at weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java(Compiled
Code))
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:126)
----- Native Stack -----
unavailable - iar 30036f1c not in text area
"ExecuteThread-23" (TID:0x80032b58, sys_thread_t:0x309d81e0, state:CW,
native ID:0x1d1e) prio=5
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:426)
at weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java:99)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:126)
----- Native Stack -----
unavailable - iar 30038234 not in text area
"ExecuteThread-22" (TID:0x80032bc8, sys_thread_t:0x309d7ec0, state:CW,
native ID:0x1c1d) prio=5
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java(Compiled Code))
at weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java(Compiled
Code))
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:126)
----- Native Stack -----
unavailable - iar 30036f1c not in text area
"ExecuteThread-21" (TID:0x80032c38, sys_thread_t:0x309d7ba0, state:R,
native ID:0x1b1c) prio=5: pending=java.lang.NullPointerException
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
(Compiled Code))
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
l.java(Compiled Code))
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
l.java(Compiled Code))
at
weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContext
Manager.java(Compiled Code))
at
weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java(Compi
led Code))
at
weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java(Compiled
Code))
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:129)
----- Native Stack -----
unavailable - iar 1 not in text area
"ExecuteThread-20" (TID:0x80032ca8, sys_thread_t:0x309d5870, state:CW,
native ID:0x1a1b) prio=5
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java(Compiled Code))
at weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java(Compiled
Code))
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:126)
----- Native Stack -----
unavailable - iar 300b5da0 not in text area
"ExecuteThread-19" (TID:0x80032d18, sys_thread_t:0x309d2580, state:CW,
native ID:0x191a) prio=5
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java(Compiled Code))
at weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java(Compiled
Code))
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:126)
----- Native Stack -----
unavailable - iar 30038234 not in text area
"ExecuteThread-18" (TID:0x80032d88, sys_thread_t:0x309cf290, state:CW,
native ID:0x1819) prio=5
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java(Compiled Code))
at weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java(Compiled
Code))
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:126)
----- Native Stack -----
unavailable - iar 30036f1c not in text area
"ExecuteThread-17" (TID:0x80032df8, sys_thread_t:0x309cbfa0, state:CW,
native ID:0x1718) prio=5
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:426)
at weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java:99)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:126)
----- Native Stack -----
unavailable - iar 30038234 not in text area
"ExecuteThread-16" (TID:0x80032e68, sys_thread_t:0x309c8cb0, state:CW,
native ID:0x1617) prio=5
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java(Compiled Code))
at weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java(Compiled
Code))
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:126)
----- Native Stack -----
unavailable - iar 30038234 not in text area
"ExecuteThread-15" (TID:0x80032ed8, sys_thread_t:0x309c59c0, state:CW,
native ID:0x1516) prio=5
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java(Compiled Code))
at weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java(Compiled
Code))
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:126)
----- Native Stack -----
unavailable - iar 0 not in text area
"ExecuteThread-14" (TID:0x80032f48, sys_thread_t:0x309c26d0, state:CW,
native ID:0x1415) prio=5
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:426)
at weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java:99)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:126)
----- Native Stack -----
unavailable - iar 0 not in text area
"ExecuteThread-13" (TID:0x80032fb8, sys_thread_t:0x309bf3e0, state:CW,
native ID:0x1314) prio=5
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:426)
at weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java:99)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:126)
----- Native Stack -----
unavailable - iar 0 not in text area
"ExecuteThread-12" (TID:0x80033028, sys_thread_t:0x309bc170, state:CW,
native ID:0x1213) prio=5
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:426)
at weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java:99)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:126)
----- Native Stack -----
unavailable - iar 0 not in text area
"ExecuteThread-11" (TID:0x80033098, sys_thread_t:0x309b8ea0, state:CW,
native ID:0x1112) prio=5
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:426)
at weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java:99)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:126)
----- Native Stack -----
unavailable - iar 0 not in text area
"ExecuteThread-10" (TID:0x80033108, sys_thread_t:0x309b5c50, state:CW,
native ID:0x1011) prio=5
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:426)
at weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java:99)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:126)
----- Native Stack -----
unavailable - iar 0 not in text area
"ExecuteThread-9" (TID:0x80033178, sys_thread_t:0x309b2a00, state:CW,
native ID:0xf10) prio=5
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:426)
at weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java:99)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:126)
----- Native Stack -----
unavailable - iar 0 not in text area
"ExecuteThread-8" (TID:0x800331e8, sys_thread_t:0x309af7b0, state:CW,
native ID:0xe0f) prio=5
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:426)
at weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java:99)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:126)
----- Native Stack -----
unavailable - iar 0 not in text area
"ExecuteThread-7" (TID:0x80033258, sys_thread_t:0x30996c90, state:CW,
native ID:0xd0e) prio=5
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:426)
at weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java:99)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:126)
----- Native Stack -----
unavailable - iar ffffffff not in text area
"ExecuteThread-6" (TID:0x800332c8, sys_thread_t:0x30996950, state:CW,
native ID:0xc0d) prio=5
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:426)
at weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java:99)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:126)
----- Native Stack -----
unavailable - iar 0 not in text area
"ExecuteThread-5" (TID:0x80033338, sys_thread_t:0x309966b0, state:CW,
native ID:0xb0c) prio=5
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:426)
at weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java:99)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:126)
----- Native Stack -----
unavailable - iar 0 not in text area
"ExecuteThread-4" (TID:0x800333a8, sys_thread_t:0x30996430, state:CW,
native ID:0xa0b) prio=5
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:426)
at weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java:99)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:126)
----- Native Stack -----
unavailable - iar ffffffff not in text area
"ExecuteThread-3" (TID:0x80033418, sys_thread_t:0x3098ff40, state:CW,
native ID:0x90a) prio=5
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:426)
at weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java:99)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:126)
----- Native Stack -----
unavailable - iar 0 not in text area
"ExecuteThread-2" (TID:0x80033488, sys_thread_t:0x3098fcc0, state:CW,
native ID:0x809) prio=5
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:426)
at weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java:99)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:126)
----- Native Stack -----
unavailable - iar 0 not in text area
"ExecuteThread-1" (TID:0x800334f8, sys_thread_t:0x3098fa40, state:CW,
native ID:0x708) prio=5
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:426)
at weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java:99)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:126)
----- Native Stack -----
unavailable - iar 0 not in text area
"ExecuteThread-0" (TID:0x80033568, sys_thread_t:0x3098cca0, state:CW,
native ID:0x607) prio=5
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:426)
at weblogic.kernel.ExecuteThread.waitForRequest(ExecuteThread.java:99)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:126)
----- Native Stack -----
unavailable - iar 0 not in text area
"TimeEventGenerator" (TID:0x800335d8, sys_thread_t:0x308a41e0, state:CW,
native ID:0x506) prio=5
at java.lang.Object.wait(Native Method)
at weblogic.time.common.internal.TimeTable.snooze(TimeTable.java:279)
at
weblogic.time.common.internal.TimeEventGenerator.run(TimeEventGenerator.java
:141)
at java.lang.Thread.run(Thread.java:481)
----- Native Stack -----
gettimeofday
pthreadevent_wait
condwait_local
condwait
pthread_cond_timedwait
condvarTimedWait
sysMonitorWait
lkMonitorWait
JVM_MonitorWait
"SpinnerRandomSource" (TID:0x80033618, sys_thread_t:0x3087cdd0,
state:CW, native ID:0x405) prio=5
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:426)
at
weblogic.security.SpinnerThread.stopSpinning(SpinnerRandomBitsSource.java:10
4)
at weblogic.security.SpinnerThread.run(SpinnerRandomBitsSource.java:121)
----- Native Stack -----
unavailable - iar 0 not in text area
"Finalizer" (TID:0x80033728, sys_thread_t:0x300d1f30, state:CW, native
ID:0x304) prio=8
at java.lang.Object.wait(Native Method)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:114)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:129)
at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:176)
----- Native Stack -----
unavailable - iar 0 not in text area
"Reference Handler" (TID:0x80033768, sys_thread_t:0x300cc300, state:CW,
native ID:0x203) prio=10
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:426)
at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:116)
----- Native Stack -----
unavailable - iar 0 not in text area
"Signal dispatcher" (TID:0x800337a8, sys_thread_t:0x300c7670, state:CW,
native ID:0x102) prio=5
----- Native Stack -----
unavailable - iar 0 not in text area
"main" (TID:0x800337e8, sys_thread_t:0x3000c390, state:CW, native
ID:0x1) prio=5
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:426)
at weblogic.t3.srvr.T3Srvr.waitForDeath(T3Srvr.java:1862)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.Server.startServerDynamically(Server.java:139)
at weblogic.Server.main(Server.java:92)
at weblogic.Server.main(Server.java:58)
----- Native Stack -----
unavailable - iar 4 not in text area
Monitor pool info:
Initial monitor count: 32
Minimum number of free monitors before expansion: 5
Pool will next be expanded by: 36
Current total number of monitors: 72
Current number of free monitors: 15
Monitor Pool Dump (inflated object-monitors):
sys_mon_t:0x3000a9b8 infl_mon_t: 0x3000a628:
java.lang.ref.Reference$Lock@8003B760/8003B768: <unowned>
Waiting to be notified:
"Reference Handler" (0x300cc300)
sys_mon_t:0x3000aa38 infl_mon_t: -
I hava a A.class and B.java in a same dir.;''import A.class" in B.java, ClassPath include "."
I compile B.java get a err message:" '.' expired",but I can complie B.java successfully
with jdk1.3
whyI'm guessing that the A class does not belong to a named package (it does not start with a "package" statement).
JDK 1.3 allowed you to import a class with no package statement. 1.4 does not. If they are in the same package, same directory, then you do not need to import A into B. -
Binding default action of JTextComponent with JDK1.2 & 1.3
Hello,
I have a specific text component who extends JTextField. This component must work on JDK1.3 & 1.2.
I catch certain key events in the method processComponentKeyEvent to have the control over my component (in particular VK_BACK_SPACE, VK_LEFT and VK_RIGHT) and I don't want the default action inherit from JTextComponent to be exectued. With JDK1.2 this problem doesn't appear because I think the event is consume when it is thread by the processComponentKeyEvent and the operation of searching in the default key actions is not executed. But, with JDK1.3 they change the model of mapping key to event and the default actions are executed although the event is passing by the processComponentKeyEvent and e.consume was call. I find something who work on JDK1.3 by binding the default actions of key events with a "null" action. I do something like :
myField.getInputMap().put(myKeyStroke, "none");
My problem is that my components must work both with JDK1.3 & 1.2 without having two different versions of the component but the solution doesn't compile because getInputMap(KeyStroke, objectKeyToAction) doesn't exist on JDK1.2.
I try to removeActionFromKeyStroke method but it doesn't work and in plus, the change going to apply to all text component in the application.
There is a solution who can compile on both JDK1.3 & 1.2 ?
Is it a good idee to use reflection to test the presence of the method and apply the correction or you have a better idee.
Tanks a lot
FredTry using a KeyListener instead. It allows you to consume the KeyEvent, at least it does on JDK1.3.
keyListener = new KeyAdapter()
public void keyPressed(KeyEvent e)
switch (e.getKeyCode())
case KeyEvent.VK_RIGHT:
e.consume();
// add your code here
break;
case KeyEvent.VK_LEFT:
e.consume();
// add your code here
break;
}; -
How to find out which PL/SQL Proc is Compiled with Debug?
Hi,
is there any View where i can see, which PL/SQL Proc is compiled with the debug flag?
Thanks
Marco
Message was edited by:
mpatzwahAlternatively:
select name, plsql_debug from sys.all_plsql_object_settings -
SUNWspro iostream error while compiling with SunStudio 10
We are getting the following error when we try to compile the C++ code using SunStudio 10 on Sun Solaris Sparc server.
We made couple of changes in the source code 1) whereever we have stream.h we replaced it with iostream.h and 2) include fstream.h whereever required.
Can anyone tell us where did it go wrong.
+ /opt/SUNWspro/bin/CC -g -O -DHAWK -mt -lclntsh -lsocket -lnsl -I/export/home/StandardComponents/SC/include -I../../mylib -I../../include -I/opt/SUNWspro/prod/include/CC/Cstd -I. -I- -D_TRACE_ -c collectDborMtoInfo.c
"/opt/SUNWspro/prod/include/CC/Cstd/iostream.h", line 20: Error: Use ";" to terminate declarations.
"/opt/SUNWspro/prod/include/CC/Cstd/iostream.h", line 20: Error: A declaration was expected instead of "'\n'".
"/opt/SUNWspro/prod/include/CC/Cstd/iostream.h", line 20: Error: Use ";" to terminate declarations.
"/opt/SUNWspro/prod/include/CC/Cstd/iostream.h", line 20: Error: A declaration was expected instead of "'\n'".
4 Error(s) detected.Remove the -I directive that points into the compiler installation. You should not have have -I or -L options that point into the compiler installation area, into /usr/include, or into /usr/lib. The CC compiler driver knows where to find system headers and libraries, and in what order to search the directories. If you force a different search order, you can break something.
If removing -I/opt/SUNWspro/prod/include/CC/Cstd does not fix the problem, compiling with -P or -E will show you the preprocessor output, and looking at the lines with the errors will usually show the source of the problem quickly.
BTW, you should be aware that the ".h" form of the C++ headers, like <iostream.h> and <fstream.h>, is not standard. Using them is not portable, because not all C++ implementations provide them, and those that do often have different content.
Maybe you are looking for
-
How to rename with inverse rating in the filename?
This is a question about sorting and renaming. I have a bunch of sports images in Lightroom that are all tagged with an appropriate rating or 1-5 stars. Because they are sports images, some are sequences of images taken at 8fps. I want the images to
-
SJIS- Japan Encoding Issues(*Unable to handle Double Byte Numeric and Spec)
Hi All, Problem: Unable to handle Double Byte Numeric and Special Characters(Hypen) The input 区中央京勝乞田1944-2 Output 区中央京勝乞田1944?2 We have a write service created based on the JCA (Write File Adapter) with the native schema defined with SJIS Encoding a
-
Shaman not letting me use it[SOLVED]
Installed Shaman to use for installing packages, but it won't let me use the process queue button. I can view packages installed and otherwise I just can't use it to install additional packages. If you need more info just ask. using KDE Thank You Pro
-
Hi, I'm on BT Infinity 1 and have been recieving terrible speeds over the first quarter of the year. I used to get speeds of around 30mb download and 9mb upload, now I can only get speeds of around 2mb download and just under 1mb upload. At the end
-
SAP R/3 Enterprise (4.7) installation.
Hi, how many GB of disk space are required to install SAP R/3 Enterprise (4.7) ? Yours faithfully