11 Replies Latest reply on Jun 9, 2004 4:14 PM by Daniel Le Berre

    Problem with HTML Block

    Daniel Le Berre Newbie

      I am using my own CVS snapshot from June 2.

      i noticed that each time I stop and restart jboss, I am loosing the all the fileids in my HtmlBlocks. I need to set them again using the Blocks management interface.

      Does anyone noticed that?

      --Daniel

        • 1. Re: Problem with HTML Block
          Viet Master

          how do you create the block ? with the block module or with an external service XML file ?

          • 2. Re: Problem with HTML Block
            Daniel Le Berre Newbie


            i am using the block module.

            relatedsites is an HTML block module linked to the /links.html fileid.

            Is it possible that the problem is related to that message when I start jboss?

            17:12:33,363 INFO [JDBCDeploymentScanner] Deployed nukes.blocks:name=relatedsites
            17:12:33,930 ERROR [JDBCPersistenceManager] Cannot sync attribute
            org.jboss.nukes.utils.ConversionException: A property editor has not been found for type java.util.Map
             at org.jboss.nukes.utils.Tools.findEditor(Tools.java:777)
             at org.jboss.nukes.utils.Tools.fromObject(Tools.java:831)
             at org.jboss.nukes.system.JDBCPersistenceManager.syncAttribute(JDBCPersistenceManager.java:102)
             at org.jboss.nukes.system.JDBCPersistenceManager.load(JDBCPersistenceManager.java:289)
             at org.jboss.nukes.system.JDBCPersistenceManager.load(JDBCPersistenceManager.java:320)
             at org.jboss.mx.modelmbean.ModelMBeanInvoker.load(ModelMBeanInvoker.java:237)
             at org.jboss.mx.modelmbean.ModelMBeanInvoker.initPersistence(ModelMBeanInvoker.java:413)
             at org.jboss.mx.modelmbean.ModelMBeanInvoker.preRegister(ModelMBeanInvoker.java:294)
             at org.jboss.mx.server.registry.BasicMBeanRegistry.registerMBean(BasicMBeanRegistry.java:148)
             at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
             at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
             at java.lang.reflect.Method.invoke(Method.java:324)
             at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
             at org.jboss.mx.interceptor.ObjectReferenceInterceptor.invoke(ObjectReferenceInterceptor.java:59)
             at org.jboss.mx.interceptor.MBeanAttributeInterceptor.invoke(MBeanAttributeInterceptor.java:43)
             at org.jboss.mx.interceptor.PersistenceInterceptor2.invoke(PersistenceInterceptor2.java:93)
             at org.jboss.mx.server.MBeanInvoker.invoke(MBeanInvoker.java:76)
             at javax.management.modelmbean.RequiredModelMBean.invoke(RequiredModelMBean.java:144)
             at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
             at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:997)
             at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:957)
             at org.jboss.mx.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:319)
             at org.jboss.system.ServiceCreator.install(ServiceCreator.java:121)
             at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:151)
             at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:114)
             at org.jboss.system.ServiceController.install(ServiceController.java:225)
             at sun.reflect.GeneratedMethodAccessor23.invoke(Unknown Source)
             at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
             at java.lang.reflect.Method.invoke(Method.java:324)
             at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
             at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
             at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
             at $Proxy4.install(Unknown Source)
             at org.jboss.deployment.SARDeployer.create(SARDeployer.java:183)
             at org.jboss.deployment.MainDeployer.create(MainDeployer.java:786)
             at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:641)
             at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)
             at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source)
             at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
             at java.lang.reflect.Method.invoke(Method.java:324)
             at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
             at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
             at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
             at $Proxy6.deploy(Unknown Source)
             at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:302)
             at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:476)
             at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:201)
             at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:212)
             at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:191)
            1
            


            • 3. Re: Problem with HTML Block
              Viet Master

              it seems indeed. do you know what component has a java.util.Map as Attribute ?

              • 4. Re: Problem with HTML Block
                Daniel Le Berre Newbie

                Well, from HtmlModule:

                 /** Keep track of the page views during a snapshot intervall. */
                 private transient ConcurrentHashMap statistics = new ConcurrentHashMap();
                
                 /** Our stat scheduler. */
                 private Scheduler scheduler = new Scheduler();
                
                 /** Plugin key to plugin instance. */
                 private Map pluginKeyToPlugin = new HashMap();
                
                 /** Content type to plugin instance. */
                 private Map contentTypeToPlugin = new HashMap();
                
                


                • 5. Re: Problem with HTML Block
                  Viet Master

                  but these map are not exposed with a getter/setter pair so they should not raise any issue (at least on my local installation)

                  • 6. Re: Problem with HTML Block
                    jae Master

                    are you doing actual checkouts from cvs, or are you taking tar.gz-ed (or zip if sf.net makes those) snapshots?

                    there have been other reports of wierdness when using the snapshots that don't occur when doing actual checkouts from cvs. perhaps this could be another instance of that?

                    • 7. Re: Problem with HTML Block
                      Daniel Le Berre Newbie

                      I downloaded one snapshot and I did a fresh cvs update on it on june 2.

                      --Daniel

                      • 8. Re: Problem with HTML Block
                        jae Master

                        can you just ditch the entire snapshot and just pull a fresh copy out of cvs against this tag

                        NUKES_1_1_0_RC1

                        and see if you get the same problems. the html module would not have been modified since i created this tag, so you would never pull any updates for it.

                        • 9. Re: Problem with HTML Block
                          Daniel Le Berre Newbie

                          For some reasons i cannot access jboss cvs since a few days.

                          I can access eclipse 'cvs repository, so I guess the problem is not on my side.

                          any idea what's going on?

                          --Daniel

                          • 10. Re: Problem with HTML Block
                            jae Master

                            there was an issue w/ there being a lock that wouldn't go away, but that was resolved earlier in the week.

                            i was just able to connect and do an update w/o issue

                            • 11. Re: Problem with HTML Block
                              Daniel Le Berre Newbie

                              I found the problem.

                              For some reasons, on the downladed snapshot, the cvs server is
                              cvs.jboss.sourceforge.net

                              while it looks like the correct server name is
                              cvs.sourceforge.net