[JBossCache] - Problem using jboss cache with FileCacheLoader
by haribaasha
i tried using the jboss cache with a simple filecache loader. it seems to work fine in the beginning. but after a while, when the size of the cache directory comes to about 270 MB, tats also about 12000 folders created in the cache directory i get the following exception while trying to write anything else after wards :
i used a LFU policy with this. Then i wrote a custom LRU policy wherein it will remove the node from the in-memory cache leading to the node removed from the persistent storage as well (refer to http://www.jboss.com/index.html?module=bb&op=viewtopic&t=103452) and this worked, but i cant afford to remove it from storage...
ava.lang.RuntimeException: java.io.IOException: No such file or directory
17:03:58,050 INFO [RMI TCP Connection(8779)-10.1.30.68] at
org.jboss.cache.TreeCache.invokeMethod(TreeCache.java:5526)
17:03:58,050 INFO [RMI TCP Connection(8779)-10.1.30.68] at
org.jboss.cache.TreeCache.put(TreeCache.java:3678)
17:03:58,051 INFO [RMI TCP Connection(8779)-10.1.30.68] at
org.jboss.cache.TreeCache.put(TreeCache.java:3616)
17:03:58,051 INFO [RMI TCP Connection(8779)-10.1.30.68] at
sun.reflect.GeneratedMethodAccessor88.invoke(Unknown Source)
17:03:58,051 INFO [RMI TCP Connection(8779)-10.1.30.68] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
17:03:58,051 INFO [RMI TCP Connection(8779)-10.1.30.68] at
java.lang.reflect.Method.invoke(Method.java:585)
17:03:58,051 INFO [RMI TCP Connection(8779)-10.1.30.68] at
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
17:03:58,051 INFO [RMI TCP Connection(8779)-10.1.30.68] at
org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
17:03:58,051 INFO [RMI TCP Connection(8779)-10.1.30.68] at
org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
17:03:58,051 INFO [RMI TCP Connection(8779)-10.1.30.68] at
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
17:03:58,051 INFO [RMI TCP Connection(8779)-10.1.30.68] at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
17:03:58,051 INFO [RMI TCP Connection(8779)-10.1.30.68] at
org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
17:03:58,051 INFO [RMI TCP Connection(8779)-10.1.30.68] at
$Proxy51414.put(Unknown Source)
17:03:58,051 INFO [RMI TCP Connection(8779)-10.1.30.68] at
com.riskspan.rssecloader.RSJbossCache.updateCache(RSJbossCache.java:76)
17:03:58,051 INFO [RMI TCP Connection(8779)-10.1.30.68] at
com.riskspan.rssecloader.RSIndicativeDBProvider._intexMapBuilder(RSIndicativeDBProvider.java:645)
17:03:58,051 INFO [RMI TCP Connection(8779)-10.1.30.68] at
com.riskspan.rssecloader.RSIndicativeDBProvider.getFromIntexDB(RSIndicativeDBProvider.java:290)
17:03:58,051 INFO [RMI TCP Connection(8779)-10.1.30.68] at
com.riskspan.rssecloader.RSIndicativeLoader.loadCMO(RSIndicativeLoader.java:198)
17:03:58,051 INFO [RMI TCP Connection(8779)-10.1.30.68] at
com.riskspan.rssecloader.RSIndicativeLoader.loadIntexCMO(RSIndicativeLoader.java:242)
17:03:58,051 INFO [RMI TCP Connection(8779)-10.1.30.68] at
com.riskspan.rssecloader.RSSecurityLoader.validate(RSSecurityLoader.java:431)
17:03:58,052 INFO [RMI TCP Connection(8779)-10.1.30.68] at
com.riskspan.rssecloader.RSSecurityLoader.load(RSSecurityLoader.java:592)
17:03:58,052 INFO [RMI TCP Connection(8779)-10.1.30.68] at
com.riskspan.rssecloader.RSSecurityLoader.loadIndicatives(RSSecurityLoader.java:658)
17:03:58,052 INFO [RMI TCP Connection(8779)-10.1.30.68] at
com.riskspan.services.indicservice.RSIndicativeService.serviceRequest(RSIndicativeService.java:56)
17:03:58,052 INFO [RMI TCP Connection(8779)-10.1.30.68] at
sun.reflect.GeneratedMethodAccessor85.invoke(Unknown Source)
17:03:58,052 INFO [RMI TCP Connection(8779)-10.1.30.68] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
17:03:58,052 INFO [RMI TCP Connection(8779)-10.1.30.68] at
java.lang.reflect.Method.invoke(Method.java:585)
17:03:58,052 INFO [RMI TCP Connection(8779)-10.1.30.68] at
org.jboss.invocation.Invocation.performCall(Invocation.java:345)
17:03:58,052 INFO [RMI TCP Connection(8779)-10.1.30.68] at
org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:214)
17:03:58,052 INFO [RMI TCP Connection(8779)-10.1.30.68] at
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:185)
17:03:58,052 INFO [RMI TCP Connection(8779)-10.1.30.68] at
org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:130)
17:03:58,052 INFO [RMI TCP Connection(8779)-10.1.30.68] at
org.jboss.webservice.server.ServiceEndpointInterceptor.invoke(ServiceEndpointInterceptor.java:51)
17:03:58,052 INFO [RMI TCP Connection(8779)-10.1.30.68] at
org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:48)
17:03:58,052 INFO [RMI TCP Connection(8779)-10.1.30.68] at
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:105)
17:03:58,052 INFO [RMI TCP Connection(8779)-10.1.30.68] at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:335)
17:03:58,052 INFO [RMI TCP Connection(8779)-10.1.30.68] at
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:166)
17:03:58,052 INFO [RMI TCP Connection(8779)-10.1.30.68] at
org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:139)
17:03:58,052 INFO [RMI TCP Connection(8779)-10.1.30.68] at
org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192)
17:03:58,052 INFO [RMI TCP Connection(8779)-10.1.30.68] at
org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
17:03:58,052 INFO [RMI TCP Connection(8779)-10.1.30.68] at
org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:624)
17:03:58,052 INFO [RMI TCP Connection(8779)-10.1.30.68] at
org.jboss.ejb.Container.invoke(Container.java:873)
17:03:58,053 INFO [RMI TCP Connection(8779)-10.1.30.68] at
sun.reflect.GeneratedMethodAccessor79.invoke(Unknown Source)
17:03:58,053 INFO [RMI TCP Connection(8779)-10.1.30.68] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
17:03:58,053 INFO [RMI TCP Connection(8779)-10.1.30.68] at
java.lang.reflect.Method.invoke(Method.java:585)
17:03:58,053 INFO [RMI TCP Connection(8779)-10.1.30.68] at
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
17:03:58,053 INFO [RMI TCP Connection(8779)-10.1.30.68] at
org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
17:03:58,053 INFO [RMI TCP Connection(8779)-10.1.30.68] at
org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
17:03:58,053 INFO [RMI TCP Connection(8779)-10.1.30.68] at
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
17:03:58,053 INFO [RMI TCP Connection(8779)-10.1.30.68] at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
17:03:58,053 INFO [RMI TCP Connection(8779)-10.1.30.68] at
org.jboss.invocation.jrmp.server.JRMPInvoker$MBeanServerAction.invoke(JRMPInvoker.java:805)
17:03:58,053 INFO [RMI TCP Connection(8779)-10.1.30.68] at
org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:406)
17:03:58,053 INFO [RMI TCP Connection(8779)-10.1.30.68] at
sun.reflect.GeneratedMethodAccessor78.invoke(Unknown Source)
17:03:58,053 INFO [RMI TCP Connection(8779)-10.1.30.68] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
17:03:58,053 INFO [RMI TCP Connection(8779)-10.1.30.68] at
java.lang.reflect.Method.invoke(Method.java:585)
17:03:58,053 INFO [RMI TCP Connection(8779)-10.1.30.68] at
sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
17:03:58,053 INFO [RMI TCP Connection(8779)-10.1.30.68] at
sun.rmi.transport.Transport$1.run(Transport.java:153)
17:03:58,053 INFO [RMI TCP Connection(8779)-10.1.30.68] at
java.security.AccessController.doPrivileged(Native Method)
17:03:58,053 INFO [RMI TCP Connection(8779)-10.1.30.68] at
sun.rmi.transport.Transport.serviceCall(Transport.java:149)
17:03:58,053 INFO [RMI TCP Connection(8779)-10.1.30.68] at
sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
17:03:58,053 INFO [RMI TCP Connection(8779)-10.1.30.68] at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
17:03:58,053 INFO [RMI TCP Connection(8779)-10.1.30.68] at
java.lang.Thread.run(Thread.java:595)
17:03:58,053 INFO [RMI TCP Connection(8779)-10.1.30.68] Caused by:
java.io.IOException: No such file or directory
17:03:58,054 INFO [RMI TCP Connection(8779)-10.1.30.68] at
java.io.UnixFileSystem.createFileExclusively(Native Method)
17:03:58,054 INFO [RMI TCP Connection(8779)-10.1.30.68] at
java.io.File.createNewFile(File.java:850)
17:03:58,054 INFO [RMI TCP Connection(8779)-10.1.30.68] at
org.jboss.cache.loader.FileCacheLoader.storeAttributes(FileCacheLoader.java:434)
17:03:58,054 INFO [RMI TCP Connection(8779)-10.1.30.68] at
org.jboss.cache.loader.FileCacheLoader.put(FileCacheLoader.java:124)
17:03:58,054 INFO [RMI TCP Connection(8779)-10.1.30.68] at
org.jboss.cache.interceptors.CacheStoreInterceptor.invoke(CacheStoreInterceptor.java:216)
17:03:58,054 INFO [RMI TCP Connection(8779)-10.1.30.68] at
org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:68)
17:03:58,054 INFO [RMI TCP Connection(8779)-10.1.30.68] at
org.jboss.cache.interceptors.CacheLoaderInterceptor.invoke(CacheLoaderInterceptor.java:197)
17:03:58,054 INFO [RMI TCP Connection(8779)-10.1.30.68] at
org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:68)
17:03:58,054 INFO [RMI TCP Connection(8779)-10.1.30.68] at
org.jboss.cache.interceptors.UnlockInterceptor.invoke(UnlockInterceptor.java:32)
17:03:58,054 INFO [RMI TCP Connection(8779)-10.1.30.68] at
org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:68)
17:03:58,054 INFO [RMI TCP Connection(8779)-10.1.30.68] at
org.jboss.cache.interceptors.ReplicationInterceptor.invoke(ReplicationInterceptor.java:34)
17:03:58,054 INFO [RMI TCP Connection(8779)-10.1.30.68] at
org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:68)
17:03:58,054 INFO [RMI TCP Connection(8779)-10.1.30.68] at
org.jboss.cache.interceptors.TxInterceptor.handleNonTxMethod(TxInterceptor.java:345)
17:03:58,054 INFO [RMI TCP Connection(8779)-10.1.30.68] at
org.jboss.cache.interceptors.TxInterceptor.invoke(TxInterceptor.java:156)
17:03:58,054 INFO [RMI TCP Connection(8779)-10.1.30.68] at
org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:68)
17:03:58,054 INFO [RMI TCP Connection(8779)-10.1.30.68] at
org.jboss.cache.interceptors.CacheMgmtInterceptor.invoke(CacheMgmtInterceptor.java:157)
17:03:58,054 INFO [RMI TCP Connection(8779)-10.1.30.68] at
org.jboss.cache.TreeCache.invokeMethod(TreeCache.java:5520)
17:03:58,054 INFO [RMI TCP Connection(8779)-10.1.30.68] ... 58 more
The same problem does not exist while using Bdje, and can write even contents which make up to 500 Mb in the persistent storage. I have no problem in using Bdje but was wondering why this happened with FileCacheLoader and if there was any solution to the problem....
The machines memory was about 1400 MB out of the max ram of 1500 MB. once i shutdown jboss it came down by about 250 mb. but after deleting the cache directory itself the memory came down b y 250 Mb or so..
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4027044#4027044
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4027044
19Â years, 1Â month
[JBoss Getting Started Documentation] - Running Duck's bank problem- DS setting up failed
by hwajay
I am running Duck's bank with the default database hsql, and according to the Chapter 4 in Jboss Get started doc, it says that HSQL has 2 modes : in persistence and C/S, and I need to use
<connection-url>jdbc:hsqldb:hsql://localhost:1701</connection-url> in the hsql-ds.xml
anonymous wrote : <local-tx-datasource>
| <jndi-name>DefaultDS</jndi-name>
| <connection-url>jdbc:hsqldb:hsql://localhost:1701</connection-url>
| <!--<connection-url>jdbc:hsqldb:${jboss.server.data.dir}${/}hypersonic${/}localDB</connection-url> -->
| <driver-class>org.hsqldb.jdbcDriver</driver-class>
| <user-name>sa</user-name>
|
| <min-pool-size>5</min-pool-size>
| <max-pool-size>20</max-pool-size>
|
But after i set the config like this, i got the following error when i start my server Jboss4.0.5 GA
anonymous wrote :
| 2007-03-12 05:03:36,609 DEBUG [org.jboss.util.NestedThrowable] org.jboss.util.NestedThrowable.parentTraceEnabled=true
| 2007-03-12 05:03:36,609 DEBUG [org.jboss.util.NestedThrowable] org.jboss.util.NestedThrowable.nestedTraceEnabled=false
| 2007-03-12 05:03:36,609 DEBUG [org.jboss.util.NestedThrowable] org.jboss.util.NestedThrowable.detectDuplicateNesting=true
| 2007-03-12 05:03:36,593 WARN [org.jboss.resource.connectionmanager.JBossManagedConnectionPool] Throwable while attempting to get a new connection: null
| org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (java.sql.SQLException: socket creation error)
| at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.createManagedConnection(LocalManagedConnectionFactory.java:179)
| at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.createConnectionEventListener(InternalManagedConnectionPool.java:565)
| at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.getConnection(InternalManagedConnectionPool.java:250)
| at org.jboss.resource.connectionmanager.JBossManagedConnectionPool$BasePool.getConnection(JBossManagedConnectionPool.java:491)
| at org.jboss.resource.connectionmanager.BaseConnectionManager2.getManagedConnection(BaseConnectionManager2.java:341)
| at org.jboss.resource.connectionmanager.TxConnectionManager.getManagedConnection(TxConnectionManager.java:301)
| at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:396)
| at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:842)
| at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:88)
| at org.jboss.ejb.plugins.cmp.jdbc.SQLUtil.tableExists(SQLUtil.java:995)
| at org.jboss.ejb.txtimer.GeneralPurposeDatabasePersistencePlugin.createTableIfNotExists(GeneralPurposeDatabasePersistencePlugin.java:112)
| at org.jboss.ejb.txtimer.DatabasePersistencePolicy.startService(DatabasePersistencePolicy.java:95)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
| at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:196)
| 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:995)
| 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 org.jboss.system.ServiceController.start(ServiceController.java:435)
| at sun.reflect.GeneratedMethodAccessor9.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 $Proxy42.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.GeneratedMethodAccessor24.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 $Proxy8.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:263)
| 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.GeneratedMethodAccessor2.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 sun.reflect.GeneratedMethodAccessor9.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 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: java.sql.SQLException: socket creation error
| at org.hsqldb.jdbc.Util.sqlException(Unknown Source)
| at org.hsqldb.jdbc.jdbcConnection.(Unknown Source)
| at org.hsqldb.jdbcDriver.getConnection(Unknown Source)
| at org.hsqldb.jdbcDriver.connect(Unknown Source)
| at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.createManagedConnection(LocalManagedConnectionFactory.java:171)
| ... 123 more
is there anyone can help ?
thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4027040#4027040
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4027040
19Â years, 1Â month
[JBoss Seam] - Seam and Web Services
by modoc
I was trying to expose some methods on a Seam component as web services using the @WebMethod annotations as per the JBoss WS documentation. It almost worked, except that the web service called a non-instantiated class, so all the seam stuff didn't work. Which makes sense. (It's my first time making a web service).
At any rate, I then tried using the following code:
| Class[] args1 = new Class[2];
| args1[0] = String.class;
| args1[1] = String.class;
| String[] zipsArray = new String[2];
| zipsArray[0] = pZip1;
| zipsArray[1] = pZip2;
| Component comp = Seam.componentForName("carbonCalculator");
| Double cost = 0.0;
| try {
| cost = (Double) comp.callComponentMethod(comp, CarbonCalculator.class.getMethod("calculateCost", args1),
| (Object[]) zipsArray);
| } catch (SecurityException e) {
| // TODO Auto-generated catch block
| e.printStackTrace();
| } catch (NoSuchMethodException e) {
| // TODO Auto-generated catch block
| e.printStackTrace();
| }
| return cost;
|
I kept getting a no such method error. The method exists on the seam component.
Anyway, I didn't know if there were any examples or documentation or approaches for exposing seam component's as web services? For the time being I have a non-seam copy of the code to support the web service, but that's clearly a bad approach.
Ideas?
Thanks!
Devon
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4027039#4027039
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4027039
19Â years, 1Â month