xsocket-develop Mailing List for xsocket (Page 7)
Status: Inactive
Brought to you by:
grro
You can subscribe to this list here.
| 2007 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(12) |
Oct
(9) |
Nov
(11) |
Dec
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2008 |
Jan
(8) |
Feb
(9) |
Mar
(9) |
Apr
(22) |
May
(28) |
Jun
(17) |
Jul
(10) |
Aug
(19) |
Sep
(4) |
Oct
(14) |
Nov
(26) |
Dec
(25) |
| 2009 |
Jan
(13) |
Feb
(17) |
Mar
(12) |
Apr
(4) |
May
(16) |
Jun
(6) |
Jul
(10) |
Aug
(24) |
Sep
(6) |
Oct
(5) |
Nov
(13) |
Dec
(10) |
| 2010 |
Jan
(17) |
Feb
(21) |
Mar
(10) |
Apr
(8) |
May
(2) |
Jun
(14) |
Jul
(7) |
Aug
(10) |
Sep
(7) |
Oct
(3) |
Nov
|
Dec
(2) |
| 2011 |
Jan
(1) |
Feb
(5) |
Mar
(1) |
Apr
|
May
(5) |
Jun
|
Jul
(2) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2014 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
(3) |
Nov
|
Dec
|
| 2015 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
| 2016 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(2) |
Jun
(3) |
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
| 2019 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(6) |
Sep
|
Oct
|
Nov
|
Dec
|
| 2020 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(1) |
|
From: Gregor R. <gre...@gm...> - 2009-10-31 13:47:16
|
|
From: Phyo A. <phy...@gm...> - 2009-10-31 01:49:20
|
Hello XSocket Developers I am new to XSocket and trying to implement a Dual Port Server , One Port accept incoming connection , read data and when other side connect , reply to them here is my example RemoteWebServer<---Agent ---------------------------->XSocketServer:8090 <----------------> XSocketServer:9080 <<<<--------->Browser I am wondering how to communicate data Internally between XSocketServer:8090 <---------> XSocketServer:9080; I am thinking to use shared synchronized object : Only Xsocket is used on server side relay is with socat ( dest-unreachable.com) Below is my code as far as it goes it dont work :D. will appreciate a lot for anyyy help : //------------ Begins import java.io.IOException; import java.nio.BufferUnderflowException; import org.xsocket.MaxReadSizeExceededException; import org.xsocket.connection.IDataHandler; import org.xsocket.connection.IConnectHandler; import org.xsocket.connection.INonBlockingConnection; class Shared { static INonBlockingConnection camNBC = null; static INonBlockingConnection brwNBC = null; boolean value_cam = false; boolean value_brw = false; synchronized INonBlockingConnection get_cam() { if (value_cam == false) try { wait(); } catch (InterruptedException e) { System.out.println("InterruptedException caught"); } System.out.println("Gives Cam's: " + camNBC); value_cam = false; notify(); return camNBC; } synchronized void put_cam(INonBlockingConnection nbc) { if (value_cam == true) try { wait(); } catch (InterruptedException e) { System.out.println("InterruptedException caught"); } this.camNBC = nbc; System.out.println("Set Camera: " + nbc); value_cam = false; notify(); } synchronized INonBlockingConnection get_brw() { if (value_brw == false) try { wait(); } catch (InterruptedException e) { System.out.println("InterruptedException caught"); } System.out.println("Gives brw: " + brwNBC); value_brw = false; notify(); return brwNBC; } synchronized void put_brw(INonBlockingConnection nbc) { if (value_brw == true) try { wait(); } catch (InterruptedException e) { System.out.println("InterruptedException caught"); } this.brwNBC = nbc; System.out.println("Set brw: " + nbc); value_brw = false; notify(); } } class BrowserHandler implements IDataHandler,IConnectHandler { Shared s; BrowserHandler(Shared s) { this.s = s; } @Override public boolean onConnect(INonBlockingConnection connection) throws IOException, BufferUnderflowException, MaxReadSizeExceededException { // TODO Auto-generated method stub s.put_brw(connection); return false; } public boolean onData(INonBlockingConnection nbc) throws IOException, BufferUnderflowException, MaxReadSizeExceededException { String data = nbc.readStringByDelimiter("\n"); this.s.get_cam().write(data + " \r\n\r\n"); return true; } } class CameraHandler implements IDataHandler,IConnectHandler { Shared s; public CameraHandler(Shared s) { this.s = s; } @Override public boolean onConnect(INonBlockingConnection connection) throws IOException, BufferUnderflowException, MaxReadSizeExceededException { // TODO Auto-generated method stub s.put_cam(connection); return false; } public boolean onData(INonBlockingConnection nbc) throws IOException, BufferUnderflowException, MaxReadSizeExceededException { String data = nbc.readStringByDelimiter("\n"); this.s.get_brw().write(data + " \r\n"); return true; } } import java.io.IOException; import org.xsocket.connection.IServer; import org.xsocket.connection.Server; public class main { public static void main(String args[]) { try { Shared s= new Shared(); IServer browse_side = new Server(8090, new BrowserHandler(s)); IServer cam_side = new Server(9080, new CameraHandler(s)); // run it within the current thread. //srv.run(); // the call will not return // ... or start it by using a dedicated thread browse_side.start(); cam_side.start(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } // returns after the server has been started } } |
|
From: Gregor R. <gre...@gm...> - 2009-10-02 07:58:30
|
|
From: Kostis M. <men...@gm...> - 2009-10-01 19:24:10
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> </head> <body bgcolor="#ffffff" text="#000000"> <font face="Courier New, Courier, monospace">Hi all,<br> I am trying to build a zero configuration server/client using xSocket and udp packets.<br> is there any example of xSocket udp connection less client/server application?<br> </font> </body> </html> |
|
From: Gregor R. <gre...@gm...> - 2009-09-17 06:57:28
|
|
From: Jonas M. <sa...@gm...> - 2009-09-16 22:00:52
|
So since xSocket is not thread-safe, what is the best way to send data on a different Connection than the one in the callback, or from outside the xsocket-thread entirely ? All examples only show how to respond to data received, never what to do if you want to send data from outside the callbacks, or if data from one connection needs to trigger data to be sent to a different connection. -- Jonas |
|
From: Gregor R. <gre...@gm...> - 2009-09-16 04:14:44
|
|
From: digifork <dig...@gm...> - 2009-09-15 20:15:06
|
Hello!
When I create a server with SSL mode enabled, I never get onConnect
callbacks. I created a handler that handles onConnect and onData that
just prints onConnect and onData to System.out. When creating a server
like this:
new Server(0, handler);
The handler prints onConnect and onData. When creating a server like this:
new Server(0, handler, SSLContext.getDefault(), true);
The handler only prints onData.
Is this expected behavior? If so, how do I get notified of new
connections on the handler when SSL is enabled?
Thanks!
-Dan
|
|
From: Gregor R. <gre...@gm...> - 2009-09-15 15:08:36
|
|
From: Martin N. <ka...@gm...> - 2009-09-15 12:52:10
|
Hi. Are there any good adresses, where I can run a socketserver? Greets Martin |
|
From: lumo <lum...@gm...> - 2009-08-31 11:06:26
|
Hi guys,
i implemented an application which uses xSocket, and i have to say, its
working great!
thats why i try to implementy my simple tiny http server on xlightweb
i got xlightweb and xsocket in my libs directory included in my ide (eclipse
3.5) xlightweb is included after xsocket
i also tried switching so xlightweb is included before xsocket is... does
not change a thing...
versions are
xsocket 2,5,5
xlightweb 2,7,4
when i copy your xsocket http tutorial code
i get the following error message in this line:
// ... and send it back to the client
exchange.send(resp);
The type org.xsocket.IDestroyable cannot be resolved. It is indirectly
referenced from required .class files
i checked my jar files and its included in my xsocket-2.5.5-sources.jar
IDestoryable.java - but it does not show up when i type up in eclipse:
org.xsocket.
any ideas?
thanks in advance
lumo
|
|
From: Vic C. <vce...@gm...> - 2009-08-26 20:42:01
|
OK.... I am getting close, but need to see what "my" socket server received: A: did it get an string delimited by "\0"? (ex: Json or xml) B: was it a http request of ANY kind of any type. Questions: 1. How do I peek a connection.readXXX as to what it sent? 2a. If it's B, how do I read those "bytes" (?) if I don't know the length? 2b. Do I even care to read if it's B, can I just respond w/ the http redirect string you suggested? tia, .V |
|
From: Vic C. <vce...@gm...> - 2009-08-26 20:24:05
|
Solved: I made tomcat not secure and set java-home. tia, .V On Wed, Aug 26, 2009 at 1:35 AM, Vic Cekvenich<vce...@gm...> wrote: > So I made a nice little socket server to do chat, nice. Works in > eclipse, tested. > > > Next I want to deploy it inside a servlet container, Tomcat in this > case (easy to manage and also I can "communicate"). I make a "fake" > servlet w/ init() that starts my socket server. > > Problem... stack trace bellow from tomcat. > Google says something about policy files and having to sing thingsm I > hope note? > Steps to reproduce, make a "genericServlet" and init start a xscoket > on any port. > > help? > > tia, > .V > > SEVERE: Servlet threw load() exception > java.security.AccessControlException: access denied > (java.util.PropertyPermission > org.xsocket.connection.server.workerpoolSize read) > at java.security.AccessControlContext.checkPermission(AccessControlContext.java:342) > at java.security.AccessController.checkPermission(AccessController.java:553) > at java.lang.SecurityManager.checkPermission(SecurityManager.java:549) > at java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1302) > at java.lang.System.getProperty(System.java:669) > at org.xsocket.connection.Server.<clinit>(Server.java:69) > at pcn.AbsHostess.init(AbsHostess.java:93) > at javax.servlet.GenericServlet.init(GenericServlet.java:212) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:616) > at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:269) > at java.security.AccessController.doPrivileged(Native Method) > at javax.security.auth.Subject.doAsPrivileged(Subject.java:537) > at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:301) > at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162) > at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:115) > at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1167) > at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993) > at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4149) > at org.apache.catalina.core.StandardContext.start(StandardContext.java:4458) > at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) > at org.apache.catalina.core.StandardHost.start(StandardHost.java:722) > at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) > at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) > at org.apache.catalina.core.StandardService.start(StandardService.java:516) > at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) > at org.apache.catalina.startup.Catalina.start(Catalina.java:583) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:616) > at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:616) > at org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:1 > > and some other msgs: > > Aug 26, 2009 1:14:06 AM org.apache.coyote.http11.Http11Protocol init > INFO: Initializing Coyote HTTP/1.1 on http-81 > Aug 26, 2009 1:14:06 AM org.apache.catalina.startup.Catalina load > INFO: Initialization processed in 4635 ms > Aug 26, 2009 1:14:06 AM org.apache.catalina.core.StandardService start > INFO: Starting service Catalina > Aug 26, 2009 1:14:06 AM org.apache.catalina.core.StandardEngine start > INFO: Starting Servlet Engine: Apache Tomcat/6.0.20 > Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty > WARNING: invalid value for system property > org.xsocket.connection.dispatcher.initialCount > java.security.AccessControlException: access denied > (java.util.PropertyPermission > org.xsocket.connection.dispatcher.initialCount read) > Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty > WARNING: invalid value for system property > org.xsocket.connection.client.dispatcher.initialCount > java.security.AccessControlException: access denied > (java.util.PropertyPermission > org.xsocket.connection.client.dispatcher.initialCount read) > Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty > WARNING: invalid value for system property > org.xsocket.connection.server.dispatcher.initialCount > java.security.AccessControlException: access denied > (java.util.PropertyPermission > org.xsocket.connection.server.dispatcher.initialCount read) > Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty > WARNING: invalid value for system property > org.xsocket.connection.dispatcher.maxHandles > java.security.AccessControlException: access denied > (java.util.PropertyPermission > org.xsocket.connection.dispatcher.maxHandles read) > Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty > WARNING: invalid value for system property > org.xsocket.connection.dispatcher.detachHandleOnNoOps > java.security.AccessControlException: access denied > (java.util.PropertyPermission > org.xsocket.connection.dispatcher.detachHandleOnNoOps read) > Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty > WARNING: invalid value for system property > org.xsocket.connection.dispatcher.bypassingWriteAllowed > java.security.AccessControlException: access denied > (java.util.PropertyPermission > org.xsocket.connection.dispatcher.bypassingWriteAllowed read) > Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty > WARNING: invalid value for system property > org.xsocket.connection.transfer.mappedbytebuffer.maxsize > java.security.AccessControlException: access denied > (java.util.PropertyPermission > org.xsocket.connection.transfer.mappedbytebuffer.maxsize read) > Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty > WARNING: invalid value for system property > org.xsocket.connection.suppressSyncFlushWarning > java.security.AccessControlException: access denied > (java.util.PropertyPermission > org.xsocket.connection.suppressSyncFlushWarning read) > Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty > WARNING: invalid value for system property > org.xsocket.connection.suppressSyncFlushCompletionHandlerWarning > java.security.AccessControlException: access denied > (java.util.PropertyPermission > org.xsocket.connection.suppressSyncFlushCompletionHandlerWarning read) > Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty > WARNING: invalid value for system property > org.xsocket.connection.suppressReuseBufferWarning > java.security.AccessControlException: access denied > (java.util.PropertyPermission > org.xsocket.connection.suppressReuseBufferWarning read) > Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty > WARNING: invalid value for system property > org.xsocket.connection.client.readbuffer.usedirect > java.security.AccessControlException: access denied > (java.util.PropertyPermission > org.xsocket.connection.client.readbuffer.usedirect read) > Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty > WARNING: invalid value for system property > org.xsocket.connection.server.readbuffer.usedirect > java.security.AccessControlException: access denied > (java.util.PropertyPermission > org.xsocket.connection.server.readbuffer.usedirect read) > Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty > WARNING: invalid value for system property > org.xsocket.connection.writebuffer.usedirect > java.security.AccessControlException: access denied > (java.util.PropertyPermission > org.xsocket.connection.writebuffer.usedirect read) > Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty > WARNING: invalid value for system property > org.xsocket.connection.client.readbuffer.defaultMaxReadBufferThreshold > java.security.AccessControlException: access denied > (java.util.PropertyPermission > org.xsocket.connection.client.readbuffer.defaultMaxReadBufferThreshold > read) > Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty > WARNING: invalid value for system property > org.xsocket.connection.server.readbuffer.defaultMaxReadBufferThreshold > java.security.AccessControlException: access denied > (java.util.PropertyPermission > org.xsocket.connection.server.readbuffer.defaultMaxReadBufferThreshold > read) > Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty > WARNING: invalid value for system property > org.xsocket.connection.client.readbuffer.defaultMaxWriteBufferThreshold > java.security.AccessControlException: access denied > (java.util.PropertyPermission > org.xsocket.connection.client.readbuffer.defaultMaxWriteBufferThreshold > read) > Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty > WARNING: invalid value for system property > org.xsocket.connection.server.readbuffer.defaultMaxWriteBufferThreshold > java.security.AccessControlException: access denied > (java.util.PropertyPermission > org.xsocket.connection.server.readbuffer.defaultMaxWriteBufferThreshold > read) > Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty > WARNING: invalid value for system property > org.xsocket.connection.server.ssl.sslengine.enabledProtocols > java.security.AccessControlException: access denied > (java.util.PropertyPermission > org.xsocket.connection.server.ssl.sslengine.enabledProtocols read) > Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty > WARNING: invalid value for system property > org.xsocket.connection.client.ssl.sslengine.enabledProtocols > java.security.AccessControlException: access denied > (java.util.PropertyPermission > org.xsocket.connection.client.ssl.sslengine.enabledProtocols read) > Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty > WARNING: invalid value for system property > org.xsocket.connection.server.ssl.sslengine.enabledCipherSuites > java.security.AccessControlException: access denied > (java.util.PropertyPermission > org.xsocket.connection.server.ssl.sslengine.enabledCipherSuites read) > Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty > WARNING: invalid value for system property > org.xsocket.connection.client.ssl.sslengine.enabledCipherSuites > java.security.AccessControlException: access denied > (java.util.PropertyPermission > org.xsocket.connection.client.ssl.sslengine.enabledCipherSuites read) > Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty > WARNING: invalid value for system property > org.xsocket.connection.server.ssl.sslengine.wantClientAuth > java.security.AccessControlException: access denied > (java.util.PropertyPermission > org.xsocket.connection.server.ssl.sslengine.wantClientAuth read) > Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty > WARNING: invalid value for system property > org.xsocket.connection.server.ssl.sslengine.needClientAuth > java.security.AccessControlException: access denied > (java.util.PropertyPermission > org.xsocket.connection.server.ssl.sslengine.needClientAuth read) > Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty > WARNING: invalid value for system property > org.xsocket.connection.client.readbuffer.preallocation.on > java.security.AccessControlException: access denied > (java.util.PropertyPermission > org.xsocket.connection.client.readbuffer.preallocation.on read) > Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty > WARNING: invalid value for system property > org.xsocket.connection.client.readbuffer.preallocation.size > java.security.AccessControlException: access denied > (java.util.PropertyPermission > org.xsocket.connection.client.readbuffer.preallocation.size read) > Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty > WARNING: invalid value for system property > org.xsocket.connection.client.readbuffer.preallocated.minSize > java.security.AccessControlException: access denied > (java.util.PropertyPermission > org.xsocket.connection.client.readbuffer.preallocated.minSize read) > Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty > WARNING: invalid value for system property > org.xsocket.connection.server.readbuffer.preallocation.on > java.security.AccessControlException: access denied > (java.util.PropertyPermission > org.xsocket.connection.server.readbuffer.preallocation.on read) > Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty > WARNING: invalid value for system property > org.xsocket.connection.server.readbuffer.preallocation.size > java.security.AccessControlException: access denied > (java.util.PropertyPermission > org.xsocket.connection.server.readbuffer.preallocation.size read) > Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty > WARNING: invalid value for system property > org.xsocket.connection.server.readbuffer.preallocated.minSize > java.security.AccessControlException: access denied > (java.util.PropertyPermission > org.xsocket.connection.server.readbuffer.preallocated.minSize read) > Aug 26, 2009 1:14:07 AM org.apache.coyote.http11.Http11Protocol start > INFO: Starting Coyote HTTP/1.1 on http-81 > Aug 26, 2009 1:14:07 AM org.apache.catalina.startup.Catalina start > |
|
From: Vic C. <vce...@gm...> - 2009-08-26 16:53:39
|
On Wed, Aug 26, 2009 at 1:35 AM, Vic Cekvenich<vce...@gm...> wrote: > So I made a nice little socket server to do chat, nice. Works in > eclipse, tested. > > > Next I want to deploy it inside a servlet container, Tomcat in this > case (easy to manage and also I can "communicate"). I make a "fake" > servlet w/ init() that starts my socket server. > > Problem... stack trace bellow from tomcat. > Google says something about policy files and having to sing thingsm I > hope note? > Steps to reproduce, make a "genericServlet" and init start a xscoket > on any port. > > help? > > tia, > .V > > SEVERE: Servlet threw load() exception > java.security.AccessControlException: access denied > (java.util.PropertyPermission > org.xsocket.connection.server.workerpoolSize read) > at java.security.AccessControlContext.checkPermission(AccessControlContext.java:342) > at java.security.AccessController.checkPermission(AccessController.java:553) > at java.lang.SecurityManager.checkPermission(SecurityManager.java:549) > at java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1302) > at java.lang.System.getProperty(System.java:669) > at org.xsocket.connection.Server.<clinit>(Server.java:69) > at pcn.AbsHostess.init(AbsHostess.java:93) > at javax.servlet.GenericServlet.init(GenericServlet.java:212) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:616) > at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:269) > at java.security.AccessController.doPrivileged(Native Method) > at javax.security.auth.Subject.doAsPrivileged(Subject.java:537) > at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:301) > at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162) > at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:115) > at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1167) > at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993) > at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4149) > at org.apache.catalina.core.StandardContext.start(StandardContext.java:4458) > at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) > at org.apache.catalina.core.StandardHost.start(StandardHost.java:722) > at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) > at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) > at org.apache.catalina.core.StandardService.start(StandardService.java:516) > at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) > at org.apache.catalina.startup.Catalina.start(Catalina.java:583) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:616) > at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:616) > at org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:1 > > and some other msgs: > > Aug 26, 2009 1:14:06 AM org.apache.coyote.http11.Http11Protocol init > INFO: Initializing Coyote HTTP/1.1 on http-81 > Aug 26, 2009 1:14:06 AM org.apache.catalina.startup.Catalina load > INFO: Initialization processed in 4635 ms > Aug 26, 2009 1:14:06 AM org.apache.catalina.core.StandardService start > INFO: Starting service Catalina > Aug 26, 2009 1:14:06 AM org.apache.catalina.core.StandardEngine start > INFO: Starting Servlet Engine: Apache Tomcat/6.0.20 > Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty > WARNING: invalid value for system property > org.xsocket.connection.dispatcher.initialCount > java.security.AccessControlException: access denied > (java.util.PropertyPermission > org.xsocket.connection.dispatcher.initialCount read) > Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty > WARNING: invalid value for system property > org.xsocket.connection.client.dispatcher.initialCount > java.security.AccessControlException: access denied > (java.util.PropertyPermission > org.xsocket.connection.client.dispatcher.initialCount read) > Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty > WARNING: invalid value for system property > org.xsocket.connection.server.dispatcher.initialCount > java.security.AccessControlException: access denied > (java.util.PropertyPermission > org.xsocket.connection.server.dispatcher.initialCount read) > Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty > WARNING: invalid value for system property > org.xsocket.connection.dispatcher.maxHandles > java.security.AccessControlException: access denied > (java.util.PropertyPermission > org.xsocket.connection.dispatcher.maxHandles read) > Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty > WARNING: invalid value for system property > org.xsocket.connection.dispatcher.detachHandleOnNoOps > java.security.AccessControlException: access denied > (java.util.PropertyPermission > org.xsocket.connection.dispatcher.detachHandleOnNoOps read) > Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty > WARNING: invalid value for system property > org.xsocket.connection.dispatcher.bypassingWriteAllowed > java.security.AccessControlException: access denied > (java.util.PropertyPermission > org.xsocket.connection.dispatcher.bypassingWriteAllowed read) > Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty > WARNING: invalid value for system property > org.xsocket.connection.transfer.mappedbytebuffer.maxsize > java.security.AccessControlException: access denied > (java.util.PropertyPermission > org.xsocket.connection.transfer.mappedbytebuffer.maxsize read) > Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty > WARNING: invalid value for system property > org.xsocket.connection.suppressSyncFlushWarning > java.security.AccessControlException: access denied > (java.util.PropertyPermission > org.xsocket.connection.suppressSyncFlushWarning read) > Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty > WARNING: invalid value for system property > org.xsocket.connection.suppressSyncFlushCompletionHandlerWarning > java.security.AccessControlException: access denied > (java.util.PropertyPermission > org.xsocket.connection.suppressSyncFlushCompletionHandlerWarning read) > Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty > WARNING: invalid value for system property > org.xsocket.connection.suppressReuseBufferWarning > java.security.AccessControlException: access denied > (java.util.PropertyPermission > org.xsocket.connection.suppressReuseBufferWarning read) > Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty > WARNING: invalid value for system property > org.xsocket.connection.client.readbuffer.usedirect > java.security.AccessControlException: access denied > (java.util.PropertyPermission > org.xsocket.connection.client.readbuffer.usedirect read) > Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty > WARNING: invalid value for system property > org.xsocket.connection.server.readbuffer.usedirect > java.security.AccessControlException: access denied > (java.util.PropertyPermission > org.xsocket.connection.server.readbuffer.usedirect read) > Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty > WARNING: invalid value for system property > org.xsocket.connection.writebuffer.usedirect > java.security.AccessControlException: access denied > (java.util.PropertyPermission > org.xsocket.connection.writebuffer.usedirect read) > Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty > WARNING: invalid value for system property > org.xsocket.connection.client.readbuffer.defaultMaxReadBufferThreshold > java.security.AccessControlException: access denied > (java.util.PropertyPermission > org.xsocket.connection.client.readbuffer.defaultMaxReadBufferThreshold > read) > Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty > WARNING: invalid value for system property > org.xsocket.connection.server.readbuffer.defaultMaxReadBufferThreshold > java.security.AccessControlException: access denied > (java.util.PropertyPermission > org.xsocket.connection.server.readbuffer.defaultMaxReadBufferThreshold > read) > Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty > WARNING: invalid value for system property > org.xsocket.connection.client.readbuffer.defaultMaxWriteBufferThreshold > java.security.AccessControlException: access denied > (java.util.PropertyPermission > org.xsocket.connection.client.readbuffer.defaultMaxWriteBufferThreshold > read) > Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty > WARNING: invalid value for system property > org.xsocket.connection.server.readbuffer.defaultMaxWriteBufferThreshold > java.security.AccessControlException: access denied > (java.util.PropertyPermission > org.xsocket.connection.server.readbuffer.defaultMaxWriteBufferThreshold > read) > Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty > WARNING: invalid value for system property > org.xsocket.connection.server.ssl.sslengine.enabledProtocols > java.security.AccessControlException: access denied > (java.util.PropertyPermission > org.xsocket.connection.server.ssl.sslengine.enabledProtocols read) > Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty > WARNING: invalid value for system property > org.xsocket.connection.client.ssl.sslengine.enabledProtocols > java.security.AccessControlException: access denied > (java.util.PropertyPermission > org.xsocket.connection.client.ssl.sslengine.enabledProtocols read) > Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty > WARNING: invalid value for system property > org.xsocket.connection.server.ssl.sslengine.enabledCipherSuites > java.security.AccessControlException: access denied > (java.util.PropertyPermission > org.xsocket.connection.server.ssl.sslengine.enabledCipherSuites read) > Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty > WARNING: invalid value for system property > org.xsocket.connection.client.ssl.sslengine.enabledCipherSuites > java.security.AccessControlException: access denied > (java.util.PropertyPermission > org.xsocket.connection.client.ssl.sslengine.enabledCipherSuites read) > Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty > WARNING: invalid value for system property > org.xsocket.connection.server.ssl.sslengine.wantClientAuth > java.security.AccessControlException: access denied > (java.util.PropertyPermission > org.xsocket.connection.server.ssl.sslengine.wantClientAuth read) > Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty > WARNING: invalid value for system property > org.xsocket.connection.server.ssl.sslengine.needClientAuth > java.security.AccessControlException: access denied > (java.util.PropertyPermission > org.xsocket.connection.server.ssl.sslengine.needClientAuth read) > Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty > WARNING: invalid value for system property > org.xsocket.connection.client.readbuffer.preallocation.on > java.security.AccessControlException: access denied > (java.util.PropertyPermission > org.xsocket.connection.client.readbuffer.preallocation.on read) > Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty > WARNING: invalid value for system property > org.xsocket.connection.client.readbuffer.preallocation.size > java.security.AccessControlException: access denied > (java.util.PropertyPermission > org.xsocket.connection.client.readbuffer.preallocation.size read) > Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty > WARNING: invalid value for system property > org.xsocket.connection.client.readbuffer.preallocated.minSize > java.security.AccessControlException: access denied > (java.util.PropertyPermission > org.xsocket.connection.client.readbuffer.preallocated.minSize read) > Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty > WARNING: invalid value for system property > org.xsocket.connection.server.readbuffer.preallocation.on > java.security.AccessControlException: access denied > (java.util.PropertyPermission > org.xsocket.connection.server.readbuffer.preallocation.on read) > Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty > WARNING: invalid value for system property > org.xsocket.connection.server.readbuffer.preallocation.size > java.security.AccessControlException: access denied > (java.util.PropertyPermission > org.xsocket.connection.server.readbuffer.preallocation.size read) > Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty > WARNING: invalid value for system property > org.xsocket.connection.server.readbuffer.preallocated.minSize > java.security.AccessControlException: access denied > (java.util.PropertyPermission > org.xsocket.connection.server.readbuffer.preallocated.minSize read) > Aug 26, 2009 1:14:07 AM org.apache.coyote.http11.Http11Protocol start > INFO: Starting Coyote HTTP/1.1 on http-81 > Aug 26, 2009 1:14:07 AM org.apache.catalina.startup.Catalina start > |
|
From: Vic C. <vce...@gm...> - 2009-08-26 08:35:29
|
So I made a nice little socket server to do chat, nice. Works in eclipse, tested. Next I want to deploy it inside a servlet container, Tomcat in this case (easy to manage and also I can "communicate"). I make a "fake" servlet w/ init() that starts my socket server. Problem... stack trace bellow from tomcat. Google says something about policy files and having to sing thingsm I hope note? Steps to reproduce, make a "genericServlet" and init start a xscoket on any port. help? tia, .V SEVERE: Servlet threw load() exception java.security.AccessControlException: access denied (java.util.PropertyPermission org.xsocket.connection.server.workerpoolSize read) at java.security.AccessControlContext.checkPermission(AccessControlContext.java:342) at java.security.AccessController.checkPermission(AccessController.java:553) at java.lang.SecurityManager.checkPermission(SecurityManager.java:549) at java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1302) at java.lang.System.getProperty(System.java:669) at org.xsocket.connection.Server.<clinit>(Server.java:69) at pcn.AbsHostess.init(AbsHostess.java:93) at javax.servlet.GenericServlet.init(GenericServlet.java:212) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:269) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAsPrivileged(Subject.java:537) at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:301) at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162) at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:115) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1167) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4149) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4458) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardHost.start(StandardHost.java:722) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:516) at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at org.apache.catalina.startup.Catalina.start(Catalina.java:583) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:1 and some other msgs: Aug 26, 2009 1:14:06 AM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-81 Aug 26, 2009 1:14:06 AM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 4635 ms Aug 26, 2009 1:14:06 AM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Aug 26, 2009 1:14:06 AM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/6.0.20 Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty WARNING: invalid value for system property org.xsocket.connection.dispatcher.initialCount java.security.AccessControlException: access denied (java.util.PropertyPermission org.xsocket.connection.dispatcher.initialCount read) Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty WARNING: invalid value for system property org.xsocket.connection.client.dispatcher.initialCount java.security.AccessControlException: access denied (java.util.PropertyPermission org.xsocket.connection.client.dispatcher.initialCount read) Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty WARNING: invalid value for system property org.xsocket.connection.server.dispatcher.initialCount java.security.AccessControlException: access denied (java.util.PropertyPermission org.xsocket.connection.server.dispatcher.initialCount read) Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty WARNING: invalid value for system property org.xsocket.connection.dispatcher.maxHandles java.security.AccessControlException: access denied (java.util.PropertyPermission org.xsocket.connection.dispatcher.maxHandles read) Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty WARNING: invalid value for system property org.xsocket.connection.dispatcher.detachHandleOnNoOps java.security.AccessControlException: access denied (java.util.PropertyPermission org.xsocket.connection.dispatcher.detachHandleOnNoOps read) Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty WARNING: invalid value for system property org.xsocket.connection.dispatcher.bypassingWriteAllowed java.security.AccessControlException: access denied (java.util.PropertyPermission org.xsocket.connection.dispatcher.bypassingWriteAllowed read) Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty WARNING: invalid value for system property org.xsocket.connection.transfer.mappedbytebuffer.maxsize java.security.AccessControlException: access denied (java.util.PropertyPermission org.xsocket.connection.transfer.mappedbytebuffer.maxsize read) Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty WARNING: invalid value for system property org.xsocket.connection.suppressSyncFlushWarning java.security.AccessControlException: access denied (java.util.PropertyPermission org.xsocket.connection.suppressSyncFlushWarning read) Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty WARNING: invalid value for system property org.xsocket.connection.suppressSyncFlushCompletionHandlerWarning java.security.AccessControlException: access denied (java.util.PropertyPermission org.xsocket.connection.suppressSyncFlushCompletionHandlerWarning read) Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty WARNING: invalid value for system property org.xsocket.connection.suppressReuseBufferWarning java.security.AccessControlException: access denied (java.util.PropertyPermission org.xsocket.connection.suppressReuseBufferWarning read) Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty WARNING: invalid value for system property org.xsocket.connection.client.readbuffer.usedirect java.security.AccessControlException: access denied (java.util.PropertyPermission org.xsocket.connection.client.readbuffer.usedirect read) Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty WARNING: invalid value for system property org.xsocket.connection.server.readbuffer.usedirect java.security.AccessControlException: access denied (java.util.PropertyPermission org.xsocket.connection.server.readbuffer.usedirect read) Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty WARNING: invalid value for system property org.xsocket.connection.writebuffer.usedirect java.security.AccessControlException: access denied (java.util.PropertyPermission org.xsocket.connection.writebuffer.usedirect read) Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty WARNING: invalid value for system property org.xsocket.connection.client.readbuffer.defaultMaxReadBufferThreshold java.security.AccessControlException: access denied (java.util.PropertyPermission org.xsocket.connection.client.readbuffer.defaultMaxReadBufferThreshold read) Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty WARNING: invalid value for system property org.xsocket.connection.server.readbuffer.defaultMaxReadBufferThreshold java.security.AccessControlException: access denied (java.util.PropertyPermission org.xsocket.connection.server.readbuffer.defaultMaxReadBufferThreshold read) Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty WARNING: invalid value for system property org.xsocket.connection.client.readbuffer.defaultMaxWriteBufferThreshold java.security.AccessControlException: access denied (java.util.PropertyPermission org.xsocket.connection.client.readbuffer.defaultMaxWriteBufferThreshold read) Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty WARNING: invalid value for system property org.xsocket.connection.server.readbuffer.defaultMaxWriteBufferThreshold java.security.AccessControlException: access denied (java.util.PropertyPermission org.xsocket.connection.server.readbuffer.defaultMaxWriteBufferThreshold read) Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty WARNING: invalid value for system property org.xsocket.connection.server.ssl.sslengine.enabledProtocols java.security.AccessControlException: access denied (java.util.PropertyPermission org.xsocket.connection.server.ssl.sslengine.enabledProtocols read) Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty WARNING: invalid value for system property org.xsocket.connection.client.ssl.sslengine.enabledProtocols java.security.AccessControlException: access denied (java.util.PropertyPermission org.xsocket.connection.client.ssl.sslengine.enabledProtocols read) Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty WARNING: invalid value for system property org.xsocket.connection.server.ssl.sslengine.enabledCipherSuites java.security.AccessControlException: access denied (java.util.PropertyPermission org.xsocket.connection.server.ssl.sslengine.enabledCipherSuites read) Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty WARNING: invalid value for system property org.xsocket.connection.client.ssl.sslengine.enabledCipherSuites java.security.AccessControlException: access denied (java.util.PropertyPermission org.xsocket.connection.client.ssl.sslengine.enabledCipherSuites read) Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty WARNING: invalid value for system property org.xsocket.connection.server.ssl.sslengine.wantClientAuth java.security.AccessControlException: access denied (java.util.PropertyPermission org.xsocket.connection.server.ssl.sslengine.wantClientAuth read) Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty WARNING: invalid value for system property org.xsocket.connection.server.ssl.sslengine.needClientAuth java.security.AccessControlException: access denied (java.util.PropertyPermission org.xsocket.connection.server.ssl.sslengine.needClientAuth read) Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty WARNING: invalid value for system property org.xsocket.connection.client.readbuffer.preallocation.on java.security.AccessControlException: access denied (java.util.PropertyPermission org.xsocket.connection.client.readbuffer.preallocation.on read) Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty WARNING: invalid value for system property org.xsocket.connection.client.readbuffer.preallocation.size java.security.AccessControlException: access denied (java.util.PropertyPermission org.xsocket.connection.client.readbuffer.preallocation.size read) Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty WARNING: invalid value for system property org.xsocket.connection.client.readbuffer.preallocated.minSize java.security.AccessControlException: access denied (java.util.PropertyPermission org.xsocket.connection.client.readbuffer.preallocated.minSize read) Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty WARNING: invalid value for system property org.xsocket.connection.server.readbuffer.preallocation.on java.security.AccessControlException: access denied (java.util.PropertyPermission org.xsocket.connection.server.readbuffer.preallocation.on read) Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty WARNING: invalid value for system property org.xsocket.connection.server.readbuffer.preallocation.size java.security.AccessControlException: access denied (java.util.PropertyPermission org.xsocket.connection.server.readbuffer.preallocation.size read) Aug 26, 2009 1:14:07 AM org.xsocket.connection.IoProvider readProperty WARNING: invalid value for system property org.xsocket.connection.server.readbuffer.preallocated.minSize java.security.AccessControlException: access denied (java.util.PropertyPermission org.xsocket.connection.server.readbuffer.preallocated.minSize read) Aug 26, 2009 1:14:07 AM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on http-81 Aug 26, 2009 1:14:07 AM org.apache.catalina.startup.Catalina start |
|
From: Gregor R. <gre...@gm...> - 2009-08-20 05:59:38
|
|
From: Gregor R. <gre...@gm...> - 2009-08-20 05:53:03
|
|
From: Vic C. <vce...@gm...> - 2009-08-19 05:05:29
|
I need suggestions help w/ design implementation of jabber server and
http server.
Background:
I have tomcat running on port 8088, I have jabber server running on port 5222.
I'd like xsocket to listen to port 80 and 843 and dispatch to 3 cases onData {
data = connection.getStringByDelimiter("/0");
if data.equals("<policy-request/>) return a String ("ACK") - works fine now.
if data is a jabber request proxy to jabber server. (jabber is an xml
"request", but 2 way).
if data is a http request proxy to tomcat
Questions:
How can I identify if data is jabber or http?
Do I need to keep connection/session information for tomcat? (I don't think so).
For it to return a file, for example "swf / flash" or .js to the browser.
Can I just read the http response somehow from tomcat and return that?
Do I need to keep connection/session info for jabber server? (I think so).
How, do I track connections and pass that on to jabber? I think Jabber
IS state full.
Also jabber server could want to talk to ANY "session"/connection.
And last, how would I make it ... not slow.
ideas?
tia,
.V
|
|
From: <gre...@go...> - 2009-08-13 16:08:59
|
|
From: Javier P. <jav...@ls...> - 2009-08-13 09:49:29
|
Hi,
I´m using xSockets for one of my projects and I need that HandlerChain
acceptds HandlerChain in the addLast(IHandler h) Method.
I check your code I saw it is not implemented. I was going to
implemented myself in a class that inherit from HandlerChain and sent it
to you.
However the way the visibility is given to the classess in the library
make it impossible to do this with out having to create your own version
of the library which is quite incovinient.
Here goes the change in Method addLAst(IHandler h) from HanderChain put:
if (handler instanceof HandlerChain) {
for ( IHandler h : ((HandlerChain) handler).handlers){
addLast(h);
}
}
instead of
if (handler instanceof HandlerChain) {
throw new RuntimeException("a nested chains are not supported");
}
Now the question is, when could this change be included in a new release
of the XSockets API or in case it is not. It is forseen to introduce any
changes in the visibilities within the API to make it easier to extends
from the classes defined there.
Best Regards,
Javi
|
|
From: Gregor R. <gre...@gm...> - 2009-08-13 04:18:25
|
|
From: Martin N. <ka...@gm...> - 2009-08-12 22:33:45
|
Hi to all! I got a little question. When I got different kind of information which I like to send to the client from the server should I a) start a new socketserver or b) get in one messagestring and try to find a good seperator which the client can identify What is the common way? Best greets Martin Frankfurt |
|
From: Gregor R. <gre...@gm...> - 2009-08-11 17:57:19
|
|
From: avinash p <p_a...@ya...> - 2009-08-11 11:41:58
|
Hi All,
I want to implement non-blocking server socket using xsocket API and read objects from socket inputstream. I couldnt find example for this. Any code examples or pointers for some resource will be very helpfull.
Regards.
Avi
Love Cricket? Check out live scores, photos, video highlights and more. Click here http://cricket.yahoo.com |
|
From: Lo <lo...@ko...> - 2009-08-11 07:26:32
|
Hi, Hem... I'm sorry I found a bug in my code. The encoding was changed a second time when the client type some command. Sorry for the trouble. However, I'm still looking for a free implementation of the Telnet protocole with xSocket (if there is one). Thanks for this powerfull and simple xSocket. Laurent |