Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Java help Applet doesnt work in webpage
#1
Ok, so I have tested my java app, and it works in the app viewer perfectly! But now I am trying to put it in a webpage and let some friends test, and I have run into trouble.

I made a simple chat program, and put it in a website, but this error appears in the error console.

Code:
java.security.AccessControlException: access denied (java.net.SocketPermission 192.168.1.3:5136 connect,resolve)
    at java.security.AccessControlContext.checkPermission(Unknown Source)
    at java.security.AccessController.checkPermission(Unknown Source)
    at java.lang.SecurityManager.checkPermission(Unknown Source)
    at java.lang.SecurityManager.checkConnect(Unknown Source)
    at sun.plugin2.applet.Applet2SecurityManager.checkConnect(Unknown Source)
    at java.net.Socket.connect(Unknown Source)
    at java.net.Socket.connect(Unknown Source)
    at java.net.Socket.(Unknown Source)
    at java.net.Socket.(Unknown Source)
    at client.Client.init(Client.java:34)
    at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
Exception: java.security.AccessControlException: access denied (java.net.SocketPermission 192.168.1.3:5136 connect,resolv

I am unsure how to fix this. I am new to java, but do I need like some certificate or something?
#2
Did you sign the applet?

I'm pretty sure that applets which connect to a server not hosted on the web hosts computer MUST be signed. It's really easy to sign it just use a free application called jarsigner.
#3
could be the signed shit, but to me... Read your error, the first line Smile
#4
Um, this was solved a long long time ago. Read post dates.
#5
I don't see a solution posted though.
#6
After 5 months, it is usually accepted on these forums if no solution is posted then the person already figured it out or gave up and is either way no-longer looking for help.
#7
That's great.

What was the solution?
#8
Then you reply with the fix so people know what to do if it happens to them, jack ass.
#9
I am sorry
#10
Somebody lock this topic before Labmonkey makes an even bigger douche of himself.
#11
I had to sign the applet. Sorry for not posting before. Why does everyone think my apologies are sarcastic?
#12
Because you didn't post the fix when you apologized...so there was no point to apologizing if you didn't actually correct yourself.

Proper apologies comes with maturity.
#13
Easy there guys, it's just Labmonkey. :lol:
#14
You people need to grow up. If nobody here helped him fix it, by posting in this thread, then he does not need to post the fix. It doesn't pertain to VB6 or Mirage Source in any way.

I'm going to start handing out warnings again.


Forum Jump:


Users browsing this thread: 1 Guest(s)