[JBoss JIRA] Created: (JBFORUMS-158) Class Cast Exception when using JBoss Forums with Portal 2.6Alpha1
by Ian White (JIRA)
Class Cast Exception when using JBoss Forums with Portal 2.6Alpha1
------------------------------------------------------------------
Key: JBFORUMS-158
URL: http://jira.jboss.com/jira/browse/JBFORUMS-158
Project: JBoss Forums
Issue Type: Bug
Affects Versions: 1.0.0 Alpha
Environment: AS 4.0.5.GA
Portal 2.6 Alpha 1
jboss-forums-1.0.0Alpha-P2.6DR
Oracle 9i using oci driver
Reporter: Ian White
Assigned To: Ryszard Kozmik
On startup, you get:
...
17:17:23,359 WARN [FacesConfigurator] More than one managed bean w/ the name of 'shared' - only keeping the last
17:17:23,359 WARN [FacesConfigurator] More than one managed bean w/ the name of 'summary' - only keeping the last
17:17:23,359 WARN [FacesConfigurator] More than one managed bean w/ the name of 'category' - only keeping the last
17:17:23,359 WARN [FacesConfigurator] More than one managed bean w/ the name of 'forum' - only keeping the last
17:17:23,359 WARN [FacesConfigurator] More than one managed bean w/ the name of 'topic' - only keeping the last
17:17:23,359 WARN [FacesConfigurator] More than one managed bean w/ the name of 'newTopic' - only keeping the last
17:17:23,359 WARN [FacesConfigurator] More than one managed bean w/ the name of 'replyTopic' - only keeping the last
17:17:23,359 WARN [FacesConfigurator] More than one managed bean w/ the name of 'editPost' - only keeping the last
17:17:23,359 WARN [FacesConfigurator] More than one managed bean w/ the name of 'jumpbox' - only keeping the last
17:17:23,359 WARN [FacesConfigurator] More than one managed bean w/ the name of 'profile' - only keeping the last
17:17:23,359 WARN [FacesConfigurator] More than one managed bean w/ the name of 'moderator' - only keeping the last
17:17:23,359 WARN [FacesConfigurator] More than one managed bean w/ the name of 'splitTopic' - only keeping the last
17:17:23,359 WARN [FacesConfigurator] More than one managed bean w/ the name of 'deletePost' - only keeping the last
17:17:23,359 WARN [FacesConfigurator] More than one managed bean w/ the name of 'pollController' - only keeping the last
17:17:23,359 WARN [FacesConfigurator] More than one managed bean w/ the name of 'adminPanel' - only keeping the last
17:17:23,359 WARN [FacesConfigurator] More than one managed bean w/ the name of 'adminController' - only keeping the last
17:17:23,359 WARN [FacesConfigurator] More than one managed bean w/ the name of 'prefController' - only keeping the last
17:17:23,359 WARN [FacesConfigurator] More than one managed bean w/ the name of 'topicWatch' - only keeping the last
17:17:23,359 WARN [FacesConfigurator] More than one managed bean w/ the name of 'forumWatch' - only keeping the last
17:17:23,359 INFO [MyFacesGenericPortlet] PortletContext 'C:\jboss-4.0.5.GA\server\oracle-portal26\.\deploy\jboss-forums.ear\portal-forums.war\' initialized.
17:17:23,421 ERROR [PortletAppDeployment] Error when creating instances
java.lang.ClassCastException: org.jboss.portal.core.deployment.jboss.PortletAppDeployment$InstanceMetaDataContext
at org.jboss.portal.core.deployment.jboss.PortletAppDeployment.buildInstances(PortletAppDeployment.java:231)
at org.jboss.portal.core.deployment.jboss.PortletAppDeployment.start(PortletAppDeployment.java:97)
at org.jboss.portal.server.deployment.jboss.DeploymentContext.start(DeploymentContext.java:99)
at org.jboss.portal.server.deployment.jboss.PortalDeploymentInfoContext.start(PortalDeploymentInfoContext.java:210)
at org.jboss.portal.server.deployment.jboss.ServerDeployer.start(ServerDeployer.java:217)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
...
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
19 years, 3 months
[JBoss JIRA] Created: (JBAS-4047) PooledInvokerProxy.getPooledConnection() could hold a lock for shorter period of time
by Scott Marlow (JIRA)
PooledInvokerProxy.getPooledConnection() could hold a lock for shorter period of time
-------------------------------------------------------------------------------------
Key: JBAS-4047
URL: http://jira.jboss.com/jira/browse/JBAS-4047
Project: JBoss Application Server
Issue Type: Feature Request
Security Level: Public (Everyone can see)
Components: Remoting
Affects Versions: JBossAS-5.0.0.Beta1, JBossAS-4.0.5.GA
Reporter: Scott Marlow
Assigned To: Scott Marlow
Priority: Optional
I'm seeing Java lock object contention in the org.jboss.invocation.pooled.interfaces.PooledInvokerProxy.getPooledConnection(). I would like to reduce the time that we hold the lock to boost performance.
for the current 4.0 head implementation, I'm thinking about something like this:
svn diff server\src\main\org\jboss\invocation\pooled\interfaces\PooledInvokerProxy.java
Index: server/src/main/org/jboss/invocation/pooled/interfaces/PooledInvokerProxy.java
===================================================================
--- server/src/main/org/jboss/invocation/pooled/interfaces/PooledInvokerProxy.java (revision 60160)
+++ server/src/main/org/jboss/invocation/pooled/interfaces/PooledInvokerProxy.java (working copy)
@@ -493,17 +493,23 @@
return cs;
}
+ protected ClientSocket firstConnection()
+ {
+ synchronized (pool)
+ {
+ if(pool.size() > 0)
+ return (ClientSocket)pool.removeFirst();
+ }
+ return null;
+ }
+
protected synchronized ClientSocket getPooledConnection()
{
ClientSocket socket = null;
- while (pool.size() > 0)
+ while ((socket = firstConnection()) != null)
{
try
{
- synchronized( pool )
- {
- socket = (ClientSocket)pool.removeFirst();
- }
// Test to see if socket is alive by send ACK message
if( trace )
log.trace("Checking pooled socket: "+socket+", address: "+socket.socket.getLocalSocketAddress());
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
19 years, 3 months