[JBossCache] - Re: TCP replication conf issue ?
by oew
Hi Manik,
Use of TcpDelegatingCacheLoader is my final intention , but it will come later I do this step after step.
regarding the jgroups version i use the on shipped with the cache distribution in both cases (1.4.0 & 1.4.1)
here is jbosscache.log when i use 1.4.1 :
| 2007-01-12 15:06:42,492 INFO [org.jboss.cache.PropertyConfigurator] (main) Found existing property editor for org.w3c.dom.Element: org.jboss.util.propertyeditor.ElementEditor@a17083
| 2007-01-12 15:06:42,492 INFO [org.jboss.cache.PropertyConfigurator] (main) attribute size: 15
| 2007-01-12 15:06:42,648 INFO [org.jboss.cache.factories.InterceptorChainFactory] (main) interceptor chain is:
| class org.jboss.cache.interceptors.CallInterceptor
| class org.jboss.cache.interceptors.PessimisticLockInterceptor
| class org.jboss.cache.interceptors.CacheStoreInterceptor
| class org.jboss.cache.interceptors.CacheLoaderInterceptor
| class org.jboss.cache.interceptors.UnlockInterceptor
| class org.jboss.cache.interceptors.ReplicationInterceptor
| class org.jboss.cache.interceptors.TxInterceptor
| class org.jboss.cache.interceptors.CacheMgmtInterceptor
| 2007-01-12 15:06:46,975 INFO [org.jboss.cache.TreeCache] (UpHandler (STATE_TRANSFER)) viewAccepted(): [10.32.2.48:7800|0] [10.32.2.48:7800]
| 2007-01-12 15:06:47,022 INFO [org.jboss.cache.TreeCache] (main) TreeCache local address is 10.32.2.48:7800
| 2007-01-12 15:06:47,022 INFO [org.jboss.cache.TreeCache] (main) State could not be retrieved (we are the first member in group)
| 2007-01-12 15:06:47,100 INFO [org.jboss.cache.TreeCache] (main) parseConfig(): PojoCacheConfig is empty
| 2007-01-12 15:06:47,100 INFO [org.jboss.cache.PropertyConfigurator] (main) Found existing property editor for org.w3c.dom.Element: org.jboss.util.propertyeditor.ElementEditor@197bb7
| 2007-01-12 15:06:47,116 INFO [org.jboss.cache.PropertyConfigurator] (main) attribute size: 15
| 2007-01-12 15:06:47,131 INFO [org.jboss.cache.factories.InterceptorChainFactory] (main) interceptor chain is:
| class org.jboss.cache.interceptors.CallInterceptor
| class org.jboss.cache.interceptors.PessimisticLockInterceptor
| class org.jboss.cache.interceptors.CacheStoreInterceptor
| class org.jboss.cache.interceptors.CacheLoaderInterceptor
| class org.jboss.cache.interceptors.UnlockInterceptor
| class org.jboss.cache.interceptors.ReplicationInterceptor
| class org.jboss.cache.interceptors.TxInterceptor
| class org.jboss.cache.interceptors.CacheMgmtInterceptor
| 2007-01-12 15:06:50,864 INFO [org.jboss.cache.TreeCache] (UpHandler (STATE_TRANSFER)) viewAccepted(): [10.32.2.48:7801|0] [10.32.2.48:7801]
| 2007-01-12 15:06:50,864 INFO [org.jboss.cache.TreeCache] (main) TreeCache local address is 10.32.2.48:7801
| 2007-01-12 15:06:50,864 INFO [org.jboss.cache.TreeCache] (main) State could not be retrieved (we are the first member in group)
| 2007-01-12 15:06:50,896 INFO [org.jboss.cache.TreeCache] (main) parseConfig(): PojoCacheConfig is empty
| 2007-01-12 15:06:50,896 INFO [org.jboss.cache.PropertyConfigurator] (main) Found existing property editor for org.w3c.dom.Element: org.jboss.util.propertyeditor.ElementEditor@80cac9
| 2007-01-12 15:06:50,911 INFO [org.jboss.cache.PropertyConfigurator] (main) attribute size: 15
| 2007-01-12 15:06:50,943 INFO [org.jboss.cache.factories.InterceptorChainFactory] (main) interceptor chain is:
| class org.jboss.cache.interceptors.CallInterceptor
| class org.jboss.cache.interceptors.PessimisticLockInterceptor
| class org.jboss.cache.interceptors.CacheStoreInterceptor
| class org.jboss.cache.interceptors.CacheLoaderInterceptor
| class org.jboss.cache.interceptors.UnlockInterceptor
| class org.jboss.cache.interceptors.ReplicationInterceptor
| class org.jboss.cache.interceptors.TxInterceptor
| class org.jboss.cache.interceptors.CacheMgmtInterceptor
| 2007-01-12 15:06:51,177 INFO [org.jboss.cache.TreeCache] (UpHandler (STATE_TRANSFER)) viewAccepted(): [10.32.2.48:7801|1] [10.32.2.48:7801, 10.32.2.48:7802]
| 2007-01-12 15:06:51,177 INFO [org.jboss.cache.TreeCache] (UpHandler (STATE_TRANSFER)) viewAccepted(): [10.32.2.48:7801|1] [10.32.2.48:7801, 10.32.2.48:7802]
| 2007-01-12 15:06:51,177 INFO [org.jboss.cache.TreeCache] (main) TreeCache local address is 10.32.2.48:7802
| 2007-01-12 15:06:51,224 INFO [org.jboss.cache.statetransfer.StateTransferGenerator_140] (UpHandler (STATE_TRANSFER)) returning the state for tree rooted in /(5619 bytes)
| 2007-01-12 15:06:51,224 INFO [org.jboss.cache.TreeCache] (UpHandler (STATE_TRANSFER)) received the state (size=5619 bytes)
| 2007-01-12 15:06:51,317 INFO [org.jboss.cache.TreeCache] (main) state was retrieved successfully (in 140 milliseconds)
| 2007-01-12 15:06:51,317 INFO [org.jboss.cache.TreeCache] (main) parseConfig(): PojoCacheConfig is empty
|
7800 & 7801 do not see each other, the test case inserts in 7800 and reads from 7801 & 7802 , of course it fails
and here is the log when running with 1.4.0 :
|
| 2007-01-12 15:04:22,474 INFO [org.jboss.cache.PropertyConfigurator] (main) Found existing property editor for org.w3c.dom.Element: org.jboss.util.propertyeditor.ElementEditor@c88440
| 2007-01-12 15:04:22,490 INFO [org.jboss.cache.PropertyConfigurator] (main) attribute size: 15
| 2007-01-12 15:04:22,615 INFO [org.jboss.cache.factories.InterceptorChainFactory] (main) interceptor chain is:
| class org.jboss.cache.interceptors.CallInterceptor
| class org.jboss.cache.interceptors.PessimisticLockInterceptor
| class org.jboss.cache.interceptors.CacheStoreInterceptor
| class org.jboss.cache.interceptors.CacheLoaderInterceptor
| class org.jboss.cache.interceptors.UnlockInterceptor
| class org.jboss.cache.interceptors.ReplicationInterceptor
| class org.jboss.cache.interceptors.TxInterceptor
| class org.jboss.cache.interceptors.CacheMgmtInterceptor
| 2007-01-12 15:04:27,051 INFO [org.jboss.cache.TreeCache] (main) TreeCache local address is 10.32.2.48:7800
| 2007-01-12 15:04:27,051 INFO [org.jboss.cache.TreeCache] (UpHandler (STATE_TRANSFER)) viewAccepted(): [10.32.2.48:7800|0] [10.32.2.48:7800]
| 2007-01-12 15:04:27,082 INFO [org.jboss.cache.TreeCache] (main) State could not be retrieved (we are the first member in group)
| 2007-01-12 15:04:27,192 INFO [org.jboss.cache.TreeCache] (main) parseConfig(): PojoCacheConfig is empty
| 2007-01-12 15:04:27,192 INFO [org.jboss.cache.PropertyConfigurator] (main) Found existing property editor for org.w3c.dom.Element: org.jboss.util.propertyeditor.ElementEditor@1a918d5
| 2007-01-12 15:04:27,207 INFO [org.jboss.cache.PropertyConfigurator] (main) attribute size: 15
| 2007-01-12 15:04:27,207 INFO [org.jboss.cache.factories.InterceptorChainFactory] (main) interceptor chain is:
| class org.jboss.cache.interceptors.CallInterceptor
| class org.jboss.cache.interceptors.PessimisticLockInterceptor
| class org.jboss.cache.interceptors.CacheStoreInterceptor
| class org.jboss.cache.interceptors.CacheLoaderInterceptor
| class org.jboss.cache.interceptors.UnlockInterceptor
| class org.jboss.cache.interceptors.ReplicationInterceptor
| class org.jboss.cache.interceptors.TxInterceptor
| class org.jboss.cache.interceptors.CacheMgmtInterceptor
| 2007-01-12 15:04:30,909 INFO [org.jboss.cache.TreeCache] (UpHandler (STATE_TRANSFER)) viewAccepted(): [10.32.2.48:7800|1] [10.32.2.48:7800, 10.32.2.48:7801]
| 2007-01-12 15:04:30,909 INFO [org.jboss.cache.TreeCache] (main) TreeCache local address is 10.32.2.48:7801
| 2007-01-12 15:04:30,909 INFO [org.jboss.cache.TreeCache] (UpHandler (STATE_TRANSFER)) viewAccepted(): [10.32.2.48:7800|1] [10.32.2.48:7800, 10.32.2.48:7801]
| 2007-01-12 15:04:30,972 INFO [org.jboss.cache.statetransfer.StateTransferGenerator_140] (UpHandler (STATE_TRANSFER)) returning the state for tree rooted in /(5619 bytes)
| 2007-01-12 15:04:30,972 INFO [org.jboss.cache.TreeCache] (UpHandler (STATE_TRANSFER)) received the state (size=5619 bytes)
| 2007-01-12 15:04:31,081 INFO [org.jboss.cache.TreeCache] (main) state was retrieved successfully (in 172 milliseconds)
| 2007-01-12 15:04:31,097 INFO [org.jboss.cache.TreeCache] (main) parseConfig(): PojoCacheConfig is empty
| 2007-01-12 15:04:31,097 INFO [org.jboss.cache.PropertyConfigurator] (main) Found existing property editor for org.w3c.dom.Element: org.jboss.util.propertyeditor.ElementEditor@5bb966
| 2007-01-12 15:04:31,112 INFO [org.jboss.cache.PropertyConfigurator] (main) attribute size: 15
| 2007-01-12 15:04:31,144 INFO [org.jboss.cache.factories.InterceptorChainFactory] (main) interceptor chain is:
| class org.jboss.cache.interceptors.CallInterceptor
| class org.jboss.cache.interceptors.PessimisticLockInterceptor
| class org.jboss.cache.interceptors.CacheStoreInterceptor
| class org.jboss.cache.interceptors.CacheLoaderInterceptor
| class org.jboss.cache.interceptors.UnlockInterceptor
| class org.jboss.cache.interceptors.ReplicationInterceptor
| class org.jboss.cache.interceptors.TxInterceptor
| class org.jboss.cache.interceptors.CacheMgmtInterceptor
| 2007-01-12 15:04:31,300 INFO [org.jboss.cache.TreeCache] (UpHandler (STATE_TRANSFER)) viewAccepted(): [10.32.2.48:7800|2] [10.32.2.48:7800, 10.32.2.48:7801, 10.32.2.48:7802]
| 2007-01-12 15:04:31,300 INFO [org.jboss.cache.TreeCache] (UpHandler (STATE_TRANSFER)) viewAccepted(): [10.32.2.48:7800|2] [10.32.2.48:7800, 10.32.2.48:7801, 10.32.2.48:7802]
| 2007-01-12 15:04:31,300 INFO [org.jboss.cache.TreeCache] (main) TreeCache local address is 10.32.2.48:7802
| 2007-01-12 15:04:31,300 INFO [org.jboss.cache.TreeCache] (UpHandler (STATE_TRANSFER)) viewAccepted(): [10.32.2.48:7800|2] [10.32.2.48:7800, 10.32.2.48:7801, 10.32.2.48:7802]
| 2007-01-12 15:04:31,300 INFO [org.jboss.cache.statetransfer.StateTransferGenerator_140] (UpHandler (STATE_TRANSFER)) returning the state for tree rooted in /(5619 bytes)
| 2007-01-12 15:04:31,315 INFO [org.jboss.cache.TreeCache] (UpHandler (STATE_TRANSFER)) received the state (size=5619 bytes)
| 2007-01-12 15:04:31,362 INFO [org.jboss.cache.TreeCache] (main) state was retrieved successfully (in 62 milliseconds)
| 2007-01-12 15:04:31,362 INFO [org.jboss.cache.TreeCache] (main) parseConfig(): PojoCacheConfig is empty
|
same code produces these 2 files! just libs are different
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4000972#4000972
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4000972
19 years, 3 months
[JBoss Portal] - javax.portlet.PortletException: INIT_VIEW_PARAMETER must be
by NewTo23
Hi,
I have my Sun JSF application deployed successfully in my JBoss portal server 2.4.1
While launching the portal application, I am getting an exception like,
2007-01-12 09:38:40,729 ERROR [org.jboss.portal.portlet.container.com_sun_faces_portlet_FacesPortlet] The portlet threw an exception
javax.portlet.PortletException: INIT_VIEW_PARAMETER must be specified
at com.sun.faces.portlet.FacesPortlet.render(FacesPortlet.java:290)
My portlet.xml file is,
anonymous wrote :
| <portlet-name>TestPortlet</portlet-name>
| <portlet-class>com.sun.faces.portlet.FacesPortlet</portlet-class>
| <init-param>
| default-view
| /index.jsp
| </init-param>
|
| <mime-type>text/html</mime-type>
| <portlet-mode>VIEW</portlet-mode>
|
| <portlet-info>
| Test JSF Portlet
| </portlet-info>
|
My -object.xml file is,
anonymous wrote :
|
| <if-exists>overwrite</if-exists>
| <parent-ref>default.default</parent-ref>
|
| <window-name>TestPortletWindow</window-name>
| <instance-ref>TestPortletInstance</instance-ref>
| center
| 1
|
|
|
My portlet-instances.xml file is,
anonymous wrote :
|
|
| <instance-id>TestPortletInstance</instance-id>
| <portlet-ref>TestPortlet</portlet-ref>
|
|
|
Please help me in resolving this issue.
Thanks.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4000970#4000970
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4000970
19 years, 3 months
[JBoss Messaging] - Re: JMS Exceptions / Mismatch of JBossSerialization version
by rtm333
Tim,
Thanks a lot for your help.
I have compared your code snippets with our actual files.
Our deploy/jboss-messaging.sar/remoting-service.xml looks like this:
| <mbean code="org.jboss.remoting.transport.Connector"
| name="jboss.messaging:service=Connector,transport=socket"
| display-name="Socket transport Connector">
| <attribute name="Configuration">
| <config>
| <invoker transport="socket">
| <attribute name="marshaller" isParam="true">org.jboss.jms.server.remoting.JMSWireFormat</attribute>
| <attribute name="unmarshaller" isParam="true">org.jboss.jms.server.remoting.JMSWireFormat</attribute>
| <attribute name="serializationtype" isParam="true">jboss</attribute>
| <attribute name="dataType" isParam="true">jms</attribute>
| <attribute name="socket.check_connection" isParam="true">false</attribute>
| <attribute name="timeout">0</attribute>
| <attribute name="serverBindAddress">${jboss.bind.address}</attribute>
| <attribute name="serverBindPort">4457</attribute>
| <attribute name="leasePeriod">20000</attribute>
| <attribute name="clientSocketClass" isParam="true">org.jboss.jms.client.remoting.ClientSocketWrapper</attribute>
| <attribute name="serverSocketClass">org.jboss.jms.server.remoting.ServerSocketWrapper</attribute>
| </invoker>
| <handlers>
| <handler subsystem="JMS">org.jboss.jms.server.remoting.JMSServerInvocationHandler</handler>
| </handlers>
| </config>
| </attribute>
| <depends>jboss.messaging:service=NetworkRegistry</depends>
| </mbean>
|
It differs from your template in the serialization type (jboss vs. jms), the lease period, and the missing callbackStore definition. This file should be unchanged from the Messaging 1.0.1.SP2 installation.
The code in our bindings xml file also reflects these differences (I suppose it has to match the definition from remoting-service.xml and not messaging-service.xml). There is one further difference: The serverBindPort value is already showing the new port number, not the original one as in your example. If I specify the original port, the mapping is not performed.
<service-config name="jboss.messaging:service=Connector,transport=socket"
| delegateClass="org.jboss.services.binding.AttributeMappingDelegate">
| <delegate-config>
| <attribute name="Configuration"><![CDATA[
| <config>
| <invoker transport="socket">
| <attribute name="marshaller" isParam="true">org.jboss.jms.server.remoting.JMSWireFormat</attribute>
| <attribute name="unmarshaller" isParam="true">org.jboss.jms.server.remoting.JMSWireFormat</attribute>
| <attribute name="serializationtype" isParam="true">jboss</attribute>
| <attribute name="dataType" isParam="true">jms</attribute>
| <attribute name="socket.check_connection" isParam="true">false</attribute>
| <attribute name="timeout">0</attribute>
| <attribute name="serverBindAddress">${jboss.bind.address}</attribute>
| <attribute name="serverBindPort">11107</attribute>
| <attribute name="leasePeriod">20000</attribute>
| <attribute name="clientSocketClass" isParam="true">org.jboss.jms.client.remoting.ClientSocketWrapper</attribute>
| <attribute name="serverSocketClass">org.jboss.jms.server.remoting.ServerSocketWrapper</attribute>
| </invoker>
| <handlers>
| <handler subsystem="JMS">org.jboss.jms.server.remoting.JMSServerInvocationHandler</handler>
| </handlers>
| </config>
| ]]>
| </attribute>
| </delegate-config>
|
| <binding port="11107" />
| </service-config>
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4000959#4000959
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4000959
19 years, 3 months
[JBoss Messaging] - Re: JMS Exceptions / Mismatch of JBossSerialization version
by mskonda
Tim, I don't have those properties in my remoting-service.xml or bindings.xml files.
So, I have added and changed the serializatingtype to jms and deployed.
I get this NCFE:
| 14:31:22,168 ERROR [SocketServerInvoker] Failed to accept socket connection
| java.lang.ClassNotFoundException: No ClassLoaders found for: org.jboss.jms.server.remoting.ServerSocketWrapper
| at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:292)
| at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:475)
| at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:377)
| at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
| at org.jboss.remoting.transport.socket.ServerThread.createServerSocket(ServerThread.java:185)
| at org.jboss.remoting.transport.socket.ServerThread.<init>(ServerThread.java:99)
| at org.jboss.remoting.transport.socket.SocketServerInvoker.processInvocation(SocketServerInvoker.java:497)
| at org.jboss.remoting.transport.socket.SocketServerInvoker.run(SocketServerInvoker.java:450)
| at java.lang.Thread.run(Thread.java:595)
|
I am using 1.0.1GA, so is this fucntionality not available in 1.0.x?
Thanks
Madhu
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4000958#4000958
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4000958
19 years, 3 months