Nie jesteś zalogowany.
Jeśli nie posiadasz konta, zarejestruj je już teraz! Pozwoli Ci ono w pełni korzystać z naszego serwisu. Spamerom dziękujemy!

Ogłoszenie

Prosimy o pomoc dla małej Julki — przekaż 1% podatku na Fundacji Dzieciom zdazyć z Pomocą.
Więcej informacji na dug.net.pl/pomagamy/.

#1  2009-12-31 09:14:22

  mk1730 - Użytkownik

mk1730
Użytkownik
Zarejestrowany: 2009-05-11

Problem z chatem-javą.

Problem polega na tym że się nie pokazuje na stronie okienko z chatem. Zamiast tego pisze Error.Click for details. Jak klikam to wyskakuje okienko z javą i w niej pisze takie coś:

Kod:

Java Plug-in 1.6.0_16
Using JRE version 1.6.0_16-b01 Java HotSpot(TM) Client VM
User home directory = /home/mk
----------------------------------------------------
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
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 Chat.class not found.
java.lang.ClassNotFoundException: Chat.class
    at sun.plugin2.applet.Applet2ClassLoader.findClass(Applet2ClassLoader.java:152)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
    at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Plugin2ClassLoader.java:445)
    at sun.plugin2.applet.Plugin2Manager.createApplet(Plugin2Manager.java:2880)
    at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Plugin2Manager.java:1397)
    at java.lang.Thread.run(Thread.java:619)
Caused by: java.net.ConnectException: Network is unreachable
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
    at java.net.Socket.connect(Socket.java:525)
    at sun.net.NetworkClient.doConnect(NetworkClient.java:161)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:394)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:529)
    at sun.net.www.http.HttpClient.<init>(HttpClient.java:233)
    at sun.net.www.http.HttpClient.New(HttpClient.java:306)
    at sun.net.www.http.HttpClient.New(HttpClient.java:323)
    at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:860)
    at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:801)
    at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:726)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1049)
    at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:373)
    at sun.plugin2.applet.Applet2ClassLoader.getBytes(Applet2ClassLoader.java:458)
    at sun.plugin2.applet.Applet2ClassLoader.access$000(Applet2ClassLoader.java:46)
    at sun.plugin2.applet.Applet2ClassLoader$1.run(Applet2ClassLoader.java:126)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.plugin2.applet.Applet2ClassLoader.findClass(Applet2ClassLoader.java:123)
    ... 6 more
Exception: java.lang.ClassNotFoundException: Chat.class

Kod:

debian:~# update-alternatives --config java
Jest 2 dostępnych alternatyw dla java (dostarczających /usr/bin/java).

  Wybór       Ścieżka                             Priorytet  Status
------------------------------------------------------------
  0            /usr/bin/gij-4.4                       1044      tryb auto
  1            /usr/bin/gij-4.4                       1044      tryb ręczny
* 2            /usr/lib/jvm/java-6-sun/jre/bin/java   63        tryb ręczny

Naciśnij Enter, aby pozostawić bieżący wybór[*], albo wpisz wybrany numer:

Offline

 

#2  2009-12-31 12:09:11

  arturek - Członek DUG

arturek
Członek DUG
Zarejestrowany: 2006-08-19

Re: Problem z chatem-javą.

błędy są zgłoszone

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=561693
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=560044

jak na razie działa po wykonaniu
w terminalu jako root

Kod:

sed -i 's/net.ipv6.bindv6only\ =\ 1/net.ipv6.bindv6only\ =\ 0/' \
/etc/sysctl.d/bindv6only.conf && invoke-rc.d procps restart

Ostatnio edytowany przez arturek (2009-12-31 12:09:47)


Debian “buster” Xfce

Offline

 

#3  2009-12-31 21:22:51

  mk1730 - Użytkownik

mk1730
Użytkownik
Zarejestrowany: 2009-05-11

Re: Problem z chatem-javą.

Ok. Dzieki za odpowiedź:) Pozdrawiam

Offline

 

#4  2010-01-01 02:15:45

  Kudzu - 1NF:rM@7iON1SP0vvErr

Kudzu
1NF:rM@7iON1SP0vvErr
Skąd: Universe
Zarejestrowany: 2007-01-06

Re: Problem z chatem-javą.

Jeśli chodzi o ten błąd to trochę dziwna sprawa, bo na repowym jaju java nie chce się łączyć z netem.. ale na własnoręcznie kompilowanym ne ma problemu.. wtf?


...software is like sex
it's better when it's free..

Offline

 

Stopka forum

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson
Nas ludzie lubią po prostu, a nie klikając w przyciski ;-)

[ Generated in 0.010 seconds, 12 queries executed ]

Informacje debugowania

Time (s) Query
0.00010 SET CHARSET latin2
0.00005 SET NAMES latin2
0.00136 SELECT u.*, g.*, o.logged FROM punbb_users AS u INNER JOIN punbb_groups AS g ON u.group_id=g.g_id LEFT JOIN punbb_online AS o ON o.ident='3.137.181.69' WHERE u.id=1
0.00073 REPLACE INTO punbb_online (user_id, ident, logged) VALUES(1, '3.137.181.69', 1732488080)
0.00046 SELECT * FROM punbb_online WHERE logged<1732487780
0.00069 DELETE FROM punbb_online WHERE ident='54.36.148.152'
0.00053 SELECT topic_id FROM punbb_posts WHERE id=137487
0.00133 SELECT id FROM punbb_posts WHERE topic_id=15834 ORDER BY posted
0.00070 SELECT t.subject, t.closed, t.num_replies, t.sticky, f.id AS forum_id, f.forum_name, f.moderators, fp.post_replies, 0 FROM punbb_topics AS t INNER JOIN punbb_forums AS f ON f.id=t.forum_id LEFT JOIN punbb_forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id=3) WHERE (fp.read_forum IS NULL OR fp.read_forum=1) AND t.id=15834 AND t.moved_to IS NULL
0.00005 SELECT search_for, replace_with FROM punbb_censoring
0.00086 SELECT u.email, u.title, u.url, u.location, u.use_avatar, u.signature, u.email_setting, u.num_posts, u.registered, u.admin_note, p.id, p.poster AS username, p.poster_id, p.poster_ip, p.poster_email, p.message, p.hide_smilies, p.posted, p.edited, p.edited_by, g.g_id, g.g_user_title, o.user_id AS is_online FROM punbb_posts AS p INNER JOIN punbb_users AS u ON u.id=p.poster_id INNER JOIN punbb_groups AS g ON g.g_id=u.group_id LEFT JOIN punbb_online AS o ON (o.user_id=u.id AND o.user_id!=1 AND o.idle=0) WHERE p.topic_id=15834 ORDER BY p.id LIMIT 0,25
0.00080 UPDATE punbb_topics SET num_views=num_views+1 WHERE id=15834
Total query time: 0.00766 s