Re: [Resin-interest] resin 4.0.1 : Chinese UTF8 characters problems in Quercus

2009-10-05 Thread Wesley Wu
That's a long live problem which exists in all Quercushttp://caucho.com/resin/doc/quercus.xtp version. I believe that's because of the poor unicode implementation of mysql (or all db specific) functions. I raised the question to Scott one years before, yet not solved now. - Wesley 2009/10/6

Re: [Resin-interest] 4.0.2 schedule

2009-10-13 Thread Wesley Wu
Thanks Scott. I'll test the JPA JSR299/330 stuff. 2009/10/14 Scott Ferguson f...@caucho.com The 4.0.2 snapshot is now available. Bugs can be reported at bugs.caucho.com. The snapshot isn't clean yet, so a bug report might duplicate one of our failing regression tests, but it's better to

Re: [Resin-interest] 4.0.2 schedule

2009-10-13 Thread Wesley Wu
Seems 4.0.2 snapshot passed most of my web test. Passed: Thirdparty Hibernate JPA integration (* see issues below) @Inject @Qualifier @Observes (with @Qualifier bindings) @ApplicationScoped @RequestScoped Failed: @SessionScoped not tested: @InterceptorBinding I found two issues so far: 1. I

Re: [Resin-interest] 4.0.2 schedule

2009-10-13 Thread Wesley Wu
I think I could only use @SessionScoped annotation on SINGLE beans, though not tested yet. sorry, I mean SIMPLE beans not SINGLE. -Wesley 2009/10/14 Wesley Wu wumen...@gmail.com Seems 4.0.2 snapshot passed most of my web test. Passed: Thirdparty Hibernate JPA integration (* see issues below

[Resin-interest] LazyEntityManagerFactory is initialized too late to be injected into scheduled tasks

2009-10-19 Thread Wesley Wu
Hi Scott, I got two new problems. I have a scheduled task need to inject a @PersistenceUnit, as the config below: resin:ScheduledTask xmlns:tasks=urn:java:com.timehr.tasks resin:cron0 2 */resin:cron resin:task tasks:PositionRefreshTask/ /resin:task /resin:ScheduledTask I turned log level to

Re: [Resin-interest] url rewriting / search engine friendly

2009-10-30 Thread Wesley Wu
You may use http://tuckey.org/urlrewrite/ UrlRewriteFilter. I wrote a similar filter doing the same thing which loads rewrite config from database. 2009/10/30 Riccardo Cohen r...@architectedulogiciel.fr Hello I didn't have yet the opportunity to work with search engine friendly urls with

Re: [Resin-interest] url rewriting / search engine friendly

2009-10-30 Thread Wesley Wu
servlet ? Wesley Wu wrote: You may use http://tuckey.org/urlrewrite/ UrlRewriteFilter. I wrote a similar filter doing the same thing which loads rewrite config from database. 2009/10/30 Riccardo Cohen r...@architectedulogiciel.fr mailto:r...@architectedulogiciel.fr Hello

Re: [Resin-interest] url rewriting / search engine friendly

2009-10-31 Thread Wesley Wu
syntax. So if my controller parses the url /servlet?command=showuserid=1354, why couldn't it parse the url /user/name instead directly ? This removes from the application one level of control and complexity . Am-I right ? Wesley Wu wrote: Not recommended. I think filter should

[Resin-interest] change log page broken

2009-11-25 Thread Wesley Wu
http://www.caucho.com/resin/changes/changes.xtp [show] javascript:show(); /var/www/hosts/www.caucho.com/webapps/resin/changes/changes.xtp:116: expected name at ` ' 114: liquercus: Drupal and OpenID (#3609, rep by B. Wu)/li 115: liquercus: QuercusParseException - missing semicolon within a

Re: [Resin-interest] Resin V Glassfish

2009-11-27 Thread Wesley Wu
As long as Scott continue to work for the Resin's future I'll never switch to other platform. I loved the WebBeans so much from December 2007, now called CDI. I don't think other vendors could produce a competitive implementation of CDI versus Resin, in at least next 12 months. They have to

[Resin-interest] Multi-Part request error when using HmuxRequest in Resin 4.0.2(GA)

2009-11-27 Thread Wesley Wu
Multi-Part request error when using HmuxRequest. My resin 4.0.2 was behind an apache 2.1.x using CauchoRequest to forward all request for a virtual host to resin. If I use 8080 port without apache, everything goes fine. 2009-11-28 13:14:28.916 ERROR [server-127.0.0.1:6800-5]

Re: [Resin-interest] Resin V Glassfish

2009-11-28 Thread Wesley Wu
. CDI is actually based on JBoss Seam and Google Guice. Cheers, -Kai On 27.11.2009, at 12.10, Wesley Wu wumen...@gmail.com wrote: As long as Scott continue to work for the Resin's future I'll never switch to other platform. I loved the WebBeans so much from December 2007, now called

Re: [Resin-interest] Multi-Part request error when using HmuxRequest in Resin 4.0.2(GA)

2009-11-29 Thread Wesley Wu
This bug should be marked as block because it prevents resin load-balancer and third-party web server integration from working properly. It seems caucho QA team did not pay much attention to Hmux stuff, because I suffered a lot from it... -Wesley 2009/11/29 Alex a...@caucho.com Multi-Part

Re: [Resin-interest] Multi-Part request error when using HmuxRequest in Resin 4.0.2(GA)

2009-11-30 Thread Wesley Wu
Without this bug fixed, 4.0.2 can't be used in production environment. I use two machines with two resin as a load balance cluster, one with a web-tier and a app-tier the other only a app-tier. Every file upload block it. 2009/11/30 Wesley Wu wumen...@gmail.com This bug should be marked

Re: [Resin-interest] Multi-Part request error when using HmuxRequest in Resin 4.0.2(GA)

2009-11-30 Thread Wesley Wu
by then, but a snapshot with fixes will be ok. Or I'll have to switch back to the 4.0.2 snapshot 091013 (which has performance/logging issue and JPA issues). 2009/12/1 Scott Ferguson f...@caucho.com: Scott Ferguson wrote: Wesley Wu wrote: Without this bug fixed, 4.0.2 can't be used in production environment

Re: [Resin-interest] Multi-Part request error when using HmuxRequest in Resin 4.0.2(GA)

2009-11-30 Thread Wesley Wu
the forwarding. If I use 8080 port, everything goes fine. 2009/12/1 Scott Ferguson f...@caucho.com: Wesley Wu wrote: Thanks, Scott. You rocks. We're planning a launch of a new version of my website on December 18. All codes in this new version rely on JSR 299 (hopefully I'll see the final ballot

Re: [Resin-interest] new Resin 4.0 snapshot

2009-12-02 Thread Wesley Wu
Thanks Scott. This snapshot finally fix it all. I'll have to fix it for you if you don't get this snapshot out in a week :) -Wesley 2009/12/3 Scott Ferguson f...@caucho.com: There's a new Resin 4.0 snapshot with additional fixes for the hmux/forwarding issues. -- Scott

Re: [Resin-interest] new Resin 4.0 snapshot

2009-12-02 Thread Wesley Wu
Another SEVERE issues with this snapshot. All POST request was dramatically CHANGED to GET request. -Wesley 2009/12/3 Scott Ferguson f...@caucho.com: Jamison Novak wrote: You can ignore this. After further investigation, the developer in charge of the app says that it's returning a similar

Re: [Resin-interest] new Resin 4.0 snapshot

2009-12-02 Thread Wesley Wu
: Wesley Wu wrote: Another SEVERE issues with this snapshot. All POST request was dramatically CHANGED to GET request. I'm not seeing that behavior. Can you turn on the finer logging and see what filters/includes/forwards are happening? -- Scott -Wesley 2009/12/3 Scott Ferguson f

Re: [Resin-interest] new Resin 4.0 snapshot

2009-12-02 Thread Wesley Wu
I wonder why this happened. I encountered this in all 4.0.2 versions in my developer machine while not occurred in production machine. I'll do some investigation next. Thanks Scoot. 2009/12/3 Wesley Wu wumen...@gmail.com: I turned it on: [09-12-03 05:59:44.722] {server--6800-4

Re: [Resin-interest] new Resin 4.0 snapshot

2009-12-02 Thread Wesley Wu
I think the win32/win64 dlls should be recompiled against the new modification. 2009/12/3 Wesley Wu wumen...@gmail.com: I wonder why this happened. I encountered this in all 4.0.2 versions in my developer machine while not occurred in production machine. I'll do some investigation next

Re: [Resin-interest] new Resin 4.0 snapshot

2009-12-02 Thread Wesley Wu
/3.5.5 GTB6 (.NET CLR 3.5.30729) 127.0.0.1 - - [03/Dec/2009:08:18:21 +0800] GET /css/style05.css HTTP/1.1 304 - http://localhost:889/register/; Mozilla/5.0 (Windows; U; Windows NT 6.0; zh-CN; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5 GTB6 (.NET CLR 3.5.30729) -Wesley 2009/12/3 Wesley Wu wumen

Re: [Resin-interest] new Resin 4.0 snapshot

2009-12-02 Thread Wesley Wu
that GET was the subsequent redirect after the POST. I use redirect after post pattern. A request first POST to /register and after some processing, redirect to /register again using a GET request. -Wesley 2009/12/3 Scott Ferguson f...@caucho.com: Wesley Wu wrote: I changed my post url

[Resin-interest] To make @ApplicationScoped Bean distributed

2009-12-16 Thread Wesley Wu
Hi Scott, I'm deploying Resin 4.0.2 snapshot to a cluster and found my @ApplicationScoped bean not distributed across the cluster nodes. Is there anything to config to make it possible? I searched Gavin's blog and found some examples regarding @Observes to resolve this situation. If I

[Resin-interest] HempMemoryQueue Exception when synchronizing sessions between two nodes in a cluster

2009-12-17 Thread Wesley Wu
[09-12-18 01:43:05.221] {hmtp-baa-to-aaa-0} com.caucho.hemp.broker.HempMemoryQueue consumeQueue java.lang.IllegalStateException: WebSocket binary must begin with a 0x80 packet at 0x51 (Q) [09-12-18 01:43:05.221] {hmtp-baa-to-aaa-0} at

Re: [Resin-interest] HempMemoryQueue Exception when synchronizing sessions between two nodes in a cluster

2009-12-17 Thread Wesley Wu
this node is using Resin-4.0.s091216 the other is using Resin-4.0.s091202 -Wesley ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest

Re: [Resin-interest] HempMemoryQueue Exception when synchronizing sessions between two nodes in a cluster

2009-12-17 Thread Wesley Wu
Thanks. I switched back to 091202 snapshot and this issue was resolved. Would u take some time to look at my other mail about @ApplicationScoped bean distribution? -Wesley 2009/12/18 Scott Ferguson f...@caucho.com: Wesley Wu wrote: this node is using Resin-4.0.s091216 the other is using

Re: [Resin-interest] HempMemoryQueue Exception when synchronizing sessions between two nodes in a cluster

2009-12-17 Thread Wesley Wu
So if I want my beans synchronized across the cluster, I have to use either JMS or some thirdparty cluster middleware like JBossCache? -Wesley ___ resin-interest mailing list resin-interest@caucho.com

Re: [Resin-interest] HempMemoryQueue Exception when synchronizing sessions between two nodes in a cluster

2009-12-17 Thread Wesley Wu
, there is an oss free version) = love. I'm not super clear on what you want, but it sounds like you want the TIM-MasterWorker (ExecutorService): http://forge.terracotta.org/releases/projects/tim-messaging/docs/about.html jon On Thu, Dec 17, 2009 at 11:51 AM, Wesley Wu wumen...@gmail.com wrote: So if I

Re: [Resin-interest] HempMemoryQueue Exception when synchronizing sessions between two nodes in a cluster

2009-12-17 Thread Wesley Wu
Thanks Jon, I'll definitely give terracotta a try. As far as I know, EHCache was a opensymphony project one or two years ago. I noticed that ehcache was acquired by terracotta and became a key component of terracotta. That's great! -Wesley ___

Re: [Resin-interest] HempMemoryQueue Exception when synchronizing sessions between two nodes in a cluster

2009-12-18 Thread Wesley Wu
. jon On Thu, Dec 17, 2009 at 11:42 PM, Wesley Wu wumen...@gmail.com wrote: Thanks Jon, I'll definitely give terracotta a try. As far as I know, EHCache was a opensymphony project one or two years ago. I noticed that ehcache was acquired by terracotta and became a key component

Re: [Resin-interest] HempMemoryQueue Exception when synchronizing sessions between two nodes in a cluster

2009-12-18 Thread Wesley Wu
or suggestions? Thanks very much, Jon. -Wesley 2009/12/19 Wesley Wu wumen...@gmail.com: Great Jon, you help me to make a critical decision (not to use JBC any more and switch to EHC Terracotta). I'll give it a shot. -Wesley 2009/12/19 Jon Stevens latch...@gmail.com: yep, i've had several

Re: [Resin-interest] HempMemoryQueue Exception when synchronizing sessions between two nodes in a cluster

2009-12-18 Thread Wesley Wu
I gave some code for the request: Cache cache = cacheManager.getCache(forumPageCache); cache.put(forum_1_page_1, postListInForum1Page1); cache.put(forum_1_page_2, postListInForum1Page2); cache.put(forum_1_page_3, postListInForum1Page3); cache.put(forum_2_page_1, postListInForum2Page1);

[Resin-interest] HempMemoryQueue consumeQueue NullPointerException

2009-12-22 Thread Wesley Wu
My log output this error: [09-12-23 04:16:12.154] {hmtp-baa-to-aaa-5} com.caucho.hemp.broker.HempMemoryQueue consumeQueue java.lang.NullPointerException [09-12-23 04:16:12.154] {hmtp-baa-to-aaa-5} at com.caucho.server.cluster.HmuxQueue.authenticate(HmuxQueue.java:263) [09-12-23 04:16:12.154]

[Resin-interest] WebSocket binary stream read error

2009-12-22 Thread Wesley Wu
My log output this error: [09-12-23 04:24:00.017] {hmtp-aaa-to-aaa-2} com.caucho.hemp.broker.HempMemoryQueue consumeQueue java.lang.IllegalStateException: WebSocket binary must begin with a 0x80 packet at 0x51 (Q) [09-12-23 04:24:00.017] {hmtp-aaa-to-aaa-2} at

Re: [Resin-interest] the response time

2010-01-16 Thread Wesley Wu
Hi Jon Scott, I don't like apache either but resin 4.0.2 cluster web-tier seems unstable for me. I've not tested the 4.0.3 cluster. My Apache config: ResinHost 192.168.1.4 6801 ResinBackup 192.168.1.5 6801 Which load balancer will be more appropriate for this usage? Thanks. -Wesley

[Resin-interest] @ApplicationScoped/@Singleton bean lazy init problem

2010-01-28 Thread Wesley Wu
Hi Scott, When a @ApplicationScoped/@Singleton bean is designed to be initialized after webapp starts (I.E. when first http request was fired) instead of being initialized during startup stage, in given circumstance, it won't be injected correctly. This is my test case: == StartBean

Re: [Resin-interest] @ApplicationScoped/@Singleton bean lazy init problem

2010-01-28 Thread Wesley Wu
/29 Scott Ferguson f...@caucho.com: Wesley Wu wrote: Hi Scott, When a @ApplicationScoped/@Singleton bean is designed to be initialized after webapp starts (I.E. when first http request was fired) instead of being initialized during startup stage, in given circumstance, it won't be injected

Re: [Resin-interest] Where is javax.inject.Current ?

2010-02-07 Thread Wesley Wu
according to the JSR299 JSR330 final spec should use javax.inject.Inject instead 2010/2/7 smallufo small...@gmail.com: I am migrating from Spring to JSR-299 , I followed this http://blog.caucho.com/?p=137 , but the first frustration is that I cannot find @Current . I extracted

Re: [Resin-interest] Where is javax.inject.Current ?

2010-02-07 Thread Wesley Wu
the docs should be updated I can't agree more. :) 2010/2/7 smallufo small...@gmail.com: Oops , thanks for replying so soon. BTW , the docs should be updated ... 2010/2/7 Wesley Wu wumen...@gmail.com according to the JSR299 JSR330 final spec should use javax.inject.Inject instead 2010/2

Re: [Resin-interest] CanDI java.lang.StackOverflowError

2010-02-10 Thread Wesley Wu
This could be a lazy init problem I think. The scheduled tasks would be inited before some of other beans which the tasks need. I've met this before. The workaround: Inject the Injector into your task, no other webbeans. When the task starts (run()), create webbeans instances via the injector.

Re: [Resin-interest] CanDI java.lang.StackOverflowError

2010-03-15 Thread Wesley Wu
constructor and use setter instead of it, then the CanDI initialization does completes. However, if I add @Startup annotation, so a class instance is actually created, then I again receive StackOverflow. Thanks. I have this fixed for 4.0.4. -- Scott Wesley Wu írta: This could

Re: [Resin-interest] Hibernate transactions

2010-03-29 Thread Wesley Wu
Not a version issue. An entitymanager should not get transaction by itself. Transaction in a modern java appserver should be XA or JTA transaciton. An entitymanager will detect if there is a JTA transaction existing and will join it if there is an open one. You need to use an injected 

Re: [Resin-interest] Hibernate transactions

2010-03-29 Thread Wesley Wu
try { ut.begin(); CourseBean updateCourse = _manager.find(CourseBean.class, new Integer(1)); updateCourse.setCourse(Magic); ut.commit(); } catch (Exception e) { e.printStackTrace(); } will work. -Wesley

Re: [Resin-interest] Hibernate transactions

2010-03-30 Thread Wesley Wu
To make set method auto translated into a UPDATE clause, the entitymanager should be opened after a transaction begins. @PersistenceUnit(unitName=example) EntityManagerFactory emf; EntityManager em; try { ut.begin(); EntityManager em= emf.createEntityManager(); CourseBean

Re: [Resin-interest] Hibernate transactions

2010-03-30 Thread Wesley Wu
@TransactionAttribute. I never inject a @PersistentContext or never use a container provided EntityManager. I use ThreadLocal to maintain every EntityManager instance. -Wesley 2010/3/30 Stargazer starga...@blueyonder.co.uk On 30-Mar-2010 09:34, Wesley Wu wrote: To make set method auto

Re: [Resin-interest] Hibernate transactions

2010-03-30 Thread Wesley Wu
I will not call UserTransaction.begin() when all db operations are SELECT. I create a EntityManager from emf to do SELECT stuff with no transaction at all. When I detected there're some update/delete operations, I'll do this: 1. close the former created EntityManager if there is one (for

Re: [Resin-interest] Hibernate transactions

2010-03-30 Thread Wesley Wu
More to mention about MDBs (Message Driven Beans): 1. Always use @TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED) on public void onMessage(Message message). because the impl of Resin MDBs has severe reenter synchronization problem. If I start a transaction before onMessage() being

[Resin-interest] Resin 4.0.8 passed the tck?

2010-07-04 Thread Wesley Wu
Hi, I noticed there is a 4.0.8 release at 6/30, and I tried it out. Seems fine besides some minor problem described below. ***. MDBs implements MessageListener can't have an @Override on onMessage method. I have to remove these annos to make it run. @Override

Re: [Resin-interest] Numerous problems moving to 4.0.8

2010-07-04 Thread Wesley Wu
Hi Rick Try to place the tld at WEB-INF/classes/META-INF/your_tld_file.tld. -Wesley ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest

Re: [Resin-interest] Resin 4.0.8 passed the tck?

2010-07-05 Thread Wesley Wu
Another minor issue about file uploading. I used commons upload to parse the request: org.apache.commons.fileupload.parseRequest but now it don't parsed it well. Instead all upload files all turned into something like: myUploadFile.file myUploadFile.filename myUploadFile.content-type plain

Re: [Resin-interest] Numerous problems moving to 4.0.8

2010-07-05 Thread Wesley Wu
-version1.0/tlib-version ... /taglib has not problem in classes/META-INF 2010/7/5 Rick Mann rm...@latencyzero.com: On Jul 4, 2010, at 21:55:34, Wesley Wu wrote: Hi Rick Try to place the tld at WEB-INF/classes/META-INF/your_tld_file.tld. I don't think that should be necessary. You're supposed

[Resin-interest] A request for caucho apache module - connect to an instance only after CDI deployment finished

2010-07-15 Thread Wesley Wu
Hi Scott, The request: Make caucho apache module to act (maybe should be configurable) as below : When check a Resin instance whether it is ready to accept connections, make sure it's not only started normally, but also all CDI startup beans were already initialized and deployed (after

Re: [Resin-interest] A request for caucho apache module - connect to an instance only after CDI deployment finished

2010-07-20 Thread Wesley Wu
Thanks for the Priority = normal :) -Wesley ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest

Re: [Resin-interest] Resin 4.0.9 release

2010-07-30 Thread Wesley Wu
Oh my god Scott, you rule it! /** * Returns the current environment container. */ public static InjectManager getCurrent(ClassLoader loader) { return _localContainer.get(loader); } finally the synchronized (_localContainer) was gone! You have no idea how I suffered from the

[Resin-interest] Servlet 3.0 file upload feature (javax.servlet.http.Part) improperly implemented

2010-07-31 Thread Wesley Wu
Hi Scott, I found a frustrating problem when porting my framework to accommodate the Servlet 3.0 file upload spec in Resin 4.0.8/4.0.9. There did has a (private Object _value) in com.caucho.server.http.HttpServletRequestImpl.PartImpl, however, if it's not a file upload but a common text form

[Resin-interest] Severe InjectManager.getCurrent synchronization problem at high load, fixed in 4.0.9?

2010-07-31 Thread Wesley Wu
Hi Scott, We're running Resin 4.0.5 for a heavy traffic site (100K+ Pageviews in an hour) for a couple of months. In the past several days I've experienced frequent failing responding of requests after two or three hours a Resin instance was started. The environment: Hardware: 16 cores with

[Resin-interest] ConnectionPool pool overflow issue in Resin 4.0.9

2010-08-05 Thread Wesley Wu
Hi Scott, I've experienced weird connection pool issue in 4.0.9 these days. After every hour (exactly), the 4.0.9 resin refused to service any request and occasionally report ConnectionPool [...] pool overflow. This situation never occurred in prior resin releases and neither my webapp nor

Re: [Resin-interest] ConnectionPool pool overflow issue in Resin 4.0.9

2010-08-09 Thread Wesley Wu
Thanks. Be sure to notify in the mailing list when the snapshot is out. :) 2010/8/7 Scott Ferguson f...@caucho.com: Wesley Wu wrote: Hi Scott, I've experienced weird connection pool issue in 4.0.9 these days. After every hour (exactly), the 4.0.9 resin refused to service any request

[Resin-interest] Possible memory leak in Resin 4.0.9

2010-08-11 Thread Wesley Wu
Hi Scott, I've applied the 4.0.10 snapshot and the Alarm issue went away. Thanks. But Resin consumed all memory after certain hours and resulted in a halt or restart. I did a jrockit flight recording and found there was a slow heap increase during various GCs. The recording file shows the

Re: [Resin-interest] Resin 4.0.9 release

2010-08-13 Thread Wesley Wu
Hi Jan, Did your resin server have a busy traffic? Did u observed any memory leak or heap overflow? -Wesley ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest

Re: [Resin-interest] Possible memory leak in Resin 4.0.9

2010-08-13 Thread Wesley Wu
Hi Scott, The memory leak circumstance was not spotted in Resin 4.0.5 and early 4.0.x versions. One of the inject path is: * A filter CmsPageFilter dispatch a request to a Jsp page through javax.servlet.RequestDispatcher.forward(request, response) * Jsp page called a BeanMethod custom jsp tag *

Re: [Resin-interest] Possible memory leak in Resin 4.0.9

2010-08-13 Thread Wesley Wu
My BeanManager wrapper code @Singleton @Startup public class MDIObjectFactory { private static BeanManager beanManager; private static BeanManager getBeanManager() { if (beanManager == null) { try {

Re: [Resin-interest] Possible memory leak in Resin 4.0.9

2010-08-17 Thread Wesley Wu
Hi Scott, Thanks for the checking. Today I double checked the CDI spec and got some new knowledge. Nearly all my beans were not annotated with any scope, so that they should be @Dependent. Some of the beans were created (not injected) in a servlet filter via a static ObjectFactory. I think the

Re: [Resin-interest] ConcurrentModificationException when InjectManager.findByName

2010-08-19 Thread Wesley Wu
modifying the HashMap. It's an easy fix. -- Scott Here is a more detailed explanation: http://forums.sun.com/thread.jspa?threadID=5335803 Aaron On 8/19/2010 4:20 AM, Wesley Wu wrote: Often happened at 30 seconds after appserver start. [10-08-19 17:11:44.378] {server://*:6801-487

Re: [Resin-interest] Possible memory leak in Resin 4.0.9

2010-08-19 Thread Wesley Wu
Hi Scott, I believe I've fixed this issue by adding @ApplicationScoped and @RequestedScoped annotation to my beans. :) Thanks for your efforts. -Wesley 2010/8/18 Wesley Wu wumen...@gmail.com: Hi Scott, Thanks for the checking. Today I double checked the CDI spec and got some new knowledge

Re: [Resin-interest] Possible memory leak in Resin 4.0.9

2010-08-19 Thread Wesley Wu
2010/8/20 Scott Ferguson f...@caucho.com: I still think there's a chance for a Resin leak; I just don't understand where it's coming from. I think so. The same code worked fine (no leak) in Resin 4.0.5. It shouldn't matter what context you're injecting from, as long as you're creating a new

Re: [Resin-interest] Possible memory leak in Resin 4.0.9

2010-08-19 Thread Wesley Wu
I'll tried to do so. 2010/8/20 Scott Ferguson f...@caucho.com: Wesley Wu wrote: 2010/8/20 Scott Ferguson f...@caucho.com: I still think there's a chance for a Resin leak; I just don't understand where it's coming from. I think so. The same code worked fine (no leak) in Resin 4.0.5. Do

[Resin-interest] ConnectionPool pool overflow issue again in resin 4.0.10

2010-10-08 Thread Wesley Wu
Hi Scott, I experienced ConnectionPool pool overflow issue again in resin 4.0.10. Some time (probably 20 minutes) after resin started, resin reported: [10-10-08 01:07:28.555] {server://*:6801-5523} ConnectionPool[jdbc/mypool] pool overflow [10-10-08 01:07:28.555] {server://*:6801-5109}

[Resin-interest] Resin CanDI not support @Alternative ?

2010-11-01 Thread Wesley Wu
==beans.xml=== ?xml version=1.0 encoding=UTF-8? beans xmlns=http://java.sun.com/xml/ns/javaee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/beans_1_0.xsd;

Re: [Resin-interest] Resin CanDI not support @Alternative ?

2010-11-02 Thread Wesley Wu
. -Wesley 2010/11/2 Scott Ferguson f...@caucho.com: I just checked with that example and it's working fine. Where are the files/classes located, and how is JmsTemplate instantiated? -- Scott Wesley Wu wrote: ==beans.xml=== ?xml version=1.0 encoding=UTF-8? beans xmlns

Re: [Resin-interest] InjectManager._selfBeanMap should be ConcurrentHashMap?

2010-11-30 Thread Wesley Wu
Thanks, Scott. Would you give out a snapshot and I will do some stress test on it. -Wesley 2010/11/30 Scott Ferguson f...@caucho.com: Thanks. I've fixed it for the next release (changing to ConcurrentHashMap) - Scott Wesley Wu wrote: Or this method sync the wrong map? private SetBean

[Resin-interest] too many user transaction pool broken message in log

2011-01-29 Thread Wesley Wu
Hi, After upgrading to Resin 4.0.14, in resin.log I found too many exceptions but I've got no idea why they were thrown. When using 4.0.10 there were no such exception logs with the same webapp code. 2~4 times per seconds. 4.0.13 also have the issue. java.lang.IllegalStateException: Internal

[Resin-interest] no JMX ObjectName detected with jrockit vm

2011-02-10 Thread Wesley Wu
Hi Scott, Resin 4.0.14 log many warnings about no JMX ObjectName detected [11-02-11 00:19:23.324] {resin-34} MemoryTenuredHealthCheck: WARNING: MemoryTenuredHealthCheck[] has no JMX ObjectName detected [11-02-11 00:19:23.324] {resin-34} MemoryPermGenHealthCheck: WARNING:

[Resin-interest] ScheduledThreadPool randomly failed to start throwing NullPointerException

2011-07-07 Thread Wesley Wu
Hi Scott, I found resin sometimes can't start ScheduledThreadPool, resulting in @Inject ExecutorService executorService not work (executorService is null). can't precisely reproduce it coz it happened randomly when server restarts. affected resin version: Resin 4.0.s100809 Resin 4.0.18

[Resin-interest] It seems resin 4.0.x does not implement Unified EL 2.2 properly

2011-09-29 Thread Wesley Wu
2.2 one. I looked at the source of resin el implementation and found java.el.CompositeELResolver did not implemented the public Object invoke(ELContext context, Object base, Object method, Class?[] paramTypes, Object[] params); method which was added since EL 2.2. any thoughts? -- Wesley Wu

[Resin-interest] It seems resin 4.0.x does not implement Unified EL 2.2 properly

2011-10-20 Thread Wesley Wu
2.2 one. I looked at the source of resin el implementation and found java.el.CompositeELResolver did not implemented the public Object invoke(ELContext context, Object base, Object method, Class?[] paramTypes, Object[] params); method which was added since EL 2.2. any thoughts? -- Wesley Wu

Re: [Resin-interest] Resin 4 stable for production ?

2011-12-05 Thread Wesley Wu
@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest -- *Wesley Wu 吴萌野* QQ:18990702 Mobile: 18601033886 Email: wesley...@yinyuetai.com wesley...@yinyuetai.com 工体北路8号三里屯SOHO办公D座1103 邮编100027 [image: U3%8Y%PN7N{6ZGQY1F)PI_P] www.yinyuetai.com * * image001

[Resin-interest] changes page broker

2012-07-05 Thread Wesley Wu
http://caucho.com/resin-4.0/changes/changes.xtp 500 Servlet Exception /var/www/hosts/www.caucho.com/webapps/resin-4.0/changes/changes.xtp:48: `/li.' expected `' at `'. Closing tags must close immediately after the tag name. 46: liconfig: app-oinf in cluster wasn't picked up properly (#5004)/li