[JBoss JIRA] Created: (JBAS-3400) JaasSecurityManagerService can show security provider/JCA algorithm information
by Anil Saldhana (JIRA)
JaasSecurityManagerService can show security provider/JCA algorithm information
-------------------------------------------------------------------------------
Key: JBAS-3400
URL: http://jira.jboss.com/jira/browse/JBAS-3400
Project: JBoss Application Server
Issue Type: Feature Request
Security Level: Public (Everyone can see)
Components: Security
Affects Versions: JBossAS-4.0.4.GA
Reporter: Anil Saldhana
Assigned To: Sohil Shah
Priority: Optional
Fix For: JBossAS-5.0.0.Beta, JBossAS-4.0.5.CR1, JBossAS-3.2.8.SP2
It may be useful to determine the security providers and the various JCA algorithms installed in the JDK.
So, add two methods to the JaasSecurityManagerService as follows:
- showProviders()
- getAlgorithm(String serviceName)
If the serviceName is null, show all the possible JCA service names.
Here is a partial tested code, that you may want to adapt:
======================================================================================
import java.security.*;
import java.util.*;
public class A
{
public static void main(String[] args)
{
Provider[] providers = Security.getProviders();
for(int i = 0; i < providers.length; i++)
{
System.out.println("Provider="+providers[i].toString());
}
System.out.println("Printing JCA Algorithm Information");
printJCAAlgorithm("Cipher");
printJCAAlgorithm("Signature");
printJCAAlgorithm("KeyFactory");
printJCAAlgorithm("SecretKeyFactory");
printJCAAlgorithm("AlgorithmParameters");
printJCAAlgorithm("MessageDigest");
printJCAAlgorithm("Mac");
}
private static void printJCAAlgorithm(String sName)
{
System.out.println("Printing "+sName);
Set md2 = Security.getAlgorithms(sName);
System.out.println(sName + " set length="+md2.size());
Iterator md2iter = md2.iterator();
while(md2iter.hasNext())
{
System.out.println(md2iter.next().toString());
}
}
}
====================================================================================
The output is:
asaldhana~/testSecurity>java -cp . -Djava.security.manager A
Provider=SUN version 1.5
Provider=SunRsaSign version 1.5
Provider=SunJSSE version 1.5
Provider=SunJCE version 1.5
Provider=SunJGSS version 1.0
Provider=SunSASL version 1.5
Printing JCA Algorithm Information
Printing Cipher
Cipher set length=13
ARCFOUR
PBEWITHSHA1ANDDESEDE
DESEDEWRAP
PBEWITHMD5ANDTRIPLEDES
DESEDE
RSA
AESWRAP
AES
PBEWITHMD5ANDDES
BLOWFISH
DES
RC2
PBEWITHSHA1ANDRC2_40
Printing Signature
Signature set length=9
SHA256WITHRSA
NONEWITHDSA
....
Make the changes in HEAD. I will port it to Branch_4_0 and Branch_3_2
--
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, 7 months
[JBoss JIRA] Created: (JBAS-3613) failing test in org.jboss.test.iiop.test.ParameterPassingStressTestCase
by Dimitris Andreadis (JIRA)
failing test in org.jboss.test.iiop.test.ParameterPassingStressTestCase
-----------------------------------------------------------------------
Key: JBAS-3613
URL: http://jira.jboss.com/jira/browse/JBAS-3613
Project: JBoss Application Server
Issue Type: Sub-task
Security Level: Public (Everyone can see)
Components: IIOP service, Test Suite
Environment: Java Version 1.5.0_05
Java Vendor Sun Microsystems Inc.
Java VM Name Java HotSpot(TM) Server VM
Java VM Version 1.5.0_05-b05
Java VM Info mixed mode
OS Name Linux
OS Version 2.6.9-34.0.2.ELsmp
OS Arch i386
Reporter: Dimitris Andreadis
Assigned To: Francisco Reverbel
Fix For: JBossAS-4.0.5.GA
test_getException Error
Invalid indirection to offset 1704
java.io.IOException: Invalid indirection to offset 1704
at com.sun.corba.se.impl.io.IIOPInputStream$ActiveRecursionManager.getObject(IIOPInputStream.java:2684)
at com.sun.corba.se.impl.io.IIOPInputStream.inputClassFields(IIOPInputStream.java:2218)
at com.sun.corba.se.impl.io.IIOPInputStream.inputObject(IIOPInputStream.java:1221)
at com.sun.corba.se.impl.io.IIOPInputStream.simpleReadObject(IIOPInputStream.java:400)
at com.sun.corba.se.impl.io.ValueHandlerImpl.readValueInternal(ValueHandlerImpl.java:327)
at com.sun.corba.se.impl.io.ValueHandlerImpl.readValue(ValueHandlerImpl.java:293)
at org.jacorb.util.ValueHandler.readValue(ValueHandler.java:25)
at org.jacorb.orb.CDRInputStream.read_untyped_value(CDRInputStream.java:2695)
at org.jacorb.orb.CDRInputStream.read_typed_value(CDRInputStream.java:2753)
at org.jacorb.orb.CDRInputStream.read_value(CDRInputStream.java:2438)
at com.sun.corba.se.impl.io.ValueHandlerImpl.read_Array(ValueHandlerImpl.java:756)
at com.sun.corba.se.impl.io.ValueHandlerImpl.readValueInternal(ValueHandlerImpl.java:325)
at com.sun.corba.se.impl.io.ValueHandlerImpl.readValue(ValueHandlerImpl.java:293)
at org.jacorb.util.ValueHandler.readValue(ValueHandler.java:25)
at org.jacorb.orb.CDRInputStream.read_untyped_value(CDRInputStream.java:2695)
at org.jacorb.orb.CDRInputStream.read_typed_value(CDRInputStream.java:2753)
at org.jacorb.orb.CDRInputStream.read_value(CDRInputStream.java:2438)
at com.sun.corba.se.impl.io.IIOPInputStream.inputObjectField(IIOPInputStream.java:1989)
at com.sun.corba.se.impl.io.IIOPInputStream.inputClassFields(IIOPInputStream.java:2213)
at com.sun.corba.se.impl.io.IIOPInputStream.inputObject(IIOPInputStream.java:1221)
at com.sun.corba.se.impl.io.IIOPInputStream.simpleReadObject(IIOPInputStream.java:400)
at com.sun.corba.se.impl.io.ValueHandlerImpl.readValueInternal(ValueHandlerImpl.java:327)
at com.sun.corba.se.impl.io.ValueHandlerImpl.readValue(ValueHandlerImpl.java:293)
at org.jacorb.util.ValueHandler.readValue(ValueHandler.java:25)
at org.jacorb.orb.CDRInputStream.read_untyped_value(CDRInputStream.java:2695)
at org.jacorb.orb.CDRInputStream.read_typed_value(CDRInputStream.java:2753)
at org.jacorb.orb.CDRInputStream.read_value(CDRInputStream.java:2310)
at org.jacorb.orb.Any.read_value(Any.java:816)
at org.jacorb.orb.CDRInputStream.read_any(CDRInputStream.java:673)
at com.sun.corba.se.impl.javax.rmi.CORBA.Util.readAny(Util.java:401)
at javax.rmi.CORBA.Util.readAny(Util.java:92)
at org.jboss.iiop.rmi.marshal.CDRStream$ObjectReader.read(CDRStream.java:618)
at org.jboss.iiop.rmi.marshal.strategy.StubStrategy.readRetval(StubStrategy.java:226)
at org.jboss.proxy.ejb.DynamicIIOPStub.invoke(DynamicIIOPStub.java:128)
at org.jboss.test.iiop.interfaces._StatelessSession_Stub.getException(Unknown Source)
at org.jboss.test.iiop.test.ParameterPassingStressTestCase.test_getException(ParameterPassingStressTestCase.java:355)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
at junit.extensions.TestSetup.run(TestSetup.java:23)
--
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, 7 months
[JBoss JIRA] Created: (JBCACHE-743) InterruptedException in ReadWriteLockWithUpgrade$ReaderLock.attempt
by Marius Kotsbak (JIRA)
InterruptedException in ReadWriteLockWithUpgrade$ReaderLock.attempt
-------------------------------------------------------------------
Key: JBCACHE-743
URL: http://jira.jboss.com/jira/browse/JBCACHE-743
Project: JBoss Cache
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: PojoCache
Affects Versions: 1.2.4
Environment: Debian sarge linux. Postgresql database.
Reporter: Marius Kotsbak
Assigned To: Manik Surtani
2006-08-19 19:14:24,219 ERROR [org.jboss.ejb.plugins.LogInterceptor] TransactionRolledbackLocalException in method: public abstract int no.boostcom.accounting.AccountingLocal.getCustomerIDOfAccount(int) throws no.boostcom.accounting.AccountNotFoundException, causedBy:
org.jboss.util.NestedRuntimeException: - nested throwable: (java.lang.InterruptedException)
at org.jboss.cache.TreeCache.invokeMethod(TreeCache.java:4344)
at org.jboss.cache.TreeCache.get(TreeCache.java:2897)
at org.jboss.cache.TreeCache.get(TreeCache.java:2880)
at org.jboss.cache.TreeCache.get(TreeCache.java:2868)
at sun.reflect.GeneratedMethodAccessor249.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
at $Proxy1169.get(Unknown Source)
at no.boostcom.accounting.AccountingDataAccess.getAccountVO(AccountingDataAccess.java:85)
....
Caused by: java.lang.InterruptedException
at org.jboss.cache.lock.ReadWriteLockWithUpgrade$ReaderLock.attempt(ReadWriteLockWithUpgrade.java:303)
at org.jboss.cache.lock.IdentityLock.acquireReadLock(IdentityLock.java:202)
at org.jboss.cache.TreeNode.acquireReadLock(TreeNode.java:459)
at org.jboss.cache.TreeNode.acquire(TreeNode.java:430)
at org.jboss.cache.interceptors.PessimisticLockInterceptor.lock(PessimisticLockInterceptor.java:227)
at org.jboss.cache.interceptors.PessimisticLockInterceptor.invoke(PessimisticLockInterceptor.java:164)
at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:41)
at org.jboss.cache.interceptors.UnlockInterceptor.invoke(UnlockInterceptor.java:35)
at org.jboss.cache.TreeCache.invokeMethod(TreeCache.java:4339)
... 92 more
This happens during heavy load on our appserver.
--
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, 7 months