[JBoss JIRA] Created: (EJBTHREE-952) Not able to access EJB3 from client running in jre1.6, while it works if client running in jre1.5
by Harsha setty (JIRA)
Not able to access EJB3 from client running in jre1.6, while it works if client running in jre1.5
-------------------------------------------------------------------------------------------------
Key: EJBTHREE-952
URL: http://jira.jboss.com/jira/browse/EJBTHREE-952
Project: EJB 3.0
Issue Type: Bug
Environment: JBOSS 4.0.5 GA with EJB3 profile, EJBs - JBOSS running in JRE1.6 and EJBs compiled in JDK1.6. Works well with Client with JRE1.5 but throws "socket corrupted exception" for JRE1.6
This errors appear both on JBOSS installed on Windows XP and Red Hat Linux.
Reporter: Harsha setty
Priority: Critical
Fix For: EJB 3.0 RC9 - FD
When my java client runs in JRE1.6, it throws the exception
Exception in thread "main" java.lang.reflect.UndeclaredThrowableException
at $Proxy0.authenticateUser(Unknown Source)
at gui.Test.main(Test.java:40)
Caused by: java.rmi.MarshalException: Failed to communicate. Problem during marshalling/unmarshalling; nested exception is:
java.io.StreamCorruptedException: invalid type code: 00
at org.jboss.remoting.transport.socket.SocketClientInvoker.transport(SocketClientInvoker.java:306)
at org.jboss.remoting.RemoteClientInvoker.invoke(RemoteClientInvoker.java:143)
at org.jboss.remoting.Client.invoke(Client.java:525)
at org.jboss.remoting.Client.invoke(Client.java:488)
at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:55)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:61)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.aspects.security.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:53)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:77)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.stateless.StatelessRemoteProxy.invoke(StatelessRemoteProxy.java:102)
... 2 more
Caused by: java.io.StreamCorruptedException: invalid type code: 00
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.readArray(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.defaultReadFields(Unknown Source)
at java.io.ObjectInputStream.readSerialData(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
at org.jboss.aop.joinpoint.InvocationResponse.readExternal(InvocationResponse.java:122)
at java.io.ObjectInputStream.readExternalData(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.defaultReadFields(Unknown Source)
at java.io.ObjectInputStream.readSerialData(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
at org.jboss.remoting.serialization.impl.java.JavaSerializationManager.receiveObject(JavaSerializationManager.java:128)
at org.jboss.remoting.marshal.serializable.SerializableUnMarshaller.read(SerializableUnMarshaller.java:66)
at org.jboss.remoting.transport.socket.SocketClientInvoker.transport(SocketClientInvoker.java:279)
... 14 more
--
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
18 years, 10 months
[JBoss JIRA] Updated: (JBPORTAL-615) Adding interceptors dynamically
by Marcel Dullaart (JIRA)
[ http://jira.jboss.com/jira/browse/JBPORTAL-615?page=all ]
Marcel Dullaart updated JBPORTAL-615:
-------------------------------------
Fix Version/s: 2.6.2 Final
(was: 2.4 Final)
(was: 2.2.1 Final)
Affects Version/s: 2.6.1 Final
(was: 2.4 Final)
(was: 2.2 Branch)
Priority: Critical (was: Major)
This issue was resolved in 2.4, but seems broken again in version 2.6.1, please fix it
> Adding interceptors dynamically
> -------------------------------
>
> Key: JBPORTAL-615
> URL: http://jira.jboss.com/jira/browse/JBPORTAL-615
> Project: JBoss Portal
> Issue Type: Patch
> Security Level: Public(Everyone can see)
> Components: Portal Server
> Affects Versions: 2.6.1 Final
> Reporter: Marcel Dullaart
> Priority: Critical
> Fix For: 2.6.2 Final
>
> Attachments: JBossInterceptorStack.java
>
>
> Please add the ability to dynamically add an interceptor at runtime, without touching the jboss-portal package.
> I found the way to add an interceptor via changing the jboss-service.xml, but I like to prevent changing that file if anyway possible.
--
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
18 years, 10 months
[JBoss JIRA] Created: (JBPORTAL-1499) CMSAdminPortlet should use Users/Roles Module and not direct HQL query
by Antoine Herzog (JIRA)
CMSAdminPortlet should use Users/Roles Module and not direct HQL query
----------------------------------------------------------------------
Key: JBPORTAL-1499
URL: http://jira.jboss.com/jira/browse/JBPORTAL-1499
Project: JBoss Portal
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Portal CMS, Portal Identity
Affects Versions: 2.6.CR2
Environment: JBP2.6 CR2 (bundle package with JBoss AS 4.0.5)
Reporter: Antoine Herzog
Assigned To: Sohil Shah
When separating the CMS tables and the Users/Roles tables in two datasources, I found this :
when trying to go to the CmsAdmin (CMSAdminPortlet), I got "access denied" and this exception :
2007-06-22 13:56:11,015 DEBUG [org.hibernate.jdbc.ConnectionManager] releasing JDBC connection [ (open PreparedStatements: 0, globally: 0) (open ResultSets: 0, globally: 0)]
2007-06-22 13:56:11,015 DEBUG [org.hibernate.util.JDBCExceptionReporter] could not execute query [SELECT * from jbp_cms_perm p,jbp_cms_perm_role r,jbp_role_membership m,jbp_roles roles,jbp_users users WHERE p.id=r.cms_perm_id AND r.role_id=roles.jbp_name AND m.jbp_rid=roles.jbp_rid AND m.jbp_uid=users.jbp_uid AND users.jbp_uname=?]
com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: Table 'jbptl_cms.jbp_role_membership' doesn't exist
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:936)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2870)
and also :
13:56:11,015 WARN [JDBCExceptionReporter] SQL Error: 1146, SQLState: 42S02
13:56:11,015 ERROR [JDBCExceptionReporter] Table 'jbptl_cms.jbp_role_membership' doesn't exist
Datasource for Users/Roles : jbptl_users
Datasource for CMS : jbptl_cms
I did not look precisely to the CMSAdminPortlet code, but obviously, the HQL query mix the tables of the CMS and the tables of the Users/Roles.
Every thing works fine in the native version of portal, but it can't work with my production or architectures needs. I guess usual needs : separation of what is not really tied up.
I guess the CMS service should check the security using the Users and Roles Modules, with some java level code,
and not directly the Hibernate queries that manipulate the data.
With this, we cannot have a specific Users/Roles Module, with other persistence than in the same database as the CMS.
=> is the CMSAdminPortlet working with a LDAP user repository ?
I guess not, if the LDAP Users/Roles Module does not use the JBossPortal users tables (no replication between ldap and the usual portal u/r tables).
=> if we need a specific user database (legacy), with a home made Users/Roles Module that take the data from another legacy datasource, the CMSAdminPortlet and CMS Security won't work
=> general architecture design : the users data are in a database, the cms data are in another one : more clean for managing all that stuff (backup, restore if crash, maintenance against user data or cms data, etc...).
Feature :
- Enhance the CMSService with some Security API that provide all the basic security features to check the permission, doing it with java and Users/Roles Module, not with hibernate.
- Or (I think is better) provide a Users/Roles Security service, that provide the usual security checking features (isInRole(), etc...). This would be above the Users/Roles Module
I guess the portal needs the same kind of service : set a common service interface for both needs.
Even if there are no time to decide and build these security interfaces for 2.6, it would be great to have the CMSAdminPortlet working with some CMS and Users/Roles separate DataSources.
I will manage with only one DS for dev, but would be great to have it for the upgrade of our prod version (now in JBP2.4.1).
Unfortunately, I have no time to do this now (huge work to have the next version of our portal ready asap... and I'd rather use right now the 2.6 than keep 2.4 for all this...).
Thanks,
Antoine
--
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
18 years, 10 months
[JBoss JIRA] Created: (JBRULES-1170) ClassCastException using dynamic salience
by Yuri de Wit (JIRA)
ClassCastException using dynamic salience
-----------------------------------------
Key: JBRULES-1170
URL: http://jira.jboss.com/jira/browse/JBRULES-1170
Project: JBoss Rules
Issue Type: Bug
Security Level: Public (Everyone can see)
Affects Versions: 4.0.1
Reporter: Yuri de Wit
Assigned To: Mark Proctor
I have the following dynamic salience:
salience ( -10000 / (c.size * t.size) )
that throws a ClassCastException when c.size * t.size is an odd number:
java.lang.ClassCastException: java.lang.Double
at org.drools.base.mvel.MVELSalienceExpression.getValue(MVELSalienceExpression.java:33)
I then tried:
salience ( (int)-10000 / (c.size * t.size) )
or
salience ( (int)( -10000 / (c.size * t.size) ))
But got a MVEL error compiling the expression.
The solution I found was to use a function:
salience ( -1 * FN.priority(c.size, t.size) )
Note that I had to use "-1 *" because just "-" gives me a MVEL error compiling the expression.
--
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
18 years, 10 months