[JBoss AOP] - Re: intercept TransactionManager->commit()
by flavia.rainone
It is not possible to intercept javax.transaction.TransactionManager, since, in this case, you want to intercept the execution of commit.
But TransactionManager is an interface, and does not have a commit body to be intercepted.
So, if you wanted to do this, you would need to intercept a specific class, whose name you don't know, of the application server you're using. But, to intercept the execution of this class' commit method, you would need security permission to do that.
This means that you can't do this with AOP.
But can't you use the hooks on javax.ejb.SessionSynchronization interface?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3991715#3991715
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3991715
19 years, 7 months
[EJB 3.0] - EJB Annotation question?
by jxcheng
I deployed and tested a simple EJB 3.0 program successfully with JBOSS 4.05.
The following code use JNDI lookup works fine.
| Hashtable<String,String> h= new Hashtable<String,String>();
| h.put(Context.INITIAL_CONTEXT_FACTORY,"org.jnp.interfaces.NamingContextFactory");
| h.put(Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces");
| h.put(Context.PROVIDER_URL, "localhost");
|
| InitialContext ctx = new InitialContext(h);
|
| WordReverse wr = (WordReverse) ctx.lookup("/WordReverseBean/remote");
|
| wr.getReversedWorld("test")
|
However, I have problems using EJB annotation. The following code compiles fine. but run into run-time Exception
Exception in thread "main" java.lang.NullPointerException
It complains that the instance variable wr is NULL. I tried different attribute values for the EJB annotation without sucsess.
| @EJB(mappedName="jnp://localhost:1099/WordReverseBean/remote")
| //@EJB(beanName="WordReverseBean")
| //@EJB
| private static WordReverse wr;
|
| public static void main(String[] args) throws NamingException{
|
| ...
| wr.getReversedWorld("test")
| ...
|
Could anyone help here?
Thanks!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3991714#3991714
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3991714
19 years, 7 months
[JBoss Seam] - Validation on update
by ama55
Dear all:
I am trying to validate the fields upon update.
in the update method i created a query statement that checks if the a value is unique.
here is the update function
@IfInvalid(outcome = Outcome.REDISPLAY)
| public String update() {
| String compName = instance.getName();
| String compTel = instance.getTel();
| String compFax = instance.getFax();
| int compId = instance.getId();
|
| entityManager.refresh(instance);
|
| if (compName.equals(instance.getName())) {
| instance.setTel(compTel);
| instance.setFax(compFax);
| entityManager.flush();
| refreshFinder();
| return null;
| }
| else {
| Query query1 = entityManager.createQuery("select comp from Companies comp where comp.name=:compName");
| query1.setParameter("compName", compName);
|
| if (query1.getResultList() != null) {
| FacesContext.getCurrentInstance().addMessage(
| null,
| new FacesMessage(messages.get("Companies_name") + " "
| + messages.get("AlreadyExists")));
| return null;
| }
| }
| instance=(Companies)entityManager.find(Companies.class, compId);
| instance.setName(compName);
| instance.setTel(compTel);
| instance.setFax(compFax);
| entityManager.flush();
| refreshFinder();
| return null;
| }
If the user tries to enter a company name that already exists in the database then an error is reported. (works fine)
but if the user tries to enter a company name that doesnot exist in the database then an error is also reported. the problem is that in this case the query statement returns a list but it is not supposed to do so.
any one knows how to solve that.
Best regards
ama55
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3991713#3991713
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3991713
19 years, 7 months
[Remoting] - SSLServlet
by MarcReis
Hi,
I have a few Questions to using the sslservlet. We Are using JBossGA 4.0.4 with Remoting 1.4.1.
The communication over the servlet for http works fine.
For https contacting the webconsole on https over 8443 also works over the browser. But using my client over https to go for ejb3's fails.
I looked at the wiki and docs, but I dont get it togehter correctly...
So here what I did:
First of I generated the keys and put them to the server and to the client (seems to have worked)
.
For the Client I then:
configured the jndi.propteries as follows:
| mct.java.naming.factory.initial=org.jboss.naming.HttpNamingContextFactory
| mct.java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces,java.protocol.handler.pkgs
| mct.java.naming.provider.url=https://myserver.de/invoker/restricted/JNDIFactorySSL
|
added the following jvm parameters
| -Djavax.net.ssl.trustStore=C:\work\tmp\Certificates\myclient\client.truststore
| -Djavax.net.ssl.trustStorePassword=topsecret
|
Then I configured the tomcat server:
| <!-- SSL/TLS Connector configuration using the admin devl guide keystore-->
| <Connector port="8443" address="${jboss.bind.address}"
| maxThreads="100" strategy="ms" maxHttpHeaderSize="8192"
| emptySessionPath="true"
| scheme="https" secure="true" clientAuth="false"
| keystoreFile="${jboss.server.home.dir}/conf/ssl/server.keystore"
| keystorePass="topsecret" sslProtocol = "TLS"/>
|
... moved on to the http-invoker. There I added the the following mbean to the META-INF/jboss-service.xml
| <!-- Expose the Naming service interface via HTTPS -->
| <mbean code="org.jboss.invocation.http.server.HttpProxyFactory"
| name="jboss:service=invoker,type=https,target=Naming">
| <!-- The Naming service we are proxying -->
| <attribute name="InvokerName">jboss:service=Naming</attribute>
| <!-- Compose the invoker URL from the cluster node address -->
| <attribute name="InvokerURLPrefix">https://</attribute>
| <attribute name="InvokerURLSuffix">:8443/invoker/restricted/JMXInvokerServlet</attribute>
| <attribute name="UseHostName">true</attribute>
| <attribute name="ExportedInterface">org.jnp.interfaces.Naming</attribute>
| <attribute name="JndiName"></attribute>
| <attribute name="ClientInterceptors">
| <interceptors>
| <interceptor>org.jboss.proxy.ClientMethodInterceptor</interceptor>
| <interceptor>org.jboss.proxy.SecurityInterceptor</interceptor>
| <interceptor>org.jboss.naming.interceptors.ExceptionInterceptor</interceptor>
| <interceptor>org.jboss.invocation.InvokerInterceptor</interceptor>
| </interceptors>
| </attribute>
| </mbean>
|
and this to the WEB-INF/web.xml
| <!--Https servlet for https Kommunikation-->
| <servlet>
| <servlet-name>JNDIFactorySSL</servlet-name>
| <description>A servlet that exposes the JBoss JNDI Naming service stub through http. The return content is a serialized MarshalledValue containing the org.jnp.interfaces.Naming stub. This configuration handles requests for the standard JNDI naming service. </description>
| <servlet- class>org.jboss.invocation.http.servlet.NamingFactoryServlet</servlet-class>
| <init-param>
| <param-name>namingProxyMBean</param- name>
| <param- value>jboss:service=invoker,type=https,target=Naming</param-value>
| </init-param>
| <init-param>
| <param-name>proxyAttribute</param- name>
| <param-value>Proxy</param-value>
| </init-param>
| <load-on-startup>2</load-on-startup>
| </servlet>
|
| <!--Mapping for SSL-->
| <servlet-mapping>
| <servlet-name>JNDIFactorySSL</servlet-name>
| <url-pattern>/restricted/JNDIFactorySSL/*</url- pattern>
| </servlet-mapping>
|
After that I added the following to the servlet-invoker.war/WEB-INF/web.xml
| <servlet>
| <servlet-name>ServerInvokerServletSSL</servlet-name>
| <description>The ServerInvokerServlet receives requests via HTTPS
| protocol from within a web container and passes it onto the
| ServletServerInvoker for processing.
| </description>
| <servlet- class>org.jboss.remoting.transport.servlet.web.ServerInvokerServlet</servlet-class>
| <init-param>
| <param-name>locatorUrl</param-name>
| <param- value>sslservlet://${jboss.bind.address}:8443/servlet- invoker/ServerInvokerServlet</param-value>
| <description>The servlet server invoker url</description>
| </init-param>
| <load-on-startup>1</load-on-startup>
| </servlet>
| <servlet-mapping>
| <servlet-name>ServerInvokerServlet</servlet-name>
| <url-pattern>/ServerInvokerServlet/*</url-pattern>
| </servlet-mapping>
| </web-app>
|
Then I moved on to the ejb3-deployer/META-INF/jboss-service.xml. Here I am not sure what I actualy need. I first tried it with this
| <mbean code="org.jboss.remoting.transport.Connector"
| name="jboss.remoting:type=Connector, transport=SSLServlet"
| display-name="Servlet transport Connector">
| <depends>jboss.aop:service=AspectDeployer</depends>
| <attribute name="InvokerLocator">
| sslservlet://${jboss.bind.address}:8443/servlet-invoker/ServerInvokerServlet</attribute>
| <attribute name="Configuration">
| <handlers>
| <handler subsystem="AOP">org.jboss.aspects.remoting.AOPRemotingInvocationHandler</handler>
| </handlers>
| </attribute>
| </mbean>
|
The above results in a
| [org.jboss.system.ServiceController] Problem creating service jboss.remoting:type=Connector,nam
| e=DefaultEjb3ConnectorSSL,handler=ejb3
| java.lang.RuntimeException: Couldn't find valid server invoker class for transport 'sslservlet'
| at org.jboss.remoting.InvokerRegistry.createServerInvoker(InvokerRegistry.java:434)
| at org.jboss.remoting.transport.Connector.init(Connector.java:388)
| at org.jboss.remoting.transport.Connector.create(Connector.java:745)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
|
(Altervatively I tried it with defining the SSLSocketBuilder, SSLServerSocketFactoryService mbeans and then a
the connector mbean)
I also passt the server the follwing jvm parameters:
| -Ddefault.client.bindurl=sslservlet://myserver.de/servlet- invoker/ServerInvokerServlet
| -Djavax.net.ssl.keyStore=$JBOSS_HOME/server/conf/ssl/server.keystore
| -Djavax.net.ssl.keyStorePassword=olga4all
|
At the moments all my attempts lead me the above server error or to this on the client:
| javax.naming.NamingException: Failed to retrieve Naming interface [Root exception is java.net.ConnectException: Connection refused: connect]
| at org.jboss.naming.HttpNamingContextFactory.getInitialContext(HttpNamingContextFactory.java:84)
| at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
| at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
| at javax.naming.InitialContext.init(InitialContext.java:223)
| at javax.naming.InitialContext.<init>(InitialContext.java:197)
|
I appreciate any help!
Thanks!
Marc
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3991708#3991708
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3991708
19 years, 7 months
[JBoss Seam] - geam-gen generate-entities error
by gaboo
I'm trying to generate entities from an existing database.
For this table :
CREATE TABLE `abocc` (
| `ct` int(11) NOT NULL default '0',
| `dt_creat` datetime default NULL,
| `dt_modif` datetime default NULL,
| `dp_use` char(1) NOT NULL default 'O',
| `ct_pers` int(11) NOT NULL default '0',
| `ty` char(4) NOT NULL default '',
| `lb` char(39) default NULL,
| `ct_ref` int(11) default NULL,
| `dt_bgn` datetime default NULL,
| `dt_end` datetime default NULL,
| `dt_bgn_test` datetime default NULL,
| `dt_end_test` datetime default NULL,
| `nb_div` smallint(6) default '12',
| `nb_ren` smallint(6) default '12',
| `nb_ofs` smallint(6) default '0',
| `dp_rglt_post` char(1) default 'N',
| `mt_ht` float(7,2) default NULL,
| `tx_tva` float(6,1) default '19.6',
| PRIMARY KEY (`ct`),
| UNIQUE KEY `ct_pers` (`ct_pers`,`ty`,`ct`),
| UNIQUE KEY `ty` (`ty`,`ct_pers`,`ct`),
| UNIQUE KEY `dp_use` (`dp_use`,`ct`)
| ) ENGINE=MyISAM DEFAULT CHARSET=latin1 |
I get an error when trying to compile generated java files :
[javac] Compiling 69 source files to /home/gaboo/workspace/testSeamLrb/exploded-archives/testSeamLrb.jar
| [javac] /home/gaboo/workspace/testSeamLrb/src/com/lrb/testSeamLrb/Abocc.java:20: '}' expected
| [javac] , uniqueConstraints = { @UniqueConstraint(columnNames={"ct_pers", "ty", "ct"}) @UniqueConstraint(columnNames={"dp_use", "ct"}) }
| [javac] ^
|
Here is the generated annotation :
/**
| * Abocc generated by hbm2java
| */
| @Entity
| @Table(name="abocc"
| ,catalog="lrb"
| , uniqueConstraints = { @UniqueConstraint(columnNames={"ct_pers", "ty", "ct"}) @UniqueConstraint(columnNames={"dp_use", "ct"}) }
| )
| public class Abocc implements java.io.Serializable {
|
|
There is indeed several unique keys constraints. Obviously, the annotation syntax is not correct. I've not found an example annotation with two unique constraints either on hibernate documentatin or searching on google.
I though it is a hibernate problem but the hibernate site asks us to come here if it's seam related.
Thanks for your help.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3991701#3991701
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3991701
19 years, 7 months
[JBoss Seam] - Re: Problems with i18n in Chinese
by Seto
| <?xml version="1.0" encoding="utf-8"?>
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
| "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
| <html xmlns="http://www.w3.org/1999/xhtml"
| xmlns:ui="http://java.sun.com/jsf/facelets"
| xmlns:h="http://java.sun.com/jsf/html"
| xmlns:f="http://java.sun.com/jsf/core"
| xmlns:a="https://ajax4jsf.dev.java.net/ajax">
| <f:view>
| <head>
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
| <title>#{messages['SiteTitle']}</title>
| <!-- ????? -->
| <link rel="stylesheet" href="css/global.css" type="text/css" media="all" />
| </head>
| <body>
| <div align="center">
| <div id="header">
| </div>
| <div id="search">
| <h:form>
| <div id="search_left">
| <h:selectOneMenu value="#{localeSelector.language}">
| <f:selectItems value="#{localeSelector.supportedLocales}"/>
| </h:selectOneMenu>
| <h:commandButton action="#{localeSelector.select}" value="#{messages['ChangeLanguage']}"/>
| </div>
| <div id="search_right">
| <div id="search_string">
| ???
| <h:inputText value="#{articleSearch.searchString}" style="width: 140px; height: 20px"/>
| </div>
|  
| <h:selectOneMenu id="search_field" value="#{articleSearch.field}">
| <f:selectItem itemLabel="-???-" itemValue="title" />
| <f:selectItem itemLabel="tag" itemValue="tag" />
| <f:selectItem itemLabel="??" itemValue="title" />
| <f:selectItem itemLabel="???" itemValue="short_title" />
| <f:selectItem itemLabel="???" itemValue="long_title" />
| <f:selectItem itemLabel="??" itemValue="author" />
| <f:selectItem itemLabel="??" itemValue="intro" />
| <f:selectItem itemLabel="??" itemValue="content" />
| </h:selectOneMenu>
|  
| <a:commandButton value="??"
| action="#{articleSearch.doSearchWithRedirect}" styleClass="button"/>
| </div>
| </h:form>
| </div>
| <div id="main">
| <ui:insert name="content" />
| </div>
| <div id="footer">
| ???? | ???? | ???? | ???? | ????? | ???? | ???? | ???? | ???? | ????
| </div>
| <div id="copyright">
| ???? ???? ???? KaibaSeto(a)gmail.com
| <br />
| ????IE6?????????
| </div>
| </div>
| </body>
| </f:view>
| </html>
|
| SiteTitle = ??mm
| ChangeLanguage = ????
|
The problem is the Chinese display incorrectly.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3991700#3991700
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3991700
19 years, 7 months
[Beginners Corner] - jndi deployment failure
by sej
I have a jndi file:
<?xml version="1.0" encoding="UTF-8"?>
<!-- Dev Datasource -->
<local-tx-datasource>
<jndi-name>providerqDbInfo</jndi-name>
<connection-url>jdbc:JSQLConnect://myserver/database=mydatabase&sqlVersion=8</connection-url>
<driver-class>com.ibm.as400.access.AS400JDBCDriver</driver-class>
<user-name>abcdef</user-name>
ghijklm
<check-valid-connection-sql>Select 1</check-valid-connection-sql>
<type-mapping>MS SQLSERVER2000</type-mapping>
<min-pool-size>5</min-pool-size>
<max-pool-size>100</max-pool-size>
<blocking-timeout-millis>120000</blocking-timeout-millis>
<idle-timeout-minutes>15</idle-timeout-minutes>
<Pool.MaximumActiveConnections>100</Pool.MaximumActiveConnections>
<Pool.MaximumIdleConnections>30</Pool.MaximumIdleConnections>
<Pool.MaximumWait>60000</Pool.MaximumWait>
<Pool.ValidationQuery>select 1</Pool.ValidationQuery>
<Pool.LogAbandoned>false</Pool.LogAbandoned>
<Pool.RemoveAbandoned>false</Pool.RemoveAbandoned>
<Pool.RemoveAbandonedTimeout>50000</Pool.RemoveAbandonedTimeout>
<Pool.MaximumCheckoutTime>120000</Pool.MaximumCheckoutTime>
<Pool.TimeToWait>20000</Pool.TimeToWait>
<Pool.PingQuery>select 1</Pool.PingQuery>
<Pool.PingEnabled>true</Pool.PingEnabled>
<Pool.PingConnectionsOlderThan>0</Pool.PingConnectionsOlderThan>
<Pool.PingConnectionsNotUsedFor>0</Pool.PingConnectionsNotUsedFor>
<Pool.QuietMode>true</Pool.QuietMode>
</local-tx-datasource>
When I start up jboss, jboss comes up, but it lists the following error in the console:
org.jboss.deployment.DeploymentInfo@f6ddd783 { url=file:/C:/Java/JBoss 4.0.4/server/default/deploy/z-pq-DV-ds.xml }
deployer: org.jboss.deployment.XSLSubDeployer@4d2b11
status: null
state: FAILED
watch: file:/C:/Java/JBoss 4.0.4/server/default/deploy/z-pq-DV-ds.xml
altDD: null
lastDeployed: 1165420843219
lastModified: 1165420843209
mbeans:
Then when I go to the application, the first sql hit produces this error:
There was an error configuring JndiDataSourceDaoTransactionPool. Cause: javax.naming.NameNotFoundException: providerqDbInfo not bound
What should I do?
I should note that I set up another application with its jndi file set up in a very similar manner and that has had no problems.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3991693#3991693
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3991693
19 years, 7 months
[JBoss Seam] - Re: Seam JSF question
by gavin.king@jboss.com
anonymous wrote : Is Jboss pushing JSF and if so are they making it easier for developer to work with this framework over the others??
Yes, we thing JSF is good, but we are improving usability and adding some missing features by developing Seam.
anonymous wrote : Have they any feature in there Application server that favour JSf over the other
Not exactly. JSF is a required feature of Java EE 5, so JBoss has JSF built in. But as for us favoring JSF, we favor it in Seam, not so much in the AS.
anonymous wrote : Inside the JBoss App server is it a level playing field for all frameworks
Of course. And on a level field, no other framework can beat Seam, naturally ;-)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3991689#3991689
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3991689
19 years, 7 months
[JBossCache] - JBossCache replication complete notification on start
by shelly2k
We have been using JBossCache in our application to distribute the state of our system server to clients. It has and does work very well until today.
We had a problem overnight which took the number of objects in the cache to over 45000. This is not a problem in that we started the apps up with extra memory and everything appeared to work.
The problem we are having is that we take a view of the cache at some time after our client application has started the cache. This time is dependant on other processes that need to be brought up, but up until today, there has been enough time for the cache to replicate (we are using REPL_SYNC).
Today though as the cache was so large, replication was still in progress when we started to take a view of the objects that were in the cache, and the cache reported that there were none. New objects raised in to the cache appear but we never go back a pre-populate the views with data that has appeared when replication completes.
This is the problem we are having. How do you know when replication has completed?
We start the cache, but can not seem to find any event we can tag on to so as to be informed that replication has completed. Can this be done? Is there another way?
Below is how we start the cache.
| public CacheManager( final InputStream is, final String clusterName ) throws Exception
| {
| PropertyConfigurator configurator = new PropertyConfigurator();
| TreeCache cache = new TreeCache();
|
| configurator.configure( cache, is );
| cache.setFetchStateOnStartup( true );
| if ( clusterName != null )
| {
| cache.setClusterName( clusterName );
| }
| cache.start();
| setTreeCache( cache );
| }
We are currently based on 1.24
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3991688#3991688
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3991688
19 years, 7 months
[EJB 3.0] - Hot to make JBoss 5 EJB Remoting & Embedded EJB3 go togethe
by mtrimpe
I have the following scenario, that must arise more often in the future:
A Swing Client App that; must be able to connect to an EJB3 service on a remote JBoss5; must be able to run that same EJB3 service locally via Embedded EJB3 container.
I currently have the following maven dependencies:
| <!-- JBoss Microcontainer dependencies -->
| <dependency>
| <groupId>microcontainer.jboss.ejb3</groupId>
| <artifactId>hibernate-all</artifactId>
| </dependency>
| <dependency>
| <groupId>microcontainer.jboss.ejb3</groupId>
| <artifactId>jboss-ejb3-all</artifactId>
| </dependency>
| <dependency>
| <groupId>microcontainer.jboss.ejb3</groupId>
| <artifactId>thirdparty-all</artifactId>
| </dependency>
|
| <!-- JBoss Client dependencies - REFERENCE ${jboss.home}\client\...... -->
| <dependency>
| <groupId>jboss</groupId>
| <artifactId>all-client</artifactId>
| </dependency>
| <dependency>
| <groupId>jboss</groupId>
| <artifactId>ejb3-client</artifactId>
| </dependency>
| <dependency>
| <groupId>jboss</groupId>
| <artifactId>aop-jdk50-client</artifactId>
| </dependency>
| <dependency>
| <groupId>jboss</groupId>
| <artifactId>aspect-jdk50-client</artifactId>
| </dependency>
|
| <!-- JBoss EJB3 dependencies -->
| <dependency>
| <groupId>jboss</groupId>
| <artifactId>ejb3x</artifactId>
| </dependency>
| <dependency>
| <groupId>ejb3</groupId>
| <artifactId>persistence</artifactId>
| </dependency>
|
However running the testcases that startup the embedded EJB3 container I now get:
| ERROR 06-12 16:48:25,234 (KernelErrors.java:validate:78) -Failed deployment: persistence.units:jar=classes.jar,unitName=Ga4EjbPrototype
|
| java.lang.NoClassDefFoundError: org/hibernate/engine/query/sql/NativeSQLQueryReturn
| at org.hibernate.cfg.annotations.QueryBinder.bindSqlResultsetMapping(QueryBinder.java:295)
| at org.hibernate.cfg.AnnotationBinder.bindQueries(AnnotationBinder.java:239)
| at org.hibernate.cfg.AnnotationBinder.bindClass(AnnotationBinder.java:404)
| at org.hibernate.cfg.AnnotationConfiguration.processArtifactsOfType(AnnotationConfiguration.java:452)
| at org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationConfiguration.java:268)
| at org.hibernate.cfg.Configuration.buildMappings(Configuration.java:1034)
| java.lang.RuntimeException: Problems scanning classpath
| at org.jboss.ejb3.embedded.EJB3StandaloneBootstrap.scanClasspath(EJB3StandaloneBootstrap.java:281)
| at org.growthanalyser.ga4.connection.LocalConnectionFactory.startupEJB3Container(LocalConnectionFactory.java:56)
| at org.growthanalyser.ga4.connection.LocalConnectionFactory.initialize(LocalConnectionFactory.java:25)
| at org.hibernate.ejb.Ejb3Configuration.buildMappings(Ejb3Configuration.java:1015)
| at org.hibernate.ejb.EventListenerConfigurator.configure(EventListenerConfigurator.java:154)
| at org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Configuration.java:751)
| at org.hibernate.ejb.Ejb3Configuration.createContainerEntityManagerFactory(Ejb3Configuration.java:350)
| at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:119)
| at org.jboss.ejb3.entity.PersistenceUnitDeployment.start(PersistenceUnitDeployment.java:264)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:55)
| at org.growthanalyser.ga4.connection.LocalConnectionFactoryTest.testConnectionFactory(LocalConnectionFactoryTest.java:9)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:107)
| at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)
| at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:75)
| at org.jboss.kernel.plugins.dependency.LifecycleAction.installAction(LifecycleAction.java:115)
| at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.install(KernelControllerContextAction.java:100)
| at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
| at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:226)
| at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:709)
| at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:429)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:538)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:472)
| at junit.framework.TestCase.runTest(TestCase.java:154)
| at junit.framework.TestCase.runBare(TestCase.java:127)
| at junit.framework.TestResult$1.protect(TestResult.java:106)
| at junit.framework.TestResult.runProtected(TestResult.java:124)
| at junit.framework.TestResult.run(TestResult.java:109)
| at junit.framework.TestCase.run(TestCase.java:118)
| at junit.framework.TestSuite.runTest(TestSuite.java:208)
| at junit.framework.TestSuite.run(TestSuite.java:203)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:274)
| at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:177)
| at org.jboss.kernel.plugins.dependency.AbstractKernelController.install(AbstractKernelController.java:79)
| at org.jboss.kernel.plugins.dependency.AbstractKernelController.install(AbstractKernelController.java:73)
| at org.jboss.ejb3.MCKernelAbstraction.install(MCKernelAbstraction.java:131)
| at org.jboss.ejb3.Ejb3Deployment.startPersistenceUnits(Ejb3Deployment.java:467)
| at org.jboss.ejb3.Ejb3Deployment.start(Ejb3Deployment.java:317)
| at org.jboss.ejb3.embedded.EJB3StandaloneDeployer.start(EJB3StandaloneDeployer.java:478)
| at org.jboss.ejb3.embedded.EJB3StandaloneBootstrap.scanClasspath(EJB3StandaloneBootstrap.java:274)
| at org.growthanalyser.ga4.connection.LocalConnectionFactory.startupEJB3Container(LocalConnectionFactory.java:56)
|
| at org.growthanalyser.ga4.connection.LocalConnectionFactory.initialize(LocalConnectionFactory.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:210)
| at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:135
| )
| at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:122)
| at org.apache.maven.surefire.Surefire.run(Surefire.java:129)
| at org.growthanalyser.ga4.connection.LocalConnectionFactoryTest.testConnectionFactory(LocalConnectionFactoryTest
| .java:9)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at junit.framework.TestCase.runTest(TestCase.java:154)
| at junit.framework.TestCase.runBare(TestCase.java:127)
| at junit.framework.TestResult$1.protect(TestResult.java:106)
| at junit.framework.TestResult.runProtected(TestResult.java:124)
| at junit.framework.TestResult.run(TestResult.java:109)
| at junit.framework.TestCase.run(TestCase.java:118)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:269)
| at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:788)
| at junit.framework.TestSuite.runTest(TestSuite.java:208)
| at junit.framework.TestSuite.run(TestSuite.java:203)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:210)
| at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:135
| )
| at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:122)
| at org.apache.maven.surefire.Surefire.run(Surefire.java:129)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:269)
| at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:788)
|
This error stops occurring when I remove the jboss-clientall dependency
This is probably because the JBoss 5 client has a newer version of hibernate that conflicts with that of the Embedded EJB3 container, but how do I fix it?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3991683#3991683
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3991683
19 years, 7 months
[Installation, Configuration & Deployment] - Transaction Problem - About to give up on JBoss - Please hel
by terryb
Hi all,
I will very much appreciate any pointer to my problem (either in reply here of by email to: auspakwa(a)hotmail.com). I am new to JBoss and I have exhausted all my efforts trying to resolve following error.
...
WARN [TransactionImpl] XAException: tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=inspiron/1, BranchQual=, localId=1] errorCode=XA_RBROLLBACK
org.jboss.resource.connectionmanager.JBossLocalXAException: could not commit local tx; - nested throwable: (org.jboss.re
source.JBossResourceException: SQLException; - nested throwable: (com.microsoft.sqlserver.jdbc.SQLServerException: New r
equest is not allowed to start because it should come with valid transaction descriptor.))
...
My Environment
-------------------
jboss-4.0.5.GA, MS SQL Server 2005, Windows XP Pro, JDK 1.5, MS JDBC sqljdbc.jar (v 1.1)
Sequence of error condition
--------------------------------
When SQL database does not have following tables; then starting Jboss happily creates following table in the database and *doest not produce any error* - everything looks ok.
HILOSEQUENCES
JMS_MESSAGES
JMS_ROLES
JMS_SUBSCRIPTIONS
JMS_TRANSACTIONS
JMS_USERS
TIMERS
but once above table are created, then every restart of the jboss starts throwing series of errors (mentioned above and below).
mssql-ds.xml
---------------
<local-tx-datasource>
<jndi-name>DefaultDS</jndi-name>
<connection url>jdbc:sqlserver://inspiron:1433;databaseName=JBossTest</connection-url>
<driver-class>com.microsoft.sqlserver.jdbc.SQLServerDriver</driver-class>
<user-name>jboss</user-name>
password
<min-pool-size>5</min-pool-size>
<max-pool-size>10</max-pool-size>
<blocking-timeout-millis>50000</blocking-timeout-millis>
<idle-timeout-minutes>30</idle-timeout-minutes>
<!-- corresponding type-mapping in the standardjbosscmp-jdbc.xml (optional) -->
<type-mapping>MS SQLSERVER2000</type-mapping>
</local-tx-datasource>
Full log for jboss from startup.
Produced when jboss is started and if above tables exist in sql database
--------------------------------------------
C:\apps\jboss-4.0.5.GA\bin>run
===============================================================================
JBoss Bootstrap Environment
JBOSS_HOME: C:\apps\jboss-4.0.5.GA\bin\\..
JAVA: C:\apps\Java\jdk1.5.0_07\bin\java
JAVA_OPTS: -Dprogram.name=run.bat -server -Xms128m -Xmx512m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.ser
ver.gcInterval=3600000
CLASSPATH: C:\apps\Java\jdk1.5.0_07\lib\tools.jar;C:\apps\jboss-4.0.5.GA\bin\\run.jar
===============================================================================
23:45:07,171 INFO [Server] Starting JBoss (MX MicroKernel)...
23:45:07,171 INFO [Server] Release ID: JBoss [Zion] 4.0.5.GA (build: CVSTag=Branch_4_0 date=200610162339)
23:45:07,187 INFO [Server] Home Dir: C:\apps\jboss-4.0.5.GA
23:45:07,187 INFO [Server] Home URL: file:/C:/apps/jboss-4.0.5.GA/
23:45:07,187 INFO [Server] Patch URL: null
23:45:07,187 INFO [Server] Server Name: default
23:45:07,187 INFO [Server] Server Home Dir: C:\apps\jboss-4.0.5.GA\server\default
23:45:07,187 INFO [Server] Server Home URL: file:/C:/apps/jboss-4.0.5.GA/server/default/
23:45:07,187 INFO [Server] Server Log Dir: C:\apps\jboss-4.0.5.GA\server\default\log
23:45:07,187 INFO [Server] Server Temp Dir: C:\apps\jboss-4.0.5.GA\server\default\tmp
23:45:07,187 INFO [Server] Root Deployment Filename: jboss-service.xml
23:45:07,546 INFO [ServerInfo] Java version: 1.5.0_07,Sun Microsystems Inc.
23:45:07,546 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 1.5.0_07-b03,Sun Microsystems Inc.
23:45:07,546 INFO [ServerInfo] OS-System: Windows XP 5.1,x86
23:45:08,203 INFO [Server] Core system initialized
23:45:10,859 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:log4j.xml
23:45:13,296 INFO [SocketServerInvoker] Invoker started for locator: InvokerLocator [socket://192.168.1.101:3873/]
23:45:16,671 INFO [ServiceEndpointManager] WebServices: jbossws-1.0.3.SP1 (date=200609291417)
23:45:17,875 INFO [SnmpAgentService] SNMP agent going active
23:45:18,078 INFO [WebService] Using RMI server codebase: http://inspiron:8083/
23:45:19,171 INFO [CorbaNamingService] Naming: [IOR:000000000000002B49444C3A6F6D672E6F72672F436F734E616D696E672F4E616D6
96E67436F6E746578744578743A312E3000000000000200000000000000E8000102000000000E3139322E3136382E312E313031000DC8000000114A4
26F73732F4E616D696E672F726F6F74000000000000050000000000000008000000004A414300000000010000001C000000000001000100000001050
10001000101090000000105010001000000210000006000000000000000010000000000000024000000200000007E00000000000000010000000E313
9322E3136382E312E313031000DC90040000000000000000000100401000806066781020101010000000000000000000000000000000000000000000
0002000000004000000000000001F0000000400000003000000010000002000000000000000020000002000000004000000000000001F00000004000
00003]
23:45:19,281 INFO [CorbaTransactionService] TransactionFactory: [IOR:000000000000003049444C3A6F72672F6A626F73732F746D2F
69696F702F5472616E73616374696F6E466163746F72794578743A312E30000000000200000000000000E8000102000000000E3139322E3136382E31
2E313031000DC8000000144A426F73732F5472616E73616374696F6E732F46000000050000000000000008000000004A414300000000010000001C00
000000000100010000000105010001000101090000000105010001000000210000006000000000000000010000000000000024000000200000007E00
000000000000010000000E3139322E3136382E312E313031000DC9004000000000000000000010040100080606678102010101000000000000000000
00000000000000000000000000002000000004000000000000001F000000040000000300000001000000200000000000000002000000200000000400
0000000000001F0000000400000003]
23:45:20,078 INFO [Embedded] Catalina naming disabled
23:45:20,171 INFO [ClusterRuleSetFactory] Unable to find a cluster rule set in the classpath. Will load the default rul
e set.
23:45:20,171 INFO [ClusterRuleSetFactory] Unable to find a cluster rule set in the classpath. Will load the default rul
e set.
23:45:20,578 INFO [Http11BaseProtocol] Initializing Coyote HTTP/1.1 on http-0.0.0.0-8080
23:45:20,578 INFO [Catalina] Initialization processed in 407 ms
23:45:20,578 INFO [StandardService] Starting service jboss.web
23:45:20,593 INFO [StandardEngine] Starting Servlet Engine: Apache Tomcat/5.5.20
23:45:20,625 INFO [StandardHost] XML validation disabled
23:45:20,703 INFO [Catalina] Server startup in 125 ms
23:45:20,859 INFO [TomcatDeployer] deploy, ctxPath=/invoker, warUrl=.../deploy/http-invoker.sar/invoker.war/
23:45:21,234 INFO [WebappLoader] Dual registration of jndi stream handler: factory already defined
23:45:22,281 INFO [TomcatDeployer] deploy, ctxPath=/, warUrl=.../deploy/jbossweb-tomcat55.sar/ROOT.war/
23:45:22,453 INFO [TomcatDeployer] deploy, ctxPath=/jbossws, warUrl=.../tmp/deploy/tmp11276jbossws-context-exp.war/
23:45:22,640 INFO [TomcatDeployer] deploy, ctxPath=/jbossmq-httpil, warUrl=.../deploy/jms/jbossmq-httpil.sar/jbossmq-ht
tpil.war/
23:45:22,828 INFO [TomcatDeployer] deploy, ctxPath=/web-console, warUrl=.../deploy/management/console-mgr.sar/web-conso
le.war/
23:45:23,093 INFO [[/web-console]] MonitorsFolder: Failed to init plugin, null
23:45:23,093 INFO [[/web-console]] UCLs: Failed to init plugin, null
23:45:23,109 INFO [[/web-console]] JMS Message: Failed to init plugin, null
23:45:23,109 INFO [[/web-console]] JSR77 WebModule: Failed to init plugin, null
23:45:23,125 INFO [[/web-console]] J2EEFolder: Failed to init plugin, null
23:45:23,125 INFO [[/web-console]] AOPFolder: Failed to init plugin, null
23:45:23,125 INFO [[/web-console]] SystemFolder: Failed to init plugin, null
23:45:23,156 INFO [[/web-console]] MBeans: Failed to init plugin, null
23:45:23,156 INFO [[/web-console]] JSR77 Domains and Servers: Failed to init plugin, null
23:45:23,156 INFO [[/web-console]] JSR77 EJBModules and EJBs: Failed to init plugin, null
23:45:23,156 INFO [[/web-console]] JSR77 J2EE Apps: Failed to init plugin, null
23:45:24,906 INFO [MailService] Mail Service bound to java:/Mail
23:45:25,296 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-local-jdbc.
rar
23:45:25,421 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-xa-jdbc.rar
23:45:25,484 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-local-jdbc.rar
23:45:25,562 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-xa-jdbc.rar
23:45:25,796 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jms/jms-ra.rar
23:45:25,859 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/mail-ra.rar
23:45:25,921 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/quartz-ra.rar
23:45:25,937 INFO [QuartzResourceAdapter] start quartz!!!
23:45:26,015 INFO [SimpleThreadPool] Job execution threads will use class loader of thread: main
23:45:26,046 INFO [QuartzScheduler] Quartz Scheduler v.1.5.2 created.
23:45:26,046 INFO [RAMJobStore] RAMJobStore initialized.
23:45:26,046 INFO [StdSchedulerFactory] Quartz scheduler 'DefaultQuartzScheduler' initialized from default resource fil
e in Quartz package: 'quartz.properties'
23:45:26,046 INFO [StdSchedulerFactory] Quartz scheduler version: 1.5.2
23:45:26,046 INFO [QuartzScheduler] Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started.
23:45:26,312 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding
,name=JmsXA' to JNDI name 'java:JmsXA'
23:45:26,531 INFO [WrapperDataSourceService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultD
S' to JNDI name 'java:DefaultDS'
23:45:27,312 WARN [TransactionImpl] XAException: tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=inspiron/1, BranchQu
al=, localId=1] errorCode=XA_RBROLLBACK
org.jboss.resource.connectionmanager.JBossLocalXAException: could not commit local tx; - nested throwable: (org.jboss.re
source.JBossResourceException: SQLException; - nested throwable: (com.microsoft.sqlserver.jdbc.SQLServerException: New r
equest is not allowed to start because it should come with valid transaction descriptor.))
at org.jboss.resource.connectionmanager.TxConnectionManager$LocalXAResource.commit(TxConnectionManager.java:912)
at org.jboss.tm.TransactionImpl$Resource.commit(TransactionImpl.java:2253)
at org.jboss.tm.TransactionImpl.commitResources(TransactionImpl.java:1784)
at org.jboss.tm.TransactionImpl.commit(TransactionImpl.java:340)
at org.jboss.tm.TxManager.commit(TxManager.java:240)
at org.jboss.mq.sm.jdbc.JDBCStateManager$JDBCSession.close(JDBCStateManager.java:633)
at org.jboss.mq.sm.jdbc.JDBCStateManager.initDB(JDBCStateManager.java:485)
at org.jboss.mq.sm.jdbc.JDBCStateManager.startService(JDBCStateManager.java:393)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
at $Proxy0.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java:417)
at org.jboss.system.ServiceController.start(ServiceController.java:435)
at org.jboss.system.ServiceController.start(ServiceController.java:435)
at org.jboss.system.ServiceController.start(ServiceController.java:435)
at org.jboss.system.ServiceController.start(ServiceController.java:435)
at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy4.start(Unknown Source)
at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy35.start(Unknown Source)
at org.jboss.deployment.XSLSubDeployer.start(XSLSubDeployer.java:197)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
at sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy6.deploy(Unknown Source)
at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:26
3)
at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
at $Proxy0.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java:417)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy4.start(Unknown Source)
at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy5.deploy(Unknown Source)
at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
at org.jboss.Main.boot(Main.java:200)
at org.jboss.Main$1.run(Main.java:490)
at java.lang.Thread.run(Thread.java:595)
Caused by: org.jboss.resource.JBossResourceException: SQLException; - nested throwable: (com.microsoft.sqlserver.jdbc.SQ
LServerException: New request is not allowed to start because it should come with valid transaction descriptor.)
at org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnection.checkException(BaseWrapperManagedConnection.java
:636)
at org.jboss.resource.adapter.jdbc.local.LocalManagedConnection.commit(LocalManagedConnection.java:73)
at org.jboss.resource.connectionmanager.TxConnectionManager$LocalXAResource.commit(TxConnectionManager.java:905)
... 119 more
Caused by: com.microsoft.sqlserver.jdbc.SQLServerException: New request is not allowed to start because it should come w
ith valid transaction descriptor.
at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDatabaseError(Unknown Source)
at com.microsoft.sqlserver.jdbc.IOBuffer.processPackets(Unknown Source)
at com.microsoft.sqlserver.jdbc.SQLServerConnection.doConnectionCommand(Unknown Source)
at com.microsoft.sqlserver.jdbc.SQLServerConnection$ConnectionCommandRequest.execute(Unknown Source)
at com.microsoft.sqlserver.jdbc.SQLServerConnection.executeRequest(Unknown Source)
at com.microsoft.sqlserver.jdbc.SQLServerConnection.connectionCommand(Unknown Source)
at com.microsoft.sqlserver.jdbc.SQLServerConnection.commit(Unknown Source)
at org.jboss.resource.adapter.jdbc.local.LocalManagedConnection.commit(LocalManagedConnection.java:69)
... 120 more
23:45:27,328 WARN [TransactionImpl] XAException: tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=inspiron/1, BranchQu
al=, localId=1] errorCode=XAER_PROTO
org.jboss.resource.connectionmanager.JBossLocalXAException: wrong xid in rollback: expected: null, got: XidImpl[FormatId
=257, GlobalId=inspiron/1, BranchQual=1, localId=1]
at org.jboss.resource.connectionmanager.TxConnectionManager$LocalXAResource.rollback(TxConnectionManager.java:94
8)
at org.jboss.tm.TransactionImpl$Resource.rollback(TransactionImpl.java:2277)
at org.jboss.tm.TransactionImpl.rollbackResources(TransactionImpl.java:1837)
at org.jboss.tm.TransactionImpl.commit(TransactionImpl.java:368)
at org.jboss.tm.TxManager.commit(TxManager.java:240)
at org.jboss.mq.sm.jdbc.JDBCStateManager$JDBCSession.close(JDBCStateManager.java:633)
at org.jboss.mq.sm.jdbc.JDBCStateManager.initDB(JDBCStateManager.java:485)
at org.jboss.mq.sm.jdbc.JDBCStateManager.startService(JDBCStateManager.java:393)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
at $Proxy0.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java:417)
at org.jboss.system.ServiceController.start(ServiceController.java:435)
at org.jboss.system.ServiceController.start(ServiceController.java:435)
at org.jboss.system.ServiceController.start(ServiceController.java:435)
at org.jboss.system.ServiceController.start(ServiceController.java:435)
at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy4.start(Unknown Source)
at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy35.start(Unknown Source)
at org.jboss.deployment.XSLSubDeployer.start(XSLSubDeployer.java:197)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
at sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy6.deploy(Unknown Source)
at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:26
3)
at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
at $Proxy0.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java:417)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy4.start(Unknown Source)
at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy5.deploy(Unknown Source)
at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
at org.jboss.Main.boot(Main.java:200)
at org.jboss.Main$1.run(Main.java:490)
at java.lang.Thread.run(Thread.java:595)
23:45:27,328 WARN [JDBCStateManager] Error initialising state manager db
org.jboss.mq.SpyJMSException: Could not commit/rollback a transaction with the transaction manager.; - nested throwable:
(org.jboss.tm.JBossRollbackException: Unable to commit, tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=inspiron/1, B
ranchQual=, localId=1] status=STATUS_NO_TRANSACTION; - nested throwable: (org.jboss.resource.connectionmanager.JBossLoca
lXAException: could not commit local tx; - nested throwable: (org.jboss.resource.JBossResourceException: SQLException; -
nested throwable: (com.microsoft.sqlserver.jdbc.SQLServerException: New request is not allowed to start because it shou
ld come with valid transaction descriptor.))))
at org.jboss.mq.sm.jdbc.JDBCStateManager$JDBCSession.close(JDBCStateManager.java:638)
at org.jboss.mq.sm.jdbc.JDBCStateManager.initDB(JDBCStateManager.java:485)
at org.jboss.mq.sm.jdbc.JDBCStateManager.startService(JDBCStateManager.java:393)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
at $Proxy0.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java:417)
at org.jboss.system.ServiceController.start(ServiceController.java:435)
at org.jboss.system.ServiceController.start(ServiceController.java:435)
at org.jboss.system.ServiceController.start(ServiceController.java:435)
at org.jboss.system.ServiceController.start(ServiceController.java:435)
at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy4.start(Unknown Source)
at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy35.start(Unknown Source)
at org.jboss.deployment.XSLSubDeployer.start(XSLSubDeployer.java:197)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
at sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy6.deploy(Unknown Source)
at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:26
3)
at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
at $Proxy0.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java:417)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy4.start(Unknown Source)
at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy5.deploy(Unknown Source)
at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
at org.jboss.Main.boot(Main.java:200)
at org.jboss.Main$1.run(Main.java:490)
at java.lang.Thread.run(Thread.java:595)
Caused by: org.jboss.tm.JBossRollbackException: Unable to commit, tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=insp
iron/1, BranchQual=, localId=1] status=STATUS_NO_TRANSACTION; - nested throwable: (org.jboss.resource.connectionmanager.
JBossLocalXAException: could not commit local tx; - nested throwable: (org.jboss.resource.JBossResourceException: SQLExc
eption; - nested throwable: (com.microsoft.sqlserver.jdbc.SQLServerException: New request is not allowed to start becaus
e it should come with valid transaction descriptor.)))
at org.jboss.tm.TransactionImpl.commit(TransactionImpl.java:372)
at org.jboss.tm.TxManager.commit(TxManager.java:240)
at org.jboss.mq.sm.jdbc.JDBCStateManager$JDBCSession.close(JDBCStateManager.java:633)
... 114 more
Caused by: org.jboss.resource.connectionmanager.JBossLocalXAException: could not commit local tx; - nested throwable: (o
rg.jboss.resource.JBossResourceException: SQLException; - nested throwable: (com.microsoft.sqlserver.jdbc.SQLServerExcep
tion: New request is not allowed to start because it should come with valid transaction descriptor.))
at org.jboss.resource.connectionmanager.TxConnectionManager$LocalXAResource.commit(TxConnectionManager.java:912)
at org.jboss.tm.TransactionImpl$Resource.commit(TransactionImpl.java:2253)
at org.jboss.tm.TransactionImpl.commitResources(TransactionImpl.java:1784)
at org.jboss.tm.TransactionImpl.commit(TransactionImpl.java:340)
... 116 more
Caused by: org.jboss.resource.JBossResourceException: SQLException; - nested throwable: (com.microsoft.sqlserver.jdbc.SQ
LServerException: New request is not allowed to start because it should come with valid transaction descriptor.)
at org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnection.checkException(BaseWrapperManagedConnection.java
:636)
at org.jboss.resource.adapter.jdbc.local.LocalManagedConnection.commit(LocalManagedConnection.java:73)
at org.jboss.resource.connectionmanager.TxConnectionManager$LocalXAResource.commit(TxConnectionManager.java:905)
... 119 more
Caused by: com.microsoft.sqlserver.jdbc.SQLServerException: New request is not allowed to start because it should come w
ith valid transaction descriptor.
at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDatabaseError(Unknown Source)
at com.microsoft.sqlserver.jdbc.IOBuffer.processPackets(Unknown Source)
at com.microsoft.sqlserver.jdbc.SQLServerConnection.doConnectionCommand(Unknown Source)
at com.microsoft.sqlserver.jdbc.SQLServerConnection$ConnectionCommandRequest.execute(Unknown Source)
at com.microsoft.sqlserver.jdbc.SQLServerConnection.executeRequest(Unknown Source)
at com.microsoft.sqlserver.jdbc.SQLServerConnection.connectionCommand(Unknown Source)
at com.microsoft.sqlserver.jdbc.SQLServerConnection.commit(Unknown Source)
at org.jboss.resource.adapter.jdbc.local.LocalManagedConnection.commit(LocalManagedConnection.java:69)
... 120 more
23:45:27,390 INFO [A] Bound to JNDI name: queue/A
23:45:27,390 INFO [B] Bound to JNDI name: queue/B
23:45:27,390 INFO [C] Bound to JNDI name: queue/C
23:45:27,390 INFO [D] Bound to JNDI name: queue/D
23:45:27,390 INFO [ex] Bound to JNDI name: queue/ex
23:45:27,421 INFO [testTopic] Bound to JNDI name: topic/testTopic
23:45:27,421 INFO [securedTopic] Bound to JNDI name: topic/securedTopic
23:45:27,421 INFO [testDurableTopic] Bound to JNDI name: topic/testDurableTopic
23:45:27,421 INFO [testQueue] Bound to JNDI name: queue/testQueue
23:45:27,500 INFO [UILServerILService] JBossMQ UIL service available at : /0.0.0.0:8093
23:45:27,562 INFO [DLQ] Bound to JNDI name: queue/DLQ
23:45:27,703 INFO [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=.../deploy/jmx-console.war/
23:45:28,000 INFO [Http11BaseProtocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-8080
23:45:28,187 INFO [ChannelSocket] JK: ajp13 listening on /0.0.0.0:8009
23:45:28,250 INFO [JkMain] Jk running ID=0 time=0/110 config=null
23:45:28,265 INFO [Server] JBoss (MX MicroKernel) [4.0.5.GA (build: CVSTag=Branch_4_0 date=200610162339)] Started in 21
s:78ms
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3991682#3991682
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3991682
19 years, 7 months
[JBoss Seam] - NPE in Parameters.java when using ICEfaces
by sjmenden
I only get this exception when using ICEfaces inputText, however the exception ends in a SEAM class, so I think it is most pertinent in the SEAM forum first.
I converted only one of my h:inputText to ice:inputText, when I try to load the page I get the exception:
| java.lang.NullPointerException
| at org.jboss.seam.util.Parameters.convertMultiValueRequestParameter(Parameters.java:47)
| at org.jboss.seam.Component.injectParameters(Component.java:1126)
| at org.jboss.seam.Component.inject(Component.java:1089)
| at org.jboss.seam.interceptors.BijectionInterceptor.bijectTargetComponent(BijectionInterceptor.java:48)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:597)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
| at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
| at org.jboss.seam.interceptors.OutcomeInterceptor.interceptOutcome(OutcomeInterceptor.java:23)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:597)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
| at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
| at org.jboss.seam.interceptors.ConversationInterceptor.endOrBeginLongRunningConversation(ConversationInterceptor.java:51)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:597)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
| at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
| at com.fi.apps.annotations.LoggedInInterceptor.checkLoggedIn(LoggedInInterceptor.java:35)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:597)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
| at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
| at org.jboss.seam.interceptors.ManagedEntityIdentityInterceptor.aroundInvoke(ManagedEntityIdentityInterceptor.java:79)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:597)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
| at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
| at org.jboss.seam.interceptors.RollbackInterceptor.rollbackIfNecessary(RollbackInterceptor.java:33)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:597)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
| at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
| at org.jboss.seam.interceptors.TransactionInterceptor$1.work(TransactionInterceptor.java:25)
| at org.jboss.seam.util.Work.workInTransaction(Work.java:31)
| at org.jboss.seam.interceptors.TransactionInterceptor.doInTransactionIfNecessary(TransactionInterceptor.java:19)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:597)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
| at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
| at org.jboss.seam.interceptors.ExceptionInterceptor.handleExceptions(ExceptionInterceptor.java:28)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:597)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
| at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
| at org.jboss.seam.intercept.RootInterceptor.createSeamInvocationContext(RootInterceptor.java:144)
| at org.jboss.seam.intercept.RootInterceptor.invokeInContexts(RootInterceptor.java:129)
| at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:102)
| at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:140)
| at org.jboss.seam.intercept.JavaBeanInterceptor.intercept(JavaBeanInterceptor.java:75)
| at com.fi.apps.entity.ticketing.TicketHome$$EnhancerByCGLIB$$95d9578c.create(<generated>)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:597)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
| at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:102)
| at org.jboss.seam.Component.callComponentMethod(Component.java:1759)
| at org.jboss.seam.Component.callCreateMethod(Component.java:1707)
| at org.jboss.seam.Component.newInstance(Component.java:1696)
| at org.jboss.seam.Component.getInstance(Component.java:1600)
| at org.jboss.seam.Component.getInstance(Component.java:1567)
| at org.jboss.seam.jsf.SeamVariableResolver.resolveVariable(SeamVariableResolver.java:45)
| at org.apache.myfaces.config.LastVariableResolverInChain.resolveVariable(LastVariableResolverInChain.java:42)
| at com.sun.facelets.el.LegacyELContext$LegacyELResolver.getValue(LegacyELContext.java:134)
| at com.sun.el.parser.AstIdentifier.getValue(AstIdentifier.java:44)
| at com.sun.el.parser.AstValue.getValue(AstValue.java:85)
| at com.sun.el.parser.AstNot.getValue(AstNot.java:25)
| at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:183)
| at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71)
| at com.sun.facelets.el.LegacyValueBinding.getValue(LegacyValueBinding.java:56)
| at javax.faces.component.UIComponentBase.isRendered(UIComponentBase.java:1075)
| at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:508)
| at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:528)
| at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:535)
| at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:535)
| at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:535)
| at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:535)
| at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:535)
| at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:535)
| at com.icesoft.faces.facelets.D2DFaceletViewHandler.renderResponse(D2DFaceletViewHandler.java:273)
| at com.icesoft.faces.application.D2DViewHandler.renderView(D2DViewHandler.java:149)
| at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384)
| at com.icesoft.faces.webapp.xmlhttp.PersistentFacesServlet.service(PersistentFacesServlet.java:394)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.jboss.seam.servlet.SeamExceptionFilter.doFilter(SeamExceptionFilter.java:46)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
| at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
| at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
| at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
| at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
| at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
| at java.lang.Thread.run(Thread.java:619)
|
ticket.xhtml
| ....
| <tr>
| <td class="name">Name</td>
| <td align="right">
| <s:decorate>
| <ice:inputText id="name" value="#{ticketHome.instance.name}" required="true" partialSubmit="true"/>
| </s:decorate>
| </td>
| </tr>
| ....
|
The TicketHome extends EntityHome and follows the conventions from the SEAM documentation.
The NPE in org.jboss.seam.util.Parameters comes from the line:
String[] array = requestParameters.get(name);
so apparently requestParameters is null, is this a bug introduced by ICEfaces even though it is in the SEAM code?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3991677#3991677
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3991677
19 years, 7 months
[JBoss Seam] - Seam Log4J wrapper
by monkeyden
I'm trying to log some more verbose information about, like line number and calling method, but I think the Seam logger is stepping on these features of Log4J. For instance, I have this ConversionPattern in my log4j.xml file:
<param name="ConversionPattern" value="%d{HH:mm:ss,SSS} %-5p [%c{1}.%M (%L)] %m%n"/>
"M" is the method name and "L" is the line number. This ALWAYS result in "debug" and "84", respectively.
My Seam source doesn't match up exactly but it looks like line 84 is, as you might expect, somewhere in here:
public void debug(Object object, Throwable t, Object... params)
| {
| if ( isDebugEnabled() )
| {
| log.debug( interpolate(object, params), t );
| }
| }
|
Has anyone else run into this? Found a solution/workaround?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3991672#3991672
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3991672
19 years, 7 months
[JBoss jBPM] - Re: Java 5 dependency a problem for Web Console ?
by pfricke
"tom.baeyens(a)jboss.com" wrote : Hi,
|
| We are considering moving to SEAM as the web technology for our jBPM web console. The main concern is that this introduces a dependency on a Java 5 JVM. Note that this dependency will only be there for the web console. NOT FOR THE RUNTIME ENGINE. In case your deployment platform is a Java 1.4.2 JVM, you can still run jBPM there and deploy the webconsole on another JVM.
|
|
The main concern is the dependency this create on AS which is a bigger issue than JVM. We will need to support jBPM on on the microcontainer-based ESB v5 without dragging the entire AS. I believe Seam is set up to do this now or will be. THIS IS CRITIICAL. JBoss ESB with jBPM BPEL and jPDL MUST not prereq the AS so needed AS tech with the ucontainer must be planned for JBoss ESB v5.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3991670#3991670
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3991670
19 years, 7 months