[Installation, Configuration & DEPLOYMENT] - JBoss failing to start with Wrong database file version erro
by ejbengine
I'm running jboss-4.0.5.GA and when I try to start the server , I get the following error message :
anonymous wrote : [ServiceController] Problem starting service jboss:service=Hypersonic,database=localDB
| java.sql.SQLException: Wrong database file version
| at org.hsqldb.jdbc.jdbcUtil.sqlException(Unknown Source)
| at org.hsqldb.jdbc.jdbcConnection.(Unknown Source)
| at org.hsqldb.jdbcDriver.getConnection(Unknown Source)
| at org.hsqldb.jdbcDriver.connect(Unknown Source)
| at java.sql.DriverManager.getConnection(Unknown Source)
and
anonymous wrote : 11:10:49,849 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
|
| --- MBeans waiting for other MBeans ---
| ObjectName: jboss:service=Hypersonic,database=localDB
| State: FAILED
| Reason: java.sql.SQLException: Wrong database file version
| Depends On Me:
| jboss.jca:service=ManagedConnectionFactory,name=DefaultDS
|
| --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
| ObjectName: jboss:service=Hypersonic,database=localDB
| State: FAILED
| Reason: java.sql.SQLException: Wrong database file version
| Depends On Me:
| jboss.jca:service=ManagedConnectionFactory,name=DefaultDS
What could be causing this?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4061672#4061672
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4061672
18Â years, 9Â months
[JBoss Seam] - @Factory annotation
by harpritt
Hi
Appologies if i use the wrong terms to descibe my current problem, im new to SEAM and im just about keeping my head above water
I have 4 dropdown menus that i wish to populate with SelectItem Objects.
I decided the best way (limited knowledge) was to use the @Factory annotation to define the 4 components in a Stateful Session.... and then retrieve them using the #{component1} etc in the drop downs.
(my Stateful session bean contains 4 @Factory annotations)
... Problem is that only one of the components contains any data in the scope so the JSF page complains about requiring not null components.
in the end i settled for standard accessors as below. Any advice as to where i was going wrong wiht the @Factory annotation would be very helpful. Many Thanks
@Stateful
| @Name("GsmsCrManager")
|
| @Local(GsmsCrsManager.class)
| @Remote(GsmsCrsManager.class)
|
|
| public class GsmsCrManagerImpl {
|
|
| public SelectItem[] getCrReasons() {
| SelectItem[] crReasons = new SelectItem[7];
| crReasons[0] = new SelectItem("Correction of Error or Omission");
| crReasons[1] = new SelectItem("Clarification of Existing Content");
| crReasons[2] = new SelectItem("New Content");
| crReasons[3] = new SelectItem("Change in Operating Procedures");
| crReasons[4] = new SelectItem("Change in Regulations");
| crReasons[5] = new SelectItem("Change in Equipment");
| crReasons[6] = new SelectItem("Change in Organisation");
| return crReasons;
| }
|
| public SelectItem[] getCrActions() {
| SelectItem[] crActions = new SelectItem[5];
| crActions[0] = new SelectItem("Create a New document");
| crActions[1] = new SelectItem("Edit Existing document");
| crActions[2] = new SelectItem("Delete Existing document");
| crActions[3] = new SelectItem("Move Existing document");
| crActions[4] = new SelectItem("Request an action not covered by the above");
| return crActions;
| }
|
|
| public SelectItem[] getCrAudience() {
| SelectItem[] crAudience = new SelectItem[5];
| crAudience[0] = new SelectItem("Crew");
| crAudience[1] = new SelectItem("sdfsd");
| crAudience[2] = new SelectItem("asda");
| crAudience[3] = new SelectItem("asd
| crAudience[4] = new SelectItem("sdfgdsfg");
| return crAudience;
| }
|
|
| public SelectItem[] getCrAudienceReviewalUrgency() {
| SelectItem[] crAudienceReviewalUrgency = new SelectItem[5];
| crAudienceReviewalUrgency[0] = new SelectItem("High");
| crAudienceReviewalUrgency[1] = new SelectItem("Medium/High");
| crAudienceReviewalUrgency[2] = new SelectItem("Medium");
| crAudienceReviewalUrgency[3] = new SelectItem("Low/Medium");
| crAudienceReviewalUrgency[4] = new SelectItem("Low");
| return crAudienceReviewalUrgency;
| }
|
| @Destroy @Remove
| public void destroy(){
|
| }
| }
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4061669#4061669
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4061669
18Â years, 9Â months
[JBoss Seam] - ClassCastException - FullTextHibernateSessionProxy
by azalea
Hi,
my enviroments:
JBoss AS 4.2.0.GA
Seam 2.0.0.BETA1(CVS)
Seam gen-generated project
When DetachedCriteria#getExecutableCriteria in the following code is invoked,
"java.lang.ClassCastException: org.jboss.seam.persistence.FullTextHibernateSessionProxy" is thrown.
This code worked with Seam1.3.0.ALPHA.
| @Name("criteriaTesting")
| @Scope(ScopeType.CONVERSATION)
| public class CriteriaTestingBean implements Serializable {
| @In
| private EntityManager entityManager;
|
| private Integer minAge;
| private Integer maxAge;
|
| @Out(required=false)
| private List<Member> members;
|
|
| public void setMinAge(Integer minAge) {
| this.minAge = minAge;
| }
|
| public void setMaxAge(Integer maxAge) {
| this.maxAge = maxAge;
| }
|
| public void search() {
| Session session = (Session) entityManager.getDelegate();
|
| DetachedCriteria crit = DetachedCriteria.forClass(Member.class);
|
| if (minAge != null) {
| crit.add( ge("age", minAge) );
| }
| if (maxAge != null) {
| crit.add( le("age", maxAge) );
| }
|
| members = crit.getExecutableCriteria(session).list();
| }
| }
|
The following: stack trace
| [testng] java.lang.ClassCastException: org.jboss.seam.persistence.FullTextHib
| ernateSessionProxy
| [testng] at org.hibernate.criterion.DetachedCriteria.getExecutableCriteri
| a(DetachedCriteria.java:52)
| [testng] at seam.study.criteria.CriteriaTestingBean.search(CriteriaTestin
| gBean.java:66)
| [testng] at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
| [testng] at org.jboss.seam.intercept.RootInvocationContext.proceed(RootIn
| vocationContext.java:31)
| [testng] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamIn
| vocationContext.java:56)
| [testng] at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(Bijecti
| onInterceptor.java:46)
| [testng] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamIn
| vocationContext.java:68)
| [testng] at org.jboss.seam.persistence.ManagedEntityIdentityInterceptor.a
| roundInvoke(ManagedEntityIdentityInterceptor.java:43)
| [testng] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamIn
| vocationContext.java:68)
| [testng] at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(R
| ollbackInterceptor.java:31)
| [testng] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamIn
| vocationContext.java:68)
| [testng] at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(Met
| hodContextInterceptor.java:42)
| [testng] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamIn
| vocationContext.java:68)
| [testng] at org.jboss.seam.intercept.RootInterceptor.invoke(RootIntercept
| or.java:106)
| [testng] at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocat
| ion(JavaBeanInterceptor.java:151)
| [testng] at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanI
| nterceptor.java:87)
| [testng] at seam.study.criteria.CriteriaTestingBean_$$_javassist_2.search
| (CriteriaTestingBean_$$_javassist_2.java)
| [testng] at seam.study.test.criteria.CriteriaTest$1.invokeApplication(Cri
| teriaTest.java:30)
| [testng] at org.jboss.seam.mock.BaseSeamTest$Request.invokeApplicationPha
| se(BaseSeamTest.java:604)
| [testng] at org.jboss.seam.mock.BaseSeamTest$Request.emulateJsfLifecycle(
| BaseSeamTest.java:556)
| [testng] at org.jboss.seam.mock.BaseSeamTest$Request.run(BaseSeamTest.jav
| a:487)
| [testng] at seam.study.test.criteria.CriteriaTest.testSearch(CriteriaTest
| .java:18)
| [testng] ... Removed 26 stack frames
|
The following(not DetachedCriteria version) works fine with Seam 2.0.0.BETA1.
| public void search() {
| Session session = (Session) entityManager.getDelegate();
|
| Criteria crit = session.createCriteria(Member.class);
|
| if (minAge != null) {
| crit.add( ge("age", minAge) );
| }
| if (maxAge != null) {
| crit.add( le("age", maxAge) );
| }
|
| members = crit.list();
| }
|
Do I make a mistake in how to use DetachedCriteria in Seam app?
Thanks in advance.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4061665#4061665
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4061665
18Â years, 9Â months
[JBoss Seam] - Re: Prevent binding of attributes during update phase
by mreuvers
Hi Norman,
The most simple example is where users track which entity they are editing, by using a hidden field containing the id (I've seen it a lot in this forum too).
A little javascript on the onSubmit() on the form would be enough then: e.g:
document.getElementById('formName:id').value='-100' for instance. If the id does not exist it usually becomes an insert, if it exists it becomes an edit of a different entity. Of course depending on the handling code.
But your answer already implied enough, just use a conversation scope and you are safe (no need for the id then). In any other technique (non-jsf) there was the problem I described, and there were solutions for it (e.g. spring had its binding.setAllowedFields(), adf defines which properties can be updated in its bindings xml etc.). So I automatically searched for a solution for a problem that wasn't there. =)
Martijn
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4061664#4061664
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4061664
18Â years, 9Â months
[JBoss jBPM] - Problem sourcing jbpm.jpdl.mysql.sql
by remon_sherin
Hi all,
I have a problem in sourcing jbpm.jpdl.mysql.sql of JBPM 3.2/3.2.1 on mysql 5.
When I try to source it, mysql displays this error
| ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'alter table JBPM_ACTION drop foreign key FK_ACTION_EXPTHDL
| alter table JBPM_ACTI' at line 2
|
I found in previous posts that removing the alter statements could be useful, so, I removed 'em, but still have some errors:
| #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'create table JBPM_BYTEARRAY (ID_ bigint not null auto_increment, NAME_ varchar(2' at line 2
|
Any solution?
Thanks in advance
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4061662#4061662
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4061662
18Â years, 9Â months