Did 10.4.9 broke Java?
After the Update from 10.4.8 to 10.4.9 all my Java Applications are crashing on startup. For example NetBeans, jEdit, Azureus, ElGato EyeHome, even the Java-Preference Panel.
Someone else experiencing this behaviour?
Hi Oliver,
Create a new account, name it "test" and see how your apps work in that User acct? (That will tell if your problem is systemwide or limited to your User acct.) This account is just for test, do nothing further with it.
Open System Preferences >> Accounts >> "+" make it an admin account.
If it still does not work then you may be able to repair this with 10.4.9 PPC Combo Update
This is a fuller install, as opposed to an incremental "delta" update so it should overwrite any files that are damaged or missing. It does not matter if you have applied it before.
Remember to Verify Disk before update and repair permissions after update from /Applications/Utilities/Disk Utility.
If it works in the test let us know and we'll troubleshoot it that way.
-mj
[email protected]
Similar Messages
-
Portal Addin broke Java installation
Read Hat EL Workstation:
I downloaded the portal-addin.zip and folled the install instruction. It did absolutly not work. Instead it broke my Java installation. When calling java from the command linie I get:
libgcj-java-placeholder.sh
This script is a placeholder for the /usr/bin/java and /usr/bin/javac
master links required by jpackage.org conventions. libgcj's
rmiregistry, rmic and jar tools are now slave symlinks to these
masters, and are managed by the alternatives(8) system.
This change was necessary because the rmiregistry, rmic and jar tools
installed by previous versions of libgcj conflicted with symlinks
installed by jpackage.org JVM packages.
When I look at the java links I see
java -> /etc/alternatives/java
java -> /usr/share/java/libgcj-java-placeholder.sh
but the script contains nothing but echos:
cat /usr/share/java/libgcj-java-placeholder.sh
#!/bin/sh
echo "libgcj-java-placeholder.sh"
echo
echo "This script is a placeholder for the /usr/bin/java and /usr/bin/javac"
echo "master links required by jpackage.org conventions. libgcj's"
echo "rmiregistry, rmic and jar tools are now slave symlinks to these"
echo "masters, and are managed by the alternatives(8) system."
echo
echo "This change was necessary because the rmiregistry, rmic and jar tools"
echo "installed by previous versions of libgcj conflicted with symlinks"
echo "installed by jpackage.org JVM packages.
Questions:
1) How are the links supposed to point in order for my java to work?
2) How to get the portal addin to work?
3) How can Oracle provide me with such crap which screws up my system and wastes my time?
Flemming G. JensenOTN Customer Team!
Are you able to answer an Oracle customer (and partner ) on this topic?
Or is this forum a dead-end??
--Flemming -
Upgrade broke Java, temporary hack
After an upgrade a couple of days ago, Java applets did not run on the browser. No error messages, no coffee cup, nothing, just a blank area.
Only later I noticed that not even a Hello World! applet run on Eclipse. At least it showed an error message, roughly "Locking assertion failure. Backtrace: #0 /usr/lib/libxcb-xlib.so.0 [0xb7cca767]"
Through a web-search found a random hack, which amounted to "sed -i 's/XINERAMA/FAKEEXTN/g' /opt/java/jre/lib/i386/xawt/libmawt.so" which worked like magic. Just wanted to share the information, in case the problem still exists.After searching the flyspray for already opened jre bugs, I just filed the #10162 (http://bugs.archlinux.org/task/10162).
Is there any other way to propagate this simple fix (one sed command on one file) other than just provide a whole new jre package?
domanov -
Installation of oracle 10 broke java conversions
I have been using some java conversion .bats for a while until I installed Oracle 10. Now they will not work. My OS is XP pro. Any help would be appreciated
Hi again,
assumption proven ;-)
full details from Oracle below
HTH,
Peter
Applies to: Oracle Server - Enterprise Edition - Version: 10.2.0.1
SymptomsWhile installing Oracle10gR2 on a Solaris 10 x86-64 server, Oracle Universal Installer (OUI) reports the following errors while checking the kernel parameters:
shmsys:shminfo_shmmax=4294967295 found no entry . Failed <<
shmsys:shminfo_shmmni=100 found no entry . Failed <<
shmsys:shminfo_semmni=100 found no entry . Failed <<
shmsys:shminfo_semmsl=256 found no entry . Failed <<
The overall results of this check is Failed.
The kernel parameters do not meet the minimum requirements
CauseOUI is looking at /etc/system to check the kernel parameter settings, but this file is not used (by default) in Solaris 10
OUI should check the kernel parameter settings using the resource control utility ( /bin/prctl )
SolutionTo implement the solution, please execute one the following steps:
1. Verify that the kernel parameter settings are correct using the resource control utility ( /bin/prctl ) and then start OUI like this:
./runInstaller -ignoreSysPrereqs
OR
2. Include the recommended kernel parameter settings in the /etc/system file and start OUI as normal:
./runInstaller -
Did any body use the Java API to setup a replica?
Hi, I have a similare question asked and got no response. I am wondering if there is any body used those API to setup a replica. I am able to create the replica agreement between a supplier and a consumer. But always failed to initialize the replica. The attribute nsDS5BeginReplicaRefresh=start works for ldpamodify commnad line utility but never works in the java (DirContext.bind or DirContext.modifyAttributes).
I badly need your help!Hi,
check this..
https://forums.sdn.sap.com/click.jspa?searchID=4302686&messageID=1192366
reward if it helps..
Regards,
Omakr. -
Is the Java problem that you brought to my attention sorted yet, as I keep getting prompts to download latest Java update.
== This happened ==
Every time Firefox opened
== approx 3 - 4 weeks agoYour plugins list shows outdated plugin(s) with known security and stability risks.
# Shockwave Flash 10.0 r32
# Next Generation Java Plug-in 1.6.0_17 for Mozilla browsers
Update the [[Java]] and [[Flash]] plugin to the latest version.
See
http://java.sun.com/javase/downloads/index.jsp#jdk (you need JRE)
http://www.adobe.com/software/flash/about/ -
I have removed one of the java things from the start menu and it hasn't helped.
See http://kb.mozillazine.org/Software_Update (Software Update not working properly)
Remove the files in the updates and updates\0 folder:
C:\Documents and Settings\<user>\Local Settings\Application Data\Mozilla\Firefox\Mozilla Firefox\updates
(%USERPROFILE%\Local Settings\Application Data\Mozilla\Firefox\Mozilla Firefox\updates) -
Problem Launching Java Applet with Plug-in: Version 1.4.2_01
Hello out there:
I recently installed j2re-1.4.2_01 on my home computer but have been unable to access Web sites emmploying JAva applets. The following is an email exchange with Jeff Hall of Lowell Observatory, manager of an educational site hosted by Lowell, trying to resolve my problem. The messages are better understood if read in reverse order.
I'm hoping that someone will recognize the source of my problem and can recommmend a solution. I would appreciate any help offered.
Thanks,
Mike Coucke
Hi Jeff:
Well, I guess the problem lies with me somewhere. Here's my answer/status to your questions/suggestions:
1) I'm using MS Windows Me version 4.90.3000
2) I do have the directory C:\Windows\.jpi_cache\jar\, but the only thing in it is an empty folder labeled "1.0". The file LP.jar does not exist anywhere on my hard drive.
3) I tried several game sites that utilized Java applets and got the same results: the Java cup in the upper left corner followed a few seconds later by the red "X". So, evidently the problem is somewhere on my end.
I'm going to post our email exchanges in a Java Users Forum managed by Sun to see if anyone out there can solve my problem. However, if you have any more suggestions, I'll be glad to try them.
Thanks for the help.
Mike Coucke
[email protected]
----- Original Message -----
From: "Jeffrey Hall" <[email protected]>
To: "'Mike Coucke'" <[email protected]>
Sent: Friday, September 05, 2003 1:02 PM
Subject: RE: Registration with Lowell Education Online
Mike,
Rats! What version of Windows are you using? It's a little strange to
see the user directory set to C:\Windows; if you're using XP, I'd expect
it to be something like C:\Documents and Settings\Mike Coucke. In any
event, the output that is of concern is these two lines:
java.lang.ClassNotFoundException: LPRemote.class
Caused by: java.net.UnknownHostException: proxy
It looks like your browser is not finding our server's IP when it comes
time to download the necessary Java code.
LPRemote.class is the fundamental code that runs LOPARC, and your
browser should be downloading it automatically when you click connect.
LPRemote.class is stored along with a bunch of other classes in a file
called "LP.jar" that you download from our server. So, if you go to C:
in Windows Explorer and do a file search for LP.jar, you should find it.
On my machine, it's stored in a directory called ".jpi_cache\jar\" in my
user home directory. Let me know if you have this file, or the
jpi-cache directory.
One other thing you might try is going to a different site that you know
uses Java applets -- I think some of the online game rooms at Yahoo use
Java. See if other sites that use Java load correctly. Then we'll know
if it's our server specifically, or a more general problem on your end.
Jeff Hall
Lowell Observatory
Hello Jeff:
I still have the Java "blues". I followed your instructions, but am still unable to launch a LOPARC session. After an initial failure, I uninstalled all three Java versions I had (1.4.0, 1.4.1, 1.4.2), then reinstalled 1.4.2_01 from the Sun website.
Now, when I try to launch LOPARC, I initially get a blank window with the Java cup in the upper left corner. After about 20 seconds, the cup changes to a red "X". During those 20 seconds, the following appear in the IE message bar at the bottom of the window: "Applet LPRemote notinited" (their spelling) which changes to "Loading Java Applet Failed..." when the red "X" appears.
Following is a copy of the log from my Java Console during all of this:
Java(TM) Plug-in: Version 1.4.2_01
Using JRE version 1.4.2_01 Java HotSpot(TM) Client VM
User home directory = C:\WINDOWS
Proxy Configuration: Manual Configuration
Proxy: http=proxy,https=proxy,ftp=proxy,gopher=proxy
Proxy Overrides:
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 properties
t: dump thread list
v: dump thread stack
x: clear classloader cache
0-5: set trace level to <n>
load: class LPRemote.class not found.
java.lang.ClassNotFoundException: LPRemote.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: proxy
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at sun.net.NetworkClient.doConnect(Unknown Source)
at sun.plugin.net.protocol.http.HttpClient.doConnect(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.net.www.http.HttpClient.privilegedOpenServer(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.<init>(Unknown Source)
at sun.plugin.net.protocol.http.HttpClient.<init>(Unknown Source)
at sun.plugin.net.protocol.http.HttpClient.New(Unknown Source)
at sun.plugin.net.protocol.http.HttpURLConnection.createConnection(Unknown Source)
at sun.plugin.net.protocol.http.HttpURLConnection.connect(Unknown Source)
at sun.plugin.net.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
I followed this up by executing the following three console commands:
"dump system properties"
"dump classholder list"
"dump thread list"
and obtained the following listings:
Dump system properties ...
acl.read = +
acl.read.default =
acl.write = +
acl.write.default =
application.home = C:\PROGRA~1\JAVA\J2RE14~1.2_0
awt.toolkit = sun.awt.windows.WToolkit
browser = sun.plugin
browser.vendor = Sun Microsystems, Inc.
browser.version = 1.1
deployment.javaws.cache.dir = C:\WINDOWS\.javaws\cache
deployment.javaws.jre.0.enabled = true
deployment.javaws.jre.0.location = http://java.sun.com/products/autodl/j2se
deployment.javaws.jre.0.osarch = x86
deployment.javaws.jre.0.osname = Windows
deployment.javaws.jre.0.path = C:\Program Files\Java\j2re1.4.2_01\bin\javaw.exe
deployment.javaws.jre.0.platform = 1.4
deployment.javaws.jre.0.product = 1.4.2_01
deployment.javaws.jre.0.registered = true
deployment.javaws.version = javaws-1.4.2_01
deployment.system.cacerts = C:\PROGRA~1\JAVA\J2RE14~1.2_0\lib\security\cacerts
deployment.system.home = C:\WINDOWS\Sun\Java\Deployment
deployment.system.jssecacerts = C:\PROGRA~1\JAVA\J2RE14~1.2_0\lib\security\cacerts
deployment.system.profile = C:\WINDOWS
deployment.system.security.policy = file:/C:/WINDOWS/Sun/Java/Deployment/security/java.policy
deployment.user.cachedir = C:\WINDOWS\Application Data\Sun\Java\Deployment\cache
deployment.user.certs = C:\WINDOWS\Application Data\Sun\Java\Deployment\security\deployment.certs
deployment.user.extdir = C:\WINDOWS\Application Data\Sun\Java\Deployment\ext
deployment.user.home = C:\WINDOWS\Application Data\Sun\Java\Deployment
deployment.user.jssecerts = C:\WINDOWS\Application Data\Sun\Java\Deployment\security\deployment.jssecerts
deployment.user.logdir = C:\WINDOWS\Application Data\Sun\Java\Deployment\log
deployment.user.profile = C:\WINDOWS\Application Data
deployment.user.security.policy = file:/C:/WINDOWS/Application%20Data/Sun/Java/Deployment/security/java.policy
deployment.user.tmpdir = C:\WINDOWS\Application Data\Sun\Java\Deployment\cache\tmp
file.encoding = Cp1252
file.encoding.pkg = sun.io
file.separator = \
file.separator.applet = true
http.agent = Mozilla/4.0 (Windows Me 4.90)
http.auth.serializeRequests = true
https.protocols = SSLv3,SSLv2Hello
java.awt.graphicsenv = sun.awt.Win32GraphicsEnvironment
java.awt.printerjob = sun.awt.windows.WPrinterJob
java.class.path = C:\PROGRA~1\JAVA\J2RE14~1.2_0\classes
java.class.version = 48.0
java.class.version.applet = true
java.endorsed.dirs = C:\PROGRAM FILES\JAVA\J2RE1.4.2_01\lib\endorsed
java.ext.dirs = C:\PROGRAM FILES\JAVA\J2RE1.4.2_01\lib\ext
java.home = C:\PROGRA~1\JAVA\J2RE14~1.2_0
java.io.tmpdir = C:\WINDOWS\TEMP\
java.library.path = D:\PROGRAM FILES\INTERNET EXPLORER 6;.;C:\WINDOWS\SYSTEM;C:\WINDOWS;D:\PROGRA~1\INTERN~1;;C:\WINDOWS;C:\WINDOWS\COMMAND
java.protocol.handler.pkgs = sun.plugin.net.protocol|sun.plugin.net.protocol
java.runtime.name = Java(TM) 2 Runtime Environment, Standard Edition
java.runtime.version = 1.4.2_01-b06
java.specification.name = Java Platform API Specification
java.specification.vendor = Sun Microsystems Inc.
java.specification.version = 1.4
java.util.prefs.PreferencesFactory = java.util.prefs.WindowsPreferencesFactory
java.vendor = Sun Microsystems Inc.
java.vendor.applet = true
java.vendor.url = http://java.sun.com/
java.vendor.url.applet = true
java.vendor.url.bug = http://java.sun.com/cgi-bin/bugreport.cgi
java.version = 1.4.2_01
java.version.applet = true
java.vm.info = mixed mode
java.vm.name = Java HotSpot(TM) Client VM
java.vm.specification.name = Java Virtual Machine Specification
java.vm.specification.vendor = Sun Microsystems Inc.
java.vm.specification.version = 1.0
java.vm.vendor = Sun Microsystems Inc.
java.vm.version = 1.4.2_01-b06
javaplugin.maxHeapSize = 96m
javaplugin.nodotversion = 142_01
javaplugin.proxy.config.list = http=proxy,https=proxy,ftp=proxy,gopher=proxy
javaplugin.proxy.config.type = manual
javaplugin.version = 1.4.2_01
javaplugin.vm.options = -Djava.class.path=C:\PROGRA~1\JAVA\J2RE14~1.2_0\classes -Xbootclasspath/a:C:\PROGRA~1\JAVA\J2RE14~1.2_0\lib\plugin.jar -Xmx96m -Djavaplugin.maxHeapSize=96m -Xverify:remote -Djavaplugin.version=1.4.2_01 -Djavaplugin.nodotversion=142_01 -Dbrowser=sun.plugin -DtrustProxy=true -Dapplication.home=C:\PROGRA~1\JAVA\J2RE14~1.2_0 -Djava.protocol.handler.pkgs=sun.plugin.net.protocol
line.separator = \r\n
line.separator.applet = true
os.arch = x86
os.arch.applet = true
os.name = Windows Me
os.name.applet = true
os.version = 4.90
os.version.applet = true
package.restrict.access.netscape = false
package.restrict.access.sun = true
package.restrict.definition.java = true
package.restrict.definition.netscape = true
package.restrict.definition.sun = true
path.separator = ;
path.separator.applet = true
sun.arch.data.model = 32
sun.boot.class.path = C:\PROGRAM FILES\JAVA\J2RE1.4.2_01\lib\rt.jar;C:\PROGRAM FILES\JAVA\J2RE1.4.2_01\lib\i18n.jar;C:\PROGRAM FILES\JAVA\J2RE1.4.2_01\lib\sunrsasign.jar;C:\PROGRAM FILES\JAVA\J2RE1.4.2_01\lib\jsse.jar;C:\PROGRAM FILES\JAVA\J2RE1.4.2_01\lib\jce.jar;C:\PROGRAM FILES\JAVA\J2RE1.4.2_01\lib\charsets.jar;C:\PROGRAM FILES\JAVA\J2RE1.4.2_01\classes;C:\PROGRA~1\JAVA\J2RE14~1.2_0\lib\plugin.jar
sun.boot.library.path = C:\PROGRAM FILES\JAVA\J2RE1.4.2_01\bin
sun.cpu.endian = little
sun.cpu.isalist = pentium i486 i386
sun.io.unicode.encoding = UnicodeLittle
sun.java2d.fontpath =
sun.net.client.defaultConnectTimeout = 120000
sun.os.patch.level =
trustProxy = true
user.country = US
user.dir = C:\WINDOWS\Desktop
user.home = C:\WINDOWS
user.language = en
user.name = Michael G. Coucke
user.timezone =
user.variant =
Done.
Dump classloader list ...
codebase=http://kraken.lowell.edu/, key=http://kraken.lowell.edu/,IONJava/classes/ion_16.jar,IONJava/classes/LP.jar, zombie=false, cache=true, refcount=1, info=sun.plugin.ClassLoaderInfo@109de5b
Done.
Dump thread list ...
Group main,ac=11,agc=2,pri=10
main,5,alive
AWT-Windows,6,alive,dameon
AWT-Shutdown,5,alive
Java2D Disposer,10,alive,dameon
AWT-EventQueue-0,6,alive
Group Plugin Thread Group,ac=3,agc=0,pri=10
Main Console Writer,6,alive
AWT-EventQueue-1,6,alive
TimerQueue,5,alive,dameon
Group http://kraken.lowell.edu/-threadGroup,ac=2,agc=0,pri=4
thread applet-LPRemote.class,4,alive
AWT-EventQueue-2,4,alive
Done.
I'm not a Java expert, so this may be more information than you ever wanted to see.
Once again, I hope that you can help. My experience has been that I usually have some obscure option set incorrectly and that causes me great grief.
Thanks fo your help,
Mike Coucke
[email protected]
----- Original Message -----
From: "Jeffrey Hall" <[email protected]>
To: "'Mike Coucke'" <[email protected]>
Sent: Thursday, September 04, 2003 11:48 AM
Subject: RE: Registration with Lowell Education Online
Hi Mike,
Try it now. I think this problem has arisen because Sun just
released a new version of the Plug-in (1.4.2), and when we released the
public beta of LOPARC, only one relevant version (1.4.0) was available
and the LOPARC code was written to look for that by default. I have
just recoded the relevant routines so they should now cause your browser
to simply pick up the latest 1.4 version of the Plug-in you have
installed, whatever it is. I "broke" Java on my machine to replicate
your problem, and the code I inserted today did fix it. Hopefully it
will have the same effect for you. I am running IE 6 and plugin
1.4.2_01 (as accessed via Tools->Sun Java Console).
One broader problem: some (non-LOPARC-specific) users on the Sun
forums have reported the "JRE collision" you are seeing when multiple
versions of the Plug-in are installed on the same machine. So if the
fix I made to our code doesn't work, one option would be to uninstall
all Java components from your computer and do a fresh install of the
latest runtime environment.
Let me know how/if this works. Thanks for the feedback and for your
patience.
Best regards,
Jeff Hall
Lowell Observatory
-----Original Message-----
From: Mike Coucke [mailto:[email protected]]
Sent: Wednesday, September 03, 2003 6:30 PM
To: [email protected]
Subject: Re: Registration with Lowell Education Online
Hello Jeff:
So far, I have been unable to launch a LOPARC session. I repeatedly
get the following error message:
"Exception: java.lang.ClassNotFoundException: LPRemote.class"
My browser is MS Internet Explorer version 6.0.2800.1106 Initially I was
using Java Plug-In version 1.4.1 and received the error message. I went
to the Sun website and downloaded/installed Java Plug-In version 1.4.2
and still get the message.
Before I try to launch LOPARC, I can select Tools->Sun Java Console from
IE's pull down menu to check my Java Plug-In version. When I try to
launch LOPARC, I get the following message:
"Applet(s) in this HTML page requires a version of Java different from
the one the browser is currently using. In order to run the applet(s)
in this HTML page, a new browser session is required, press 'Yes' to
start a new browser session." If I select 'No', I get the following
message: "Java Plug-in detected JRE collission"
If I select 'Yes', a new browser window opens and then I get the first
message above.
Can you help?
Mike Coucke
[email protected]
----- Original Message -----
From: <[email protected]>
To: <[email protected]>
Sent: Monday, September 01, 2003 5:30 PM
Subject: Registration with Lowell Education Online
September 1, 2003
Dear Michael Coucke:
Thank you for registering with Lowell Observatory's online education
site. We hope you enjoy using it and visit regularly as we continue to
expand its features and capabilities. This is a one-time welcoming
email.
For your records, your user ID is xxxxx, and your password is #########.
You'll need to supply these each time you log in.
This site gives you access to research-grade equipment including a 16"
telescope, CCD detector, and image processing software. Our online
archive of data is now available 24/7. The telescope will be opening to
our onsite users in May, and on select nights to the Internet at large
in June.
We have designed this site so you don't need a huge monitor or a
supercomputer to use it. All pages are viewable on screens running at
800x600 resolution or higher. To use LOPARC, you'll need a Java-enabled
browser with the Java 1.4 plug-in installed. If you don't have the
plug-in, you'll be prompted to download it the first time you attempt to
connect. This is an admittedly large (9 MB) but one-time-only download.
This site works correctly under Internet Explorer version 5 or higher.
If you use Netscape, you must be running version 6 or higher, and
display or applet behavior anomalies may occur.
If at any time you can't connect to our server, simply try again later.
We do experience several power outages each year, particularly during
Flagstaff's summer thunderstorm season. Our server is fully protected
and backed up, and can be quickly brought back on line, but any active
user sessions will be lost. Thanks for your patience during these
inevitable downtimes.
Your questions, comments, suggestions, and bug reports about this site
are always welcome. On behalf of the LOPARC development team, thanks
for signing up!
Jeffrey Hall
Assistant Research Scientist
Associate Director, Education and Special Programs
Lowell Observatory
Flagstaff, ArizonaHi Mike,
I see this in your logs:
Java(TM) Plug-in: Version 1.4.2_01
Using JRE version 1.4.2_01 Java HotSpot(TM) Client VM
User home directory = C:\WINDOWS
Proxy Configuration: Manual Configuration
Proxy: http=proxy,https=proxy,ftp=proxy,gopher=proxy
Proxy Overrides:
I just helped my Dad set up his computer with a new
cable modem, and had the situation where we couldn't
access any secure Web sites. The cable folks had us
disable the proxy. It looks like the error message is
saying it can't find your proxy server, and the logs
you posted say that you've decided to configure your
proxy manually, rather than using the settings from
IE (which is how mine is set up in the plugin
control panel.)
Could that be the problem?
--Steve -
JPA - Columns to java.util.Map
I need to map the columns of a DB table into a java.util.Map object.
Any idea about how to implement this feature?
These are the columns of my table:
| ID | Value01 | Value02 | Value03 | ... | ValueN |I'd like to obtain a bean like this:
public class MyBean {
private String ID;
private Map values;
}I thought I could extend java.util.Map and redefine the get(Object) and put(Object, Object) methods
(I did something like this in java 1.4) but I can't figure it out in 1.5 with JPA>
hi i have the following method,when i click my button am geting this error java.lang.String cannot be cast to java.util.Map
>
And that is correct - you can't do that cast. Which is what this code is trying to do.
>
(Map)actionEvent.getComponent().getAttributes().get("test")
>
Ask yourself what object is supposed to be the 'Map' in that line of code?
Is it 'actionEvent', 'getComponent()' or 'getAttributes()'?
My guess is that it is the 'getAttributes' that returns a map. Which means you need to cast
actionEvent.getComponent().getAttributes()as a Map. Which means you need to put that entire thing in parentheses so that the cast is performed on it. And then you have to put THAT entire thing in parentheses so you can call the 'get' method on it.
So this is the 'Map'
(Map) (actionEvent.getComponent().getAttributes())And this calls the Maps 'get' method
( (Map) (actionEvent.getComponent().getAttributes()) ).get("test")If you broke the line into pieces and stored each piece in its own variable you would see it. These object types may not be right but should give you the idea.
//( (Map) (actionEvent.getComponent().getAttributes()).get("test") ).get("test")
MyComponent myComponent = (MyComponent) actionEvent.getComponent();
Map myMap = (Map) myComponent.getAttributes();
myMap.get("test"); -
Broker ERROR message code B[4031}
We use SunOne MQ JMS server for the at least two years and we never had any serious problems with it before till a couple of days ago when one of our server machines continuously failed to start JMS server.
The logged error messages have codes:
[B4031] and [B30000]. I have never seen such messages in the logs before. My attempts to find any related info in Sun documentation were unsuccessful.
Did somebody experienced something similar and could hint me on this issue? The logs messages are below.
Thank you, Val.
Java Runtime: 1.4.0_02 Sun Microsystems Inc. C:\h\COTS\SUN1AS\jdk\jre
[15/May//2004:13:14:42 CDT]
IMQ_HOME=C:\h\COTS\SUN1AS\imq
[15/May/2004:13:14:42 CDT]
IMQ_VARHOME=C:\h\COTS\SUN1AS\imq\var
[15/May/2004:13:14:42 CDT] Windows 2000 5.0 x86 aissvr5 (2 cpu) SYSTEM
[15/May/2004:13:14:42 CDT] Java Heap Size: max=196608k, current=8128k
[15/May/2004:13:14:42 CDT] Arguments: -ntservice -ntservice -adminkeyfile C:\h\COTS\SUN1AS\imq\var\imq1.tmp
[15/May/2004:13:14:44 CDT] [B1004]: Starting the portmapper service using tcp [ 7676, 50 ] with min threads 1 and max threads of 1
[15/May/2004:13:14:44 CDT] [B1060]: Loading persistent data...
[15/May/2004:13:14:46 CDT] ERROR [B4031]: Failed to load destinations from store:
java.io.StreamCorruptedException
[15/May/2004:13:14:46 CDT] ERROR [B3000]: Could not open persistent message store:
com.sun.messaging.jmq.jmsserver.util.BrokerException: Failed to load destinations from store:
java.io.StreamCorruptedException
[15/May/2004:13:37:07 CDT]Dear jfdb more info for you :
As you advised I ran imqbrokerd with loglevel DEBUG on different "healthy" machine with the imqbroker/filstore/destination file replaced by the copy of the corrupted file I saved.
The output is below .If you are interested to see that corruptred file I can send you a copy by e-mail.
Val.
[19/May/2004:13:38:24 GMT-05:00] ERROR [B4031]: Failed to load destinations from store:
java.io.StreamCorruptedException
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1301)
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1845)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
at com.sun.messaging.jmq.util.PHashMap.<init>(PHashMap.java:91)
at com.sun.messaging.jmq.jmsserver.persist.file.DestinationList.<init>(DestinationList.java:81)
at com.sun.messaging.jmq.jmsserver.persist.file.FileStore.<init>(FileStore.java:209)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
at java.lang.Class.newInstance0(Class.java:306)
at java.lang.Class.newInstance(Class.java:259)
at com.sun.messaging.jmq.jmsserver.persist.StoreManager.getStore(StoreManager.java:103)
at com.sun.messaging.jmq.jmsserver.Globals.getStore(Globals.java:480)
at com.sun.messaging.jmq.jmsserver.Broker.<init>(Broker.java:427)
at com.sun.messaging.jmq.jmsserver.Broker.main(Broker.java:1229)
[19/May/2004:13:38:24 GMT-05:00] ERROR [B3000]: Could not open persistent message store:
java.io.StreamCorruptedException
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1301)
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1845)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
at com.sun.messaging.jmq.util.PHashMap.<init>(PHashMap.java:91)
at com.sun.messaging.jmq.jmsserver.persist.file.DestinationList.<init>(DestinationList.java:81)
at com.sun.messaging.jmq.jmsserver.persist.file.FileStore.<init>(FileStore.java:209)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
at java.lang.Class.newInstance0(Class.java:306)
at java.lang.Class.newInstance(Class.java:259)
at com.sun.messaging.jmq.jmsserver.persist.StoreManager.getStore(StoreManager.java:103)
at com.sun.messaging.jmq.jmsserver.Globals.getStore(Globals.java:480)
at com.sun.messaging.jmq.jmsserver.Broker.<init>(Broker.java:427)
at com.sun.messaging.jmq.jmsserver.Broker.main(Broker.java:1229) -
Hi,all:
I did the installation of BI Java Installation yesterday,but it terminated during process"SAP J2EE Engine Online Deployment". It informs "MUT-02041 SDM call of deploySdaList ends with returncode 4". I check the callSdmViaSapinst.log, below is the error information:
05/11/20 22:49:59 - ***********************************************************
05/11/20 22:50:01 - Start updating EAR file...
05/11/20 22:50:01 - start-up mode is lazy
05/11/20 22:50:01 - EAR file updated successfully for 137ms.
05/11/20 22:50:01 - Start deploying ...
05/11/20 22:50:02 - EAR file uploaded to server for 385ms.
05/11/20 22:50:02 - ERROR: Not deployed. Deploy Service returned ERROR:
java.rmi.RemoteException: Error occurred while deploying ear file ./temp/deploy/work/deplo
ying/bi_mmr_bi_4.0.ear.
Reason: None of the available containers recognized the components of application sap.com/
bimmrbi_4.0; it is not possible to make deploy.
at com.sap.engine.services.deploy.server.DeployServiceImpl.deploy(DeployServiceImpl.jav
a:480)
at com.sap.engine.services.deploy.server.DeployServiceImplp4_Skel.dispatch(DeployServic
eImplp4_Skel.java:1555)
at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:291)
at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:183)
at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.
java:119)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageList
ener.process(ApplicationSessionMessageListener.java:37)
at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(Unorder
edChannel.java:71)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162)
For detailed information see the log file of the Deploy Service.
05/11/20 22:50:02 - ***********************************************************
Nov 20, 2005 10:50:02... Info: End of log messages of the target system.
Nov 20, 2005 10:50:02... Info: ***** End of SAP J2EE Engine Deployment (J2EE Application) *****
Nov 20, 2005 10:50:02... Error: Aborted: development component 'bi/mmr/bi_4.0'/'sap.com'/'SAP AG'/'350.6918.000
Caught exception during application deployment from SAP J2EE Engine's deploy service:
java.rmi.RemoteException: Error occurred while deploying ear file ./temp/deploy/work/deploying/bi_mmr_bi_4.0.ea
r.
Reason: None of the available containers recognized the components of application sap.com/bimmrbi_4.0; it is
not possible to make deploy.
(message ID: com.sap.sdm.serverext.servertype.inqmy.extern.EngineApplOnlineDeployerImpl.performAction(Deployme
ntActionTypes).REMEXC)
Nov 20, 2005 10:50:02... Info: SDM configuration: Do not automatically start/stop J2EE Engine. Do not restore s
tate of J2EE Engine now.
Nov 20, 2005 10:50:02... Info: -
Deployment was successful -
Nov 20, 2005 10:50:03... Info: Summarizing the deployment results:
Nov 20, 2005 10:50:03... Error: Admitted: /Inst_CDs/BW/BW-UDI/ONLINE/BIUDI09_0.sca
Nov 20, 2005 10:50:03... Error: Processing error. Return code: 4
My platform is SUSE Linux Enterprise Server 9. I do the installation on a NetWeaver ABAP+Java 640 system. Also I have installed BI content 3.53.
Please help me.
Thanks,
DanielI am having the same problem.
Can anyone help on this topic please? -
Using the Model Facade Pattern in a Java EE 5 Web application
Hi,
Yutaka and I did a Tech tip
http://java.sun.com/mailers/techtips/enterprise/2006/TechTips_Nov06.html#2 on using a model facade pattern in Java EE 5 web-only applications recently. We got some questions about it, and these were some of the questions raised...
Question 1) the first part of the tech tip(it has two articles in it) http://java.sun.com/mailers/techtips/enterprise/2006/TechTips_Nov06.html showed how to access Java Persistence objects directly from a JSF managed bean, is this a good practice?
Question 2) when to use a facade(as mentioned in the second part of tech tip) ?
and maybe
Question 3) why doesn't the platform make this easier and provide the facade for you?
Briefly, I will take a shot at answering these three questions
Answer 1) You can access Java persistence directly from your managed beans, but as your application grows and you start to add more JSF managed beans or other web components(servlets, JSP pages etc) that also directly access Java Persistence objects, you will start to see that you are cutting/pasting similiar code to handle the transactions and to handle the Java Persistence EntityManager and other APIs in many places. So for larger applications, it is a good practice to introduce a model facade to centralize code and encapsulate teh details of the domain model management
Answer 2) IAs mentioned in answer 1, its good to use a model facade when your application starts to grow. For simple cases a spearate model facade class may not be needed and having managed beans do some of the work is a fast way to jumpstart you application development. But a facade can help keep the code clean and easier to maintain as the aplication grows.
Answer 3) First note that both of the articles in the tech tip were about pure web apps(not using any EJBs) and running on the Java EE5 platform. Yes it would be nice if a facility like this was made available for web-only applications(those not using EJBs). But for web-only applications you will need to use a hand-rolled facade as we outlined in the tech tip. The Java EE platform does provide a way to make implementing a facde easier though, and the solution for that is to use a Session Bean. This solution does require that you use ythe EJB container and have a Session Bean facade to access your Java Persistence objects and manage the transactions. The EJB Session Facade can do a lot of the work for you and you dont have to write code to manage the transactions or manage the EntityManager. This solution was not covered in this tech tip article but is covered in the Java BluePrints Solutions Catalog for Perssitence at
https://blueprints.dev.java.net/bpcatalog/ee5/persistence/facade.html in the section "Strategy 2: Using a Session Bean Facade" . Maybe we can cover that in a future tech tip.
Please ask anymore questions about the tech tip topic on this forum and we will try to answer.
hth,
SeanHi Sean,
I'm working on an implementation of the Model Facade pattern where you can possibly have many facades designed as services. Each service extends a basic POJO class which I'm calling CRUDService: its short code is provided below for your convenience.
The CRUDService class is meant to generalize CRUD operations regardless of the type of the object being used. So the service can be called as follows, for example:
Job flightAtt = new Job();
SERVICE.create(flightAtt);
Runway r = (Runway) SERVICE.read(Runway.class, 2);
Employee e = (Employee) SERVICE.read(Employee.class, 4);
SERVICE.update(e);
SERVICE.delete(r);SERVICE is a Singleton, the only instance of some service class extending CRUDService. Such a class will always include other methods encapsulating named queries, so the client won't need to know anything about the persistence layer.
Please notice that, in this scenario, DAOs aren't needed anymore as their role is now distributed among CRUDService and its subclasses.
My questions, then:
. Do you see any obvious pitfalls in what I've just described?
. Do you think traditional DAOs should still be used under JPA?
. It seems to me the Model Facade pattern isn't widely used because such a role can be fulfilled by frameworks like Spring... Would you agree?
Thanks so much,
Cristina Belderrain
Sao Paulo, Brazil
public class CRUDService {
protected static final Logger LOGGER = Logger.
getLogger(Logger.GLOBAL_LOGGER_NAME);
protected EntityManager em;
protected EntityTransaction tx;
private enum TransactionType { CREATE, UPDATE, DELETE };
protected CRUDService(String persistenceUnit) {
em = Persistence.createEntityManagerFactory(persistenceUnit).
createEntityManager();
tx = em.getTransaction();
public boolean create(Object obj) {
return execTransaction(obj, TransactionType.CREATE);
public Object read(Class type, Object id) {
return em.find(type, id);
public boolean update(Object obj) {
return execTransaction(obj, TransactionType.UPDATE);
public boolean delete(Object obj) {
return execTransaction(obj, TransactionType.DELETE);
private boolean execTransaction(Object obj, TransactionType txType) {
try {
tx.begin();
if (txType.equals(TransactionType.CREATE))
em.persist(obj);
else if (txType.equals(TransactionType.UPDATE))
em.merge(obj);
else if (txType.equals(TransactionType.DELETE))
em.remove(obj);
tx.commit();
} finally {
if (tx.isActive()) {
LOGGER.severe(txType + " FAILED: ROLLING BACK!");
tx.rollback();
return false;
} else {
LOGGER.info(txType + " SUCCESSFUL.");
return true;
} -
NO java control panel in windows system control window
Hello together,
there seems to be a bug/feature (?) not allowing me to use the plugin functionality of my J2EEsdk-1_4
Situation:
Before i installed the J2EE i had an already installed java plug-in 1_4_2 working fine on
my Laptop giving my ms explorer 6.0 the Java VM needed. To avoid conflicts, i deinstalled
this plug-in, before i installed the J2EE 1_4_2. The result was disapointing.
There was NO java control panel in the windows2000 system control window after installing J2EE.
There was no corresponding registration key in the registry anymore.
Additionally there was no java related entrance to be seen anymore in the advanced internet and
security options of my ms explorer 6.0.
i have have found several trouble reports mentioned similar problems during the last months but unluckily
no solution working for me.
i did several tests with different java packages i downloaded today to get the actual versions
First:
i deinstalled the J2EE (not to get version conflicts) and installed the Java Plug-in 1.4.2 again.
This was proposed from ms explorer, when i tried to open an internet page with javaplugins included.
This plugin worked fine again. I could see and use the java panel and it enabled
my explorer to use the java plugin.
Second:
i deinstalled the Java Plugin and installed the J2sdk_1_4_2 instead.
The java plugin which is part of this package also worked fine.
Third:
i deinstalled the J2sdk_1_4_2 and installed the J2EEsdk-1_4-windows.exe.
the same misbehaviour as mentioned before. No java panel icon can be seen
in the windows system control, now registration......
as a workaround i have installed now both, the J2eesdk (i want to learn about)
and some additonal 100 MB java plug-in to enable my MS explorer to display
java applets again.
This is working fine again, but i really would prefer to have no need for two JREs.
By the way:
When i first opened the java control panel of the Plug-in and deactivated the update
mechanism , this plugin got really angry immedialtely afterwards. As a result my
laptop rebooted without coming up again. i had to initiate another hard reboot to get
windows back
i really would like to know , whats wrong me or the J2ee and i apriciate
any hint.
Best regards: yours aspirantOne thing you could do if you by all means want to have only one single copy of 1.4.2 on your system is to install standalone J2SE 1.4.2 (this will accomodate your Java console and browser plugin requirements) and then install Application Server only distribution (on the download page this is referred to as "Sun Java System Application Server Platform Edition 8") and sample applications set ("J2EE 1.4 SDK Samples "). In this way you get full content you would get in J2EE 1.4 SDK and all the benefits of standalone J2SE 1.4.2 installation.
This is obviously more convoluted at installation time since there are 3 separate things to install, but it would seem to fit your requirements.
Hope this helps... -
How to read a Value from Excel Cell into Oracle Forms 10g with Java
Did any one Implamented a Java PJC to integrate Excel on Oracle Forms 10g?
I Open Excel Applikation.
Open a File like c:\import_test.xls
read a number 05 from A:1 (i get it as return value).
Save a number in a variable in Forms 10g
Can any one help my please?
Thankswhy don't you use webutil.
it has package client_ole2 which allows you to have programmatic interface with excel application.
this is especially useful if the excel to be read is available in the client. -
Do week-long java courses help to understand java & get a job?
i tried searching for this topic before posting, but "courses" "classes" & "instruction" come up with a lot that has nothing to do with the topic at hand. :)
like many others, i'm teaching myself out of a book (Deitel). so far i've been able to understand the material and create programs based on the exercises. however, i'm now into the meat of OOP with superclass, subclasses, how they interact and the like and i'm having a rough go of it. i can diagram and understand the abstract concept, but when i'm faced with an actual program example i have a difficult time following the interactions between classes.
i'm considering taking one of those 5 day classes, but am wary of how much they will actually be able to cover in detail (not to mention the $$). has anyone here taken one of those classes and found them to be of great benefit to learning the OOP portion of Java? did it give you enough understanding to obtain an entry-level job?
btw, i'm doing a pro bono project for a small company to get some real world experience. (i've heard that suggestion many times in regards to obtaining one's "experience" w/o a job)
thank you all very much for your help.I took a week long course to learn Java. It worked I did learn the basics of Java but I did already know how to program in C and VB at the time. I found the AWT section of the class to be very valuable,cosidering I mostly write GUI. And the concepts of AWT mostly all apply to swing so that didn't set me back at all. Depending on the school it may help you to understand OOP. But be careful because most schools progress the class at the skill level of the majorty. So if you have 15 people in the class and 9 of them know nothing about programing your probably going to spend the week learning what a variable and a while loop do, you all pay the same tuition and they would rather 6 of you leave then 9 of you leave. If you have some prior programming knowledge I would recomend finding a class that caters to that.
Maybe you are looking for
-
ITunes sync hangs only when syncing photos to Apple TV
I just got an Apple TV, and updated it to the last software v2.4; iTunes is also running latest v 9x. I have a large library and the first sync took a long time but it got done successfully. But when I select images I want to sync in the 'photos' tab
-
Installing CS 5.5 on different OS
My office recently purchased CS 5.5 Design Premium for me. I have the Windows disks. I understand I can install and use the programs at home as well, but I have a Mac. I have a valid serial number, just not the Mac OS version of the software. Can I
-
How to find bdc programs?
Hi all, I am working on upgrading project. I want to list all BDC programs. Is there any way i can find all programs which are using BDC Uploads? Many Thanks Shiva
-
WITH clause querying other WITH clause
I want to do something like this: with t1 as select * from table1 ,t2 as select col1,col2 from t1 select * from t1,t2as you all can see, t2 WITH clause queries t1 WITH clause. how do I do this? because this doesn't work. thanks
-
Regarding MI data storage in handheld device
Hi, How does the file I/O manage the data on handheld when it becomes huge after continous usage and mulitple synchronizations. I guess that MI currently creates a folder for every login and stores the data from WAS in the form .dat files. As the han