File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Linux / UNIX and the fly likes Azureus and java applets problem on Ubuntu Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "Azureus and java applets problem on Ubuntu" Watch "Azureus and java applets problem on Ubuntu" New topic
Author

Azureus and java applets problem on Ubuntu

Ra Carter
Ranch Hand

Joined: Jul 30, 2005
Posts: 96
am i the only one experiencing problems with java applications on Ubuntu Linux so far?

firtly, azureus consistently crashes on my machine. After that the program will not start properly until i delete the ~/.azureus directory. The problem happens often enough to render the program almost useless. The error message given in the console is this:


#
# An unexpected error has been detected by Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00000000, pid=7724, tid=3084708752
#
# Java VM: Java HotSpot(TM) Server VM (1.6.0_03-b05 mixed mode)
# Problematic frame:
# C 0x00000000
#
# An error report file with more information is saved as hs_err_pid7724.log
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
#

[1]+ Aborted (core dumped) azureus


i am also having other problems with Sun Java 6 on Ubuntu. after playing games on site that uses a Java Applet in firefox I cannot view any applets until i delete the ~/.java directory. the error i get before doing that in the java console is this:


10/30/2007 02:58:40 * (36970) cpcaAC: getParameter: [ name = port def = 4007 ]
10/30/2007 02:58:40 * (36970) cpcaAC: getParameter: [ name = range def = 1 ]
10/30/2007 02:58:47 * (49283) cpcaAC: getParameter: [ name = port def = 4007 ]
10/30/2007 02:58:47 * (49283) cpcaAC: getParameter: [ name = range def = 1 ]
Event log opened: Tue Oct 30 02:58:47 GMT 2007
10/30/2007 02:58:47 ? (49283) pcaAC: Context Creation [ netbase = http://www.playsite.com/, base = ]http://www.playsite.com/global/psfiles/applets/java/]
10/30/2007 02:58:47 ? (49283) pcaAC: Context Creation [ netbase = http://www.playsite.com/, base = ]http://www.playsite.com/global/psfiles/applets/java/]
10/30/2007 02:58:52 * (49283) pgsSU: Error reading simple dump: java.security.AccessControlException: access denied (java.io.FilePermission /home/me/.java/deployment/cache/6.0/20/568b7994-3a2ff17e.idx read)
10/30/2007 02:58:52 * (49283) pgsSU: Error reading simple dump: java.security.AccessControlException: access denied (java.io.FilePermission /home/me/.java/deployment/cache/6.0/20/568b7994-3a2ff17e.idx read)
10/30/2007 02:58:52 * (49283) pgsSU: Error reading simple dump: java.security.AccessControlException: access denied (java.io.FilePermission /home/me/.java/deployment/cache/6.0/55/5818b9b7-6f2774e5.idx read)
10/30/2007 02:58:52 * (49283) pgsSU: Error reading simple dump: java.security.AccessControlException: access denied (java.io.FilePermission /home/me/.java/deployment/cache/6.0/55/5818b9b7-6f2774e5.idx read)
10/30/2007 02:58:52 * (49283) pgsSU: Error reading simple dump: java.security.AccessControlException: access denied (java.io.FilePermission /home/me/.java/deployment/cache/6.0/31/1e0e345f-50281218.idx read)
10/30/2007 02:58:52 * (49283) pgsSU: Error reading simple dump: java.security.AccessControlException: access denied (java.io.FilePermission /home/me/.java/deployment/cache/6.0/31/1e0e345f-50281218.idx read)
10/30/2007 02:58:53 * (49283) pgsSU: Error reading simple dump: java.security.AccessControlException: access denied (java.io.FilePermission /home/me/.java/deployment/cache/6.0/37/53800ae5-36027775.idx read)
10/30/2007 02:58:53 * (49283) pgsSU: Error reading simple dump: java.security.AccessControlException: access denied (java.io.FilePermission /home/me/.java/deployment/cache/6.0/37/53800ae5-36027775.idx read)
java.security.AccessControlException: access denied (java.io.FilePermission /home/me/.java/deployment/cache/6.0/47/1d1b8c6f-3d118e85.idx read)
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:323)
at java.security.AccessController.checkPermission(AccessController.java:546)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
at java.lang.SecurityManager.checkRead(SecurityManager.java:871)
at java.io.RandomAccessFile.<init>(RandomAccessFile.java:203)
at com.sun.deploy.cache.CacheEntry.updateExpirationInIndexFile(CacheEntry.java:441)
at com.sun.deploy.net.DownloadEngine.isUpdateAvailable(DownloadEngine.java:728)
at com.sun.deploy.cache.DeployCacheHandler.get(DeployCacheHandler.java:132)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:681)
at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:654)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:977)
at java.net.URL.openStream(URL.java:1009)
at gadget.PresentationGadget.a([DashoPro-V1.32-013000])
at gadget.PresentationGadget.b([DashoPro-V1.32-013000])
at gadget.PresentationGadget.a([DashoPro-V1.32-013000])
at gadget.PresentationGadget.<init>([DashoPro-V1.32-013000])
at ch.<init>([DashoPro-V1.32-013000])
at cg.<init>([DashoPro-V1.32-013000])
at cg.a([DashoPro-V1.32-013000])
at com.playsite.clients.applet.AppletClient.createControlInterface([DashoPro-V1.32-013000])
at com.playsite.clients.applet.AppletClient.init([DashoPro-V1.32-013000])
at com.playsite.clients.applet.AppletClient.init([DashoPro-V1.32-013000])
at sun.applet.AppletPanel.run(AppletPanel.java:419)
at java.lang.Thread.run(Thread.java:619)


anyone else experience this? anything to be done about it?
[ October 29, 2007: Message edited by: Ra Carter ]
Freddy Wong
Ranch Hand

Joined: Sep 11, 2006
Posts: 959

Azureus in Ubuntu only works best with java-gcj. You can have both java-gcj and sun-java and use sun-java as a default.

If the sun-java is your default Java, azureus will use that instead of java-gcj. In order to use java-gcj, you can tell which java you're using by specifying the JAVA_HOME. But if you already have JAVA_HOME set in your .bashrc and its value is the sun-java, then you can do the following:
1. Edit the /usr/bin/azureus.
2. Add the JAVA_HOME=/usr/lib/jvm/java-gcj

Hope this helps.


SCJP 5.0, SCWCD 1.4, SCBCD 1.3, SCDJWS 1.4
My Blog
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14338
    
  22

I see you are using the server version of the JVM. Is there a special reason you are not using the client version?

Are you running a 64-bit version of Ubuntu? And if you are, are you then also running a 64-bit version of Firefox? Unfortunately, Sun does not yet have a 64-bit browser plug-in (AFAIK), so in a 64-bit browser you can't run Java applets using Sun's JVM. Also, I think Sun's 64-bit version of the JVM comes only in the "server" variant, so that's why you might be using the server version.

It could be a bug in the JVM, I've had strange problems in the past that went away when I used the client instead of the server JVM (although that was on MS Windows).


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8964
    
    9

Originally posted by Freddy Wong:
Azureus in Ubuntu only works best with java-gcj.


I found exactly the opposite. Using java-gcj, Azureus consumed 40% of my CPU (AMD XP-1400). Using Sun Java 1.5, Azureus consumes negligible CPU and has months of uptime. This makes sense because java-gcj doesn't have the hotspot JVM to do code optimization. Heck, it doesn't even implement all of Java 1.4.


[How To Ask Questions On JavaRanch]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Azureus and java applets problem on Ubuntu