[EJB 3.0] - Re: problem generics and pretty printer
by axelgrrr
ok also tried now with the 4.2.0.CR1 AS.
same situation as far as i can see; the pretty printer is throwing a
exception causing a rollback.
this certainly is a bug; should I file it to JIRA?
with a non-generic version of the class (using a String field instead):
2007-03-08 12:28:19,546 DEBUG [org.hibernate.event.def.AbstractFlushingEventListener] Flushed: 1 insertions, 0 updates, 0 deletions to 1 objects
2007-03-08 12:28:19,546 DEBUG [org.hibernate.event.def.AbstractFlushingEventListener] Flushed: 0 (re)creations, 0 updates, 0 removals to 0 collections
2007-03-08 12:28:19,546 DEBUG [org.hibernate.pretty.Printer] listing entities:
2007-03-08 12:28:19,546 DEBUG [org.hibernate.pretty.Printer] application.server.TicketDataImpl_String{ticketId=component[id_i]{id_i=89547}, status=1, ticketPayload=testATestSpecificTicket}
And here it fails with the generic (P extends Serializable) class:
2007-03-08 12:28:19,593 DEBUG [org.hibernate.event.def.AbstractFlushingEventListener] Flushed: 1 insertions, 0 updates, 0 deletions to 1 objects
2007-03-08 12:28:19,593 DEBUG [org.hibernate.event.def.AbstractFlushingEventListener] Flushed: 0 (re)creations, 0 updates, 0 removals to 0 collections
2007-03-08 12:28:19,593 DEBUG [org.hibernate.pretty.Printer] listing entities:
2007-03-08 12:28:19,593 DEBUG [org.hibernate.ejb.AbstractEntityManagerImpl] mark transaction for rollback
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4026207#4026207
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4026207
19Â years, 1Â month
[JBoss Seam] - HOWTO: override ThemeSelector (valueChangeListener, cookie n
by avbentem
Though in fact quite easy, it took me some time to get this working (for example as at some point I forgot the #${ .. } to surround the EL statement...) -- so a mini HOWTO:
First of all: for the localeSelector auto-submit seems to be very easy:
<h:form>
| <h:selectOneMenu
| value="#{localeSelector.localeString}"
| onchange="submit();"
| valueChangeListener="#{localeSelector.select}">
| <f:selectItems value="#{localeSelector.supportedLocales}" />
| </h:selectOneMenu>
| </h:form>
However, I guess this works by accident; in fact org.jboss.seam.core.LocaleSelector#select() does not accept ValueChangeEvent as a parameter; so the above just works given the current implementation of select -- no guarantees for future releases. Any comment on that anyone?
And: the above does not work for ThemeSelector, as ThemeSelector#select() apparently does not know of any new value. So, an example of an extended ThemeSelector to implement a value change handler:
package my.package;
| import static org.jboss.seam.InterceptionType.NEVER;
| import static org.jboss.seam.annotations.Install.APPLICATION;
| import javax.faces.event.ValueChangeEvent;
| import org.jboss.seam.ScopeType;
| import org.jboss.seam.annotations.Install;
| import org.jboss.seam.annotations.Intercept;
| import org.jboss.seam.annotations.Name;
| import org.jboss.seam.annotations.Scope;
| import org.jboss.seam.theme.ThemeSelector;
|
| // Use the same @Name as the built-in selector
| @Name("org.jboss.seam.theme.themeSelector")
| @Scope(ScopeType.SESSION)
| @Intercept(NEVER)
| @Install(precedence = APPLICATION)
| public class ThemeOnChangeSelector extends ThemeSelector {
|
| private String cookieName = "theme";
|
| // When overridden then this should NOT have @Create defined
| // again; it will inherit it.
| @Override
| public void initDefaultTheme() {
| // whatever, if needed.
| super.initDefaultTheme();
| }
|
| @Override
| public String getCookieName() {
| return cookieName;
| }
|
| public void setCookieName(String cookieName) {
| this.cookieName = cookieName;
| }
|
| public void valueChanged(ValueChangeEvent event) {
| setTheme((String) event.getNewValue());
| select();
| }
| }
Having used the very same value for @Name above, the logs will show:
anonymous wrote : org.jboss.seam.init.Initialization
| two components with same name, higher precedence wins: org.jboss.seam.theme.themeSelector
And, having used the very same value for @Name above, one can use the very same setup in components.xml:
<?xml version="1.0" encoding="UTF-8"?>
| <components xmlns="http://jboss.com/products/seam/components"
| xmlns:theme="http://jboss.com/products/seam/theme"
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| xsi:schemaLocation="
| http://jboss.com/products/seam/components http://jboss.com/products/seam/components-1.1.xsd
| http://jboss.com/products/seam/theme http://jboss.com/products/seam/theme-1.1.xsd">
|
| <theme:theme-selector cookie-enabled="true">
| <theme:available-themes>
| <value>default</value>
| <value>accessible</value>
| <value>printable</value>
| </theme:available-themes>
| </theme:theme-selector>
| </components>
...or, when one wants to use the additional setter for a different cookie name, then one cannot use the existing namespace, so:
<component name="org.jboss.seam.theme.themeSelector">
| <property name="availableThemes">
| <value>default</value>
| <value>accessible</value>
| <value>printable</value>
| </property>
| <property name="cookieEnabled">true</property>
| <property name="cookieName">skin</property>
| </component>
Now, the following works, still referring to the default #{themeSelector}:
<h:form>
| <h:selectOneMenu
| immediate="true"
| value="#{themeSelector.theme}"
| onchange="submit();"
| valueChangeListener="#{themeSelector.valueChanged}">
| <f:selectItems value="#{themeSelector.themes}" />
| </h:selectOneMenu>
|
| <h:selectOneMenu
| immediate="true"
| value="#{localeSelector.localeString}"
| onchange="submit();"
| valueChangeListener="#{localeSelector.select}">
| <f:selectItems value="#{localeSelector.supportedLocales}" />
| </h:selectOneMenu>
| </h:form>
Note that the immediate="true" are not actually required when these dropdowns are the only elements within the form. And note that any other form contents might be lost when the user selects another theme or language. See also: http://wiki.apache.org/myfaces/SubmitPageOnValueChange
In the pages, no changes are required:
<link href="#{theme.css}" rel="stylesheet" type="text/css" />
and
template="#{theme.template}"
Finally, when using both themes and localization then add the translations to, for example, messages_nl.properties:
org.jboss.seam.theme.default=Standaard
| org.jboss.seam.theme.accessible=Groot
| org.jboss.seam.theme.printable=Afdrukken
Enjoy,
Arjan.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4026205#4026205
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4026205
19Â years, 1Â month
[EJB/JBoss] - ClassCastException in JDBCMySQLCreateCommand
by imaeses
Hello all,
I have just installed MySQL 5.0.27 on my Windows machine (community-nt flavor). It is being accessed by JBoss 4.0.5.GA using the 5.0.5 Connector/J JDBC driver. I have a series of datasources backing up a variety of CMP's. Previously, I was using local (non-XA) datasources and everything worked fine.
No I want to set up XA datasources. I upgraded MySQL from 4.0.x and set up my XA datasources. Now, inserts on one of the datasources always fail with an IllegalArgumentException caused by a ClassCastException. (Stack trace below).
This is my XA datasource configuration:
<?xml version="1.0" encoding="UTF-8"?>
<xa-datasource>
<jndi-name>MySqlDS</jndi-name>
<xa-datasource-class>com.mysql.jdbc.jdbc2.optional.MysqlXADataSource</xa-datasource-class>
<xa-datasource-property name="URL">jdbc:mysql://localhost:3306/franco</xa-datasource-property>
<track-connection-by-tx/>
<no-tx-separate-pools/>
<transaction-isolation>TRANSACTION_READ_COMMITTED</transaction-isolation>
<user-name>root</user-name>
<min-pool-size>50</min-pool-size>
<max-pool-size>125</max-pool-size>
<exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.MySQLExceptionSorter</exception-sorter-class-name>
<!-- sql to call when connection is created
<new-connection-sql>some arbitrary sql</new-connection-sql>
-->
<!-- sql to call on an existing pooled connection when it is obtained from pool
<check-valid-connection-sql>some arbitrary sql</check-valid-connection-sql>
-->
<!-- corresponding type-mapping in the standardjbosscmp-jdbc.xml (optional) -->
<type-mapping>mySQL</type-mapping>
</xa-datasource>
Any ideas?
Many thanks!
Adam
2007-03-08 11:23:42,626 131990 ERROR [org.jboss.ejb.plugins.LogInterceptor] (JMS SessionPool Worker-0:) TransactionRolledbackLocalException in method: public abstract com.rdcompany.franco.ejb.interfaces.FailedMoLocal com.rdcompany.franco.ejb.interfaces.FailedMoLocalHome.create(com.rdcompany.franco.ejb.value.FailedMoValue) throws javax.ejb.CreateException, causedBy:
java.lang.IllegalArgumentException: object is not an instance of declaring class
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.ejb.plugins.cmp.jdbc.keygen.JDBCMySQLCreateCommand.executeInsert(JDBCMySQLCreateCommand.java:116)
at org.jboss.ejb.plugins.cmp.jdbc.JDBCAbstractCreateCommand.performInsert(JDBCAbstractCreateCommand.java:321)
at org.jboss.ejb.plugins.cmp.jdbc.JDBCAbstractCreateCommand.execute(JDBCAbstractCreateCommand.java:151)
at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.createEntity(JDBCStoreManager.java:587)
at org.jboss.ejb.plugins.CMPPersistenceManager.createEntity(CMPPersistenceManager.java:237)
at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.createEntity(CachedConnectionInterceptor.java:225)
at org.jboss.ejb.EntityContainer.createLocalHome(EntityContainer.java:625)
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.invocation.Invocation.performCall(Invocation.java:359)
at org.jboss.ejb.EntityContainer$ContainerInterceptor.invokeHome(EntityContainer.java:1126)
at org.jboss.ejb.plugins.AbstractInterceptor.invokeHome(AbstractInterceptor.java:105)
at org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invokeHome(EntitySynchronizationInterceptor.java:203)
at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invokeHome(CachedConnectionInterceptor.java:189)
at org.jboss.ejb.plugins.AbstractInterceptor.invokeHome(AbstractInterceptor.java:105)
at org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(EntityInstanceInterceptor.java:134)
at org.jboss.ejb.plugins.EntityLockInterceptor.invokeHome(EntityLockInterceptor.java:76)
at org.jboss.ejb.plugins.EntityCreationInterceptor.invokeHome(EntityCreationInterceptor.java:43)
at org.jboss.ejb.plugins.CallValidationInterceptor.invokeHome(CallValidationInterceptor.java:56)
at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:125)
at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:350)
at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:161)
at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:145)
at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:132)
at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderInterceptor.java:107)
at org.jboss.ejb.EntityContainer.internalInvokeHome(EntityContainer.java:521)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4026203#4026203
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4026203
19Â years, 1Â month
[JBoss Messaging] - VeifyError when talking to remote JMS server
by mskonda
Hello all,
I have a local JBossAS (with co-existing JMS but unsed!) and a remote JMS (purley JMS stuff) servers running parallel.
I've upgraded JBM to 1.2.0GA (JBoss4.0.3SP1)on both the servers (infact, I've built new instances to make sure nothing hangs from the previous installations)
However, when I deploy a simple MDB, it throws up a VerifyError (below). The error is due to creation of DLQ.
Note: I've set my local server's DefaultJMSProvider setup to point to the remote jms.
2007-03-08 10:57:02,330 DEBUG [org.jboss.ejb.plugins.jms.JMSContainerInvoker] Starting jboss.j2ee:service=EJB,plugin=invoker,binding=message-driven-bean,jndiName=testMDB
| 2007-03-08 10:57:02,330 DEBUG [org.jboss.ejb.plugins.jms.JMSContainerInvoker] Initializing
| 2007-03-08 10:57:02,330 DEBUG [org.jboss.ejb.plugins.jms.JMSContainerInvoker] Looking up provider adapter: java:/DefaultJMSProvider
| 2007-03-08 10:57:02,330 DEBUG [org.jboss.ejb.plugins.jms.JMSContainerInvoker] Provider adapter: org.jboss.jms.jndi.JNDIProviderAdapter@43ee1619
| 2007-03-08 10:57:02,334 TRACE [org.jboss.ejb.plugins.jms.DLQHandler] Constructing
| 2007-03-08 10:57:02,335 DEBUG [org.jboss.ejb.plugins.jms.DLQHandler] Creating DLQHandler
| 2007-03-08 10:57:02,438 WARN [org.jboss.ejb.plugins.jms.JMSContainerInvoker] JMS provider failure detected:
| java.lang.VerifyError: (class: org/jboss/jms/client/delegate/ClientConnectionFactoryDelegate, method: createConnectionDelegate signature: (Ljava/lang/String;Ljava/lang/String;I)Lorg/jboss/jms/server/endpoint/CreateConnectionResult;) Incompatible object argument for function cal
| at java.lang.Class.getDeclaredFields0(Native Method)
| at java.lang.Class.privateGetDeclaredFields(Class.java:2259)
| at java.lang.Class.getDeclaredField(Class.java:1852)
| at java.io.ObjectStreamClass.getDeclaredSUID(ObjectStreamClass.java:1582)
| at java.io.ObjectStreamClass.access$700(ObjectStreamClass.java:52)
| at java.io.ObjectStreamClass$2.run(ObjectStreamClass.java:408)
| at java.security.AccessController.doPrivileged(Native Method)
| at java.io.ObjectStreamClass.<init>(ObjectStreamClass.java:400)
| at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:297)
| at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:531)
| at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1552)
| at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1466)
| at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1699)
| at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
| at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1908)
| at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1832)
| at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1719)
| at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
| at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
| at java.rmi.MarshalledObject.get(MarshalledObject.java:135)
| at org.jnp.interfaces.MarshalledValuePair.get(MarshalledValuePair.java:57)
| at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:637)
| at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:572)
| at javax.naming.InitialContext.lookup(InitialContext.java:351)
| at org.jboss.ejb.plugins.jms.DLQHandler.createService(DLQHandler.java:151)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalCreate(ServiceMBeanSupport.java:245)
| at org.jboss.system.ServiceMBeanSupport.create(ServiceMBeanSupport.java:173)
| at org.jboss.ejb.plugins.jms.JMSContainerInvoker.innerStartDelivery(JMSContainerInvoker.java:605)
| at org.jboss.ejb.plugins.jms.JMSContainerInvoker.startService(JMSContainerInvoker.java:932)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:274)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:230)
| 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:141)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
| at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:943)
| at $Proxy0.start(Unknown Source)
| at org.jboss.system.ServiceController.start(ServiceController.java:428)
| at sun.reflect.GeneratedMethodAccessor11.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:141)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
| at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:179)
| at org.jboss.ejb.MessageDrivenContainer.startService(MessageDrivenContainer.java:262)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:274)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:230)
| 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:141)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
| at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:943)
| at $Proxy0.start(Unknown Source)
| at org.jboss.system.ServiceController.start(ServiceController.java:428)
| at sun.reflect.GeneratedMethodAccessor11.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:141)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
| at $Proxy52.start(Unknown Source)
| at org.jboss.ejb.EjbModule.startService(EjbModule.java:395)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:274)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:230)
| 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:141)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
| at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:943)
| at $Proxy0.start(Unknown Source)
| at org.jboss.system.ServiceController.start(ServiceController.java:428)
| at sun.reflect.GeneratedMethodAccessor11.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:141)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
| at $Proxy25.start(Unknown Source)
| at org.jboss.ejb.EJBDeployer.start(EJBDeployer.java:627)
| 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:141)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
| at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:80)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
| at $Proxy26.start(Unknown Source)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:989)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:790)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:753)
| at sun.reflect.GeneratedMethodAccessor52.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:141)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
| at $Proxy10.deploy(Unknown Source)
| at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:319)
| at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:507)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:192)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:265)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:274)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:230)
| 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:141)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
| at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:943)
| at $Proxy0.start(Unknown Source)
| at org.jboss.system.ServiceController.start(ServiceController.java:428)
| at sun.reflect.GeneratedMethodAccessor11.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:141)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
| at $Proxy4.start(Unknown Source)
| at org.jboss.deployment.SARDeployer.start(SARDeployer.java:285)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:989)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:790)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:753)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:737)
| 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:141)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
| at $Proxy5.deploy(Unknown Source)
| at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:453)
| at org.jboss.system.server.ServerImpl.start(ServerImpl.java:330)
| at org.jboss.Main.boot(Main.java:187)
| at org.jboss.Main$1.run(Main.java:438)
| at java.lang.Thread.run(Thread.java:595)
| 2007-03-08 10:57:02,442 DEBUG [org.jboss.ejb.plugins.jms.JMSContainerInvoker] innerStop
| 2007-03-08 10:57:02,443 DEBUG [org.jboss.ejb.plugins.jms.DLQHandler] Destroying DLQHandler
| 2007-03-08 10:57:02,443 DEBUG [org.jboss.ejb.plugins.jms.DLQHandler] Destroyed DLQHandler
| 2007-03-08 10:57:02,443 DEBUG [org.jboss.ejb.plugins.jms.JMSContainerInvoker] Waiting for reconnect internal 10000 ms
| 2007-03-08 10:57:02,450 DEBUG [org.jboss.ejb.plugins.jms.JMSContainerInvoker] Started jboss.j2ee:service=EJB,plugin=invoker,binding=message-driven-bean,jndiName=testMDB
| 2007-03-08 10:57:02,450 DEBUG [org.jboss.system.ServiceController] Starting dependent components for: jboss.j2ee:service=EJB,plugin=invoker,binding=message-driven-bean,jndiName=testMDB dependent components: []
| 2007-03-08 10:57:02,450 DEBUG [org.jboss.ejb.MessageDrivenContainer] Started jboss.j2ee:jndiName=testMDB,service=EJB
| 2007-03-08 10:57:02,450 DEBUG [org.jboss.system.ServiceController] Starting dependent components for: jboss.j2ee:jndiName=testMDB,service=EJB dependent components: []
| 2007-03-08 10:57:02,450 DEBUG [org.jboss.ejb.EjbModule] Started jboss.j2ee:service=EjbModule,module=test-unit-cmi2-framework-jms.jar
| 2007-03-08 10:57:02,451 DEBUG [org.jboss.system.ServiceController] Starting dependent components for: jboss.j2ee:service=EjbModule,module=test-unit-cmi2-framework-jms.jar dependent components: []
| 2007-03-08 10:57:02,451 INFO [org.jboss.ejb.EJBDeployer] Deployed: file:/sandbox/konmad-sbox/dev/platform/staging/nft/jboss-4.0.3SP1/server/custody01EAI/deploy/test-unit-cmi2-framework-jms.jar
|
Any pointers much appreciated.
NB: I've been successfully connected to remote JMS server from a standalone client and been able to send and recv messages (used the messaging-client.jar in the classpath).
Thanks
Madhu
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4026202#4026202
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4026202
19Â years, 1Â month
[J2EE Design Patterns] - <s:selectDate> in Portlet for="startDate" object is not an i
by Isabelle.Mathieu
Trying to use modify the registery portle example by adding
<h:inputText id="startDate"
value="{insurabilityRequest.startDate}" style="width:100">
<s:convertDateTime pattern="MM/dd/yyyy"/>
</h:inputText>
<s:selectDate for="startDate">
<h:graphicImage url="./img/dtpick.gif" />
</s:selectDate>
<h:message for="startDate" />
in a xhtml.
I got :
2007-03-08 11:13:08,898 ERROR [org.jboss.portal.portlet.container.be_cin_mycarenet_portlet_FixedMyFacesGenericPortlet] The portlet threw an exception
com.sun.facelets.tag.TagAttributeException: /insurability.xhtml @36,51 for="startDate" object is not an instance of declaring class
at com.sun.facelets.tag.BeanPropertyTagRule$LiteralPropertyMetadata.applyMetadata(BeanPropertyTagRule.java:53)
2007-03-08 11:13:09,740 ERROR [org.jboss.portal.core.command.ControllerCommand] Rendering portlet window default.default.Assurabilité triggered the following error :
com.sun.facelets.tag.TagAttributeException: /insurability.xhtml @36,51 for="startDate" object is not an instance of declaring class
at com.sun.facelets.tag.BeanPropertyTagRule$LiteralPropertyMetadata.applyMetadata(BeanPropertyTagRule.java:53)
================================================
Could somebody help me! Thanks a lot isabelle
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4026200#4026200
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4026200
19Â years, 1Â month
[JBoss Seam] - Re: SeamEntityConverter - Cannot access entityManager
by giannidoe
Thanks, after trying to inject EntityManager with "@In EntityManager entityManager" I can see it's a problem with the JNDI binding.
I'm running on Glassfish and I've tried the following:
components.xml
---------------------
<core:managed-persistence-context name="entityManager"
persistence-unit-jndi-name="java:comp/env/persistence/Orpello-PU"
auto-create="true" />
in web.xml
---------------------
<persistence-context-ref>
<persistence-context-ref-name>persistence/Orpello-PU</persistence-context-ref-name>
<persistence-unit-name>Orpello-PU</persistence-unit-name>
</persistence-context-ref>
persistence.xml
---------------------
<persistence-unit name="Orpello-PU" transaction-type="JTA">
.. and i get
Caused by: javax.naming.NameNotFoundException: No object bound to name java:comp/env/persistence/Orpello-PU
at com.sun.enterprise.naming.NamingManagerImpl.lookup(NamingManagerImpl.java:751)
at com.sun.enterprise.naming.java.javaURLContext.lookup(javaURLContext.java:156)
at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:307)
at javax.naming.InitialContext.lookup(InitialContext.java:392)
at org.jboss.seam.core.ManagedPersistenceContext.getEntityManagerFactoryFromJndiOrValueBinding(ManagedPersistenceContext.java:160)
... 115 more
Maybe getting a bit off-topic here but can anyone help on how I should bind the entity manager into JNDI in Glassfish?
>From what I have read the <persistence-context-ref> in web.xml should do it.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4026197#4026197
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4026197
19Â years, 1Â month
[Beginners Corner] - Re: while accessing twiddle i got errors
by thirumalmarugan
hi sri
when i try to access the service from there its showing error...
[root@THUSM1B161278 bin]# ./twiddle.sh get "jboss.system:service=threadpool"
16:11:46,958 ERROR [Twiddle] Exec failed
javax.management.InstanceNotFoundException: jboss.system:service=threadpool is not registered.
at org.jboss.mx.server.registry.BasicMBeanRegistry.get(BasicMBeanRegistry.java:509)
at org.jboss.mx.server.MBeanServerImpl.getMBeanInfo(MBeanServerImpl.java:649)
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.jmx.connector.invoker.InvokerAdaptorService.invoke(InvokerAdaptorService.java:250)
at sun.reflect.GeneratedMethodAccessor69.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:141)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:119)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:131)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:242)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
at org.jboss.invocation.jrmp.server.JRMPInvoker$MBeanServerAction.invoke(JRMPInvoker.java:775)
at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:382)
at sun.reflect.GeneratedMethodAccessor68.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
at sun.rmi.transport.Transport$1.run(Transport.java:153)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
at java.lang.Thread.run(Thread.java:595)
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247)
at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:126)
at org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unknown Source)
at org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvokerProxy.java:118)
at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:96)
at org.jboss.jmx.connector.invoker.client.InvokerAdaptorClientInterceptor.invoke(InvokerAdaptorClientInterceptor.java:58)
at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:55)
at org.jboss.proxy.ClientMethodInterceptor.invoke(ClientMethodInterceptor.java:59)
at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:86)
at $Proxy0.getMBeanInfo(Unknown Source)
ddle.command.GetCommand.execute(GetCommand.java:142)
at org.jboss.console.twiddle.Twiddle.main(Twiddle.java:288)
[root@THUSM1B161278 bin]#
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4026196#4026196
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4026196
19Â years, 1Â month