[JBoss Seam] - Re: Seam 2.0 weird exception in org.jboss.seam.Entity
by mgrouch
This is really weird to me as I would have expected class to be
com.test.portal.data.entity.Team
however
getClass() prints its proxy
com.test.portal.data.entity.Team_$$_javassist_9
My entity is detached at that point (it is returned from session EJB under CMT) and it is fully initialized (no lazy load exception occurs when I print its values)
I've tried setting hibernate.bytecode.use_reflection_optimizer=false
to no avail.
Just to explain what happens in my code
public Object getId(Object bean) {
| return Entity.forClass(bean.getClass()).getIdentifier(bean);
| }
getId is called for this entity (Team)
and getIdentifier throws exception
public Object getIdentifier(Object entity)
| {
| if (identifierGetter!=null)
| {
| return Reflections.invokeAndWrap(identifierGetter, entity);
| }
| else if (identifierField!=null)
| {
| return Reflections.getAndWrap(identifierField, entity);
| }
| else
| {
| throw new IllegalStateException("@Id attribute not found for entity class: " + getBeanClass().getName());
| }
| }
My suspicion that is caused by class of object being
com.test.portal.data.entity.Team_$$_javassist_9
instead of real one
com.test.portal.data.entity.Team.
Any ideas?
Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4067491#4067491
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4067491
18Â years, 9Â months
[JBoss Messaging] - Re: Detected failure on control connection
by bob_walker99
Interestingly, the times it does happen my test receiving code are when it pages from disk:
i.e.
1) The queue has a FullSize of 500, Page Size of 250 and DownCacheSize of 250.
2) my test sending client sends 10,000 messages
3) I fire up my test receiving client, and on a couple of occasions when the message received count is divisble by 250, I get a "control connection failure".
Again it's not conclusive, but it's the first pattern I've seen, so I thought I'd better post it.
BTW, I've mentioned elsewhere, but these are relatively large text messages of 1Mb apiece.
Could it be a timeout issue? There is a significant pause as it pages in a batch of messages (which is perfectly acceptable, and to be expected). Does this stop the Bisocket conversation working correctly?
I'll try to package my test code up with the queue specifcations and instructions to reproduce a.s.a.p. and post it on here.
Regards,
Bob
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4067486#4067486
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4067486
18Â years, 9Â months
[JBoss Seam] - Re: <h:selectOneListBox> & <s:convertDateTime>
by pdepaepe
Edit "code" not "quote". :/
I become quite crasy about this issue.
My Entity:
| @Basic @Future @Temporal(TemporalType.TIMESTAMP)
| public Date getStart()
| {
| return start;
| }
|
| public void setStart(Date start)
| {
| this.start = start;
| }
|
The way i test my select list:
| @Transient
| public ArrayList<SelectItem> getAvailableStarts(){
| ArrayList<SelectItem> si = new ArrayList<SelectItem>();
| for(int i = 0; i < 3; i++){
| Date d = new Date()
| si.add(new SelectItem(d, df.format(d)));
| }
| return si;
| }
|
Xhtml :
<h:selectOneListbox value="#{sV.start}">
| <s:convertDateTime pattern="MM/dd/yyyy"/>
| <f:selectItems value="#{sV.availableStarts}" />
| </h:selectOneListbox>
|
Return the three present dates. If i submit the @Future returns well that my date have to be in the future. If i remove the annotation, it returns that the option is not valid.
Any idea please?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4067483#4067483
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4067483
18Â years, 9Â months