[JBoss JIRA] Commented: (JBAS-3372) Replace Sun javamail (mail.jar) with classpathx-mail.jar v1.0
by Dimitris Andreadis (JIRA)
[ http://jira.jboss.com/jira/browse/JBAS-3372?page=comments#action_12340412 ]
Dimitris Andreadis commented on JBAS-3372:
------------------------------------------
Upgraded to sun-javamail 1.4 (from 1.3.1) licensed under CDDL.
> Replace Sun javamail (mail.jar) with classpathx-mail.jar v1.0
> -------------------------------------------------------------
>
> Key: JBAS-3372
> URL: http://jira.jboss.com/jira/browse/JBAS-3372
> Project: JBoss Application Server
> Issue Type: Task
> Security Level: Public(Everyone can see)
> Components: Other
> Reporter: Dimitris Andreadis
> Priority: Critical
> Fix For: JBossAS-5.0.0.Beta, JBossAS-3.2.8.SP2, JBossAS-4.0.5.CR1
>
>
> GNU JavaMail is a free implementation of the JavaMail API specification, version 1.3.
> We want to use it as a replacement for Sun's mail.jar
> The sources can be downloaded from here:
> http://www.gnu.org/software/classpathx/javamail/javamail.html
> Issues with replacement by classpathx-mail:
> jbossws must be patched to use gnu-handlers instead of sun-handlers
> +//import com.sun.mail.handlers.multipart_mixed;
> +import gnu.mail.handler.MultipartMixed;
> +//import com.sun.mail.handlers.text_html;
> +import gnu.mail.handler.TextHtml;
> +//import com.sun.mail.handlers.text_plain;
> +import gnu.mail.handler.TextPlain;
> testsuite/src/main/org/jboss/test/classloader/resource/ResourceTest.java
> must be patched, because it refers to javamail.default.address.map and javamail.default.providers while in classpathx-mail these are named javamail.address.map and javamail.providers in classpathx-mail This change isn't essential to javamail; those files (+javamail.jar) were chosen because they were supposed to be always there. The real purpose of ResouceTest.java is to check access to resouces, so any adequate resources could be the test objects. But the resource test is executed very often and in different contexts. Therefore the adjustment is important for testsuite.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
17 years, 11 months
[JBoss JIRA] Created: (JBCACHE-694) Collection added to itself causes stack explosion in toString()
by Bela Ban (JIRA)
Collection added to itself causes stack explosion in toString()
---------------------------------------------------------------
Key: JBCACHE-694
URL: http://jira.jboss.com/jira/browse/JBCACHE-694
Project: JBoss Cache
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: PojoCache
Affects Versions: 1.4.0, 1.3.0.SP2, 1.3.0.SP1, 1.3.0, 1.2.4SP2, 1.2.4SP1, 1.2.4, 1.2.4beta, 1.2.3, 1.2.2, 1.2.1, 1.2
Reporter: Bela Ban
Assigned To: Manik Surtani
This works in plain Java.
How to reproduce:
- runShellDemo.sh/bat
sourceRelative("aopWithTx.bsh");
tree.putObject("list", new ArrayList());
list=tree.getObject("list");
list.add(list);
list.toString();
BOOOM
Some of the exception trace:
java.lang.StackOverflowError
at org.jboss.cache.Fqn.get(Fqn.java:257)
at org.jboss.cache.TreeCache.findNode(TreeCache.java:5606)
at org.jboss.cache.TreeCache.findNode(TreeCache.java:5577)
at org.jboss.cache.TreeCache._get(TreeCache.java:3457)
at org.jboss.cache.aop.InternalDelegate.get(InternalDelegate.java:126)
at org.jboss.cache.aop.InternalDelegate.getAopInstanceWithGravitation(InternalDelegate.java:78)
at org.jboss.cache.aop.InternalDelegate.getPojoWithGravitation(InternalDelegate.java:231)
at org.jboss.cache.aop.TreeCacheAopDelegate._getObject(TreeCacheAopDelegate.java:74)
at org.jboss.cache.aop.PojoCache._getObject(PojoCache.java:722)
at org.jboss.cache.aop.PojoCache.getObject(PojoCache.java:416)
at org.jboss.cache.aop.collection.CachedListImpl.get(CachedListImpl.java:56)
at org.jboss.cache.aop.collection.CachedListAbstract.toString(CachedListAbstract.java:155)
at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.cache.aop.collection.CollectionInterceptorUtil.invoke(CollectionInterceptorUtil.java:124)
at org.jboss.cache.aop.collection.CachedListInterceptor.invoke(CachedListInterceptor.java:132)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
at AOPClassProxy$0.toString(AOPClassProxy$0.java)
at java.lang.String.valueOf(String.java:2615)
at java.lang.StringBuffer.append(StringBuffer.java:220)
at org.jboss.cache.aop.collection.CachedListAbstract.toString(CachedListAbstract.java:156)
at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.cache.aop.collection.CollectionInterceptorUtil.invoke(CollectionInterceptorUtil.java:124)
at org.jboss.cache.aop.collection.CachedListInterceptor.invoke(CachedListInterceptor.java:132)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
at AOPClassProxy$0.toString(AOPClassProxy$0.java)
at java.lang.String.valueOf(String.java:2615)
at java.lang.StringBuffer.append(StringBuffer.java:220)
at org.jboss.cache.aop.collection.CachedListAbstract.toString(CachedListAbstract.java:156)
at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.cache.aop.collection.CollectionInterceptorUtil.invoke(CollectionInterceptorUtil.java:124)
at org.jboss.cache.aop.collection.CachedListInterceptor.invoke(CachedListInterceptor.java:132)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
at AOPClassProxy$0.toString(AOPClassProxy$0.java)
at java.lang.String.valueOf(String.java:2615)
at java.lang.StringBuffer.append(StringBuffer.java:220)
at org.jboss.cache.aop.collection.CachedListAbstract.toString(CachedListAbstract.java:156)
at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.cache.aop.collection.CollectionInterceptorUtil.invoke(CollectionInterceptorUtil.java:124)
at org.jboss.cache.aop.collection.CachedListInterceptor.invoke(CachedListInterceptor.java:132)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
at AOPClassProxy$0.toString(AOPClassProxy$0.java)
at java.lang.String.valueOf(String.java:2615)
at java.lang.StringBuffer.append(StringBuffer.java:220)
at org.jboss.cache.aop.collection.CachedListAbstract.toString(CachedListAbstract.java:156)
at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.cache.aop.collection.CollectionInterceptorUtil.invoke(CollectionInterceptorUtil.java:124)
at org.jboss.cache.aop.collection.CachedListInterceptor.invoke(CachedListInterceptor.java:132)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
at AOPClassProxy$0.toString(AOPClassProxy$0.java)
at java.lang.String.valueOf(String.java:2615)
at java.lang.StringBuffer.append(StringBuffer.java:220)
at org.jboss.cache.aop.collection.CachedListAbstract.toString(CachedListAbstract.java:156)
at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.cache.aop.collection.CollectionInterceptorUtil.invoke(CollectionInterceptorUtil.java:124)
at org.jboss.cache.aop.collection.CachedListInterceptor.invoke(CachedListInterceptor.java:132)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
at AOPClassProxy$0.toString(AOPClassProxy$0.java)
at java.lang.String.valueOf(String.java:2615)
at java.lang.StringBuffer.append(StringBuffer.java:220)
at org.jboss.cache.aop.collection.CachedListAbstract.toString(CachedListAbstract.java:156)
at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
17 years, 11 months