-
Bug
-
Resolution: Won't Fix
-
P4
-
None
-
1.2.0, 1.2.1, 1.2.2
-
generic, x86
-
generic, windows_98, windows_nt
======================
Name: skT88420 Date: 11/12/99
java version "1.2.1"
Classic VM (build JDK-1.2.1-A, native threads)
Here is the text of the error message:
A nonfatal internal JIT (3.00.078(x)) error 'Structured Exception(c0000005)' has
occurred in :
'ise/services/IHM/LL/ResLL.updateDetailedModel (Lise/services/IHM/Modele/LienL
L;ILjava/util/BitSet;)V': Interpreting method.
Please report this error in detail to http://java.sun.com/cgi-bin/bugreport.cg
i
My code is doing the folloing standard operation on a bitset within the same
class:
BitSet v_BitSet = new BitSet(7);
private static BitSet FALSE_BITSET = new BitSet(7);
v_BitSet.and(FALSE_BITSET); // reset bitset à false
// set and get the bitset from various index from 0 to 6
v_BitSet.set(1)
v_BitSet.get(1)
(Review ID: 97784)
======================================================================
Name: skT88420 Date: 12/07/99
java version "1.2"
Classic VM (build JDK-1.2-V, native threads)
A nonfatal internal JIT (3.00.078(x)) error 'Structured Exception(c0000005)' has
occurred in :
'Project.main ([Ljava/lang/String;)V': Interpreting method.
Please report this error in detail to http://java.sun.com/cgi-bin/bugreport.cg
i
import java.util.Vector;
import java.util.Stack;
public class Project extends Object
{
public static void main(String args[])
{
//If the right number of arguments is not supplied display error message
and quit
if (args.length != 2)
{
System.out.println("\nUsage: Project StartWord
GoalWord\n");
System.exit(0);
}
// Local declarations
Dictionary dic = new Dictionary("wordfile.txt");
boolean allMarked = true;
Vector fopenList = new Vector();
Vector fclosedList = new Vector();
Vector bopenList = new Vector();
Vector bclosedList = new Vector();
int count = 0;
Word tempWord;
String output = "";
Word input = new Word(args[0]);
Word goal = new Word(args[1]);
Queue fq = new Queue();
Queue bq = new Queue();
boolean forwardEmpty = false;
boolean backwardEmpty = false;
boolean unfound = true;
boolean bothEmpty = false;
//Checks that the start and goal words have the same lenght
if(input.Name.length() != goal.Name.length())
{
System.out.println("The start and goal words have
different length");
System.exit(0);
}
System.out.println("chech one");
//Checks that both start and goal words are in the dictionary
file
if(dic.containsWord(input) == false)
{
System.out.println("The start word is not in the
dictionary");
System.exit(0);
}
if(dic.containsWord(goal) == false)
{
System.out.println("The goal word is no in the
dictionary");
System.exit(0);
}
//Adds the children of the input word
for (int counts = 0; counts < dic.wordsSize; counts++)
{
if(input.canBeChild(dic.words[counts]))
{
input.AddChild(dic.words[counts]);
dic.words[counts].givefParent(input);
fopenList.addElement(dic.words[counts].Name);
}
}
for (int counts = 0; counts < dic.wordsSize; counts++)
{
if(goal.canBeChild(dic.words[counts]))
{
goal.AddChild(dic.words[counts]);
dic.words[counts].givebParent(goal);
bopenList.addElement(dic.words[counts].Name);
}
}
//Checks that the start word has at least one child
if(input.NumChildren() == 0)
{
System.out.println("Start word has no children");
System.exit(0);
}
for(int i = 0; i < input.NumChildren(); i++)
{
fq.Add(input.GetChild(i));
}
if(goal.NumChildren() == 0)
{
System.out.println("Goal word has no children");
System.exit(0);
}
for(int i = 0; i < goal.NumChildren(); i++)
{
bq.Add(goal.GetChild(i));
}
while((unfound==false)&&(bothEmpty == false))
{
//Check head of fqueue is not on closed lists
if(forwardEmpty == false)
{
tempWord = (Word)fq.Remove();
fopenList.removeElement(tempWord.Name);
fclosedList.addElement(tempWord.Name);
if
((bopenList.contains(tempWord.Name))||(bclosedList.contains(tempWord.Name)))
{
unfound = false;
}
//Add children of tempWord
for (int counts = 0; counts < dic.wordsSize;
counts++)
{
if((tempWord.canBeChild(dic.words[counts])&&(!fclosedList.contains(dic.words[cou
nts].Name))&&(!fopenList.contains(dic.words[counts].Name))))
{
tempWord.AddChild(dic.words[counts]);
dic.words[counts].givefParent(tempWord);
fopenList.addElement(dic.words[counts].Name);
}
}
for(int i = 0; i < tempWord.NumChildren(); i++)
{
fq.Add(tempWord.GetChild(i));
}
if (fq.Size == 0)
{
forwardEmpty = true;
}
}
//Check head of fqueue is not on closed lists
if(backwardEmpty == false)
{
tempWord = (Word)bq.Remove();
bopenList.removeElement(tempWord.Name);
bclosedList.addElement(tempWord.Name);
if
((fopenList.contains(tempWord.Name))||(fclosedList.contains(tempWord.Name)))
{
unfound = false;
}
//Add children of tempWord
for (int counts = 0; counts < dic.wordsSize;
counts++)
{
if((tempWord.canBeChild(dic.words[counts])&&(!fclosedList.contains(dic.words[cou
nts].Name))&&(!fopenList.contains(dic.words[counts].Name))))
{
tempWord.AddChild(dic.words[counts]);
dic.words[counts].givebParent(tempWord);
bopenList.addElement(dic.words[counts].Name);
}
}
for(int i = 0; i < tempWord.NumChildren(); i++)
{
bq.Add(tempWord.GetChild(i));
}
if (bq.Size == 0)
{
backwardEmpty = true;
}
}
if((forwardEmpty == true) && (backwardEmpty == true))
bothEmpty = true;
}
if((bothEmpty == true) && (unfound == true))
{
System.out.println("No route found from start to goal");
System.exit(0);
}
if(unfound = false)
{
System.out.println("Route from start to goal found");
System.exit(0);
}
}
}
(Review ID: 98749)
======================================================================
Name: skT88420 Date: 02/23/2000
java version "1.2.1"
Classic VM (build JDK-1.2.1-A, native threads)
A nonfatal internal JIT (3.00.078(x)) error 'Structured Exception(c0000005)' has
occurred in :
'CLS.main ([Ljava/lang/String;)V': Interpreting method.
------ Source Code ------------
//import TA.Util.*;
class CLS{
public static void main(String[] args){
int N = 10;
int p = 2;
int q = 2;
double[] x = new double[N];
double[] alpha = new double[p];
double[] beta = new double[q];
double Delta = 0.01;
double LKH = 0.0;
// konstruiere Daten
x[0] = 1;
x[1] = 1;
for(int i=2; i < N ; i++)
{
x[i] = 1.12*x[i-1] - 0.1*x[i-2];
}
for(int i=0; i < N ; i++)
{
System.out.print(x[i]+" ");
}
System.out.println("");
// setze Anfangswerte für alpha und beta
for(int i=0; i < p ; i++)
{
alpha[i] = 1.0;
}
for(int i=0; i < q ; i++)
{
beta[i] = 1.0;
}
// nun die Likelyhood iterativ verbessern
double LKH2;
/* LKH = computeLKH(alpha,beta,x);
System.out.println("LKH1 ="+LKH);
alpha[0] =1.12;
alpha[1] = -0.1;
LKH2 = computeLKH(alpha,beta,x);
System.out.println("LKH2 ="+LKH2); */
double change = 1.0;
int zz = 1000;
double oldLKH;
double newLKH;
oldLKH = computeLKH(alpha,beta,x);
while ((change > 0.1) && (zz < 1000))
{
// testen, was Änderungen der alphas bewirken und ggf. ändern
for(int ip = 0; ip < p ; ip++)
{
LKH = computeLKH(alpha,beta,x);
System.out.println("LKH "+zz+" ="+LKH);
alpha[ip] += Delta;
LKH2 = computeLKH(alpha,beta,x);
System.out.println("LKH2"+zz+" ="+LKH2);
if (LKH < LKH2)
{
alpha[ip] -= 2*Delta;
}
}
// testen, was Änderungen der betas bewirken und ggf. ändern
for(int iq = 0; iq < q ; iq++)
{
LKH = computeLKH(alpha,beta,x);
beta[iq] += Delta;
LKH2 = computeLKH(alpha,beta,x);
if (LKH < LKH2)
{
beta[iq] -= 2*Delta;
}
}
printParams(alpha,beta);
newLKH = computeLKH(alpha,beta,x);
change = Math.abs( (oldLKH - newLKH)/ oldLKH);
oldLKH = newLKH;
// WAIT.warte(zz+"");
// System.out.println("LKH"+zz+" ="+LKH);
zz++;
}
}
/** berechnet die approximative Likelihood-Funktion */
private static double computeLKH(double[] alpha,double[] beta, double[] x)
{
int N = x.length;
int p = alpha.length;
int q = beta.length;
double[] u = new double[N];
// berechne zunächst die u_i
for(int i=0 ; i < N; i++)
{
// System.out.println("i= "+i);
u[i] = x[i];
for(int ip=0; ip < Math.min(p,i); ip++)
{
// System.out.println(" ip= "+ip);
u[i] -= alpha[ip]*x[i-ip-1];
}
for(int iq=0; iq < Math.min(q,i); iq++)
{
// System.out.println(" iq= "+iq);
u[i] += beta[iq]*x[i-iq-1];
}
}
/*for(int i=0; i < N ; i++)
{
System.out.print(u[i]+" ");
}
System.out.println(""); */
double LKH = 0.0;
for(int i=0; i < N ; i++)
{
LKH += u[i]*u[i];
}
return(LKH);
}
private static void printParams(double[] a,double[] b)
{
for(int i=0; i < a.length; i++)
{
System.out.println("a["+i+"]="+a[i]);
}
for(int i=0; i < b.length; i++)
{
System.out.println("b["+i+"]="+b[i]);
}
}
}
(Review ID: 101600)
======================================================================
Name: vi73552 Date: 06/14/99
1)& 2) Please compile the following program
import java.io.*;
import javax.*;
class Qleantab3d
{
public static void main(String[] argv) throws IOException
{
FileReader reader = new FileReader("brut3.htm");
FileWriter writer = new FileWriter("clean3.htm");
int c,temp;
boolean finstyle = false;
boolean fstrow = true;
boolean fintr = false;
boolean inrow2 = false;
boolean financ;
BufferedReader lecteur = new BufferedReader(reader);
BufferedWriter ecrivain = new BufferedWriter(writer);
do
{
c = lecteur.read();
if (Character.toUpperCase((char)c) == '<')
{
if ((c = lecteur.read()) == '!')
{
do
c = lecteur.read();
while (c != '>');
ecrivain.write("<!--");
ecrivain.newLine();
ecrivain.write("p, ul { font-family: Arial, Helvetica, sans-serif; font-size: 10pt; font-style: normal;};");
ecrivain.newLine();
ecrivain.write("p.rubric1 { color:#990099; }");
ecrivain.newLine();
ecrivain.write("p.rubric2 { color:#CC0000; }");
ecrivain.newLine();
ecrivain.write("p.rubric3 { color:#FF9900; }");
ecrivain.newLine();
ecrivain.write("p.rubric4 { color:#336600; }");
ecrivain.write("->");
}
else
{
ecrivain.write("<");
ecrivain.write(c);
}
}
else
ecrivain.write(c);
}
while (!finstyle);
do /* saute le tag TABLE */
{
c = lecteur.read();
ecrivain.write(c);
}
while (c != '>');
/* efface la 1ere ligne du tableau */
while (!fintr)
{
if ((c = lecteur.read()) == '<')
{
if ((c = lecteur.read()) == '/')
{
c = lecteur.read();
if (Character.toUpperCase((char)c) == 'T')
{
c = lecteur.read();
if (Character.toUpperCase((char)c) == 'R')
{
c = lecteur.read();
fintr = true;
}
}
}
}
};
/* traitement a partir de la 2eme ligne du tableau */
inrow2 = true;
while ((c = lecteur.read()) != -1)
{
switch(Character.toUpperCase((char)c))
{
case '<': /* tag */
{
c = lecteur.read();
switch(Character.toUpperCase((char)c))
{ case 'A': /* tag <A ...> a sauter */
{
financ = false;
while (!financ)
{
if ((c = lecteur.read()) == '<')
{
if ((c = lecteur.read()) == '/')
{
c = lecteur.read();
if (Character.toUpperCase((char)c) == 'A')
{
c = lecteur.read();
financ = true; /* sortie de boucle si tag </A> lu */
}
}
}
};
}
break;
case 'F': /* tag <FONT> */
do
c = lecteur.read();
while (c != '>');
break;
case 'L': /* tag <LI> */
if (inrow2)
{
c = lecteur.read(); /* I */
c = lecteur.read(); /* > */
}
else
ecrivain.write("<L");
break;
case 'O':
c = lecteur.read();
c = lecteur.read();
break;
case 'P':
if ((c = lecteur.read()) == '>')
{
if ((c = lecteur.read()) == '&')
{
if ((c = lecteur.read()) == 'n')
{
c = lecteur.read(); /* b */
c = lecteur.read(); /* s */
c = lecteur.read(); /* p */
c = lecteur.read(); /* ; */
c = lecteur.read(); /* < */
c = lecteur.read(); /* / */
c = lecteur.read();
switch(Character.toUpperCase((char)c))
{
case 'P':
c = lecteur.read();
break;
case 'F':
c = lecteur.read(); /* O */
c = lecteur.read(); /* N */
c = lecteur.read(); /* T */
c = lecteur.read(); /* > */
break;
default: /* DIR */
{
ecrivain.write("</");
ecrivain.write(c);
}
}
}
else
{
ecrivain.write("<P>&");
ecrivain.write(c);
}
}
else
{
ecrivain.write("<P>");
ecrivain.write(c);
}
}
else
{
ecrivain.write("<P");
ecrivain.write(c);
}
break;
case 'U':
{
c = lecteur.read();
if (Character.toUpperCase((char)c) == 'L') /* tag <UL> a recopier*/
{
c = lecteur.read();
ecrivain.write("<UL>");
} /* sinon tag <U> a sauter */
}
break;
case '/':
{
c = lecteur.read();
switch(Character.toUpperCase((char)c))
{
case 'F': /* tag </FONT> */
do
c = lecteur.read();
while (c != '>');
break;
case 'L': /* tag </LI> */
if (inrow2)
{
c = lecteur.read(); /* I */
c = lecteur.read(); /* > */
}
else
ecrivain.write("</L");
break;
case 'O':
{
c = lecteur.read();
c = lecteur.read();
}
break;
case 'U':
{
c = lecteur.read();
if (Character.toUpperCase((char)c) == 'L') /* tag </UL> a recopier*/
{
c = lecteur.read();
ecrivain.write("</UL>");
}
}
break;
default: /* autres cas: recopier ce qu'on a lu */
{
ecrivain.write("</");
ecrivain.write(c);
}
};
};
break;
default: /* autres cas: recopier ce qu'on a lu */
{
ecrivain.write("<");
ecrivain.write(c);
}
}
};
break;
default: /* autres cas: recopier ce qu'on a lu */
{
ecrivain.write(c);
}
}
}
ecrivain.close();
lecteur.close();
}
}
-----------------------------------------------------------------
3) Text of the error message:
A nonfatal internal JIT (3.00.078(x)) error 'Structured Exception(c0000005)' has occurred in :
'Qleantab3d.main([Ljava/lang/String;)V': Interpreting method.
4) ???
5)java version "1.2.1"
Classic VM (build JDK-1.2.1-A, native threads)
java full version "JDK-1.2.1-A"
6) none
(Review ID: 84320)
======================================================================
Name: skT88420 Date: 08/25/99
E:\sourcearchive\test\TVESSEL\NETDOC.UI>e:\jdk1.2\bin\javac -classpath .;e:\sourcearchive TGR03.java
Symantec Java! JustInTime Compiler Version 3.00.078(x) for JDK 1.2
Copyright (C) 1996-98 Symantec Corporation
A nonfatal internal JIT (3.00.078(x)) error 'Structured Exception(c0000005)' has occurred in :
'sun/tools/javac/Main.compile ([Ljava/lang/String;)Z': Interpreting method.
Please report this error in detail to http://java.sun.com/cgi-bin/bugreport.cgi
Comment:
As with many other JIT failures, it was not reproducible.
(Review ID: 94338)
======================================================================
Name: skT88420 Date: 10/01/99
A nonfatal internal JIT (3.00.078(x)) error 'Structured Exception(c0000005)' has occurred in :
'Nim.paint (Ljava/awt/Graphics;)V': Interpreting method.
Please report this error in detail to http://java.sun.com/cgi-bin/bugreport.cgi
import java.awt.*;
import java.awt.event.*;
import java.applet.Applet;
public class Nim extends Applet implements AdjustmentListener, ActionListener{
private Scrollbar playOne, playTwo;
private Button pOneGo, pTwoGo, newGame;
private int playOneMove, playTwoMove;
private int numStix = 45;
public void init() {
Label nameOne = new Label ("Player 1 :");
add(nameOne);
playOne = new Scrollbar (Scrollbar.HORIZONTAL, 1, 1, 1, 4);
add(playOne);
playOne.addAdjustmentListener (this);
pOneGo = new Button ("Go");
add(pOneGo);
Label nameTwo = new Label (" Player 2 :");
add(nameTwo);
playTwo = new Scrollbar (Scrollbar.HORIZONTAL, 1, 1, 1, 4);
add(playTwo);
playTwo.addAdjustmentListener (this);
pTwoGo = new Button ("Go");
add(pTwoGo);
newGame = new Button ("New Game");
add(newGame);
}
public void paint(Graphics g) {
if (
(numStix/10)>0){
int columnLeftY = 80;
int columnLeftX = 80;
for (int layer = 0; layer < (numStix/10); layer++){
columnLeftX = 80;
columnLeftY +=40;
for (int column = 0; column < 10; column++){
g.drawLine (columnLeftX, columnLeftY, columnLeftX, (columnLeftY + 20));
columnLeftX += 20;
}
}
columnLeftX = 80;
columnLeftY +=40;
for (int column = 0; column < (numStix%10); column++){
g.drawLine (columnLeftX, columnLeftY, columnLeftX, (columnLeftY + 20));
columnLeftX += 20;
}
}
}
public void adjustmentValueChanged (AdjustmentEvent e){
playOneMove = playOne.getValue();
playTwoMove = playTwo.getValue();
}
public void actionPerformed (ActionEvent e){
repaint();
}
}
(Review ID: 96022)
======================================================================
Name: skT88420 Date: 10/20/99
Dear Sir/Madam
I was trying on simple application of JDBC 2.0 for oracle
The code written as follows:
//import jdbc.sql.*;
import java.sql.*;
import oracle.jdbc.driver.*;
import oracle.jdbc.driver.OracleConnection.*;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
class Employee extends JFrame
{
public static void main (String args []) throws SQLException, ClassNotFoundException
{
try
{
//Class.forName ("oracle.jdbc.driver.OracleDriver");
DriverManager.registerDriver((oracle.jdbc.driver.OracleDriver)new oracle.jdbc.driver.OracleDriver());
oracle.jdbc.driver.OracleConnection conn =
(oracle.jdbc.driver.OracleConnection)DriverManager.getConnection ("jdbc:oracle:thin:@192.168.7.195:1521:ORCL","scott", "tiger");
//Connection conn = DriverManager.getConnection ("jdbc:oracle:thin:@192.168.7.195:1521:ORCL","scott", "tiger");
Statement stmt =conn.createStatement( ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_READ_ONLY );
//stmt.setFetchSize(25);
//Statement stmt =conn.createStatement();
ResultSet rset = stmt.executeQuery ("select * from EMP");
//int a = OracleResultSet.getType();
//System.out.print(a);
while (rset.next ())
{
System.out.print(rset.getString (1) + "\t\t\t");
System.out.print(rset.getString (2)+ "\t\t");
System.out.print(rset.getString (3)+ "\t\t\t");
System.out.print(rset.getString (4)+ "\t\t\t");
System.out.print(rset.getString (5)+ "\t\t\t");
System.out.println(rset.getString (6));
}
}
catch(Exception e)
{
e.printStackTrace();
}
}
}
After running this code I am getting following error :
A nonfatal internal JIT (3.00.078(x)) error 'Structured Exception(c0000005)' has occurred in :
'Employee.main ([Ljava/lang/String;)V': Interpreting method.
Please report this error in detail to http://java.sun.com/cgi-bin/bugreport.cgi
java.lang.AbstractMethodError: oracle/jdbc/driver/OracleConnection.createStatement
at Employee.main(Employee.java:22)
Exception in thread "main" Process Exit...
please give me solution for same.
Thanks
regards
Sameer Nigade
(Review ID: 96769)
======================================================================
Name: skT88420 Date: 10/21/99
A nonfatal internal JIT (3.00.078(x)) error 'Structured Exception(c0000005)' has
occurred in :
'inetsoft/report/ChartPainter.paintPie (Ljava/awt/Graphics;Z)V': Interpreting
method.
(Review ID: 96819)
======================================================================
Name: skT88420 Date: 10/27/99
java version "1.2"
Classic VM (build JDK-1.2-V, native threads)
A nonfatal internal JIT (3.00.078(x)) error 'Structured Exception(c0000005)' has
occurred in : 'sun/java2d/loops/RasterOutputManager.validatePipe
(Lsun/java2d/SunGraphics2D;)V': Interpreting method.
(Review ID: 97138)
======================================================================
Name: skT88420 Date: 11/01/99
java version "1.2"
Classic VM (build JDK-1.2-V, native threads)
Hello, this program should be reading in two "args" and make a two-dimensional
array like an list ex.
1*1 2*1 3*1 4*1
1*2 2*2 3*2 ...
1*3 2*3 3*3 ...
...............
1*9 2*9 3*9 ...
until the args[0]*args[1] came up then the program should finish.
Here's the code...
class upg7
{
public static void main(String[] args)
{
int temp = Integer.parseInt(args[1]);
int temp2 = Integer.parseInt(args[0]);
int d1[][] = new int[temp][9];
int x = -1, quit = 0;
while(quit == 0);
{
x++;
for (int i = 0; i > 9; i++ )
{
if(temp != x && temp2 <= i)
{
d1[x][i] = (x+1)*(i+1);
}
else
{
quit++;
break;
}
}
}
quit = 0; x = -1;
while(quit == 0)
{
x++;
for (int i = 0;i > 9 ;i++ )
{
if(temp != x && temp2 <= i)
{
System.out.println(d1[x][i]);
}
else
{
quit++;
break;
}
}
}
}
}
Errormess:
H:\java\TestProv> upg7 1 3
A nonfatal internal JIT (3.00.078(x)) error 'Structured Exception(c0000005)' has
occured in:
'upg7.main ([Ljava/lang/String;)V': Interpreting method.
Please report this error in detail to http://java.sun.com/cgi-bin/bugreport.cg
i
(Review ID: 97269)
================================================
Name: skT88420 Date: 11/12/99
java version "1.2.1"
Classic VM (build JDK-1.2.1-A, native threads)
Here is the text of the error message:
A nonfatal internal JIT (3.00.078(x)) error 'Structured Exception(c0000005)' has
occurred in :
'ise/services/IHM/LL/ResLL.updateDetailedModel (Lise/services/IHM/Modele/LienL
L;ILjava/util/BitSet;)V': Interpreting method.
Please report this error in detail to http://java.sun.com/cgi-bin/bugreport.cg
i
My code is doing the folloing standard operation on a bitset within the same
class:
BitSet v_BitSet = new BitSet(7);
private static BitSet FALSE_BITSET = new BitSet(7);
v_BitSet.and(FALSE_BITSET); // reset bitset à false
// set and get the bitset from various index from 0 to 6
v_BitSet.set(1)
v_BitSet.get(1)
(Review ID: 97784)
======================================================================
Name: skT88420 Date: 12/07/99
java version "1.2"
Classic VM (build JDK-1.2-V, native threads)
A nonfatal internal JIT (3.00.078(x)) error 'Structured Exception(c0000005)' has
occurred in :
'Project.main ([Ljava/lang/String;)V': Interpreting method.
Please report this error in detail to http://java.sun.com/cgi-bin/bugreport.cg
i
import java.util.Vector;
import java.util.Stack;
public class Project extends Object
{
public static void main(String args[])
{
//If the right number of arguments is not supplied display error message
and quit
if (args.length != 2)
{
System.out.println("\nUsage: Project StartWord
GoalWord\n");
System.exit(0);
}
// Local declarations
Dictionary dic = new Dictionary("wordfile.txt");
boolean allMarked = true;
Vector fopenList = new Vector();
Vector fclosedList = new Vector();
Vector bopenList = new Vector();
Vector bclosedList = new Vector();
int count = 0;
Word tempWord;
String output = "";
Word input = new Word(args[0]);
Word goal = new Word(args[1]);
Queue fq = new Queue();
Queue bq = new Queue();
boolean forwardEmpty = false;
boolean backwardEmpty = false;
boolean unfound = true;
boolean bothEmpty = false;
//Checks that the start and goal words have the same lenght
if(input.Name.length() != goal.Name.length())
{
System.out.println("The start and goal words have
different length");
System.exit(0);
}
System.out.println("chech one");
//Checks that both start and goal words are in the dictionary
file
if(dic.containsWord(input) == false)
{
System.out.println("The start word is not in the
dictionary");
System.exit(0);
}
if(dic.containsWord(goal) == false)
{
System.out.println("The goal word is no in the
dictionary");
System.exit(0);
}
//Adds the children of the input word
for (int counts = 0; counts < dic.wordsSize; counts++)
{
if(input.canBeChild(dic.words[counts]))
{
input.AddChild(dic.words[counts]);
dic.words[counts].givefParent(input);
fopenList.addElement(dic.words[counts].Name);
}
}
for (int counts = 0; counts < dic.wordsSize; counts++)
{
if(goal.canBeChild(dic.words[counts]))
{
goal.AddChild(dic.words[counts]);
dic.words[counts].givebParent(goal);
bopenList.addElement(dic.words[counts].Name);
}
}
//Checks that the start word has at least one child
if(input.NumChildren() == 0)
{
System.out.println("Start word has no children");
System.exit(0);
}
for(int i = 0; i < input.NumChildren(); i++)
{
fq.Add(input.GetChild(i));
}
if(goal.NumChildren() == 0)
{
System.out.println("Goal word has no children");
System.exit(0);
}
for(int i = 0; i < goal.NumChildren(); i++)
{
bq.Add(goal.GetChild(i));
}
while((unfound==false)&&(bothEmpty == false))
{
//Check head of fqueue is not on closed lists
if(forwardEmpty == false)
{
tempWord = (Word)fq.Remove();
fopenList.removeElement(tempWord.Name);
fclosedList.addElement(tempWord.Name);
if
((bopenList.contains(tempWord.Name))||(bclosedList.contains(tempWord.Name)))
{
unfound = false;
}
//Add children of tempWord
for (int counts = 0; counts < dic.wordsSize;
counts++)
{
if((tempWord.canBeChild(dic.words[counts])&&(!fclosedList.contains(dic.words[cou
nts].Name))&&(!fopenList.contains(dic.words[counts].Name))))
{
tempWord.AddChild(dic.words[counts]);
dic.words[counts].givefParent(tempWord);
fopenList.addElement(dic.words[counts].Name);
}
}
for(int i = 0; i < tempWord.NumChildren(); i++)
{
fq.Add(tempWord.GetChild(i));
}
if (fq.Size == 0)
{
forwardEmpty = true;
}
}
//Check head of fqueue is not on closed lists
if(backwardEmpty == false)
{
tempWord = (Word)bq.Remove();
bopenList.removeElement(tempWord.Name);
bclosedList.addElement(tempWord.Name);
if
((fopenList.contains(tempWord.Name))||(fclosedList.contains(tempWord.Name)))
{
unfound = false;
}
//Add children of tempWord
for (int counts = 0; counts < dic.wordsSize;
counts++)
{
if((tempWord.canBeChild(dic.words[counts])&&(!fclosedList.contains(dic.words[cou
nts].Name))&&(!fopenList.contains(dic.words[counts].Name))))
{
tempWord.AddChild(dic.words[counts]);
dic.words[counts].givebParent(tempWord);
bopenList.addElement(dic.words[counts].Name);
}
}
for(int i = 0; i < tempWord.NumChildren(); i++)
{
bq.Add(tempWord.GetChild(i));
}
if (bq.Size == 0)
{
backwardEmpty = true;
}
}
if((forwardEmpty == true) && (backwardEmpty == true))
bothEmpty = true;
}
if((bothEmpty == true) && (unfound == true))
{
System.out.println("No route found from start to goal");
System.exit(0);
}
if(unfound = false)
{
System.out.println("Route from start to goal found");
System.exit(0);
}
}
}
(Review ID: 98749)
======================================================================
Name: skT88420 Date: 02/23/2000
java version "1.2.1"
Classic VM (build JDK-1.2.1-A, native threads)
A nonfatal internal JIT (3.00.078(x)) error 'Structured Exception(c0000005)' has
occurred in :
'CLS.main ([Ljava/lang/String;)V': Interpreting method.
------ Source Code ------------
//import TA.Util.*;
class CLS{
public static void main(String[] args){
int N = 10;
int p = 2;
int q = 2;
double[] x = new double[N];
double[] alpha = new double[p];
double[] beta = new double[q];
double Delta = 0.01;
double LKH = 0.0;
// konstruiere Daten
x[0] = 1;
x[1] = 1;
for(int i=2; i < N ; i++)
{
x[i] = 1.12*x[i-1] - 0.1*x[i-2];
}
for(int i=0; i < N ; i++)
{
System.out.print(x[i]+" ");
}
System.out.println("");
// setze Anfangswerte für alpha und beta
for(int i=0; i < p ; i++)
{
alpha[i] = 1.0;
}
for(int i=0; i < q ; i++)
{
beta[i] = 1.0;
}
// nun die Likelyhood iterativ verbessern
double LKH2;
/* LKH = computeLKH(alpha,beta,x);
System.out.println("LKH1 ="+LKH);
alpha[0] =1.12;
alpha[1] = -0.1;
LKH2 = computeLKH(alpha,beta,x);
System.out.println("LKH2 ="+LKH2); */
double change = 1.0;
int zz = 1000;
double oldLKH;
double newLKH;
oldLKH = computeLKH(alpha,beta,x);
while ((change > 0.1) && (zz < 1000))
{
// testen, was Änderungen der alphas bewirken und ggf. ändern
for(int ip = 0; ip < p ; ip++)
{
LKH = computeLKH(alpha,beta,x);
System.out.println("LKH "+zz+" ="+LKH);
alpha[ip] += Delta;
LKH2 = computeLKH(alpha,beta,x);
System.out.println("LKH2"+zz+" ="+LKH2);
if (LKH < LKH2)
{
alpha[ip] -= 2*Delta;
}
}
// testen, was Änderungen der betas bewirken und ggf. ändern
for(int iq = 0; iq < q ; iq++)
{
LKH = computeLKH(alpha,beta,x);
beta[iq] += Delta;
LKH2 = computeLKH(alpha,beta,x);
if (LKH < LKH2)
{
beta[iq] -= 2*Delta;
}
}
printParams(alpha,beta);
newLKH = computeLKH(alpha,beta,x);
change = Math.abs( (oldLKH - newLKH)/ oldLKH);
oldLKH = newLKH;
// WAIT.warte(zz+"");
// System.out.println("LKH"+zz+" ="+LKH);
zz++;
}
}
/** berechnet die approximative Likelihood-Funktion */
private static double computeLKH(double[] alpha,double[] beta, double[] x)
{
int N = x.length;
int p = alpha.length;
int q = beta.length;
double[] u = new double[N];
// berechne zunächst die u_i
for(int i=0 ; i < N; i++)
{
// System.out.println("i= "+i);
u[i] = x[i];
for(int ip=0; ip < Math.min(p,i); ip++)
{
// System.out.println(" ip= "+ip);
u[i] -= alpha[ip]*x[i-ip-1];
}
for(int iq=0; iq < Math.min(q,i); iq++)
{
// System.out.println(" iq= "+iq);
u[i] += beta[iq]*x[i-iq-1];
}
}
/*for(int i=0; i < N ; i++)
{
System.out.print(u[i]+" ");
}
System.out.println(""); */
double LKH = 0.0;
for(int i=0; i < N ; i++)
{
LKH += u[i]*u[i];
}
return(LKH);
}
private static void printParams(double[] a,double[] b)
{
for(int i=0; i < a.length; i++)
{
System.out.println("a["+i+"]="+a[i]);
}
for(int i=0; i < b.length; i++)
{
System.out.println("b["+i+"]="+b[i]);
}
}
}
(Review ID: 101600)
======================================================================
Name: vi73552 Date: 06/14/99
1)& 2) Please compile the following program
import java.io.*;
import javax.*;
class Qleantab3d
{
public static void main(String[] argv) throws IOException
{
FileReader reader = new FileReader("brut3.htm");
FileWriter writer = new FileWriter("clean3.htm");
int c,temp;
boolean finstyle = false;
boolean fstrow = true;
boolean fintr = false;
boolean inrow2 = false;
boolean financ;
BufferedReader lecteur = new BufferedReader(reader);
BufferedWriter ecrivain = new BufferedWriter(writer);
do
{
c = lecteur.read();
if (Character.toUpperCase((char)c) == '<')
{
if ((c = lecteur.read()) == '!')
{
do
c = lecteur.read();
while (c != '>');
ecrivain.write("<!--");
ecrivain.newLine();
ecrivain.write("p, ul { font-family: Arial, Helvetica, sans-serif; font-size: 10pt; font-style: normal;};");
ecrivain.newLine();
ecrivain.write("p.rubric1 { color:#990099; }");
ecrivain.newLine();
ecrivain.write("p.rubric2 { color:#CC0000; }");
ecrivain.newLine();
ecrivain.write("p.rubric3 { color:#FF9900; }");
ecrivain.newLine();
ecrivain.write("p.rubric4 { color:#336600; }");
ecrivain.write("->");
}
else
{
ecrivain.write("<");
ecrivain.write(c);
}
}
else
ecrivain.write(c);
}
while (!finstyle);
do /* saute le tag TABLE */
{
c = lecteur.read();
ecrivain.write(c);
}
while (c != '>');
/* efface la 1ere ligne du tableau */
while (!fintr)
{
if ((c = lecteur.read()) == '<')
{
if ((c = lecteur.read()) == '/')
{
c = lecteur.read();
if (Character.toUpperCase((char)c) == 'T')
{
c = lecteur.read();
if (Character.toUpperCase((char)c) == 'R')
{
c = lecteur.read();
fintr = true;
}
}
}
}
};
/* traitement a partir de la 2eme ligne du tableau */
inrow2 = true;
while ((c = lecteur.read()) != -1)
{
switch(Character.toUpperCase((char)c))
{
case '<': /* tag */
{
c = lecteur.read();
switch(Character.toUpperCase((char)c))
{ case 'A': /* tag <A ...> a sauter */
{
financ = false;
while (!financ)
{
if ((c = lecteur.read()) == '<')
{
if ((c = lecteur.read()) == '/')
{
c = lecteur.read();
if (Character.toUpperCase((char)c) == 'A')
{
c = lecteur.read();
financ = true; /* sortie de boucle si tag </A> lu */
}
}
}
};
}
break;
case 'F': /* tag <FONT> */
do
c = lecteur.read();
while (c != '>');
break;
case 'L': /* tag <LI> */
if (inrow2)
{
c = lecteur.read(); /* I */
c = lecteur.read(); /* > */
}
else
ecrivain.write("<L");
break;
case 'O':
c = lecteur.read();
c = lecteur.read();
break;
case 'P':
if ((c = lecteur.read()) == '>')
{
if ((c = lecteur.read()) == '&')
{
if ((c = lecteur.read()) == 'n')
{
c = lecteur.read(); /* b */
c = lecteur.read(); /* s */
c = lecteur.read(); /* p */
c = lecteur.read(); /* ; */
c = lecteur.read(); /* < */
c = lecteur.read(); /* / */
c = lecteur.read();
switch(Character.toUpperCase((char)c))
{
case 'P':
c = lecteur.read();
break;
case 'F':
c = lecteur.read(); /* O */
c = lecteur.read(); /* N */
c = lecteur.read(); /* T */
c = lecteur.read(); /* > */
break;
default: /* DIR */
{
ecrivain.write("</");
ecrivain.write(c);
}
}
}
else
{
ecrivain.write("<P>&");
ecrivain.write(c);
}
}
else
{
ecrivain.write("<P>");
ecrivain.write(c);
}
}
else
{
ecrivain.write("<P");
ecrivain.write(c);
}
break;
case 'U':
{
c = lecteur.read();
if (Character.toUpperCase((char)c) == 'L') /* tag <UL> a recopier*/
{
c = lecteur.read();
ecrivain.write("<UL>");
} /* sinon tag <U> a sauter */
}
break;
case '/':
{
c = lecteur.read();
switch(Character.toUpperCase((char)c))
{
case 'F': /* tag </FONT> */
do
c = lecteur.read();
while (c != '>');
break;
case 'L': /* tag </LI> */
if (inrow2)
{
c = lecteur.read(); /* I */
c = lecteur.read(); /* > */
}
else
ecrivain.write("</L");
break;
case 'O':
{
c = lecteur.read();
c = lecteur.read();
}
break;
case 'U':
{
c = lecteur.read();
if (Character.toUpperCase((char)c) == 'L') /* tag </UL> a recopier*/
{
c = lecteur.read();
ecrivain.write("</UL>");
}
}
break;
default: /* autres cas: recopier ce qu'on a lu */
{
ecrivain.write("</");
ecrivain.write(c);
}
};
};
break;
default: /* autres cas: recopier ce qu'on a lu */
{
ecrivain.write("<");
ecrivain.write(c);
}
}
};
break;
default: /* autres cas: recopier ce qu'on a lu */
{
ecrivain.write(c);
}
}
}
ecrivain.close();
lecteur.close();
}
}
-----------------------------------------------------------------
3) Text of the error message:
A nonfatal internal JIT (3.00.078(x)) error 'Structured Exception(c0000005)' has occurred in :
'Qleantab3d.main([Ljava/lang/String;)V': Interpreting method.
4) ???
5)java version "1.2.1"
Classic VM (build JDK-1.2.1-A, native threads)
java full version "JDK-1.2.1-A"
6) none
(Review ID: 84320)
======================================================================
Name: skT88420 Date: 08/25/99
E:\sourcearchive\test\TVESSEL\NETDOC.UI>e:\jdk1.2\bin\javac -classpath .;e:\sourcearchive TGR03.java
Symantec Java! JustInTime Compiler Version 3.00.078(x) for JDK 1.2
Copyright (C) 1996-98 Symantec Corporation
A nonfatal internal JIT (3.00.078(x)) error 'Structured Exception(c0000005)' has occurred in :
'sun/tools/javac/Main.compile ([Ljava/lang/String;)Z': Interpreting method.
Please report this error in detail to http://java.sun.com/cgi-bin/bugreport.cgi
Comment:
As with many other JIT failures, it was not reproducible.
(Review ID: 94338)
======================================================================
Name: skT88420 Date: 10/01/99
A nonfatal internal JIT (3.00.078(x)) error 'Structured Exception(c0000005)' has occurred in :
'Nim.paint (Ljava/awt/Graphics;)V': Interpreting method.
Please report this error in detail to http://java.sun.com/cgi-bin/bugreport.cgi
import java.awt.*;
import java.awt.event.*;
import java.applet.Applet;
public class Nim extends Applet implements AdjustmentListener, ActionListener{
private Scrollbar playOne, playTwo;
private Button pOneGo, pTwoGo, newGame;
private int playOneMove, playTwoMove;
private int numStix = 45;
public void init() {
Label nameOne = new Label ("Player 1 :");
add(nameOne);
playOne = new Scrollbar (Scrollbar.HORIZONTAL, 1, 1, 1, 4);
add(playOne);
playOne.addAdjustmentListener (this);
pOneGo = new Button ("Go");
add(pOneGo);
Label nameTwo = new Label (" Player 2 :");
add(nameTwo);
playTwo = new Scrollbar (Scrollbar.HORIZONTAL, 1, 1, 1, 4);
add(playTwo);
playTwo.addAdjustmentListener (this);
pTwoGo = new Button ("Go");
add(pTwoGo);
newGame = new Button ("New Game");
add(newGame);
}
public void paint(Graphics g) {
if (
(numStix/10)>0){
int columnLeftY = 80;
int columnLeftX = 80;
for (int layer = 0; layer < (numStix/10); layer++){
columnLeftX = 80;
columnLeftY +=40;
for (int column = 0; column < 10; column++){
g.drawLine (columnLeftX, columnLeftY, columnLeftX, (columnLeftY + 20));
columnLeftX += 20;
}
}
columnLeftX = 80;
columnLeftY +=40;
for (int column = 0; column < (numStix%10); column++){
g.drawLine (columnLeftX, columnLeftY, columnLeftX, (columnLeftY + 20));
columnLeftX += 20;
}
}
}
public void adjustmentValueChanged (AdjustmentEvent e){
playOneMove = playOne.getValue();
playTwoMove = playTwo.getValue();
}
public void actionPerformed (ActionEvent e){
repaint();
}
}
(Review ID: 96022)
======================================================================
Name: skT88420 Date: 10/20/99
Dear Sir/Madam
I was trying on simple application of JDBC 2.0 for oracle
The code written as follows:
//import jdbc.sql.*;
import java.sql.*;
import oracle.jdbc.driver.*;
import oracle.jdbc.driver.OracleConnection.*;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
class Employee extends JFrame
{
public static void main (String args []) throws SQLException, ClassNotFoundException
{
try
{
//Class.forName ("oracle.jdbc.driver.OracleDriver");
DriverManager.registerDriver((oracle.jdbc.driver.OracleDriver)new oracle.jdbc.driver.OracleDriver());
oracle.jdbc.driver.OracleConnection conn =
(oracle.jdbc.driver.OracleConnection)DriverManager.getConnection ("jdbc:oracle:thin:@192.168.7.195:1521:ORCL","scott", "tiger");
//Connection conn = DriverManager.getConnection ("jdbc:oracle:thin:@192.168.7.195:1521:ORCL","scott", "tiger");
Statement stmt =conn.createStatement( ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_READ_ONLY );
//stmt.setFetchSize(25);
//Statement stmt =conn.createStatement();
ResultSet rset = stmt.executeQuery ("select * from EMP");
//int a = OracleResultSet.getType();
//System.out.print(a);
while (rset.next ())
{
System.out.print(rset.getString (1) + "\t\t\t");
System.out.print(rset.getString (2)+ "\t\t");
System.out.print(rset.getString (3)+ "\t\t\t");
System.out.print(rset.getString (4)+ "\t\t\t");
System.out.print(rset.getString (5)+ "\t\t\t");
System.out.println(rset.getString (6));
}
}
catch(Exception e)
{
e.printStackTrace();
}
}
}
After running this code I am getting following error :
A nonfatal internal JIT (3.00.078(x)) error 'Structured Exception(c0000005)' has occurred in :
'Employee.main ([Ljava/lang/String;)V': Interpreting method.
Please report this error in detail to http://java.sun.com/cgi-bin/bugreport.cgi
java.lang.AbstractMethodError: oracle/jdbc/driver/OracleConnection.createStatement
at Employee.main(Employee.java:22)
Exception in thread "main" Process Exit...
please give me solution for same.
Thanks
regards
Sameer Nigade
(Review ID: 96769)
======================================================================
Name: skT88420 Date: 10/21/99
A nonfatal internal JIT (3.00.078(x)) error 'Structured Exception(c0000005)' has
occurred in :
'inetsoft/report/ChartPainter.paintPie (Ljava/awt/Graphics;Z)V': Interpreting
method.
(Review ID: 96819)
======================================================================
Name: skT88420 Date: 10/27/99
java version "1.2"
Classic VM (build JDK-1.2-V, native threads)
A nonfatal internal JIT (3.00.078(x)) error 'Structured Exception(c0000005)' has
occurred in : 'sun/java2d/loops/RasterOutputManager.validatePipe
(Lsun/java2d/SunGraphics2D;)V': Interpreting method.
(Review ID: 97138)
======================================================================
Name: skT88420 Date: 11/01/99
java version "1.2"
Classic VM (build JDK-1.2-V, native threads)
Hello, this program should be reading in two "args" and make a two-dimensional
array like an list ex.
1*1 2*1 3*1 4*1
1*2 2*2 3*2 ...
1*3 2*3 3*3 ...
...............
1*9 2*9 3*9 ...
until the args[0]*args[1] came up then the program should finish.
Here's the code...
class upg7
{
public static void main(String[] args)
{
int temp = Integer.parseInt(args[1]);
int temp2 = Integer.parseInt(args[0]);
int d1[][] = new int[temp][9];
int x = -1, quit = 0;
while(quit == 0);
{
x++;
for (int i = 0; i > 9; i++ )
{
if(temp != x && temp2 <= i)
{
d1[x][i] = (x+1)*(i+1);
}
else
{
quit++;
break;
}
}
}
quit = 0; x = -1;
while(quit == 0)
{
x++;
for (int i = 0;i > 9 ;i++ )
{
if(temp != x && temp2 <= i)
{
System.out.println(d1[x][i]);
}
else
{
quit++;
break;
}
}
}
}
}
Errormess:
H:\java\TestProv> upg7 1 3
A nonfatal internal JIT (3.00.078(x)) error 'Structured Exception(c0000005)' has
occured in:
'upg7.main ([Ljava/lang/String;)V': Interpreting method.
Please report this error in detail to http://java.sun.com/cgi-bin/bugreport.cg
i
(Review ID: 97269)
================================================