[EJB 3.0] - EJB3 for MySQL has Quote and errors.
by don@inpowersoft.com
I'm using jboss-4.0.4.GA with EJB3.
The JPA implementation in Hibernate generates quotes around the table name and cause MySql 5.0 version to error. I'm using mysql-connector-java-3.1.8-bin.jar JDBC driver.
The generated SQL is:
2006-10-23 09:33:52,615 DEBUG [org.hibernate.util.JDBCExceptionReporter] could not execute query [select roles0_.RO_SEQ_ID as RO1_96_, roles0_.code as code96_, roles0_.CREATED_BY as CREATED3_96_, roles0_.CREATED_TIME as CREATED4_96_, roles0_.MODIFIED_BY as MODIFIED5_96_, roles0_.MODIFIED_TIME as MODIFIED6_96_, roles0_.name as name96_, roles0_.version as version96_ from "lsapl_roles" roles0_]
Note if I take out the quote using lsapl_roles instead of "lsapl_roles", the query is fine.
thanks for any help
-dy
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3980130#3980130
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3980130
19 years, 6 months
[Installation, Configuration & Deployment] - Re: Is JBoss AS 4.0.5 official?
by rlgoldman
Thank you for the guidance toward obtaining source, and compiling. I was able to do it sucessfully.
One thing I'm noticing with JBoss 4.0.5.GA, in either the plain or EJB3 flavors, is that when I issue a Ctrl-C shutdown at the console (Win XP), I receive this message at the tail end of the shutdown:
12:54:38,089 INFO [TomcatDeployer] undeploy, ctxPath=/jbossmq-httpil, warUrl=.../deploy-hasingleton/jms/jbossmq-httpil.sar/jbossmq-httpil.war/
#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x7c918fea, pid=2968, tid=1580
#
# Java VM: Java HotSpot(TM) Client VM (1.5.0_09-b01 mixed mode)
# Problematic frame:
# C [ntdll.dll+0x18fea]
#
# An error report file with more information is saved as hs_err_pid2968.log
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
#
12:54:38,160 INFO [DefaultPartition] Closing partition DefaultPartition
Terminate batch job (Y/N)?
Now, this seems to be true only for the "all" configuration ("default" doesn't do this), and it doesn't matter if I'm using the binaries provided on Sourceforge, or compiling my own.
Another note is that I'll also get this message when using the Hotspot -server vm switch.
Final note: I've never seen this in 4.0.4.GA-Patch1 or earlier versions.
Is this anything (or pointing toward anything) I need to be concerned about, in your opinions(s), when considering 4.0.5.GA for use in production?
Thank you very much.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3980123#3980123
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3980123
19 years, 6 months
[JBoss Seam] - Re: JBoss 4.0.5.GA: java.lang.NullPointerException: serialF
by jarkko@jab.fi
After adding
| <listener>
| <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
| </listener>
to web.xml the application works just fine (as far i tested it, couple clicks). But an exception is logged after each click:
20:44:48,109 ERROR [PhaseListenerManager] Exception in PhaseListener RENDER_RESPONSE(6) afterPhase
| java.lang.IllegalStateException: No active event context
| at org.jboss.seam.core.Manager.instance(Manager.java:233)
| at org.jboss.seam.contexts.Lifecycle.flushAndDestroyContexts(Lifecycle.java:367)
| at org.jboss.seam.contexts.Lifecycle.endRequest(Lifecycle.java:259)
| at org.jboss.seam.jsf.SeamPortletPhaseListener.afterPhase(SeamPortletPhaseListener.java:87)
| at org.apache.myfaces.lifecycle.PhaseListenerManager.informPhaseListenersAfter(PhaseListenerManager.java:89)
| at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:391)
| at org.apache.myfaces.portlet.MyFacesGenericPortlet.nonFacesRequest(MyFacesGenericPortlet.java:322)
| at org.apache.myfaces.portlet.MyFacesGenericPortlet.nonFacesRequest(MyFacesGenericPortlet.java:297)
| at org.apache.myfaces.portlet.MyFacesGenericPortlet.facesRender(MyFacesGenericPortlet.java:379)
| at org.apache.myfaces.portlet.MyFacesGenericPortlet.doView(MyFacesGenericPortlet.java:265)
| at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:235)
| at javax.portlet.GenericPortlet.render(GenericPortlet.java:163)
|
Previously having the listener in web.xml caused "everything" to fail, but with the same " No active event context" message.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3980119#3980119
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3980119
19 years, 6 months