[Design of JBoss Portal] - why PortalObjectImpl.getChild does not use cache?
by prabhat.jha@jboss.com
In my perf testing, I have found that a call made to PortalObjectImpl.getChild results into connection to database.
| at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:9
| 0)
| [JBoss] at org.hibernate.connection.DatasourceConnectionProvider.getConnection(DatasourceConnection
| Provider.java:69)
| [JBoss] at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:423)
| [JBoss] at org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:144)
| [JBoss] at org.hibernate.jdbc.AbstractBatcher.prepareQueryStatement(AbstractBatcher.java:139)
| [JBoss] at org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1547)
| [JBoss] at org.hibernate.loader.Loader.doQuery(Loader.java:673)
| [JBoss] at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:236)
| [JBoss] at org.hibernate.loader.Loader.loadEntity(Loader.java:1907)
| [JBoss] at org.hibernate.loader.entity.CollectionElementLoader.loadElement(CollectionElementLoader.
| java:72)
| [JBoss] at org.hibernate.persister.collection.OneToManyPersister.getElementByIndex(OneToManyPersist
| er.java:360)
| [JBoss] at org.hibernate.collection.AbstractPersistentCollection.readElementByIndex(AbstractPersist
| entCollection.java:158)
| [JBoss] at org.hibernate.collection.PersistentMap.get(PersistentMap.java:146)
| [JBoss] at org.jboss.portal.core.impl.model.portal.PortalObjectImpl.getChild(PortalObjectImpl.java:
| 427)
| [JBoss] at org.jboss.portal.core.model.portal.command.mapping.DefaultPortalObjectPathMapper$1.getCh
| ild(DefaultPortalObjectPathMapper.java:91)
| [JBoss] at org.jboss.portal.server.servlet.PathParser.map(PathParser.java:86
|
|
Looking at in in hibernate/portal/domin.hbm.xml, should not the following have cache usage attribute set? Or something similar?
<one-to-one
| name="objectNode"
| class="org.jboss.portal.core.impl.model.portal.ObjectNode"
| cascade="none"
| constrained="true"
| fetch="select"/>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4169924#4169924
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4169924
17 years, 8 months
[Design of JBoss Profiler] - challenge loading jboss-profiler on EAP 4.3
by rodgerca
Have installed latest version of jboss-profiler as instructed in readme.txt. It was half-working initially, I could start and stop the profiler from both the jmx console and the command line (albeit it was producing empty log files), but then I restarted the server and I get the following error. Any ideas? I didn't change a thing, all I did was restart the server. And I do have all the correct classes on my classpath. Also, any ideas why it was producing empty log files when it was first running? Again, I believe I have all the .properties files set up correctly.
C:\Program Files\jboss-eap-4.3\jboss-as\bin>run -b cmm00465 -c production
===============================================================================
JBoss Bootstrap Environment
|
| JBOSS_HOME: C:\Program Files\jboss-eap-4.3\jboss-as
|
| JAVA: C:\Program Files\Java\jdk1.5.0_16\bin\java
|
| JAVA_OPTS: -Dprogram.name=run.bat -server -javaagent:jboss-profiler.jar -Djbo
| ss-profiler.properties=jboss-profiler.properties -Xms1g -Xmx1g -XX:MaxPermSize=2
| 56m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=360
| 0000
|
| CLASSPATH: C:\Program Files\Java\jdk1.5.0_16\lib\tools.jar;C:\Program Files\jb
| oss-eap-4.3\jboss-as\bin\run.jar
|
| ===============================================================================
|
| JBoss Profiler 2.0.Beta1 (Sun Microsystems Inc. 1.5.0_16)
| JBoss Profiler: Socket=cmm00465:5400
| 16:53:12,447 INFO [Server] Starting JBoss (MX MicroKernel)...
| 16:53:12,447 INFO [Server] Release ID: JBoss [EAP] 4.3.0.GA (build: SVNTag=JBPA
| PP_4_3_0_GA date=200801031548)
| 16:53:12,447 INFO [Server] Home Dir: C:\Program Files\jboss-eap-4.3\jboss-as
| 16:53:12,447 INFO [Server] Home URL: file:/C:/Program Files/jboss-eap-4.3/jboss
| -as/
| 16:53:12,463 INFO [Server] Patch URL: null
| 16:53:12,463 INFO [Server] Server Name: production
| 16:53:12,463 INFO [Server] Server Home Dir: C:\Program Files\jboss-eap-4.3\jbos
| s-as\server\production
| 16:53:12,463 INFO [Server] Server Home URL: file:/C:/Program Files/jboss-eap-4.
| 3/jboss-as/server/production/
| 16:53:12,463 INFO [Server] Server Log Dir: C:\Program Files\jboss-eap-4.3\jboss
| -as\server\production\log
| 16:53:12,463 INFO [Server] Server Temp Dir: C:\Program Files\jboss-eap-4.3\jbos
| s-as\server\production\tmp
| 16:53:12,463 INFO [Server] Root Deployment Filename: jboss-service.xml
| 16:53:12,666 INFO [ServerInfo] Java version: 1.5.0_16,Sun Microsystems Inc.
| 16:53:12,666 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 1.5.0_16-b02
| ,Sun Microsystems Inc.
| 16:53:12,682 INFO [ServerInfo] OS-System: Windows 2003 5.2,x86
| 16:53:12,963 INFO [Server] Core system initialized
| 16:53:15,885 ERROR [MainDeployer] Could not create deployment: file:/C:/Program
| Files/jboss-eap-4.3/jboss-as/server/production/conf/jboss-service.xml
| org.jboss.deployment.DeploymentException: - nested throwable: (java.lang.reflect
| .UndeclaredThrowableException)
| at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java
| :196)
| at org.jboss.system.ServiceController.install(ServiceController.java:226
| )
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
| java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
| sorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
| er.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.install(Unknown Source)
| at org.jboss.deployment.SARDeployer.create(SARDeployer.java:249)
| at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)
| 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(DelegatingMethodAcces
| sorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
| er.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept
| or.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM
| BeanOperationInterceptor.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:508)
| at java.lang.Thread.run(Thread.java:595)
| Caused by: java.lang.reflect.UndeclaredThrowableException
| at org.jboss.system.ServiceCreator.install(ServiceCreator.java:236)
| at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigura
| tor.java:449)
| at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java
| :171)
| ... 36 more
| Caused by: java.lang.NoClassDefFoundError: org/jboss/mx/util/JBossNotificationBr
| oadcasterSupport
| at org.jboss.remoting.network.NetworkRegistry.<init>(NetworkRegistry.jav
| a:55)
| at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
|
| at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
| orAccessorImpl.java:39)
| at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
| onstructorAccessorImpl.java:27)
| at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
| at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:
| 1233)
| at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:
| 286)
| at org.jboss.mx.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:
| 344)
| at org.jboss.system.ServiceCreator.install(ServiceCreator.java:157)
| ... 38 more
| Failed to boot JBoss:
| org.jboss.deployment.DeploymentException: - nested throwable: (java.lang.reflect
| .UndeclaredThrowableException)
| at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java
| :196)
| at org.jboss.system.ServiceController.install(ServiceController.java:226
| )
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
| java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
| sorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
| er.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.install(Unknown Source)
| at org.jboss.deployment.SARDeployer.create(SARDeployer.java:249)
| at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)
| 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(DelegatingMethodAcces
| sorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
| er.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept
| or.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM
| BeanOperationInterceptor.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:508)
| at java.lang.Thread.run(Thread.java:595)
| Caused by: java.lang.reflect.UndeclaredThrowableException
| at org.jboss.system.ServiceCreator.install(ServiceCreator.java:236)
| at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigura
| tor.java:449)
| at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java
| :171)
| ... 36 more
| Caused by: java.lang.NoClassDefFoundError: org/jboss/mx/util/JBossNotificationBr
| oadcasterSupport
| at org.jboss.remoting.network.NetworkRegistry.<init>(NetworkRegistry.jav
| a:55)
| at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
|
| at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
| orAccessorImpl.java:39)
| at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
| onstructorAccessorImpl.java:27)
| at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
| at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:
| 1233)
| at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:
| 286)
| at org.jboss.mx.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:
| 344)
| at org.jboss.system.ServiceCreator.install(ServiceCreator.java:157)
| ... 38 more
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4169919#4169919
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4169919
17 years, 8 months
[Design the new POJO MicroContainer] - Re: JBMICROCONT-330 - Preconfigured MDR and scopes
by alesj
"adrian(a)jboss.org" wrote :
| There must be a way where you can "rename"/"rework" the instance scope
| when you move the context to the scoped controller?
|
Sure, would probably take some hassle, but could be done.
But the issue is still here - the current ScopedOverride test, where I changed the order:
e.g. 'simple' org.jboss.foobar.Simple bean in top controller.
Then I wanna deploy scoped 'simple' org.jboss.foobar.Simple bean.
Woudln't that pick up metadata from the first one?
"adrian(a)jboss.org" wrote :
| Actually the best way would be if we had the GUID for each
| controllerContext/deployment component, but absent that you'll have to hack it.
How would you know what that GUID will be, to do this:
"adrian(a)jboss.org" wrote :
| You also need to be able to do this ahead of time in the deployers
| so people can populate the instance scope before controller context exists.
|
and you deploy that bean via xml - most of the actions are transparent.
We're back to the same problem:
How to map some ID from deployers (we set some predetermined metadata),
to a bean's ScopeInfo, where our only info is className and bean's name,
no idea if the bean is gonna be scoped.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4169889#4169889
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4169889
17 years, 8 months