[EJB/JBoss] - how to solve the problem:http status 500
by fireflylove
when you swith the webs very quickly ,you will find the error which is called
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
java.lang.NullPointerException
org.compiere.model.MTab.toString(MTab.java:2282)
java.lang.String.valueOf(String.java:2577)
java.lang.StringBuilder.append(StringBuilder.java:116)
org.compiere.www.WWindowStatus.toString(WWindowStatus.java:75)
org.compiere.util.WebEnv.getServletInfo(WebEnv.java:659)
org.compiere.util.WebEnv.addFooter(WebEnv.java:490)
org.compiere.util.WebUtil.createResponse(WebUtil.java:485)
org.compiere.util.WebUtil.createErrorPage(WebUtil.java:109)
org.compiere.www.WWindow.doGet(WWindow.java:143)
javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
org.compiere.www.WFilter.doFilter(WFilter.java:142)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
note The full stack trace of the root cause is available in the Apache Tomcat/5.5.9 logs.
Apache Tomcat/5.5.9
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3964231#3964231
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3964231
19 years, 9 months
[JBoss Seam] - Re: Seam and Hibernate
by raja05
create table Message (id bigint not null auto_increment, read bit not null,
| text text not null, title varchar(100) not null, datetime datetime not null, primary key (id))
The "read bit not null" is the problem. "read" is a function in mysql and it wont let you create a field with that. Try renaming your model's field name to be something like readMessage and it should work . This should effectively translate your SQL to be
create table Message (id bigint not null auto_increment, readMessage bit not null,
| text text not null, title varchar(100) not null, datetime datetime not null, primary key (id))
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3964225#3964225
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3964225
19 years, 9 months
[JBoss Portal] - Portlet Lifecycle, navigation and JSF
by colintoal
Hi All,
I hope this hasn't been answered already - but I'm working with CVS latest of JBP 2.4 on JBoss 4.0.4GA + EJB3 and Seam.
I have configured a MyFaces JSF based portlet on a page and I have some JSF based navigation through some different JSF views within this portlet.
I would like the JSF portlet's current View to be discarded when the user changes Portal pages.
I noticed from the MyFaces Portlet code that the current View is stored in a Portlet Session value, but I don't have a convenient portlet lifecycle event (i.e. - a 'portlet no logner displayed' event) to clear this value or otherwise discard the current view state.
Is there such a Portlet event ? I couldn't find any in JSR-168.
Has anyone encountered a similar problem ?
Thanks in advance
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3964221#3964221
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3964221
19 years, 9 months