DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 10th September 2008
Atazoth Atazoth is offline
New User
 
Join Date: Sep 2008
Posts: 2
Default FreeBSD 7 and Java?

Hello.

Has anyone found a working recipe for FreeBSD 7 Release and Java with FireFox 2?

I just upgraded from 6.2 (fresh install) but I can't seem to get java working. I've tryed both the Diablo-jre16 and Diablo-jdk16 ports. They seem to load small applets just fine. Like the test your version applets. But, when I load larger applets they are just grayed out. If I refresh them constantly I can get it to load the applet but some graphics are missing and eventually the applet just grays out again.

I've also tryed the Diablo-Jre15/jdk15 but FireFox just crashes after loading applets.

Closes thing I can find on the net with others that have had this problem had to do with ipv6 interfering somehow and was fixed by adding -Djava.net.preferIPv4Stack=true in the java console. Which I did to no effect.

I've also tryed Opera but it wont even load simple applets. Just crashes.

Has anyone been successful in making this work?
Reply With Quote
  #2   (View Single Post)  
Old 10th September 2008
BSDKaffee's Avatar
BSDKaffee BSDKaffee is offline
Real Name: Jason Hale
Coffee Addict
 
Join Date: May 2008
Location: Wintersville, Ohio
Posts: 212
Default

A while ago I had trouble with Java applets related to IPV6. Currently I am using jdk15 with FreeBSD 7.0.

In /etc/sysctl.conf I added:
Code:
net.inet6.ip6.v6only=0
To do this on the fly:
# sysctl net.inet6.ip6.v6only=0

I would also suggest backing up and deleting ~/.java.
Reply With Quote
  #3   (View Single Post)  
Old 10th September 2008
ninjatux's Avatar
ninjatux ninjatux is offline
Real Name: Baqir Majlisi
Spam Deminer
 
Join Date: May 2008
Location: Antarctica
Posts: 293
Default

Do not build jdk16 with IPV6 support. It's mostly a hassle anyway. It works on IPV6-enabled networks, but those are far and few. So, you will have trouble on most networks. I encountered this problem two months ago. The thread is on the mailing list.
__________________
"UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity."
MacBook Pro (Darwin 9), iMac (Darwin 9), iPod Touch (Darwin 9), Dell Optiplex GX620 (FreeBSD 7.1-STABLE)
Reply With Quote
  #4   (View Single Post)  
Old 10th September 2008
Atazoth Atazoth is offline
New User
 
Join Date: Sep 2008
Posts: 2
Default

Thanks for the replies. I didn't built either with ipv6 support. That's just the only thing that came up on google when I was search for a problem like mine on FreeBSD 7.

I tryed the "sysctl net.inet6.ip6.v6only=0" suggestion but the problem remains.

In FF I opened the Java console. This is using jdk16. I went to pogo.com (everything on that worked fine on my 6.2 installation) and this is what the console reads when I open an applet. All I see is a gray box. If I were to refresh the applet would appear and then go gray again after a minute or so.

I get similar results on other Java enabled sites as well.

Code:
vm test passed
The FreeBSD Foundation
Wed Sep 10 17:11:30 GMT 2008	thread applet-com.pogo.client.loading.Applet		init
Wed Sep 10 17:11:30 GMT 2008	thread applet-com.pogo.client.loading.Applet		delta = 152 ctim = 1221066690193
Wed Sep 10 17:11:30 GMT 2008	thread applet-com.pogo.client.loading.Applet		start
Wed Sep 10 17:11:30 GMT 2008	thread applet-com.pogo.client.loading.Applet		delay 19848
Wed Sep 10 17:11:50 GMT 2008	Thread-69		applet loaded
copyright (c) 2008 Electronic Arts Inc. all rights reserved.
http://www.pogo.com/
Build 9.1.2.23 09/08/2008 01:16 AM
Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8.1.16) Gecko/20080908 Firefox/2.0.0.16 Version 5 0 0 Netscape
Java 1.6.0_07 (The FreeBSD Foundation) FreeBSD 7.0-RELEASE (i386)
Timestamp: 1221066710590
Local time: Wed, 10 Sep 2008 17:11:50 GMT
GMT time: Wed, 10 Sep 2008 17:11:50 GMT
User: mastergoten
Entering: drawpoker-pldrawsf017/Bad Beat
SoundPlayer: voodoo OFF
loading props url: http://game3.pogo.com/util/client-props.jsp?file=gf2%2Ftablesel%2Fdrawpoker%2Fdef.properties&locale=en_US&site=pogo
Wed Sep 10 17:11:50 GMT 2008	thread applet-com.pogo.client.loading.Applet		stop
Wed Sep 10 17:11:50 GMT 2008	thread applet-com.pogo.client.loading.Applet		destroy
IOException in findCookieURL
Bad termination of cookie request!
completed props load: 236 ms
INFO:ChatLoaded
Wed Sep 10 17:11:50 GMT 2008	Applet-EventThread		creating options class: com.pogo.game.common2.poker.DrawPokerOptions
loading props url: http://game3.pogo.com/util/client-props.jsp?file=gf2%2Ftable%2Fdrawpoker%2Fdef.properties&locale=en_US&site=pogo
java.lang.ThreadDeath
	at java.lang.Thread.stop(Thread.java:715)
	at java.lang.ThreadGroup.stopOrSuspend(ThreadGroup.java:666)
	at java.lang.ThreadGroup.stopOrSuspend(ThreadGroup.java:675)
	at java.lang.ThreadGroup.stop(ThreadGroup.java:580)
	at sun.awt.AppContext.dispose(AppContext.java:440)
	at sun.applet.AppletClassLoader.release(AppletClassLoader.java:752)
	at sun.plugin.security.PluginClassLoader.release(PluginClassLoader.java:441)
	at sun.applet.AppletPanel.release(AppletPanel.java:181)
	at sun.applet.AppletPanel.sendEvent(AppletPanel.java:292)
	at sun.plugin.AppletViewer.onPrivateClose(AppletViewer.java:1113)
	at sun.plugin.AppletViewer$4.run(AppletViewer.java:1062)
	at java.lang.Thread.run(Thread.java:619)
java.lang.ThreadDeath
	at java.lang.Thread.stop(Thread.java:715)
	at java.lang.ThreadGroup.stopOrSuspend(ThreadGroup.java:666)
	at java.lang.ThreadGroup.stopOrSuspend(ThreadGroup.java:675)
	at java.lang.ThreadGroup.stop(ThreadGroup.java:580)
	at sun.awt.AppContext.dispose(AppContext.java:440)
	at sun.applet.AppletClassLoader.release(AppletClassLoader.java:752)
	at sun.plugin.security.PluginClassLoader.release(PluginClassLoader.java:441)
	at sun.applet.AppletPanel.release(AppletPanel.java:181)
	at sun.applet.AppletPanel.sendEvent(AppletPanel.java:292)
	at sun.plugin.AppletViewer.onPrivateClose(AppletViewer.java:1113)
	at sun.plugin.AppletViewer$4.run(AppletViewer.java:1062)
	at java.lang.Thread.run(Thread.java:619)
UNCAUGHT EXCEPTION: mem free=310k used=15230k
Thread: Applet-EventThread
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
	at java.util.ArrayList.RangeCheck(ArrayList.java:547)
	at java.util.ArrayList.get(ArrayList.java:322)
	at com.sun.deploy.net.proxy.DeployProxySelector.select(DeployProxySelector.java:173)
	at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:724)
	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 com.pogo.game.client2.a.a(SourceFile:548)
	at com.pogo.game.client2.table.TableSelectorApplet.n(SourceFile:272)
	at com.pogo.game.client2.table.TableSelectorApplet.a(SourceFile:254)
	at com.pogo.game.client2.m.aG(SourceFile:1791)
	at com.pogo.game.client2.m.a(SourceFile:1928)
	at com.pogo.game.client2.a.run(SourceFile:292)
	at java.lang.Thread.run(Thread.java:619)

Cookie service is not available - use cache to determine "Cookie"
UNCAUGHT EXCEPTION: mem free=7219k used=10465k
Thread: Applet-EventThread
java.lang.SecurityException: Applet classloader has invalid AppContext
	at sun.applet.AppletSecurity.getAppContext(AppletSecurity.java:347)
	at sun.awt.AppContext.getAppContext(AppContext.java:311)
	at java.awt.Component.<init>(Component.java:761)
	at java.awt.Container.<init>(Container.java:245)
	at com.pogo.ui2.awt.j.<init>(SourceFile:79)
	at com.pogo.ui2.awt.p.<init>(SourceFile:47)
	at com.pogo.game.client2.chat.l.a(SourceFile:1060)
	at com.pogo.game.client2.m.c(SourceFile:2790)
	at com.pogo.game.client2.m.O(SourceFile:2629)
	at com.pogo.game.client2.m.E(SourceFile:2845)
	at com.pogo.game.client2.table.TableSelectorApplet.E(SourceFile:335)
	at com.pogo.game.client2.m.b(SourceFile:2392)
	at com.pogo.game.client2.table.TableApplet.b(SourceFile:915)
	at com.pogo.game.client2.m.a(SourceFile:1918)
	at com.pogo.game.client2.a.run(SourceFile:292)
	at java.lang.Thread.run(Thread.java:619)

UNCAUGHT EXCEPTION: mem free=7103k used=10581k
Thread: Applet-EventThread
java.lang.SecurityException: Applet classloader has invalid AppContext
	at sun.applet.AppletSecurity.getAppContext(AppletSecurity.java:347)
	at sun.awt.AppContext.getAppContext(AppContext.java:311)
	at java.awt.Component.<init>(Component.java:761)
	at java.awt.Container.<init>(Container.java:245)
	at com.pogo.ui2.awt.j.<init>(SourceFile:79)
	at com.pogo.ui2.awt.p.<init>(SourceFile:47)
	at com.pogo.game.client2.chat.l.a(SourceFile:1060)
	at com.pogo.game.client2.m.c(SourceFile:2790)
	at com.pogo.game.client2.m.O(SourceFile:2629)
	at com.pogo.game.client2.m.E(SourceFile:2845)
	at com.pogo.game.client2.table.TableSelectorApplet.E(SourceFile:335)
	at com.pogo.game.client2.m.b(SourceFile:2392)
	at com.pogo.game.client2.table.TableApplet.b(SourceFile:915)
	at com.pogo.game.client2.m.a(SourceFile:1918)
	at com.pogo.game.client2.a.run(SourceFile:292)
	at java.lang.Thread.run(Thread.java:619)
The "UNCAUGHT EXCEPTION: mem free=" goes on and on so I didn't post the rest. Could it be running out of memory somehow?
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Java and AI-programming idefix Programming 4 7th February 2009 01:41 PM
java compiler bsdnewbie999 OpenBSD Packages and Ports 8 9th August 2008 12:18 PM
Java JDK Oko OpenBSD Packages and Ports 10 13th July 2008 07:39 PM
How to java on FreeBSD? graudeejs FreeBSD Ports and Packages 13 9th July 2008 06:41 PM
Odd Java Issue DrJ FreeBSD Ports and Packages 0 12th May 2008 12:35 AM


All times are GMT. The time now is 09:01 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick