Re: [jboss-user] [JBoss Tools] - JBoss Source Lookup
by Lukáš Fryč
Lukáš Fryč [https://community.jboss.org/people/lfryc] commented on
"JBoss Source Lookup"
To view all comments on this blog post, visit: https://community.jboss.org/community/tools/blog/2012/01/24/jboss-source-...
--------------------------------------------------
Hello Snjezana, this is really great feature.
1) However I have ran into issues when debugging JSF: when attached sources, plugin has looked up JSF API 1.2, but my project is using JSF API 2.1. I guess it's because AS 7.1 bundles both, JSF 1.2 and JSF 2.x and decides in runtime what implementation will be used. Obviously, class javax.faces.component.UIComponent is part of both JARs (JSF 1.2 and 2.1).
2) I'm also having issues with avoiding my debugger to load JSF dependency (although it is in provided scope) from my Maven Dependencies instead of the JBoss AS Source Lookup. How can I efficiently setup the priority?
3) Does the plugin load the implementations used in JBoss AS? I can see all the JavaEE APIs listed in list of dependencies of JBoss 7.1 Runtime, but no implementations.
--------------------------------------------------
13 years, 11 months
[Datasource Configuration] - JBOSS AS 7.1 Datasource Error please help me
by munkhtuvshin gogo
munkhtuvshin gogo [https://community.jboss.org/people/spawn_gg] created the document:
"JBOSS AS 7.1 Datasource Error please help me"
To view the document, visit: https://community.jboss.org/docs/DOC-18170
--------------------------------------------------------------
hi i'm new baby for Jboss:D
this error few day my *headache*.
javax.persistence.PersistenceException: Exception [EclipseLink-4003] (Eclipse Persistence Services - 2.3.1.v20111018-r10243): org.eclipse.persistence.exceptions.DatabaseException
Exception Description: Configuration error. Class [com.microsoft.jdbc.sqlserver.SQLServerDriver] not found.
my standalone.xml
<?xml version='1.0' encoding='UTF-8'?>
<server xmlns="urn:jboss:domain:1.1">
<extensions>
<extension module="org.jboss.as.clustering.infinispan"/>
<extension module="org.jboss.as.configadmin"/>
<extension module="org.jboss.as.connector"/>
<extension module="org.jboss.as.deployment-scanner"/>
<extension module="org.jboss.as.ee"/>
<extension module="org.jboss.as.ejb3"/>
<extension module="org.jboss.as.jaxrs"/>
<extension module="org.jboss.as.jdr"/>
<extension module="org.jboss.as.jmx"/>
<extension module="org.jboss.as.jpa"/>
<extension module="org.jboss.as.logging"/>
<extension module="org.jboss.as.mail"/>
<extension module="org.jboss.as.naming"/>
<extension module="org.jboss.as.osgi"/>
<extension module="org.jboss.as.pojo"/>
<extension module="org.jboss.as.remoting"/>
<extension module="org.jboss.as.sar"/>
<extension module="org.jboss.as.security"/>
<extension module="org.jboss.as.threads"/>
<extension module="org.jboss.as.transactions"/>
<extension module="org.jboss.as.web"/>
<extension module="org.jboss.as.webservices"/>
<extension module="org.jboss.as.weld"/>
</extensions>
<management>
<security-realms>
<security-realm name="ManagementRealm">
<authentication>
<properties path="mgmt-users.properties" relative-to="jboss.server.config.dir"/>
</authentication>
</security-realm>
<security-realm name="ApplicationRealm">
<authentication>
<properties path="application-users.properties" relative-to="jboss.server.config.dir"/>
</authentication>
</security-realm>
</security-realms>
<management-interfaces>
<native-interface security-realm="ManagementRealm">
<socket-binding native="management-native"/>
</native-interface>
<http-interface security-realm="ManagementRealm">
<socket-binding http="management-http"/>
</http-interface>
</management-interfaces>
</management>
<profile>
<subsystem xmlns="urn:jboss:domain:logging:1.1">
<console-handler name="CONSOLE">
<level name="INFO"/>
<formatter>
<pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/>
</formatter>
</console-handler>
<periodic-rotating-file-handler name="FILE">
<formatter>
<pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/>
</formatter>
<file relative-to="jboss.server.log.dir" path="server.log"/>
<suffix value=".yyyy-MM-dd"/>
<append value="true"/>
</periodic-rotating-file-handler>
<logger category="com.arjuna">
<level name="WARN"/>
</logger>
<logger category="org.apache.tomcat.util.modeler">
<level name="WARN"/>
</logger>
<logger category="sun.rmi">
<level name="WARN"/>
</logger>
<logger category="jacorb">
<level name="WARN"/>
</logger>
<logger category="jacorb.config">
<level name="ERROR"/>
</logger>
<root-logger>
<level name="INFO"/>
<handlers>
<handler name="CONSOLE"/>
<handler name="FILE"/>
</handlers>
</root-logger>
</subsystem>
<subsystem xmlns="urn:jboss:domain:configadmin:1.0"/>
<subsystem xmlns="urn:jboss:domain:datasources:1.0">
<datasources>
<datasource jndi-name="java:jboss/datasources/ExampleDS" pool-name="ExampleDS" enabled="true" use-java-context="true">
<connection-url>jdbc:h2:mem:test;DB_CLOSE_DELAY=-1</connection-url>
<driver>h2</driver>
<security>
<user-name>sa</user-name>
<password>sa</password>
</security>
</datasource>
<datasource jta="false" jndi-name="java:/testMysql" pool-name="Iserver-mysql" enabled="true" use-ccm="false">
<connection-url>jdbc:mysql://192.168.100.2:3306/SystemInfo</connection-url>
<driver-class>com.mysql.jdbc.Driver</driver-class>
<driver>mysql</driver>
<security>
<user-name>root</user-name>
<password>yDzqgk4odmL8s41$AjEL0g#yAMV6l_</password>
</security>
<validation>
<validate-on-match>false</validate-on-match>
<background-validation>false</background-validation>
<background-validation-millis>0</background-validation-millis>
</validation>
<statement>
<prepared-statement-cache-size>0</prepared-statement-cache-size>
<share-prepared-statements>false</share-prepared-statements>
</statement>
</datasource>
<datasource jta="true" jndi-name="java:/test" pool-name="school" enabled="true" use-ccm="false">
<connection-url>jdbc:jtds://192.168.100.5:1433/ADiamond;tds=8.0;lastupdatecount=true;tds=8.0;lastupdatecount=true;prepareSQL=0</connection-url></connection-url>
<driver-class>com.microsoft.sqlserver.jdbc.SQLServerDriver</driver-class>
<driver>mssql</driver>
<transaction-isolation>TRANSACTION_NONE</transaction-isolation>
<security>
<user-name>sa</user-name>
<password>diamond</password>
</security>
<validation>
<validate-on-match>false</validate-on-match>
<background-validation>false</background-validation>
<background-validation-millis>0</background-validation-millis>
</validation>
<statement>
<prepared-statement-cache-size>0</prepared-statement-cache-size>
<share-prepared-statements>false</share-prepared-statements>
</statement>
</datasource>
<datasource jta="true" jndi-name="java:/jon" pool-name="jon" enabled="true" use-ccm="false">
<connection-url>jdbc:jtds:sqlserver://192.168.100.5:1433/ADiamond</connection-url>
<driver-class>com.microsoft.sqlserver.jdbc.SQLServerDriver</driver-class>
<driver>sqljdbc4.jar</driver>
<transaction-isolation>TRANSACTION_READ_COMMITTED</transaction-isolation>
<security>
<user-name>sa</user-name>
<password>diamond</password>
</security>
<validation>
<validate-on-match>false</validate-on-match>
<background-validation>false</background-validation>
<background-validation-millis>0</background-validation-millis>
</validation>
<statement>
<prepared-statement-cache-size>0</prepared-statement-cache-size>
<share-prepared-statements>false</share-prepared-statements>
</statement>
</datasource>
<drivers>
<driver name="h2" module="com.h2database.h2">
<xa-datasource-class>org.h2.jdbcx.JdbcDataSource</xa-datasource-class>
</driver>
<driver name="oracle" module="com.oracle.ojdbc6">
<xa-datasource-class>oracle.jdbc.OracleDriver</xa-datasource-class>
</driver>
<driver name="mysql" module="com.mysql.jdbc">
<xa-datasource-class>com.mysql.jdbc.jdbc2.optional.MysqlXADataSource</xa-datasource-class>
</driver>
<driver name="MSSQLXA" module="com.microsoft.sqlserver">
<xa-datasource-class>com.microsoft.sqlserver.jdbc.SQLServerXADataSource</xa-datasource-class>
</driver>
<driver name="mssql" module="net.sourceforge.jtds">
<xa-datasource-class>net.sourceforge.jtds.jdbcx.JtdsDataSource</xa-datasource-class>
</driver>
</drivers>
</datasources>
</subsystem>
<subsystem xmlns="urn:jboss:domain:deployment-scanner:1.1">
<deployment-scanner path="deployments" relative-to="jboss.server.base.dir" scan-interval="5000"/>
</subsystem>
<subsystem xmlns="urn:jboss:domain:ee:1.0"/>
<subsystem xmlns="urn:jboss:domain:ejb3:1.2">
<session-bean>
<stateless>
<bean-instance-pool-ref pool-name="slsb-strict-max-pool"/>
</stateless>
<stateful default-access-timeout="5000" cache-ref="simple"/>
<singleton default-access-timeout="5000"/>
</session-bean>
<mdb>
<resource-adapter-ref resource-adapter-name="hornetq-ra"/>
<bean-instance-pool-ref pool-name="mdb-strict-max-pool"/>
</mdb>
<pools>
<bean-instance-pools>
<strict-max-pool name="slsb-strict-max-pool" max-pool-size="20" instance-acquisition-timeout="5" instance-acquisition-timeout-unit="MINUTES"/>
<strict-max-pool name="mdb-strict-max-pool" max-pool-size="20" instance-acquisition-timeout="5" instance-acquisition-timeout-unit="MINUTES"/>
</bean-instance-pools>
</pools>
<caches>
<cache name="simple" aliases="NoPassivationCache"/>
<cache name="passivating" passivation-store-ref="file" aliases="SimpleStatefulCache"/>
</caches>
<passivation-stores>
<file-passivation-store name="file"/>
</passivation-stores>
<async thread-pool-name="default"/>
<timer-service thread-pool-name="default">
<data-store path="timer-service-data" relative-to="jboss.server.data.dir"/>
</timer-service>
<remote connector-ref="remoting-connector" thread-pool-name="default"/>
<thread-pools>
<thread-pool name="default">
<max-threads count="10"/>
<keepalive-time time="100" unit="milliseconds"/>
</thread-pool>
</thread-pools>
</subsystem>
<subsystem xmlns="urn:jboss:domain:infinispan:1.1" default-cache-container="hibernate">
<cache-container name="hibernate" default-cache="local-query">
<local-cache name="entity">
<transaction mode="NON_XA"/>
<eviction strategy="LRU" max-entries="10000"/>
<expiration max-idle="100000"/>
</local-cache>
<local-cache name="local-query">
<transaction mode="NONE"/>
<eviction strategy="LRU" max-entries="10000"/>
<expiration max-idle="100000"/>
</local-cache>
<local-cache name="timestamps">
<transaction mode="NONE"/>
<eviction strategy="NONE"/>
</local-cache>
</cache-container>
</subsystem>
<subsystem xmlns="urn:jboss:domain:jaxrs:1.0"/>
<subsystem xmlns="urn:jboss:domain:jca:1.1">
<archive-validation enabled="true" fail-on-error="true" fail-on-warn="false"/>
<bean-validation enabled="false"/>
<default-workmanager>
<short-running-threads>
<core-threads count="50"/>
<queue-length count="50"/>
<max-threads count="50"/>
<keepalive-time time="10" unit="seconds"/>
</short-running-threads>
<long-running-threads>
<core-threads count="50"/>
<queue-length count="50"/>
<max-threads count="50"/>
<keepalive-time time="10" unit="seconds"/>
</long-running-threads>
</default-workmanager>
</subsystem>
<subsystem xmlns="urn:jboss:domain:jdr:1.0"/>
<subsystem xmlns="urn:jboss:domain:jmx:1.1">
<show-model value="true"/>
<remoting-connector/>
</subsystem>
<subsystem xmlns="urn:jboss:domain:jpa:1.0">
<jpa default-datasource=""/>
</subsystem>
<subsystem xmlns="urn:jboss:domain:mail:1.0">
<mail-session jndi-name="java:jboss/mail/Default">
<smtp-server outbound-socket-binding-ref="mail-smtp"/>
</mail-session>
</subsystem>
<subsystem xmlns="urn:jboss:domain:naming:1.1"/>
<subsystem xmlns="urn:jboss:domain:osgi:1.2" activation="lazy">
<properties>
<property name="org.osgi.framework.startlevel.beginning">
1
</property>
</properties>
<capabilities>
<capability name="javax.servlet.api:v25"/>
<capability name="javax.transaction.api"/>
<capability name="org.apache.felix.log" startlevel="1"/>
<capability name="org.jboss.osgi.logging" startlevel="1"/>
<capability name="org.apache.felix.configadmin" startlevel="1"/>
<capability name="org.jboss.as.osgi.configadmin" startlevel="1"/>
</capabilities>
</subsystem>
<subsystem xmlns="urn:jboss:domain:pojo:1.0"/>
<subsystem xmlns="urn:jboss:domain:remoting:1.1">
<connector name="remoting-connector" socket-binding="remoting" security-realm="ApplicationRealm"/>
</subsystem>
<subsystem xmlns="urn:jboss:domain:resource-adapters:1.0"/>
<subsystem xmlns="urn:jboss:domain:sar:1.0"/>
<subsystem xmlns="urn:jboss:domain:security:1.1">
<security-domains>
<security-domain name="other" cache-type="default">
<authentication>
<login-module code="Remoting" flag="optional">
<module-option name="password-stacking" value="useFirstPass"/>
</login-module>
<login-module code="RealmUsersRoles" flag="required">
<module-option name="usersProperties" value="${jboss.server.config.dir}/application-users.properties"/>
<module-option name="rolesProperties" value="${jboss.server.config.dir}/application-roles.properties"/>
<module-option name="realm" value="ApplicationRealm"/>
<module-option name="password-stacking" value="useFirstPass"/>
</login-module>
</authentication>
</security-domain>
<security-domain name="jboss-web-policy" cache-type="default">
<authorization>
<policy-module code="Delegating" flag="required"/>
</authorization>
</security-domain>
<security-domain name="jboss-ejb-policy" cache-type="default">
<authorization>
<policy-module code="Delegating" flag="required"/>
</authorization>
</security-domain>
</security-domains>
</subsystem>
<subsystem xmlns="urn:jboss:domain:threads:1.1"/>
<subsystem xmlns="urn:jboss:domain:transactions:1.1">
<core-environment>
<process-id>
<uuid/>
</process-id>
</core-environment>
<recovery-environment socket-binding="txn-recovery-environment" status-socket-binding="txn-status-manager"/>
<coordinator-environment default-timeout="300"/>
</subsystem>
<subsystem xmlns="urn:jboss:domain:web:1.1" native="false" default-virtual-server="default-host">
<connector name="http" protocol="HTTP/1.1" scheme="http" socket-binding="http"/>
<virtual-server name="default-host" enable-welcome-root="true">
<alias name="localhost"/>
<alias name="example.com"/>
</virtual-server>
</subsystem>
<subsystem xmlns="urn:jboss:domain:webservices:1.1">
<modify-wsdl-address>true</modify-wsdl-address>
<wsdl-host>${jboss.bind.address:192.168.100.24}</wsdl-host>
<endpoint-config name="Standard-Endpoint-Config"/>
<endpoint-config name="Recording-Endpoint-Config">
<pre-handler-chain name="recording-handlers" protocol-bindings="##SOAP11_HTTP ##SOAP11_HTTP_MTOM ##SOAP12_HTTP ##SOAP12_HTTP_MTOM">
<handler name="RecordingHandler" class="org.jboss.ws.common.invocation.RecordingServerHandler"/>
</pre-handler-chain>
</endpoint-config>
</subsystem>
<subsystem xmlns="urn:jboss:domain:weld:1.0"/>
</profile>
<interfaces>
<interface name="management">
<inet-address value="${jboss.bind.address.management:192.168.100.24}"/>
</interface>
<interface name="public">
<inet-address value="${jboss.bind.address:192.168.100.24}"/>
</interface>
</interfaces>
<socket-binding-group name="standard-sockets" default-interface="public" port-offset="${jboss.socket.binding.port-offset:0}">
<socket-binding name="http" port="8080"/>
<socket-binding name="https" port="8443"/>
<socket-binding name="management-native" interface="management" port="${jboss.management.native.port:9999}"/>
<socket-binding name="management-http" interface="management" port="${jboss.management.http.port:9990}"/>
<socket-binding name="management-https" interface="management" port="${jboss.management.https.port:9443}"/>
<socket-binding name="osgi-http" interface="management" port="8090"/>
<socket-binding name="remoting" port="4447"/>
<socket-binding name="txn-recovery-environment" port="4712"/>
<socket-binding name="txn-status-manager" port="4713"/>
<outbound-socket-binding name="mail-smtp">
<remote-destination host="localhost" port="25"/>
</outbound-socket-binding>
</socket-binding-group>
<deployments>
<deployment name="School.ear" runtime-name="School.ear">
<content sha1="5c2457d82b5361387cc2444f1326a6e9ee3b558e"/>
</deployment>
</deployments>
</server>
And my Persistence.xml
<?xml version="1.0" encoding="windows-1252" ?>
<persistence xmlns=" http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence"
xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=" http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"
version="2.0">
<persistence-unit name="Entities" transaction-type="RESOURCE_LOCAL">
<provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
<class>entities.DataType</class>
<class>entities.DataTypeUtil</class>
<class>entities.DataTypeCalendar</class>
<class>entities.Student</class>
<class>entities.Form</class>
<class>entities.FormRole</class>
<class>entities.FormDetail</class>
<class>entities.FormModule</class>
<class>entities.User</class>
<class>entities.UserGroup</class>
<class>entities.UserGroupFormRole</class>
<class>entities.Child</class>
<class>entities.Parent</class>
<class>entities.ChildTest</class>
<class>entities.ParentTest</class><properties>
<property name="eclipselink.ddl-generation"
value="drop-and-create-tables"/>
<property name="eclipselink.ddl-generation.output-mode" value="database"/>
<property name="javax.persistence.jdbc.driver"
value="com.microsoft.jdbc.sqlserver.SQLServerDriver"/>
<property name="javax.persistence.jdbc.url"
value="jdbc:sqlserver://192.168.100.5:1433;databaseName=ADiamond;"/>
<property name="javax.persistence.jdbc.user" value="sa"/>
<property name="javax.persistence.jdbc.password"
value="diamond"/>
<property name="eclipselink.jdbc.exclusive-connection.mode"
value="Transactional"/>
<property name="eclipselink.cache.shared.default" value="false"/>
<property name="javax.persistence.cache.storeMode" value="REFRESH"/>
</properties>
</persistence-unit>
<persistence-unit name="EntitiesOracleJndi" transaction-type="RESOURCE_LOCAL">
<provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
<class>entities.DataType</class>
<class>entities.DataTypeUtil</class>
<class>entities.DataTypeCalendar</class>
<class>entities.Student</class>
<class>entities.Form</class>
<class>entities.FormRole</class>
<class>entities.FormDetail</class>
<class>entities.FormModule</class>
<class>entities.User</class>
<class>entities.UserGroup</class>
<class>entities.UserGroupFormRole</class>
<class>entities.Child</class>
<class>entities.Parent</class>
<class>entities.ChildTest</class>
<class>entities.ParentTest</class>
<properties>
<property name="eclipselink.jdbc.exclusive-connection.mode"
value="Transactional"/>
<property name="eclipselink.cache.shared.default" value="false"/>
<property name="javax.persistence.cache.storeMode" value="REFRESH"/>
<property name="javax.persistence.jdbc.driver"
value="com.microsoft.jdbc.sqlserver.SQLServerDriver"/>
<property name="javax.persistence.jdbc.url"
value="jdbc:microsoft:sqlserver://192.168.100.5:1433;databaseName=ADiamond;"/>
<property name="javax.persistence.jdbc.user" value="sa"/>
<property name="javax.persistence.jdbc.password"
value="diamond"/>
<property name="eclipselink.target-server" value="JBoss"/>
<property name="eclipselink.ddl-generation" value="create-tables"/>
<property name="eclipselink.ddl-generation.output-mode" value="database"/>
</properties>
</persistence-unit>
</persistence>
--------------------------------------------------------------
Comment by going to Community
[https://community.jboss.org/docs/DOC-18170]
Create a new document in Datasource Configuration at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=102&c...]
13 years, 11 months
[jBPM] - jBPM newbie question: Script not executing
by Ellie Arro
Ellie Arro [https://community.jboss.org/people/new_berlin] created the discussion
"jBPM newbie question: Script not executing"
To view the discussion, visit: https://community.jboss.org/message/732792#732792
--------------------------------------------------------------
Hello,
I am trying to create a basic Hello example using only Designer/Guvnor. The example process is: Start-->Script Task-->End. I set the script property to System.out.println("Hello jBPM");
The package gets validated and built without errors. I can see the process listed in the jBPM console. However, the instance is not getting loaded successfully.
The jBPM console shows: *[DEBUG] GET: http://localhost:8080/gwt-console-server/rs/process/definition/Hello/inst... http://localhost:8080/gwt-console-server/rs/process/definition/Hello/inst...
The View source shows the following (I bolded the line below):
| | <bpmn2:process id="Hello" drools:packageName="defaultPackage" name="Hello" isExecutable="true"> |
| | | <bpmn2:startEvent id="_76485EF6-5D06-450C-93A7-4837D93947BE" drools:bgcolor="#ffffff" name=""> |
| | | <bpmn2:outgoing>_F9673937-BB10-495D-9E7F-69C152957175</bpmn2:outgoing> |
| | | </bpmn2:startEvent> |
| | | <bpmn2:endEvent id="_B056BC69-D311-480D-8635-F64B44862F95" drools:bgcolor="#ffffff" name=""> |
| | | <bpmn2:incoming>_E7A54FE0-64F3-41FD-90FA-DC646A08CF81</bpmn2:incoming> |
| | | <bpmn2:terminateEventDefinition id="_l3vnsZDREeGwFaj059Om2g"/> |
| | | </bpmn2:endEvent> |
| | | <bpmn2:sequenceFlow id="_F9673937-BB10-495D-9E7F-69C152957175" sourceRef="_76485EF6-5D06-450C-93A7-4837D93947BE" targetRef="_3A86C30C-08C0-456D-B638-231E715615B2"/> |
| | | <bpmn2:sequenceFlow id="_E7A54FE0-64F3-41FD-90FA-DC646A08CF81" sourceRef="_3A86C30C-08C0-456D-B638-231E715615B2" targetRef="_B056BC69-D311-480D-8635-F64B44862F95"/> |
| | | <bpmn2:scriptTask id="_3A86C30C-08C0-456D-B638-231E715615B2" drools:bgcolor="#b1c2d6" name="MyTask" scriptFormat=""> |
| | | <bpmn2:incoming>_F9673937-BB10-495D-9E7F-69C152957175</bpmn2:incoming> |
| | | <bpmn2:outgoing>_E7A54FE0-64F3-41FD-90FA-DC646A08CF81</bpmn2:outgoing> |
| | | *<bpmn2:script>System.out.println("Hello jBPM");</bpmn2:script>* |
| | | </bpmn2:scriptTask> |
| | | </bpmn2:process> |
What am I doing wrong?
Thanks for the help in advance.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/732792#732792]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 11 months
[jBPM] - Null pointer at the XOR gateway
by ramkijbpm
ramkijbpm [https://community.jboss.org/people/ramkijbpm] created the discussion
"Null pointer at the XOR gateway"
To view the discussion, visit: https://community.jboss.org/message/732784#732784
--------------------------------------------------------------
Hi I receive the following error at the XOR gateway, though the Task flows to the next correctly. Could you please tell me what is going wrong here,
Hibernate: select subtaskstr0_.Task_Id as Task4_1_, subtaskstr0_.id as id1_, subtaskstr0_.id as id208_0_, subtaskstr0_.name as name208_0_, subtaskstr0_.DTYPE as DTYPE208_0_ from SubTasksStrategy subtaskstr0_ where subtaskstr0_.Task_Id=?
487282 27/04 17:33:38,119[NioProcessor-2] INFO filter.logging.LoggingFilter.info - SENT: HeapBuffer[pos=0 lim=0 cap=0: empty]
Hibernate: select workitemin0_.workItemId as workItemId144_0_, workitemin0_.creationDate as creation2_144_0_, workitemin0_.name as name144_0_, workitemin0_.processInstanceId as processI4_144_0_, workitemin0_.state as state144_0_, workitemin0_.OPTLOCK as OPTLOCK144_0_, workitemin0_.workItemByteArray as workItem7_144_0_ from WorkItemInfo workitemin0_ where workitemin0_.workItemId=?
487563 27/04 17:33:38,400[Thread-36] ERROR drools.persistence.SingleSessionCommandService.error - Could not commit session
java.lang.RuntimeException: Exception when trying to evaluate constraint Completed in split Gateway
at org.jbpm.workflow.instance.node.SplitInstance.internalTrigger(SplitInstance.java:79)
at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:122)
at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerConnection(NodeInstanceImpl.java:185)
at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerCompleted(NodeInstanceImpl.java:150)
at org.jbpm.workflow.instance.impl.ExtendedNodeInstanceImpl.triggerCompleted(ExtendedNodeInstanceImpl.java:47)
at org.jbpm.workflow.instance.node.StateBasedNodeInstance.triggerCompleted(StateBasedNodeInstance.java:162)
at org.jbpm.workflow.instance.node.StateBasedNodeInstance.triggerCompleted(StateBasedNodeInstance.java:143)
at org.jbpm.workflow.instance.node.WorkItemNodeInstance.triggerCompleted(WorkItemNodeInstance.java:239)
at org.jbpm.workflow.instance.node.HumanTaskNodeInstance.triggerCompleted(HumanTaskNodeInstance.java:90)
at org.jbpm.workflow.instance.node.WorkItemNodeInstance.workItemAborted(WorkItemNodeInstance.java:293)
at org.jbpm.workflow.instance.node.WorkItemNodeInstance.signalEvent(WorkItemNodeInstance.java:279)
at org.jbpm.workflow.instance.impl.WorkflowProcessInstanceImpl.signalEvent(WorkflowProcessInstanceImpl.java:326)
at org.drools.persistence.jpa.processinstance.JPAWorkItemManager.abortWorkItem(JPAWorkItemManager.java:152)
at org.drools.command.runtime.process.AbortWorkItemCommand.execute(AbortWorkItemCommand.java:56)
at org.drools.command.runtime.process.AbortWorkItemCommand.execute(AbortWorkItemCommand.java:29)
at org.drools.command.impl.DefaultCommandService.execute(DefaultCommandService.java:36)
at org.drools.persistence.SingleSessionCommandService.execute(SingleSessionCommandService.java:345)
at org.drools.command.impl.CommandBasedStatefulKnowledgeSession$1.abortWorkItem(CommandBasedStatefulKnowledgeSession.java:156)
at org.jbpm.process.workitem.wsht.SyncWSHumanTaskHandler$TaskCompletedHandler.handleCompletedTask(SyncWSHumanTaskHandler.java:328)
at org.jbpm.process.workitem.wsht.SyncWSHumanTaskHandler$TaskCompletedHandler$1.run(SyncWSHumanTaskHandler.java:273)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.RuntimeException: unable to execute ReturnValueEvaluator
at org.jbpm.process.instance.impl.ReturnValueConstraintEvaluator.evaluate(ReturnValueConstraintEvaluator.java:130)
at org.jbpm.workflow.instance.node.SplitInstance.internalTrigger(SplitInstance.java:72)
... 20 more
Caused by: java.lang.NullPointerException
at defaultPackage.Process_defaultPackage_WFDemo.returnValueEvaluator7(Process_defaultPackage_WFDemo.java:64)
at defaultPackage.Process_defaultPackage_WFDemoReturnValueEvaluator7Invoker.evaluate(Process_defaultPackage_WFDemoReturnValueEvaluator7Invoker.java:15)
at org.jbpm.process.instance.impl.ReturnValueConstraintEvaluator.evaluate(ReturnValueConstraintEvaluator.java:128)
... 21 more
Exception in thread "Thread-36" java.lang.RuntimeException: Exception when trying to evaluate constraint Completed in split Gateway
at org.jbpm.workflow.instance.node.SplitInstance.internalTrigger(SplitInstance.java:79)
at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:122)
at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerConnection(NodeInstanceImpl.java:185)
at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerCompleted(NodeInstanceImpl.java:150)
at org.jbpm.workflow.instance.impl.ExtendedNodeInstanceImpl.triggerCompleted(ExtendedNodeInstanceImpl.java:47)
at org.jbpm.workflow.instance.node.StateBasedNodeInstance.triggerCompleted(StateBasedNodeInstance.java:162)
at org.jbpm.workflow.instance.node.StateBasedNodeInstance.triggerCompleted(StateBasedNodeInstance.java:143)
at org.jbpm.workflow.instance.node.WorkItemNodeInstance.triggerCompleted(WorkItemNodeInstance.java:239)
at org.jbpm.workflow.instance.node.HumanTaskNodeInstance.triggerCompleted(HumanTaskNodeInstance.java:90)
at org.jbpm.workflow.instance.node.WorkItemNodeInstance.workItemAborted(WorkItemNodeInstance.java:293)
at org.jbpm.workflow.instance.node.WorkItemNodeInstance.signalEvent(WorkItemNodeInstance.java:279)
at org.jbpm.workflow.instance.impl.WorkflowProcessInstanceImpl.signalEvent(WorkflowProcessInstanceImpl.java:326)
at org.drools.persistence.jpa.processinstance.JPAWorkItemManager.abortWorkItem(JPAWorkItemManager.java:152)
at org.drools.command.runtime.process.AbortWorkItemCommand.execute(AbortWorkItemCommand.java:56)
at org.drools.command.runtime.process.AbortWorkItemCommand.execute(AbortWorkItemCommand.java:29)
at org.drools.command.impl.DefaultCommandService.execute(DefaultCommandService.java:36)
at org.drools.persistence.SingleSessionCommandService.execute(SingleSessionCommandService.java:345)
at org.drools.command.impl.CommandBasedStatefulKnowledgeSession$1.abortWorkItem(CommandBasedStatefulKnowledgeSession.java:156)
at org.jbpm.process.workitem.wsht.SyncWSHumanTaskHandler$TaskCompletedHandler.handleCompletedTask(SyncWSHumanTaskHandler.java:328)
at org.jbpm.process.workitem.wsht.SyncWSHumanTaskHandler$TaskCompletedHandler$1.run(SyncWSHumanTaskHandler.java:273)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.RuntimeException: unable to execute ReturnValueEvaluator
at org.jbpm.process.instance.impl.ReturnValueConstraintEvaluator.evaluate(ReturnValueConstraintEvaluator.java:130)
at org.jbpm.workflow.instance.node.SplitInstance.internalTrigger(SplitInstance.java:72)
... 20 more
Caused by: java.lang.NullPointerException
at defaultPackage.Process_defaultPackage_WFDemo.returnValueEvaluator7(Process_defaultPackage_WFDemo.java:64)
at defaultPackage.Process_defaultPackage_WFDemoReturnValueEvaluator7Invoker.evaluate(Process_defaultPackage_WFDemoReturnValueEvaluator7Invoker.java:15)
at org.jbpm.process.instance.impl.ReturnValueConstraintEvaluator.evaluate(ReturnValueConstraintEvaluator.java:128)
... 21 more
Hibernate: select sessioninf0_.id as id143_0_, sessioninf0_.lastModificationDate as lastModi2_143_0_, sessioninf0_.rulesByteArray as rulesByt3_143_0_, sessioninf0_.startDate as startDate143_0_, sessioninf0_.OPTLOCK as OPTLOCK143_0_ from SessionInfo sessioninf0_ where sessioninf0_.id=?
Hibernate: select workitemin0_.workItemId as workItemId144_0_, workitemin0_.creationDate as creation2_144_0_, workitemin0_.name as name144_0_, workitemin0_.processInstanceId as processI4_144_0_, workitemin0_.state as state144_0_, workitemin0_.OPTLOCK as OPTLOCK144_0_, workitemin0_.workItemByteArray as workItem7_144_0_ from WorkItemInfo workitemin0_ where workitemin0_.workItemId=?
Hibernate: select processins0_.InstanceId as InstanceId142_0_, processins0_.lastModificationDate as lastModi2_142_0_, processins0_.lastReadDate as lastRead3_142_0_, processins0_.processId as processId142_0_, processins0_.processInstanceByteArray as processI5_142_0_, processins0_.startDate as startDate142_0_, processins0_.state as state142_0_, processins0_.OPTLOCK as OPTLOCK142_0_ from ProcessInstanceInfo processins0_ where processins0_.InstanceId=?
Hibernate: select WORKITEMINFO_ID_SEQ.nextval from dual
Hibernate: select hibernate_sequence.nextval from dual
Hibernate: select user_.id from OrganizationalEntity user_ where user_.id=?
Hibernate: select hibernate_sequence.nextval from dual
Hibernate: select hibernate_sequence.nextval from dual
Hibernate: select hibernate_sequence.nextval from dual
Hibernate: select hibernate_sequence.nextval from dual
Hibernate: insert into Task (allowedToDelegate, taskInitiator_id, priority, activationTime, actualOwner_id, createdBy_id, createdOn, documentAccessType, documentContentId, documentType, expirationTime, faultAccessType, faultContentId, faultName, faultType, outputAccessType, outputContentId, outputType, parentId, previousStatus, processId, processInstanceId, processSessionId, skipable, status, workItemId, id) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Hibernate: insert into I18NText (language, text, id) values (?, ?, ?)
Hibernate: insert into I18NText (language, text, id) values (?, ?, ?)
Hibernate: insert into I18NText (language, text, id) values (?, ?, ?)
Hibernate: insert into Content (content, id) values (?, ?)
Hibernate: update Task set allowedToDelegate=?, taskInitiator_id=?, priority=?, activationTime=?, actualOwner_id=?, createdBy_id=?, createdOn=?, documentAccessType=?, documentContentId=?, documentType=?, expirationTime=?, faultAccessType=?, faultContentId=?, faultName=?, faultType=?, outputAccessType=?, outputContentId=?, outputType=?, parentId=?, previousStatus=?, processId=?, processInstanceId=?, processSessionId=?, skipable=?, status=?, workItemId=? where id=?
Hibernate: update I18NText set Task_Descriptions_Id=? where id=?
Hibernate: update I18NText set Task_Names_Id=? where id=?
Hibernate: insert into PeopleAssignments_BAs (task_id, entity_id) values (?, ?)
Hibernate: insert into PeopleAssignments_PotOwners (task_id, entity_id) values (?, ?)
Hibernate: update I18NText set Task_Subjects_Id=? where id=?
Hibernate: select eventtypes0_.InstanceId as InstanceId0_, eventtypes0_.element as element0_ from EventTypes eventtypes0_ where eventtypes0_.InstanceId=?
Hibernate: update ProcessInstanceInfo set lastModificationDate=?, lastReadDate=?, processId=?, processInstanceByteArray=?, startDate=?, state=?, OPTLOCK=? where InstanceId=? and OPTLOCK=?
Hibernate: insert into WorkItemInfo (creationDate, name, processInstanceId, state, OPTLOCK, workItemByteArray, workItemId) values (?, ?, ?, ?, ?, ?, ?)
Hibernate: update WorkItemInfo set creationDate=?, name=?, processInstanceId=?, state=?, OPTLOCK=?, workItemByteArray=? where workItemId=? and OPTLOCK=?
Hibernate: delete from WorkItemInfo where workItemId=? and OPTLOCK=?
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/732784#732784]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 11 months
[Beginner's Corner] - j_security_check returning 400 error
by tuishimi
tuishimi [https://community.jboss.org/people/tuishimi] created the discussion
"j_security_check returning 400 error"
To view the discussion, visit: https://community.jboss.org/message/730368#730368
--------------------------------------------------------------
I think this all began when our login process was changed because we use a CM for our home page (and various other pages).
Basically what is happening is people are bookmarking our login page. To get there you go through protected pages/actions (our login is loginBounce.do from the home page, for example). The url rewrite filter checks for http/https and switches context, pushing to another page which loads the final action which simply displays the login form JSP.
If you follow that process and log in, it works. When users bookmark that final page/form and submit it we get a 400 error.
My head is spinning looking through all the redirect xml files, login-config, rewrites, web... etc. I have no idea what is going on here and what process it (JBOSS 4.x) is going through and how we end up with a BAD REQUEST error. The login page itself is the standard j_username/j_password deal...
It seems like (to me) that somewhere in all the filters something is being altered, lost, dropped ... I don't know. But I am going crazy trying to figure it out.
I guess what I want to know is what could cause j_security_check to return a 400 error?
Thank you!
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/730368#730368]
Start a new discussion in Beginner's Corner at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 11 months
[jBPM] - Unique Global Id
by Diorbert Pereira
Diorbert Pereira [https://community.jboss.org/people/diorbert] created the discussion
"Unique Global Id"
To view the discussion, visit: https://community.jboss.org/message/732832#732832
--------------------------------------------------------------
An task has a id that is unique within a node container, but if we want make a reference to a task in special, in a global way, we need the taskid and processid, but in human task client api (TaskClient.java), when we call the method:
*public void start*(long taskId,
String userId,
TaskOperationResponseHandler responseHandler)
I think that the task isnt identified uniquely because if we have two process, both with a valid human task with id=2, for example, how can the jBPM differentiate?
My main goal here is understand how is possible identify uniquely a task only with the taskid value.
Sorry for the english.
Thanks. :)
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/732832#732832]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 11 months