[Datasource Configuration] - JBoss EAP 5.1.0 ENC setup failed java.lang.NullPointerException
by Dwai Banerjee
Dwai Banerjee [http://community.jboss.org/people/dbanerj] created the discussion
"JBoss EAP 5.1.0 ENC setup failed java.lang.NullPointerException"
To view the discussion, visit: http://community.jboss.org/message/587822#587822
--------------------------------------------------------------
1. The Deployment error for the war
-------
ERROR [org.jboss.web.tomcat.service.deployers.TomcatDeployment] (ResourceContainer.invoker.nonDaemon-3) ENC setup failed
java.lang.NullPointerException
at org.jboss.injection.PersistenceUnitHandler.getEntityManagerFactory(PersistenceUnitHandler.java:172)
at org.jboss.injection.PersistenceUnitHandler.getFactory(PersistenceUnitHandler.java:163)
at org.jboss.injection.PuEncInjector.inject(PuEncInjector.java:54)
-------
2. sda.war uses r MS SQL Server Datasource on a Windows platform connecting to SQL Server using Integrated Authentication,
The driver sqljdbc4.jar loads the appropriate sqljdbc_auth.dll in the JVM library path from <JBOSS_HOME>\lib
(where JBOSS_HOME=E:\EnterprisePlatform-5.1.0\jboss-eap-5.1\jboss-as)
4. The driver and the Integrated Authentication are loaded fine and the error has to do with the sda-ds.xml or the persistence.xml.
Either specific type-mappings need to be specified in sda-ds.xml or specific jta-datasource properties needs to be added in the persistence.xml (sda.war\WEB-INF\classes\META-INF\persistence.xml) for both servicedeskappGlobalDatasource and the sdaDatasource.
5. It used to work in EAP 4.3.0 CP03 and not on EAP 5.1.0 GA.
Any assistance would be much appreciated.
Rgds
Dwai
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/587822#587822]
Start a new discussion in Datasource Configuration at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 7 months
[JBoss Messaging] - Bridge errors in JBossAS 5.1.0GA startup using MySQL
by Michael Leet
Michael Leet [http://community.jboss.org/people/mrleet] created the discussion
"Bridge errors in JBossAS 5.1.0GA startup using MySQL"
To view the discussion, visit: http://community.jboss.org/message/587809#587809
--------------------------------------------------------------
Hello,
I have been troubleshooting an apparent issue with JBoss AS 5.1.0GA using JBoss Messaging 1.4.3.GA configured to use MySQL for message persistence. The issue is straightforward; I configure JBoss AS to use MySQL for database persistence switching out the deploy/hsqldb-ds.xml and messaging/hsqldb-persistence-service.xml for mysql-ds.xml and mysql-persistence-service.xml respectively.
I made the following updates to mysql-ds.xml;
<connection-url>jdbc:mysql://localhost:3306/jboss</connection-url>
<transaction-isolation>TRANSACTION_READ_COMMITTED</transaction-isolation>
I made the following updates to mysql-persistence-service.xml;
<!--<depends optional-attribute-name="ChannelFactoryName">jboss.jgroups:service=ChannelFactory</depends>-->
<attribute name="ChannelFactoryName">jboss.jgroups:service=ChannelFactory</attribute>
based on recommendations found in the messaging forums. I have attached these files as well as the topic and bridge configuration files I used.
I deployed mysql-ds.xml to $JBOSS_HOME/server/default/deploy
I deployed mysql-persistence-service.xml to $JBOSS_HOME/server/default/deploy/messaging
I deployed test-destinations-service.xml to $JBOSS_HOME/server/default/deploy
I deployed test-bridge-service.xml to $JBOSS_HOME/server/default/deploy
All files were created using the templates in $JBOSS_HOME/docs/examples
The problem, although not ultimately an error, is that JBoss loads the bridge service before loading the messaging service and tries to bridge topics that do not exist yet. As you can see in the attached log file JBoss starts the bridge service before starting the messaging service. I have configured exactly the same setup using both the default database, hypersonic, as well as postgresql and JBoss starts the messaging service appropriately, creating the topics, then the connection factories, then the bridging service starts up bridging the now valid topics.
I am trying to clean up the JBoss Startup and although the bridge service does bridge the topics after the default 30000ms timeout, this behaviour is unwanted. It must somehow be connected to the mysql-persistence-service.xml file but I have been unable to track down the exact issue.
I am working in a Windows XP Service Pack 2 environment using Java 1.6.0_17, MySQL 5.5.9, mysql-connector-java-5.1.15-bin.jar (deployed to server/default/lib). I start JBossAS using run.bat -b 0.0.0.0.
Thanks and look forward to any responses
mj
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/587809#587809]
Start a new discussion in JBoss Messaging at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 7 months
[jBPM] - Error Deploying jpdl process
by Jim Hill
Jim Hill [http://community.jboss.org/people/jdh] created the discussion
"Error Deploying jpdl process"
To view the discussion, visit: http://community.jboss.org/message/587801#587801
--------------------------------------------------------------
I am getting an error when I try to deploy my jpdl.xml process. The error references transitions to="..." Does anyone have a suggestion as to what this might be complaining about? Here is the error:
BUILD FAILED
org.jbpm.api.JbpmException:
error: attribute <transition to="..." is required
at org.jbpm.pvm.internal.xml.ProblemList.getJbpmException(ProblemList.java:175)
at org.jbpm.pvm.internal.xml.ProblemList.getJbpmException(ProblemList.java:141)
...
I have verified that every transition points to a valid target. I am using groups but currently do not use timeouts. I have decisions with transitions but made sure there is always a default option. Any ideas would be greatly appreciated. If there is a better way to do this I'm open to that too.
Jim
<group name="SendTHGroup" g="130,240,90,50">
<start>
<transition name="to WaitForTH" to="WaitForTH" g="-78,-18" />
</start>
<custom name="WaitForTH" g="132,242,92,52"
class="mil.army.sc4.bpm.WaitForMessageActivity">
<transition name="to DidUserSendTH" to="DidUserSendTH" g="-78,-18" />
</custom>
<decision name="DidUserSendTH">
<transition name="TH Sent" to="LaunchEDForm" g="-78,-18">
<condition expr="#{className=="THObject"}" />
</transition>
<!-- If we did not receive the TH object, keep waiting -->
<transition name="Keep waiting" to="WaitForTH" g="-78,-18" />
</decision>
<!-- transition name="timeout1" to="NotifyUserOfTimeout" g="-43,-16">
<timer duedate="5 minutes" />
</transition -->
</group>
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/587801#587801]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 7 months
[jBPM] - Re: How I can call jBPM in my application?
by Jim Hill
Jim Hill [http://community.jboss.org/people/jdh] created the discussion
"Re: How I can call jBPM in my application?"
To view the discussion, visit: http://community.jboss.org/message/587796#587796
--------------------------------------------------------------
This is a wide open question and I am sure there are a number of ways to approach this. I am trying to incorporate jBPM into our application with Mule 3.1. My project mostly deals with messaging so I am receving messages through Mule and I built a selective consumer that basically manages a process engine. This runs as a singleton to prevent multiple process engines from getting started. The selective consumer pulls the required info out of the message and determines if there is a process running that's interested in this message. If so it hands the message off to the process like this:
processInstance.findActiveExecutionIn(activityName);
Map<String, MyObject> parameters =**new** HashMap<String,MyObject>();
parameters.put("message",msg);
executionService.signalExecutionById(executionId, parameters);
In essence, the selective consumer starts and stops the process so it has the information I need like the processID. I hope this is helpful, if nothing else it is one approach you could take. Let me know if you have any questions. I'm open to suggestions too.
Jim
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/587796#587796]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 7 months
[EJB3] - Hibernate HQL optimization
by csab79
csab79 [http://community.jboss.org/people/csab79] created the discussion
"Hibernate HQL optimization"
To view the discussion, visit: http://community.jboss.org/message/585768#585768
--------------------------------------------------------------
hello Hibernate gurus!
I would like to improve my app performance through HQL optimzation.
I have a small example to show my problem:
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
" http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">
<hibernate-mapping>
<class name="hibernate.classes.Peoples" table="PEOPLES" catalog="Dev1">
<id name="PId" type="int">
<column name="P_ID" />
<generator class="identity"/>
</id>
<property name="pfirstname" type="string">
<column name="p_firstname" />
</property>
<property name="plastname" type="string">
<column name="p_lastname" />
</property>
<property name="phobby" type="string">
<column name="p_hobby" />
</property>
<many-to-one name="address" class="hibernate.classes.Address" fetch="join" insert="false" update="false">
<column name="p_adress" not-null="true"/>
</many-to-one>
</class>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
" http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">
<hibernate-mapping>
<class name="hibernate.classes.Address" table="ADDRESS" catalog="Dev1">
<id name="AId" type="int">
<column name="A_ID" />
<generator class="identity"/>
</id>
<property name="street" type="string">
<column name="a_street" />
</property>
<property name="house" type="string">
<column name="a_house" />
</property>
<property name="district" type="string">
<column name="a_district" />
</property>
</class>
I'd like to display rows from people and also show the appropriate person's address (foreign key bind)
When i use HQL join like this way:
session.createQuery("from Peoples inner join Address")
I suppose in this case .tolist() does not work properly becouse there are additional join properties.
When i use simple ("from Peopes") HQL query together with many-to-one default lazy="proxy" the result
will be terrible slow.
Hibernate try to gets seperatly every row from Address with foreign key selects. (May is it the N+1 Select problem?)
This is an impact when i have many rows in my table.
What is the best practice when i always want to display this cross joined datas?
(pfirstname, plastname, phobby, street, house)
Should i use iterator and manually place each property from the query result?
Thanks in advance!
Sorry for the dummy question! :S
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/585768#585768]
Start a new discussion in EJB3 at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 7 months