[Resin-interest] resin 4 socket-policy-file
In resin 3.x there was socket-policy-file config, where do I put that in 4.x? Here is the full setting from 3.x that worked great. !-- define the servers in the cluster -- server id= address=127.0.0.1 port=6800 protocol port=843 type=com.caucho.protocols.flash.SocketPolicyProtocol init socket-policy-file/workspace/browser/webSrv/crossdomain.xml/socket-policy-file /init /protocol /server Right after cluster. I see that SocketPolicyProtocol is still in the resin 4.x source, just not sure how to set up config. Actionscript will not talk to resin w/o it. tia, .V ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] bam sudoku example
(hope everyone had a good holidays) Following up:... what version of resin (4.0?) and .as hessian (2008/10/16 snap source?) should I use to duplicate bam/sudoku/hessian write up? tia, .V On Mon, Dec 29, 2008 at 4:08 PM, Vic Cekvenich vcekveni...@gmail.com wrote: I am trying to reproduce the bam sudoku example from the magazine. What version of resin should I use? (4?) What version of hessian .as? (http://hessian.caucho.com has 2008/10/16 snap source) .V ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
[Resin-interest] bam sudoku example
I am trying to reproduce the bam sudoku example from the magazine. What version of resin should I use? (4?) What version of hessian .as? (http://hessian.caucho.com has 2008/10/16 snap source) .V ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
[Resin-interest] resin (non-pro) 3.2.0.x won't start.... error w/ watchdog:
[EMAIL PROTECTED] bin]# ./resin.sh start Resin/3.2.0 can't start -server '' for watchdog at 127.0.0.1:6600. com.caucho.config.ConfigException: user-name requires compiled JNI. Check the $RESIN_HOME/libexec or $RESIN_HOME/libexec64 directory for libresin_os.so. [EMAIL PROTECTED] bin]# help? ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
[Resin-interest] hessian: toDictionary(..); toMap(); and reverse
(I am waiting on comet... and in the mean time will write my own nio socket server) I need help finding methods in .as that encode fromStreamToDictionary(..) and dictionaryToStream(..) and in Java from streamToMap(..) and mapToStream(..) So can I get some help finding such methods or maybe it's a RFE? .V ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
[Resin-interest] hessian: flash snap broken?!
I download latest hessian flash source snap (10/18) w/ latest Resin Java server side snap 3.2.1 (10/8)... and I now get a npe in flash source doing a simple hessian call. I reverted back to release hessian flash, works fine. This is just the simple year old stuff, call and return an array of maps - it should work? For map on client I use object, should I switch to dictionary now, I looked at some of your source? Of course, I am eager to duplicate BAM examples for full duplex communications and I need a working flash hessian snap for that. tia, .V ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] Comet param via hessian
OK, that did not work!!! To recap: I am trying to pass some value to hessian comet from action script.(ex: member id string room name). Since from .as you can't pass a param to the hessian comet servlet (I wonder why?) and there is no BAM example for action script(and I do not know if BAM works on port 80) Emil recommended: Try this: Create a bean that shared between the comet servlet and a Hessian POJO/servlet within the same web-app. Passing data via application scope works as Emil said... but there's no way to ID what user that is, so that the right users info is passed. (the examples register socket to action script, but no way to ID the user)(if I put it in the app context ... what if another request comes, I have not unique id, not sure how to tell in hessian coment what user that data goes w/). Ex: Using the regular hessian to pass some data via user's uniqe session w/ .as I do: ServletRequest request = ServiceContext.getContextRequest(); HttpServletRequest req = (HttpServletRequest) request; HttpSession ses = req.getSession(true); and put data in ses. Then comet Hessian I do this: HttpServletRequest req = (HttpServletRequest) request; HttpSession ses = req.getSession(false); to get the data. It tells me the session is not there, but I did call the 1st servlet already. My requirement is to register a user to a room and be able to push. Again, if I can pass data to comet for .as, good, which I can't. Or if I can make a a user session in regular hessian, and access that user session in comet hessian. Or something else. tia. .V ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] Comet param via hessian
OK, that did not work!!! To recap: I am trying to pass some value to hessian comet from action script.(ex: member id string room name). Since from .as you can't pass a param to the hessian comet servlet (I wonder why?) and there is no BAM example for action script(and I do not know if BAM works on port 80) Emil recommended: Try this: Create a bean that shared between the comet servlet and a Hessian POJO/servlet within the same web-app. Passing data via application scope works as Emil said... but there's no way to ID what user that is, so that the right users info is passed. (the examples register socket to action script, but no way to ID the user)(if I put it in the app context ... what if another request comes, I have not unique id, not sure how to tell in hessian coment what user that data goes w/). Ex: Using the regular hessian to pass some data via user's uniqe session w/ .as I do: ServletRequest request = ServiceContext.getContextRequest(); HttpServletRequest req = (HttpServletRequest) request; HttpSession ses = req.getSession(true); and put data in ses. Then comet Hessian I do this: HttpServletRequest req = (HttpServletRequest) request; HttpSession ses = req.getSession(false); to get the data. It tells me the session is not there, but I did call the 1st servlet already. My requirement is to register a user to a room and be able to push. Again, if I can pass data to comet for .as, good, which I can't. Or if I can make a a user session in regular hessian, and access that user session in comet hessian. Or something else. tia. .V ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] Comet param via hessian
Thx Emil for helping me in a jam again!!! So how do I ID the user? Session? Do the 2 servlets(hessian regular and comet) share a session? So in a regular hessian I can pass and set session set userID = 123 roomId = 456. Then comet hessian comes in and gets those out of the session if they exist? From then on the 2 would be locked. That works? .V Emil Ong wrote: On Thu, Sep 11, 2008 at 08:53:25PM -0700, Vic Cekvenich wrote: There has to be a way to hack hessian to pass a param to the comet servelet... hint? Try this: Create a bean that shared between the comet servlet and a Hessian POJO/servlet within the same web-app. Send data upstream to the regular servlet, have the servlet put the data into the bean, and the comet servlet picks it up. The nice thing about the comet servlet in its current API is the CometController lets you wake it up from either the bean or the other servlet. Emil doing standard things, like this from Flex: _push= new HessianStreamingService(pushReg); //servlet _push.responder=this; -- .V [EMAIL PROTECTED] PointCast Network, a screensaver toolkit for next web UI ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] comet hessian param
Thank you!!!In the mean time. there has to be a way that I can hack sending some param to the registartion servlet... .V On Thu, Sep 11, 2008 at 8:34 AM, Emil Ong [EMAIL PROTECTED] wrote: On Wed, Sep 10, 2008 at 04:31:08PM -0700, Vic Cekvenich wrote: Is there a hello world or example on using .as BAM? There was, but it's down until I recode the AS Hessian implementation to match the new protocol. I'll send an update when it's done. Given various speaking engagements, etc., I'd give it a bit over a month... Emil On Wed, Sep 10, 2008 at 3:48 PM, Emil Ong [EMAIL PROTECTED] wrote: On Wed, Sep 10, 2008 at 01:09:32PM -0700, Vic Cekvenich wrote: Yes, having 2 is OK. But I have no way to register one w/ the other. Any idea how I know who is who? I really needs this, even if I hack it. If I can pass something from Flex to the comet servlet. If bam does it w/ actionscript? Yup, BAM is much better suited to this. You can send messages and queries over the same channel using BAM in AS. Emil .V The Hessian Flex streaming service is not bidirectional at the moment. That will probably wait until Servlet 3.0 so we can put out a reasonable example. Until then, you can use two services, one a streaming service and one a traditional Hessian RPC service. ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest Emil Ong Chief Evangelist Caucho Technology, Inc. Tel. (858) 456-0300 mailto:[EMAIL PROTECTED] http://blog.caucho.com/ Caucho: Reliable Open Source -- Resin: application server -- Quercus: PHP in Java -- Hessian Web Services ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest Emil Ong Chief Evangelist Caucho Technology, Inc. Tel. (858) 456-0300 mailto:[EMAIL PROTECTED] http://blog.caucho.com/ Caucho: Reliable Open Source -- Resin: application server -- Quercus: PHP in Java -- Hessian Web Services ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
[Resin-interest] comet hessian param
oing standard things, like this from Flex: _push= new HessianStreamingService(pushReg); //servlet _push.responder=this; and this on server: public boolean service(ServletRequest request, ServletResponse response, CometController comet) throws IOException, ServletException { HttpServletRequest req = (HttpServletRequest) request; HttpServletResponse res = (HttpServletResponse) response; Hessian2StreamingOutput out; out = new Hessian2StreamingOutput(res.getOutputStream()); req.setAttribute(comet.hessian, out); //String roomId = req.getParameter(roomID); Question: How do I pass a param to the service? (like the last line commented out) For example a room. Comet is a servlet, and I should be able to pass it a parm from hessian somehow. It does not have to be as easy as calling the regualr hessian service, but some way to pass a message from HessianStreamingService that I can then read during the registration of the comet. tia, .V ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] comet hessian param
Yes, having 2 is OK. But I have no way to register one w/ the other. Any idea how I know who is who? I really needs this, even if I hack it. If I can pass something from Flex to the comet servlet. If bam does it w/ actionscript? .V The Hessian Flex streaming service is not bidirectional at the moment. That will probably wait until Servlet 3.0 so we can put out a reasonable example. Until then, you can use two services, one a streaming service and one a traditional Hessian RPC service. ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
[Resin-interest] Hessian-Flash: An SWF file is on anothre domain(ex: facebook) and it needs to call my service. How?
If I deploy SWF on remote server (ex: social networks) but I want it to call my servers' services (not same one that loaded swf), how? Normally I just say /srvName from Flash Hessian to my resin java server. Would http://pointCast.com/srvName work from a remote domain w/ out sandbox issues? Workarounds? (I hope I do not have to use XML, yuck.) .V Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] class loader question on linux?
Thx Scott again! So I can put java code in resin lib, but... the native .so code, should that also go there? tia, .V The java classes for any JNI code should normally be at the system classloader level, e.g. in resin/ext-lib, not in WEB-INF/lib. The JDK only lets you load a native library once, which causes all kinds of problems with web-app reloading. So you want to put JNI code at the system level so it's never reloaded. -- Scott Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
[Resin-interest] class loader question on linux?
I wonder if someone on the list has an idea as to what to try in this situation. I used to in resin 2.x use the class loader hack config, not sure now why. I now have potentially a class loader issue loading native code, but ... no hints I get from logs. The code bellow I am using, works great in Resin nightly on windoze in the container. It works great on Linux (Fedora 7) in Java outside of resin servlet. But it fails to ... parse when inside the resin container, it just returns blank and no traces or logs. One time it said: UnsatisfiedLinkError: Native Library already loaded in another classloader But no errors anymore show up. In any case I moved needed loading jars to resin/lib and .so files are in LD_PATH and CLASSPATH. I wonder what I should try to debug? Anyone? Even if there's a link on the resin 3.x classloader hack if any, or .. a link to educate me more on native java integration or on how to hook up remote resin to debug,jconsole,jmx or to slap me for a something silly. There is some google on resin's class loader and on the error I got above once but not more. Again works on Windoze and on linux outside of the container Stumped, .V ps: here is the class, basically a System.Load. boolean isParsing = false; static boolean isInitialized = false; DomDocumentBuilder domBuilder = new DomDocumentBuilder(); private static String MInitializedJvmProperty = MParser.Initialized; /** * initialize the XPCOM embedded components with the proper * components base directory * * @param componentBase */ private synchronized static native void initXPCOM(String componentBase) throws ParserInitializationException; /** * Native function. parse an html function using m parser and * make callbacks to the java local sink ( DomDocumentBuilder for that * matter) * * @param html *HTML to parse. * @throws ParserInitializationException */ public native void parseHtml(String html) throws ParserInitializationException; /** * * A callback is being made from native code to this function. * * @param domOperation * @param domArgument */ public synchronized void callback(String domOperation, String domArgument) { // System.out.println(called back with :+domOperation + + domArgument ); domBuilder.addInstruction(domOperation, domArgument); } public Document parse(String html) throws DocumentException { this.domBuilder.reset(); try { this.parseHtml(html); } catch (Throwable e) { System.err.println(Warning: could not parse html : + e.getMessage()); throw new DocumentException(e); } return this.domBuilder.buildDocument(); } public void dump() { this.domBuilder.dump(); } /** * Initialize the parser with a DLL to load and * component base * * @param dllToLoad * @param componentsBase * @throws ParserInitializationException */ public static void init(String parserLibrary, String componentsBase) { String initialized = System.getProperty(MnitializedJvmProperty); System.out.println(loaded + initialized ); if (initialized == null) { System.setProperty(MInitializedJvmProperty, true); } else { System.err.println(Warning : Parser detected an additional attempt to initialize XPCOM. operation ignored.); return; } try { //ClassLoader sysCl = ClassLoader.getSystemClassLoader(); System.load(parserLibrary); initXPCOM(componentsBase); System.out.println(loaded); } catch (Exception e) { e.printStackTrace(); System.err.println(Warning:Could not load library +parserLibrary); } } /** * @return */ public VectorString getDomBuilderArguments() { return this.domBuilder.getInstructions(); } } Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs
[Resin-interest] hessian-flex SocketTimeoutException
A tomcat 5.5 site is using hessian/flex, like it a lot. It gets random hessian errors, some ex: java.net.SocketTimeoutException: Read timed out at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.read(SocketInputStream.java:129) at org.apache.coyote.http11.InternalInputBuffer.fill(InternalInputBuffer.java:747) at org.apache.coyote.http11.InternalInputBuffer$InputStreamInputBuffer.doRead(InternalInputBuffer.java:777) at org.apache.coyote.http11.filters.IdentityInputFilter.doRead(IdentityInputFilter.java:115) at org.apache.coyote.http11.InternalInputBuffer.doRead(InternalInputBuffer.java:712) at org.apache.coyote.Request.doRead(Request.java:418) at org.apache.catalina.connector.InputBuffer.realReadBytes(InputBuffer.java:284) at org.apache.tomcat.util.buf.ByteChunk.substract(ByteChunk.java:404) at org.apache.catalina.connector.InputBuffer.read(InputBuffer.java:299) at org.apache.catalina.connector.CoyoteInputStream.read(CoyoteInputStream.java:192) at com.caucho.hessian.io.Hessian2Input.readBuffer(Hessian2Input.java:2599) at com.caucho.hessian.io.Hessian2Input.read(Hessian2Input.java:2579) at com.caucho.hessian.server.HessianServlet.service(HessianServlet.java:371) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:541) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) or sometimes java.io.IOException: expected 'c' in hessian input at -1 at com.caucho.hessian.server.HessianServlet.service(HessianServlet.java:375) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:541) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) Site gets thousand of hits per minute, exceptions are about once an hour. Other resin sites seem fine, but this site is tc. Any suggestion on what to do? .V ps: for fun: http://phonezoo.com/PhotosHome.do (the recent banner on top is flex rotating and calling hessian java and generating these exceptions. Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
[Resin-interest] http://hessian.caucho.com/comet
http://hessian.caucho.com/comet has this section: The following code would be added to your resin.conf file: Socket policy file server configuration protocol port=414 type=com.caucho.protocols.flash.SocketPolicyProtocol ... But it does not say where in resin.conf to put that section. Where would I this section? (before/after). tia, .V Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
[Resin-interest] hessian flex (Stream Error)
I get Error #2044: Unhandled IOErrorEvent:. text=Error #2032: Stream Error. at hessian.client::HessianOperation/send() trying to duplicate the 2 flex hessian examples on the site. Here is working java client: public static void main(String args[]) { String url = http://localhost:8080/w/hsrv;; HessianProxyFactory factory = new HessianProxyFactory(); IInvoke basic=null; try { basic = (IInvoke) factory.create(IInvoke.class, url); } catch (Exception e) {} System.out.println(hello + basic.ping());// it just sayz hello world. // so it proves server works, the client works. And now the non working flex client code, that produces above error event: ?xml version=1.0 encoding=utf-8? initialize=init() implements=mx.rpc.IResponder mx:Script ![CDATA[ import flash.net.*; import mx.controls.*; import flash.events.*; import hessian.client.*; import mx.rpc.*; import mx.rpc.events.*; private var _hsrv:HessianService = new HessianService(hsrv);//url hessian private function hsend():void { try{ var token:AsyncToken = _hsrv.ping.send();// send async token.addResponder(this); } catch (err:Error) {// retry Alert.show(err.message); } }//() public function result(evt:Object):void {//rpc sig try { var revt:ResultEvent = ResultEvent(evt); var dat:String = revt.result.toString(); tRecMsg.text=dat; } catch (err:Error) {// retry Alert.show(err.message); }// }//() public function fault(ignore:Object):void { } // rpc sig ]] /mx:Script !-- ui -- mx:Button x=67 y=25 label=Send click=hsend() id=b1/ !--display recevied mesages -- mx:TextArea x=67 y=79 width=365 height=324 id=tRecMsg / mx:TextInput x=151 y=25 id=tOne editable=true text=kl/ /mx:Application hints? .V Yahoo! oneSearch: Finally, mobile search that gives answers, not web links. http://mobile.yahoo.com/mobileweb/onesearch?refer=1ONXIC ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] hessian init endless loop (line 182, 300, 194, 300, 194, etc.)
Vic Cekvenich wrote: (Love resin, Love hessina, been using both for a while). I do a simple hessian service... like I always did, and it goes to init endless loop. Bellow is the browser output. To test hessian normally I just have havingate to it's url to get the error hessian requires a post. Now I get this endless init loop. My api is api, my service implements api and extends hessian service and my web.xml says so. HELP? HINTS? I looked at source of hessian servlet and there is init private and public method, but my classes are fine. Could it be confusing class and api in code due to naming? ( In classpath I had simple jakarta jars, got rid of them, still same. I have Java 1.6, resin 3.1.1) tia, .V 500 Servlet Exception || java.lang.StackOverflowError at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:394) at java.lang.StringBuilder.append(StringBuilder.java:120) at javax.servlet.GenericServlet.log(GenericServlet.java:163) at javax.servlet.GenericServlet.init(GenericServlet.java:69) at com.caucho.hessian.server.HessianServlet.init(HessianServlet.java:182) at com.caucho.hessian.server.HessianServlet.init(HessianServlet.java:300) at com.caucho.hessian.server.HessianServlet.init(HessianServlet.java:194) at com.caucho.hessian.server.HessianServlet.init(HessianServlet.java:300) at com.caucho.hessian.server.HessianServlet.init(HessianServlet.java:194) at com.caucho.hessian.server.HessianServlet.init(HessianServlet.java:300) at com.caucho.hessian.server.HessianServlet.init(HessianServlet.java:194) at com.caucho.hessian.server.HessianServlet.init(HessianServlet.java:300) at com.caucho.hessian.server.HessianServlet.init(HessianServlet.java:194) at com.caucho.hessian.server.HessianServlet.init(HessianServlet.java:300) at com.caucho.hessian.server.HessianServlet.init(HessianServlet.java:194) at com.caucho.hessian.server.HessianServlet.init(HessianServlet.java:300) at com.caucho.hessian.server.HessianServlet.init(HessianServlet.java:194) at com.caucho.hessian.server.HessianServlet.init(HessianServlet.java:300) at com.caucho.hessian.server.HessianServlet.init(HessianServlet.java:194) at com.caucho.hessian.server.HessianServlet.init(HessianServlet.java:300) at com.caucho.hessian.server.HessianServlet.init(HessianServlet.java:194) at com.caucho.hessian.server.HessianServlet.init(HessianServlet.java:300) at com.caucho.hessian.server.HessianServlet.init(HessianServlet.java:194) ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] hessian init endless loop (line 182, 300, 194, 300, 194, etc.)
Went back to java 1.5.012 ... same! .V Vic Cekvenich wrote: (Love resin, Love hessina, been using both for a while). I do a simple hessian service... like I always did, and it goes to init endless loop. Bellow is the browser output. To test hessian normally I just have havingate to it's url to get the error hessian requires a post. Now I get this endless init loop. My api is api, my service implements api and extends hessian service and my web.xml says so. HELP? HINTS? I looked at source of hessian servlet and there is init private and public method, but my classes are fine. Could it be confusing class and api in code due to naming? ( In classpath I had simple jakarta jars, got rid of them, still same. I have Java 1.6, resin 3.1.1) tia, .V 500 Servlet Exception || java.lang.StackOverflowError at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:394) at java.lang.StringBuilder.append(StringBuilder.java:120) at javax.servlet.GenericServlet.log(GenericServlet.java:163) at javax.servlet.GenericServlet.init(GenericServlet.java:69) at com.caucho.hessian.server.HessianServlet.init(HessianServlet.java:182) at com.caucho.hessian.server.HessianServlet.init(HessianServlet.java:300) at com.caucho.hessian.server.HessianServlet.init(HessianServlet.java:194) at com.caucho.hessian.server.HessianServlet.init(HessianServlet.java:300) at com.caucho.hessian.server.HessianServlet.init(HessianServlet.java:194) at com.caucho.hessian.server.HessianServlet.init(HessianServlet.java:300) at com.caucho.hessian.server.HessianServlet.init(HessianServlet.java:194) at com.caucho.hessian.server.HessianServlet.init(HessianServlet.java:300) at com.caucho.hessian.server.HessianServlet.init(HessianServlet.java:194) at com.caucho.hessian.server.HessianServlet.init(HessianServlet.java:300) at com.caucho.hessian.server.HessianServlet.init(HessianServlet.java:194) at com.caucho.hessian.server.HessianServlet.init(HessianServlet.java:300) at com.caucho.hessian.server.HessianServlet.init(HessianServlet.java:194) at com.caucho.hessian.server.HessianServlet.init(HessianServlet.java:300) at com.caucho.hessian.server.HessianServlet.init(HessianServlet.java:194) at com.caucho.hessian.server.HessianServlet.init(HessianServlet.java:300) at com.caucho.hessian.server.HessianServlet.init(HessianServlet.java:194) at com.caucho.hessian.server.HessianServlet.init(HessianServlet.java:300) at com.caucho.hessian.server.HessianServlet.init(HessianServlet.java:194) ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] hessian init endless loop (line 182, 300, 194, 300, 194, etc.)
OK, here is how I patched it to make it work in HessianServlet: // in method private void init(... service.init(); // instead of service.init(getSeverltConfig(); This is if you use IOC api/home hessian, old code works as hessian servlet. Above fix should work for both. I'd love for this to be patched into the builds so I do not have to use my hessian. .V Vic Cekvenich wrote: Went back to java 1.5.012 ... same! .V Vic Cekvenich wrote: (Love resin, Love hessina, been using both for a while). I do a simple hessian service... like I always did, and it goes to init endless loop. Bellow is the browser output. To test hessian normally I just have havingate to it's url to get the error hessian requires a post. Now I get this endless init loop. My api is api, my service implements api and extends hessian service and my web.xml says so. HELP? HINTS? I looked at source of hessian servlet and there is init private and public method, but my classes are fine. Could it be confusing class and api in code due to naming? ( In classpath I had simple jakarta jars, got rid of them, still same. I have Java 1.6, resin 3.1.1) tia, .V 500 Servlet Exception || java.lang.StackOverflowError at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:394) at java.lang.StringBuilder.append(StringBuilder.java:120) at javax.servlet.GenericServlet.log(GenericServlet.java:163) at javax.servlet.GenericServlet.init(GenericServlet.java:69) at com.caucho.hessian.server.HessianServlet.init(HessianServlet.java:182) at com.caucho.hessian.server.HessianServlet.init(HessianServlet.java:300) at com.caucho.hessian.server.HessianServlet.init(HessianServlet.java:194) at com.caucho.hessian.server.HessianServlet.init(HessianServlet.java:300) at com.caucho.hessian.server.HessianServlet.init(HessianServlet.java:194) at com.caucho.hessian.server.HessianServlet.init(HessianServlet.java:300) at com.caucho.hessian.server.HessianServlet.init(HessianServlet.java:194) at com.caucho.hessian.server.HessianServlet.init(HessianServlet.java:300) at com.caucho.hessian.server.HessianServlet.init(HessianServlet.java:194) at com.caucho.hessian.server.HessianServlet.init(HessianServlet.java:300) at com.caucho.hessian.server.HessianServlet.init(HessianServlet.java:194) at com.caucho.hessian.server.HessianServlet.init(HessianServlet.java:300) at com.caucho.hessian.server.HessianServlet.init(HessianServlet.java:194) at com.caucho.hessian.server.HessianServlet.init(HessianServlet.java:300) at com.caucho.hessian.server.HessianServlet.init(HessianServlet.java:194) at com.caucho.hessian.server.HessianServlet.init(HessianServlet.java:300) at com.caucho.hessian.server.HessianServlet.init(HessianServlet.java:194) at com.caucho.hessian.server.HessianServlet.init(HessianServlet.java:300) at com.caucho.hessian.server.HessianServlet.init(HessianServlet.java:194) ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest