[JBoss Microcontainer Development] New message: "Re: JBREFLECT-5 - Implementing generics in JavassistClassInfo"
by Kabir Khan
JBoss development,
A new message was posted in the thread "JBREFLECT-5 - Implementing generics in JavassistClassInfo":
http://community.jboss.org/message/531173#531173
Author : Kabir Khan
Profile : http://community.jboss.org/people/kabir.khan@jboss.com
Message:
--------------------------------------------------------------
1) and 4) have been done.>
> A few points worth remembering:
> a) I have implemented a JavassistParameterizedClassInfo (stolen from the introspection implementation) which handles things like Collection<String>. This basically delegates to the "raw" ClassInfo for Collection, augmented with extra information regarding the <String> bit. These are currently not cached and are created on every access.
>
>
>
>
I have not added caching yet, and adding this simple test passes with the introspection implementation, but fails with the Javassist implementation
public Comparable<String> signatureCachedParameterizedClassInfo()
{
return null;
}
public void testCachedParameterizedClassInfo() throws Throwable
{
Type type = getGenericReturnType("signatureCachedParameterizedClassInfo");
TypeInfo typeInfo1 = getTypeInfoFactory().getTypeInfo(type);
TypeInfo typeInfo2 = getTypeInfoFactory().getTypeInfo(getGenericReturnType("signatureCachedParameterizedClassInfo"));
assertEquals(typeInfo1, typeInfo2);
assertSame(typeInfo1, typeInfo2); // <-- FAILS
//Also check the results of repeated calls to getGenericSuperClass/-Interfaces() etc.
}
Is this object equality a requirement? My fear is that working out the key will be costly
> A few points worth remembering:
> b) JavassistClassInfo should cache the values of isMap() and isCollection()
>
>
>
>
This has been done.
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/531173#531173
16 years
[JBoss Tools Development] New message: "Re: Content Assist in attributes which should be filled with id's"
by Ilya Shaikovsky
JBoss development,
A new message was posted in the thread "Content Assist in attributes which should be filled with id's":
http://community.jboss.org/message/531042#531042
Author : Ilya Shaikovsky
Profile : http://community.jboss.org/people/ilya_shaikovsky
Message:
--------------------------------------------------------------
> 6. Content assist improvements (see Maxim example)
yes.. something like that. Sorry again for maybe non-informative request.
*Example:*
* I'm using some *outputPanel* with *id = "renderFromSomeChildPages"* in template "main.xhtml"
* client page *page1.xhtml* uses that template *<ui:composition template="mai.xhtml">*
* *page1.xhtml* has a4j:command*. So if I'm trying to add *reRender attribute* and *invoke CA* there - at reRender *suggestions contains id's only from that child page*. How about to look to template(main.xhtml) also and suggest *renderFromSomeChildPages* also?
+I'm not talking about *includes* cases. Just about templates and child pages.+
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/531042#531042
16 years
[JBoss Tools Development] New message: "birt integration doesn't work with EnumType"
by Elhanan Maayan
JBoss development,
A new message was posted in the thread "birt integration doesn't work with EnumType":
http://community.jboss.org/message/531009#531009
Author : Elhanan Maayan
Profile : http://community.jboss.org/people/Elhanan
Message:
--------------------------------------------------------------
hi..when i try to use a query which includes an enum i get:
[select p.userName,p.letterTemplate.description,p.letterTemplate.templateType ,p.policy.policyId,p.created from PostedAda p]
'org.hibernate.type.EnumType' is not a valid type.
at org.eclipse.birt.data.engine.odaconsumer.Connection.throwDataException(Connection.java:363)
at org.eclipse.birt.data.engine.odaconsumer.Connection.prepareOdaQuery(Connection.java:308)
at org.eclipse.birt.data.engine.odaconsumer.Connection.prepareStatement(Connection.java:204)
at org.eclipse.birt.data.engine.executor.DataSource.prepareStatement(DataSource.java:268)
at org.eclipse.birt.data.engine.executor.DataSourceQuery.prepare(DataSourceQuery.java:274)
at org.eclipse.birt.data.engine.impl.PreparedOdaDSQuery$OdaDSQueryExecutor.prepareOdiQuery(PreparedOdaDSQuery.java:413)
at org.eclipse.birt.data.engine.impl.QueryExecutor.prepareExecution(QueryExecutor.java:339)
... 82 more
Caused by: org.eclipse.datatools.connectivity.oda.OdaException: 'org.hibernate.type.EnumType' is not a valid type.
at org.jboss.tools.birt.oda.impl.AbstractOdaFactory.parseQuery(AbstractOdaFactory.java:110)
at org.jboss.tools.birt.oda.impl.AbstractOdaFactory.prepare(AbstractOdaFactory.java:49)
at org.jboss.tools.birt.oda.impl.HibernateOdaQuery.prepare(HibernateOdaQuery.java:48)
at org.eclipse.datatools.connectivity.oda.consumer.helper.OdaQuery.doPrepare(OdaQuery.java:229)
at org.eclipse.datatools.connectivity.oda.consumer.helper.OdaQuery.prepare(OdaQuery.java:186)
at org.eclipse.birt.data.engine.odaconsumer.Connection.prepareOdaQuery(Connection.java:300)
... 87 more
this is after i'ved added hibernate anotations to the classpath
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/531009#531009
16 years
[JBoss Web Development] New message: "Web page hangs up and no logs in JBOSS"
by Thiy Aster
JBoss development,
A new message was posted in the thread "Web page hangs up and no logs in JBOSS":
http://community.jboss.org/message/530992#530992
Author : Thiy Aster
Profile : http://community.jboss.org/people/thiyaster
Message:
--------------------------------------------------------------
Hi All,
We were developed and deployed JSP pages for GUI purpose in JBOSS AS 4.0
We deployed our application at client side in RHEL 4.
There were only few user(one or two) will access our GUI page(jsp page).
While accessing sometimes our customer face issue of the page gets hangs up.
This issue will be normally resolved after restarting the JBOSS.
We checked the jboss logs and find nothing at the time when issue happen.
There were no logs in JBOSS for this issue and at that particular time.
And I find no error message in jboss logs.
Can anyone help me to know how should I can able to find the root cause for this issue.
Thanks In Advance
Thiyaster
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/530992#530992
16 years
[EJB 3.0 Development] New message: "Re: Lookup to java:comp/EJBContext during postconstruction"
by jaikiran pai
JBoss development,
A new message was posted in the thread "Lookup to java:comp/EJBContext during postconstruction":
http://community.jboss.org/message/530970#530970
Author : jaikiran pai
Profile : http://community.jboss.org/people/jaikiran
Message:
--------------------------------------------------------------
> jaikiran wrote:
> And i don't think it's specific to the EJBContext. I guess it will fail for anything under java:comp for that bean. Can you give a quick try by looking up something else under java:comp from within the @Postconstruct of MDB?
Looked at that stacktrace again and it indeed appears to be specific to java:comp/EJBContext
Caused by: java.lang.NullPointerException
at org.jboss.ejb3.EJBContextFactory.getObjectInstance(EJBContextFactory.java:57)
at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
at org.jnp.interfaces.NamingContext.getObjectInstance(NamingContext.java:1483)
at org.jnp.interfaces.NamingContext.getObjectInstanceWrapFailure(NamingContext.java:1500)
It appears that the AbstractPool invokes the postconstruct after popping the context from the thread local stack:
protected BeanContext<?> create(Class[] initTypes, Object[] initValues)
{
BeanContext ctx;
ctx = createBeanContext();
container.pushContext(ctx);
try
{
container.injectBeanContext(ctx);
ctx.initialiseInterceptorInstances();
}
finally
{
container.popContext();
}
container.invokePostConstruct(ctx, initValues);
// the init method only applies to stateful session beans
++createCount;
return ctx;
}
The fix looks simple enough. I'll file a JIRA for this.
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/530970#530970
16 years