Pat Breen

Greenhorn
+ Follow
since Nov 08, 2003
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Pat Breen

The problem:

I want to warn the user that they are deleting an entity via a javascript alert box. This is a simple script, but it does not set the data in my form bean, thus creating a null pointer exception. Without it, it works fine. However, I really need to give the user one last chance in case they have made a mistake(as usual). Is this a problem specific to netui tags?

Using: netui tags from BEA
18 years ago
Has anyone tried this simulator and then written the real exam? How did it prepare you for the real exam?
I am on Win 2000 and xsdvalid cannot find the namespace in my .xsd file.

the xsl:schema tag is there and it is the correct namespace name. I have checked that with a few sources. What could be wrong?

Pat
Here is the very sloppy code...
result = stmt.executeQuery(request);

// The following statement checks if query successful
while (result.next()) {
System.out.println("-----------------------2-----------------------");

symbol = result.getString(1);
System.out.println("symbol = " + symbol);

quantity = result.getInt(2);
System.out.println("quantity = " + quantity);
newRequest = "SELECT price FROM Stock "
+ " WHERE symbol=" + "'" + symbol + "'";
nestedResult = nestedStmt.executeQuery(newRequest);
while(nestedResult.next()){
price = nestedResult.getFloat(1);
System.out.println("price======" + price);
}//end nested while
nestedResult.close();
}//end while
shares.add(new Share(new Stock(symbol,price),quantity));
//cust = this.getCustomer(id);
port = new Portfolio(cust,shares);
/*else {
// if query failed
throw new BrokerException("Record for " + id +
" not found");
} */
// return portfolio
return port;
} catch (SQLException e) {
e.printStackTrace();
throw new BrokerException("BrokerDbImpl.getCustomer\n" +e);
}
I am running a simple hello world Session Bean in the J2EE RI on Windows 2000 pro. I have spent way too long trying to figure out this exception. Help!
java.rmi.RemoteException CORBA.BAD_OPERATION
I have deployed the bean properly. At least I think so. I went over it and did it again many times. Any idea where to go to find out this error?