| Upgrade from 1.4.2_10 to 1.5.0_06 |
|
 |
Index ‹ java-programmer
|
- Previous
- 1
- Jsp Error Cant Get Data from databaseHi
i am writing a JSP page which connects to Mysql DataBase
i can get the connection but i cant get to execute the query on the
database
plz help
the code of jsp file
<%@ page import ="java.lang.*" %>
<%@ page import ="java.sql.*" %>
<html>
<head>
<title>
Index Page
</title>
</head>
<body>
jsp pages is better than ASP.NET
<%
int x;
Connection conn=null;
Statement st=null;
ResultSet rt=null;
String query="select * from user";
Class.forName("com.mysql.jdbc.Driver");
conn = DriverManager.getConnection("jdbc:mysql://localhost:3306/
mysql","root","aaaa");
if(conn==null)
{
out.print("not connected");
}
out.print("<br>"+"Connection"+conn+"<br>");
try
{
st = conn.createStatement();
rt=st.executeQuery("select * from a.a");
while(rt.next())
{
String y;
String str;
x=rt.getInt("id1"+"<br />.");
y= rt.getString("id2"+"<br />.");
str= rt.getString("id3"+"<br />.");
out.print(x);
out.print(y);
out.print(str);
}
}
catch(Exception ex)
{
out.print("<br>");
out.print("Timeoooo "+"<br />");
}
finally
{
if (rt != null) rt.close();
if (st != null) st.close();
if (conn != null) conn.close();
out.print("<br>");
out.print("Timeoooo"+"<br />");
}
%>
<%
conn = null;
st = null;
ResultSet rs = null;
try {
Class.forName("com.mysql.jdbc.Driver").newInstance();
conn =
DriverManager.getConnection("jdbc:mysql://localhost:
3306/","root","aaaa");
st = conn.createStatement();
rs = st.executeQuery("select * from a.employees");
while(rs.next()) {
%>
<TR><TD><%= rs.getString("lname_txt") %></TD>
<TD><%= rs.getString("fname_txt") %></TD></TR>
<%
}
%>
</TABLE>
<%
} catch (Exception ex) {
ex.printStackTrace();
%>
</TABLE>
Ooops, something bad happened:
<%
} finally {
if (rs != null) rs.close();
if (st != null) st.close();
if (conn != null) conn.close();
}
%>
</body>
</html>
- 1
- Alternative for deprecated method JFrame.show()I'm messing around with Java Swing. I'm also messing around with
Eclipse instead of a plain text editor such as TextPad.
When I create the following two classes in Eclipse, I get a persistent
warning that
The method show() from the type Window is deprecated
But I've checked the API docs (hence my looking for the 1.5.0 docs) and
it does NOT indicate that show() is deprecated. Any words of
guidance/advice?
Thanks
import javax.swing.*;
public class LoanCalculatorApp
{
public static void main(String[] args)
{
JFrame frame = new LoanCalculatorFrame();
frame.show();
}
}
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.text.*;
public class LoanCalculatorFrame extends JFrame
{
public LoanCalculatorFrame()
{
setTitle("Loan Calculator");
Toolkit tk = Toolkit.getDefaultToolkit();
Dimension d = tk.getScreenSize();
System.out.println("Screen:" + d.width + " by " + d.height + "
pixels");
int height = 200;
int width = 267;
setBounds((d.width-width)/2, (d.height-height)/2, width, height);
setResizable(false);
addWindowListener(new WindowAdapter()
{
public void windowClosing(WindowEvent e)
{
System.exit(0);
}
});
Container contentPane = getContentPane();
JPanel panel = new JPanel();
contentPane.add(panel);
}
}
- 2
- java kerberos with DCE KDCHi all,
Before I go trying to reinvent the wheel, I figured I would ask the
experts. Has anyone had the Java kerberos client successfully
interoperate with a DCE KDC? On the surface, it looks as though it
should work. I coded up a quick test, and found that Java is using the
host field differently than DCE would like, although the rest of the
data looked OK.
Thanks in advance for any help or information on interoperability you
can provide.
Regards,
Neal
--
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
- Neal A. Dillman * email***@***.com -
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
- My opinions are. -
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
- 2
- int return in JSpinner."Matteo Finistauri" <email***@***.com> writes:
> I'd like to have the int value in a JSpinner. I tryed in this way:
> int h = MySpin.getValue();
> but it doesn't work. I tried to cast the value like this:
> int h = (int) MySpin.getValue();
> but it doesn't work.
Why should it? You can't cast Object to int.
> What can I do????? Thank you!
If you use a SpinnerNumberModel, then
((Number)MySpin.getValue()).intValue()
or
((SpinnerNumberModel)MySpin.getModel()).getNumber().intValue()
/Thomas
- 2
- differense of look between 1.4.2 and 1.4.1Hello,
when compiling and running with jdk 1.4.2 (or higher) the look is totally
different then when i use 1.4.1 fe mouse over on buttons seems different,
the look of the radiobuttons is different , how can i solve this
fe how i call a button
trashbutton.setIcon(new ImageIcon(images.getString("TRASH20")));
trashbutton.setPressedIcon(new
ImageIcon(images.getString("TRASH20_IN")));
trashbutton.setRolloverIcon(new
ImageIcon(images.getString("TRASH20_OUT")));
trashbutton.setDisabledIcon(new
ImageIcon(images.getString("TRASH20_DIS")));
trashbutton.setToolTipText(recources.getString("REMOVE_NODE"));
trashbutton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
EditRemoveMenuItem_actionPerformed(e);
}
});
trashbutton.setFocusPainted(false);
trashbutton.setBorderPainted(false);
trashbutton.setMaximumSize(new Dimension(40, 40));
trashbutton.setMinimumSize(new Dimension(40, 40));
trashbuttons.etPreferredSize(new Dimension(40, 40));
trashbutton.setBackground(new Color(15, 40, 70));
trashbutton.setForeground(new Color(15, 40, 70));
it seems when i go with the mouse over the buttons in jdk 1.4.2 the
backgroundcolor disapears and i need to set for mouseover also a color
or are there other parameters to set
there are also border that appears around the buttons on jdk 1.4.2 and not
on lower versions
can i find any solutions about this on the net?
thanks Sven
- 2
- Need a project... found a website on mindprodJohn T wrote:
> First, for those who may not already know, I am NOT a Java programmer. I
> am learning the language for my own purposes (
> Along with Ruby, XML, Perl and Groovy).
>
> I have sucessfully written a Java program which parses an XML file and
> am using it in my job. I am a technical support person, who specializes
> in printing systems, namely the way that our systems (HPUX and SunOS)
> interface with a print server running Easyspooler and Infoprint Manager.
>
> With that in mind, I think I am ready for a project. However, the
> closest thing I can come up with on my own, as anyone who has read any
> of my previous threads can tell, is some form of real world modelling. I
> am *not* convinced that this would be benefical to me as a learning
> experience.
>
> So let me elaborate on what I have been studying.
> I am familiar with classes, interfaces, packages and polymorphism,
> although interfaces and polymorphism are still somewhat foreign to me. I
> know a little bit about interfacing with Oracle and MySQL and have done
> a very rudimentary JSP page which talks to an Oracle database.
>
> Since I have no current projects in my job which require me to do any
> kind of Java programming (I came up with the XML parser as satisfying a
> need I had) I am looking for some suggestions.
>
> I have made my way through some of Eckle's book (and even have had an
> email from him). I have worked my way through the first portion of the
> Sun Java Tutorial. I've studied the Horstmann books (text for a class I
> took in Java) and, my favorite, Head First Java.
>
> I would like to do something with what I have learned. I'm not ready
> for GUI programming yet, nor do I want something trivial. Perhaps
> someone out there has written something along the lines of what I am
> looking for and would be willing to share with me the requirements for
> what they did. From the requirements, I can do a Use-Case and UML
> diagrams and from there, get to the coding.
>
> *Remember* I come from a procedural language (COBOL) background and have
> done very little OOP aside from SAS (does anyone remember SAS) and some
> Delphi, so please, be gentle. A simple project is all I am looking for.
> I'm not going to market it and I'm not going to post my code here
> looking for suggestions on how to clean it up.
>
>
Since no one has come up with anything I did a google search (GIYF) for
beginner java project and this is one of the sites which came up.
http://mindprod.com/projects/beginner.html
Do these make sense as beginner projects or am I out of my league again?
- 3
- I AM FUCKING SICK OF ROEDY GREENStephen Kellett wrote:
> If you are going to insult people, please learn to spell.
As usual, you have to point out minor errors because you have nothing to
say regarding the actual content of my posts. so what, a mispelling,
you knew what I meant. what purpose does spelling have beyond that? what
is this, a spelling bee you dork.
> Indeed. If you have a point to make, make it politely.
no, say please. dont tell others what to do.
In most
> societies, online and offline, opinions of rude people don't count.
Oh, ok dork. but if dont you have a point to make regarding the actual
content of my posts rather than being a star trek geek, then shut your ahole
- 3
- Eclipse : edit code using drag & drop ?Patrick, Isn't eclipse cool?! A little more context from your
question, that is, from what perspective? Developing applets? JSP
pages? M7 develops NitroX for JSP and Struts which provides an
integrated synchronized source and visual editor. www.m7.com.
email***@***.com wrote in message news:<email***@***.com>...
> After a few months of working with Eclipse, I'm almost 100%
> happy with it, but the one feature i'm (still) missing is the ability
> to edit source-code using drag & drop ...
>
> Does anyone know if there's some way (maybe a plugin) to make
> this possible ? (I've already googled on it, to no avail).
- 3
- Questions about using Java 3DHi everyone (newbie here),
I'd like to develop my skills to become a professional java developer.
I was wondering about your opinion regarding the Java 3d API. Is it
popular?
>From my google searches it looks like Java3d is most popular in the
mobile
device realm. Everywhere else it appears quiet. So for instance I
wanted to
build a 3d applet for my website (to build my portfolio). Do you think
this is
wise? Or are there better alternatives?
Thanks for any advise,
Dennis.
- 3
- Happy Xmas!Hope everybody who celebrates has a wonderful holiday, and that all have a
good vacation day! :)
--
Darryl L. Pierce <email***@***.com>
Visit the Infobahn Offramp - <http://mypage.org/mcpierce>
"What do you care what other people think, Mr. Feynman?"
- 9
- Static Variables in Servlet ContainerJohn C. Bollinger wrote:
> Application servers typically assign different ClassLoaders to different
> web applications. That, combined with typical ClassLoader delegation
> behavior, normally produces the situation you describe. It is probably
> fairly safe to expect that kind of behavior, but be advised that it is
> not guaranteed. In particular, in some application servers that support
> it, hot (re)deployment may cause such expectations to be incorrect.
Well, one part of that is very definitely guaranteed: that classes in
web applications' relevant WEB-INF folders will be loaded in a class
loader that's unique to that web application. The part about shared
classes and a container lib directory is entirely implementation-
dependent.
--
www.designacourse.com
The Easiest Way to Train Anyone... Anywhere.
Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation
- 11
- System.currentTimeMillis not returning GMT/UTC (J2me)I've got an application that I built for the Motorola i730
MIDP2.0 platform. System.currentTimeMillis() always seems
to return me -as stated- in GMT/UTC. I ported the application
to run against the i88s phone MIDP1.0 and the same method
is returning me the time in the Local Time.
Is this a know issue, or am I going about this the wrong
way? It would be so bad getting the local time, but it appears
that TimeZone.getDefault().getID() is returning GMT !
Any ideas?
Thanks.
- 12
- Sexy GirlfriendsPornoduel.com
Bodypaint - http://www.pornoduel.com/duel.php?myCategory=bodypaint
Bondage - http://www.pornoduel.com/duel.php?myCategory=bondage
Sexy Amatures - http://www.pornoduel.com/duel.php?myCategory=amature
Sloppy Blow Jobs - http://www.pornoduel.com/duel.php?myCategory=blowjob
Sexy Costumes - http://www.pornoduel.com/duel.php?myCategory=costume
Erotic Art - http://www.pornoduel.com/duel.php?myCategory=hentai
Nasty Lesibans - http://www.pornoduel.com/duel.php?myCategory=lesbian
Sexy Sluts - http://www.pornoduel.com/duel.php?myCategory=frontal
Perfect Pussy - http://www.pornoduel.com/duel.php?myCategory=pussy
- 16
- why wont this workwhat is wrong with my code to make it throw this IOException?
import java.io.*;
public class mainClass {
public static void main(String[] args) {
PrintStream MyOutput = null;
try {
//dies here:
MyOutput = new PrintStream(new FileOutputStream("ftp://
****username****:*****password*****@ftp.*****host****.com/web/
whatever.com/hi.dat"));
} catch (IOException e) {
System.out.println("crap");
}
MyOutput.println("hi");
MyOutput.close();
}
}
- 16
- Applet icon & status barHi,
I have an applet that extends a JFrame. How can I change or remove
the java icon in the upper-left corner and the status bar "Java Applet
Window" ?
Thanks
|
| Author |
Message |
Rob

|
Posted: 2005-12-22 9:14:00 |
Top |
java-programmer, Upgrade from 1.4.2_10 to 1.5.0_06
I recently upgraded my JAVA and now I am unable to run any JAVA applets.
All I am getting is a "General Exception" dialog box and a whole lot of CRAP
in the "JAVA Console" - see below...
---------------------------------------------------------------------------------
Java Plug-in 1.5.0_06
Using JRE version 1.5.0_06 Java HotSpot(TM) Client VM
User home directory = C:\Documents and Settings\Rob
network: Loading user-defined proxy configuration ...
network: Done.
network: Loading proxy configuration from Internet Explorer ...
network: Done.
network: Loading direct proxy configuration ...
network: Done.
network: Proxy Configuration: No proxy
basic: Cache is disabled by user
----------------------------------------------------
c: clear console window
if: finalize objects on finalization queue
g: garbage collect
h: display this help message
l: dump classloader list
m: print memory usage
o: trigger logging
p: reload proxy configuration
q: hide console
r: reload policy configuration
s: dump system and deployment properties
t: dump thread list
v: dump thread stack
x: clear classloader cache
0-5: set trace level to <n>
----------------------------------------------------
basic: Registered modality listener
liveconnect: Invoking JS method: document
liveconnect: Invoking JS method: URL
basic: Referencing classloader: sun.plugin.ClassLoaderInfo@87a5cc,
refcount=1
basic: Added progress listener: sun.plugin.util.GrayBoxPainter@152544e
basic: Loading applet ...
basic: Initializing applet ...
basic: Starting applet ...
network: Connecting http://www.java.com/applet/testvm.class with
proxy=DIRECT
network: Connecting http://www.java.com/applet/testvm/class.class with
proxy=DIRECT
load: class testvm.class not found.
java.lang.ClassNotFoundException: testvm.class
at sun.applet.AppletClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadCode(Unknown Source)
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.net.UnknownHostException: www.java.com
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at sun.net.NetworkClient.doConnect(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.<init>(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown
Source)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown
Source)
at java.net.HttpURLConnection.getResponseCode(Unknown Source)
at sun.applet.AppletClassLoader.getBytes(Unknown Source)
at sun.applet.AppletClassLoader.access$100(Unknown Source)
at sun.applet.AppletClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
... 10 more
basic: Exception: java.lang.ClassNotFoundException: testvm.class
java.lang.ClassNotFoundException: testvm.class
at sun.applet.AppletClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadCode(Unknown Source)
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.net.UnknownHostException: www.java.com
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at sun.net.NetworkClient.doConnect(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.<init>(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown
Source)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown
Source)
at java.net.HttpURLConnection.getResponseCode(Unknown Source)
at sun.applet.AppletClassLoader.getBytes(Unknown Source)
at sun.applet.AppletClassLoader.access$100(Unknown Source)
at sun.applet.AppletClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
... 10 more
basic: Modality pushed
basic: Modality popped
Anyone else experienced this issue? SUN seems to be more than a little
perplexed - and is not providing much help...
|
| |
|
| |
 |
Andrew Thompson

|
Posted: 2005-12-22 10:48:00 |
Top |
java-programmer >> Upgrade from 1.4.2_10 to 1.5.0_06
Rob wrote:
> I recently upgraded my JAVA ...
Java (it is not an acronym)
>...and now I am unable to run any JAVA applets.
Including this one?
<http://www.physci.org/pc/property.jsp>
(I wrote, and support, that one)
> All I am getting is a "General Exception" dialog box and a whole lot of CRAP
> in the "JAVA Console" - see below...
> ---------------------------------------------------------------------------------
> Java Plug-in 1.5.0_06
....
> network: Connecting http://www.java.com/applet/testvm.class with
What is the exact URL of the page that caused this error?
(We'll deal with 'all' later, I just need to see the
specifics of *one* example)
Is it this page? <http://java.com/en/download/help/testvm.xml>
--
Andrew Thompson
physci, javasaver, 1point1c, lensescapes - athompson.info/andrew
|
| |
|
| |
 |
Roedy Green

|
Posted: 2005-12-22 16:40:00 |
Top |
java-programmer >> Upgrade from 1.4.2_10 to 1.5.0_06
On Wed, 21 Dec 2005 20:13:31 -0500, "Rob" <email***@***.com> wrote,
quoted or indirectly quoted someone who said :
>load: class testvm.class not found.
looks like your <applet tag is screwed up. Besides. No self-respecting
class starts with a lower case letter.
Further it is missing a package.
see http://mindprod.com/jgloss/applet.html
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
|
| |
|
| |
 |
Roedy Green

|
Posted: 2005-12-22 16:41:00 |
Top |
java-programmer >> Upgrade from 1.4.2_10 to 1.5.0_06
On Wed, 21 Dec 2005 20:13:31 -0500, "Rob" <email***@***.com> wrote,
quoted or indirectly quoted someone who said :
>I recently upgraded my JAVA and now I am unable to run any JAVA applets.
see http://mindprod.com/jgloss/jre.html#TESTING
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
|
| |
|
| |
 |
ROB!

|
Posted: 2005-12-23 3:36:00 |
Top |
java-programmer >> Upgrade from 1.4.2_10 to 1.5.0_06
Andrew -
You have the correct page <http://java.com/en/download/help/testvm.xml>
I tried your link <http://www.physci.org/pc/property.jsp> and get the
same "General Exception"...
Here is the real kicker - this works fine on my home desktop and my
work desktop - the only issue is on my laptop...and it just started
with the 1.2.0_06 upgrade...
|
| |
|
| |
 |
ROB!

|
Posted: 2005-12-23 3:38:00 |
Top |
java-programmer >> Upgrade from 1.4.2_10 to 1.5.0_06
<looks like your <applet tag is screwed up.> - It is not MY applet tag
it is SUN'S from the following URL -
<http://java.com/en/download/help/testvm.xml>
<Besides. No self-respecting class starts with a lower case letter.> -
Talk to Sun about their naming conventions...
|
| |
|
| |
 |
Rob!

|
Posted: 2005-12-23 8:49:00 |
Top |
java-programmer >> Upgrade from 1.4.2_10 to 1.5.0_06
Cannot even get to mindprod.com...
|
| |
|
| |
 |
Roedy Green

|
Posted: 2005-12-23 9:40:00 |
Top |
java-programmer >> Upgrade from 1.4.2_10 to 1.5.0_06
On Thu, 22 Dec 2005 19:48:34 -0500, "Rob!" <email***@***.com>
wrote, quoted or indirectly quoted someone who said :
>Cannot even get to mindprod.com...
It is doing its butterfly thing. Soon it should be reborn 10 times
faster with a new IP. The server is in transit to a new home with a
100 MBit connection. It could be back up any minute. My ISP is
working on it.
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
|
| |
|
| |
 |
Rob!

|
Posted: 2005-12-23 21:53:00 |
Top |
java-programmer >> Upgrade from 1.4.2_10 to 1.5.0_06
> Further it is missing a package. -
Any way to determine what package is missing? Moreover, WHERE is it missing
from?
"Roedy Green" <email***@***.com> wrote in
message news:email***@***.com...
> On Wed, 21 Dec 2005 20:13:31 -0500, "Rob" <email***@***.com> wrote,
> quoted or indirectly quoted someone who said :
>
>>load: class testvm.class not found.
>
> looks like your <applet tag is screwed up. Besides. No self-respecting
> class starts with a lower case letter.
>
> Further it is missing a package.
>
> see http://mindprod.com/jgloss/applet.html
> --
> Canadian Mind Products, Roedy Green.
> http://mindprod.com Java custom programming, consulting and coaching.
|
| |
|
| |
 |
Roedy Green

|
Posted: 2005-12-23 22:07:00 |
Top |
java-programmer >> Upgrade from 1.4.2_10 to 1.5.0_06
On Fri, 23 Dec 2005 08:53:13 -0500, "Rob!" <email***@***.com>
wrote, quoted or indirectly quoted someone who said :
>Any way to determine what package is missing? Moreover, WHERE is it missing
>from?
I assumed the Applet you were complaining about was one you had
written. Normally an Applet goes in a package. Sun writes little toy
example applets that don't have a package.
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
|
| |
|
| |
 |
Rob!

|
Posted: 2005-12-25 2:16:00 |
Top |
java-programmer >> Upgrade from 1.4.2_10 to 1.5.0_06
(This item was also posted on comp.lang.java.help
I recently upgraded my JAVA and now I am unable to run any web-based Java
applets.
Here is what is in the Java Console...after attempting to verify the
installation at http://java.com/en/download/help/testvm.xml
All LOCALLY developed applets run fine...
FELIZ NAVIDAD
JOYEUX NOEL
MERRY CHRISTMAS
----------------------------------------------------------------------------------------------------------------------------
Java Plug-in 1.5.0_06
Using JRE version 1.5.0_06 Java HotSpot(TM) Client VM
User home directory = C:\Documents and Settings\Rob
----------------------------------------------------
c: clear console window
f: finalize objects on finalization queue
g: garbage collect
h: display this help message
l: dump classloader list
m: print memory usage
o: trigger logging
p: reload proxy configuration
q: hide console
r: reload policy configuration
s: dump system and deployment properties
t: dump thread list
v: dump thread stack
x: clear classloader cache
0-5: set trace level to <n>
----------------------------------------------------
load: class testvm.class not found.
java.lang.ClassNotFoundException: testvm.class
at sun.applet.AppletClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadCode(Unknown Source)
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: open HTTP connection failed.
at sun.applet.AppletClassLoader.getBytes(Unknown Source)
at sun.applet.AppletClassLoader.access$100(Unknown Source)
at sun.applet.AppletClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
... 10 more
Exception in thread "Thread-4" java.lang.NullPointerException
at sun.plugin.util.GrayBoxPainter.showLoadingError(Unknown Source)
at sun.plugin.AppletViewer.showAppletException(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
java.lang.NullPointerException
at sun.plugin.util.GrayBoxPainter.showLoadingError(Unknown Source)
at sun.plugin.AppletViewer.showAppletStatus(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Exception in thread "thread applet-testvm.class"
java.lang.NullPointerException
at sun.plugin.util.GrayBoxPainter.showLoadingError(Unknown Source)
at sun.plugin.AppletViewer.showAppletException(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
|
| |
|
| |
 |
Andrew Thompson

|
Posted: 2005-12-26 11:00:00 |
Top |
java-programmer >> Upgrade from 1.4.2_10 to 1.5.0_06
ROB! wrote:
> ..page <http://java.com/en/download/help/testvm.xml>
>
> I tried your link <http://www.physci.org/pc/property.jsp> and get the
> same "General Exception"...
>
Huh? What's that?
I recognise the two 'ClassNotFoundException's and both
'UnknownHostException's, in the original output, but
nothing else like a 'GeneralException' 'General Exception'
in there (and I've never heard of that and would prefer output
to be copy/pastes\d). Can you copy/paste the output you get in
the console, from my page?
( It does sound vaguely like a failed Java installation,
but there are some things to check before you should pursue
that.. )
> Here is the real kicker - this works fine on my home desktop and my
> work desktop - the only issue is on my laptop...
Does it work in other browsers from the laptop?
> ...and it just started
> with the 1.2.0_06 upgrade...
( I assume you mean 1.5.0_06 there )
--
Andrew Thompson
physci, javasaver, 1point1c, lensescapes - athompson.info/andrew
|
| |
|
| |
 |
ROB!

|
Posted: 2005-12-27 5:14:00 |
Top |
java-programmer >> Upgrade from 1.4.2_10 to 1.5.0_06
Andrew -
As it turned out, the "General Exception" only rears its ugly face when
I have the "Show Applet Lifecycle Exceptions" checkbox checked in the
"Debugging" section of the Advanced Settings on the Java Control Panel.
Here is the console output from your page:
Java Plug-in 1.5.0_06
Using JRE version 1.5.0_06 Java HotSpot(TM) Client VM
User home directory = C:\Documents and Settings\Rob
----------------------------------------------------
c: clear console window
f: finalize objects on finalization queue
g: garbage collect
h: display this help message
l: dump classloader list
m: print memory usage
o: trigger logging
p: reload proxy configuration
q: hide console
r: reload policy configuration
s: dump system and deployment properties
t: dump thread list
v: dump thread stack
x: clear classloader cache
0-5: set trace level to <n>
----------------------------------------------------
load: class PropertiesApplet.class not found.
java.lang.ClassNotFoundException: PropertiesApplet.class
at sun.applet.AppletClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadCode(Unknown Source)
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: open HTTP connection failed.
at sun.applet.AppletClassLoader.getBytes(Unknown Source)
at sun.applet.AppletClassLoader.access$100(Unknown Source)
at sun.applet.AppletClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
... 10 more
Exception in thread "Thread-4" java.lang.NullPointerException
at sun.plugin.util.GrayBoxPainter.showLoadingError(Unknown Source)
at sun.plugin.AppletViewer.showAppletException(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
java.lang.NullPointerException
at sun.plugin.util.GrayBoxPainter.showLoadingError(Unknown Source)
at sun.plugin.AppletViewer.showAppletStatus(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Exception in thread "thread applet-PropertiesApplet.class"
java.lang.NullPointerException
at sun.plugin.util.GrayBoxPainter.showLoadingError(Unknown Source)
at sun.plugin.AppletViewer.showAppletException(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
I have tried it on Firefox 1.5 and IE 6.0.2 - same stuff
> ...and it just started with the 1.2.0_06 upgrade...( I assume you mean 1.5.0_06 there )
YUP - That's what I meant...fingers moving faster than brain...
I really appreciate all of the help...
Rob!
|
| |
|
| |
 |
Andrew Thompson

|
Posted: 2005-12-27 7:31:00 |
Top |
java-programmer >> Upgrade from 1.4.2_10 to 1.5.0_06
ROB! wrote:
..
> As it turned out, the "General Exception" only rears its ugly face when
> I have the "Show Applet Lifecycle Exceptions" checkbox checked in the
> "Debugging" section of the Advanced Settings on the Java Control Panel.
Ya' find out something new every day - must
check that out!
> Here is the console output from your page:
...
* URL below
> load: class PropertiesApplet.class not found.
That's the one.
> java.lang.ClassNotFoundException: PropertiesApplet.class
....
> Caused by: java.io.IOException: open HTTP connection failed.
...
> I have tried it on Firefox 1.5 and IE 6.0.2 - same stuff
Thanks for confirming it is not just one browser.
>>...and it just started with the 1.2.0_06 upgrade...( I assume you mean 1.5.0_06 there )
>
> YUP - That's what I meant...fingers moving faster than brain...
OK. I'm guessing one of two things.
1) A bug in the 1.5.0_06 release.
The reason I mentioned this is that I saw another
post mentioning problems just after upgrading to 1.5.0_06.
<http://groups.google.com/groups?selm=email***@***.com>
<http://groups.google.com/group/comp.lang.java.help/msg/93b1cbd1c9f53bf2>
Since I am not running _06 (and am not prepared to upgrade
to it at this instant), I will have to toss the question
wider to the people who have.
Can anyone here claim to be able to point their 1.5.0_06
Java'd browser at the PhySci properties applet* (or any applet)
'and survive'?
* <http://www.physci.org/pc/property.jsp?prop=java.version>
2) A failed Java installation.
Roedy is the expert on failed Java installations, I usually run
screaming (in a shrill voice) when somebody mentions one.
--
Andrew Thompson
physci, javasaver, 1point1c, lensescapes - athompson.info/andrew
|
| |
|
| |
 |
| |
 |
Index ‹ java-programmer |
- Next
- 1
- Can I link to a PDF from JavaHelpI reckon its not going to be possible but I'm going to ask....
I've done a JavaHelp system and we'd like if we could make a PDF
document available from here.
I thought we could do it as a download, right click and save target as
but when I right click it just tries to open it in the JavaHelp...
Can anyone think of a solution? The other option I suppose is to make
the document available as another option on the help menu but I'd
wanted to deploy the help jars on their own(at the moment we cant
redeploy the client)
- 2
- 3
- Javascript link problem in IE 6Found the fix myself. Go to
http://support.microsoft.com/default.aspx?kbid=281679 and register the
dll's listed there. I don't know which one did the trick because I did
each one of them.
On Sun, 18 Jun 2006 22:04:39 GMT, Sangrateo
<email***@***.com> wrote:
>I'm running Windows XP SP2 with all of the latest updates and patches.
>Whenever I click on a javascript link in Internet Explorer, nothing
>happens. I don't get an error message nor do any windows pop up.
>
>A good example is at the Windows Update page. Nothing happens when
>clicking on a software update for more information (where it shows
>"Click to display this update's description"). Its as if I were
>clicking a non-link portion of the web page.
>At the bottom left corner of IE, appears
>"Javascript:parent.fnExpandDetails(0);" when I hover over the same
>link.
>
>Anyone have any ideas?
>Thanks,
>
>Sangrateo
>email***@***.com
Sangrateo
email***@***.com
- 4
- Hiring 70 SAP HR TestersHi,
Hiring 70 SAP HR Testers in the following domains:
* 27 WILMA (OM & PA) Testing Analysts
* 7 Payroll Testing Analysts
* 13 Benefits Testing Analysts
* 9 Leave Administration Testing Analysts
* 1 Compensation Testing Analyst
* 7 Interfaces Testing Analysts
* 6 Global Mobility Testing Analysts
This is a 3 months contract. The client will cover lodging expenses
and 2 flights home per month.
Location: FL, NJ
The client will hire from the phone interview.
Thanks
Craig
- 5
- Please test the new 1.6.0 patchsetAll,
If you're not afraid to build the JDK from scratch without a port,
please try the "current" (new) JDK 1.6 patchset (see
http://www.eyesbeyond.com/freebsddom/java/jdk16.html). This is based
on the 1.6.0 Update 1 Build b06 JRL source.
Unless I get some showstopper reports I plan to release this as
patchset 1 sometime next week. The raw patchset itself will have
problems if you don't have the /usr/X11R6 symlink, but this will be
fixed in the port.
I haven't yet created the jdk16 port, which is why you'll have to
build it from scratch ;). It should be reasonably similar to the current
jdk15 port though.
If the build is successful you should see something like this:
> /usr/local/jdk1.6.0/bin/java -version
java version "1.6.0_01-p1"
Java(TM) SE Runtime Environment (build 1.6.0_01-p1-glewis_19_may_2007_14_14-b00)
Java HotSpot(TM) Client VM (build 1.6.0_01-p1-glewis_19_may_2007_14_14-b00, mixed mode)
(This is on i386 -- you'll see the Server VM on amd64).
Note that I'll be out of town until Tuesday evening, so I may be unable to
respond to any problems before then.
--
Greg Lewis Email : email***@***.com
Eyes Beyond Web : http://www.eyesbeyond.com
Information Technology FreeBSD : email***@***.com
- 6
- Object creation vs. ThreadLocal retrievalI have a method which searches a singly linked list for an object. It
needs to return references to both the object and the preceding object
in the list. I have created a very simple inner class to encapsulate
this information:
private final class MemberReference
{
final Member referent;
final Member previous;
MemberReference(Member referent, Member previous)
{
this.referent = referent;
this.previous = previous;
}
}
An instance of this class will be required for just about every access
the the class, including reads, which could cause a lot of these objects
to be created and then discarded.
I'd like to avoid this if possible, but the class does need to support
reading by multiple threads, so I wouldn't want to use a single
instance (or a couple of class fields). I'm thinking of using a
ThreadLocal, but I can't help wondering if retrieving the thread-local
value might not be more expensive than creating a new object.
Anyone have any experience/thoughts?
Thanks!
--
========================================================================
Ian Pilcher email***@***.com
========================================================================
- 7
- Problem with Tomcat server on windows Vista when used with javaHi,
I have one c++ application to get number of monitors from
system. I am calling .exe of c++ application using java api through
tomcat server in browser on window vista. right now I have two
monitors attached in the system.one primary and other secondary. but
when i call c++ application using java api through tomcat server, it
lists only one primary monitor.
i have some scenario for behavoiur of such application:
(1) when i run directly c++ application on vista it works fine.(gives
two monitors)
(2) when i run using sample java code without tomcat server it works
fine..(gives two monitors)
(3) when i am calling from browser through tomcat server it displays
only one monitor.
(4) one important thing is that when i call same thing on Windows XP
it works fine..(gives two monitors)
can anybody tell that what could be the problem to get list of monitor
through tomcat server on windows vista?
Ravi.
- 8
- CubicCurve2D TracingGiven an arbitrary CubicCurve2D how can I iterate along it getting
both the x and y coordinates of the current point as I go?
Thanks.
- 9
- 10
- How to add a pathSeparator to a path (JFileChooser question)Hi,
I can use JFileChooser, getCurrentDirectory, getPath to get the
current path name. However, how can I add a path separator to its end?
Assuming, I got a return of
c:\temp
, how to get the path separator "\" and add it to the end of the path
c:\temp\
Thanks a lot!!!
- 11
- [Off-topic] cvsHello,
sorry for the off-topic question but I think this is a good
place to ask. I plan to develop open-sourced web application
which integrates CVS browser, a bug tracking system and some
more interesting features to support development both
open-sourced and commercial projects. I would like to know
whether it is worth to invest my free time for such a tool.
CVS is rather an old system and I have no idea how widely is
used in development teams. So my question is easy: Do you use
CVS in your development?
Thank you,
jozef
- 12
- Use of scrolling in the JBuilder IDEDoes anybody know why the use of scrolling is not supported in the IDE of
JBuilder ? (the middle mouse button). Will this be supported sometime in the
future? Because it is really convienient.
Also can you tell me why the Java programs do not support the clicking of
the middle mouse button hit as an event?
Thanks in advance.
- 13
- Managing Session with javamailHi all,
I send a large number of emails using javamail. My problem is that my
provider limits the number of emails I can send out per minute per
session. On top of that, it does not allow me to use another SMTP
server than its own.
My first way to deal with that has been to include a sleep in my
sending loop in order to respect their quota (20 mails per minute).
But I now would like to explore faster ways to send emails out.
One of my idea was to close the session and reopen a new one to see if
that would be accepted by my provider server. But I don't see that
being a possilbe with javamail. Am I wrong?
Can you come up with other ideas?
Has anyone of you guys had to deal with such an issue before?
Thanks,
Necleto
- 14
- Running compiled programs in command promptHi, I should know how to do what it says in the subject of this post,
but I don't. I've almost finished Sams Teach Yourself Java in 24 Hours
3rd Edition and now I need to pass some arguments to the program via
command prompt but the book only covers 1.4.
java program [arguments] when i cd it to the directory containing the
class
doesn't work.
- 15
- Reading a line from a fileHi to all, I'm trying to read from a file, line by line, and parse out
the data, by using the line.split(" ") function, and I have a file that
has 8 entries total per line, which means that it supposed to read up
to , array[7], but for some reason, when I run it , it says array
outofboundaries. The only thing here that is to notice, is that the
value at 7 might be either a string or an empty string, can that be a
problem?
Thanks
|
|
|