karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Freeman Fang (JIRA)" <j...@apache.org>
Subject [jira] [Created] (KARAF-5461) incorrect filter in EncryptionSupport of jaas modules
Date Mon, 06 Nov 2017 02:34:00 GMT
Freeman Fang created KARAF-5461:
-----------------------------------

             Summary: incorrect filter in EncryptionSupport of jaas modules
                 Key: KARAF-5461
                 URL: https://issues.apache.org/jira/browse/KARAF-5461
             Project: Karaf
          Issue Type: Bug
            Reporter: Freeman Fang


* in file etc/org.apache.karaf.features.cfg add jasypt-encryption to featuresBoot
* in file etc/org.apache.karaf.jaas.cfg set {code}encryption.enabled = true{code}
* in file etc/org.apache.karaf.jaas.cfg set {code}encryption.name = jasypt{code}
We see error like
{code}
Exception in thread "pool-12-thread-1" Exception in thread "pool-11-thread-1" java.lang.IllegalStateException:
org.osgi.framework.InvalidSyntaxException: Missing '(': &((name=jasypt)(objectClass=org.apache.karaf.jaas.modules.EncryptionService))
	at org.apache.karaf.jaas.modules.encryption.EncryptionSupport.getFilter(EncryptionSupport.java:157)
	at org.apache.karaf.jaas.modules.encryption.EncryptionSupport.getEncryption(EncryptionSupport.java:109)
	at org.apache.karaf.jaas.modules.encryption.EncryptionSupport.encrypt(EncryptionSupport.java:73)
	at org.apache.karaf.jaas.modules.properties.AutoEncryptionSupport.encryptedPassword(AutoEncryptionSupport.java:121)
	at org.apache.karaf.jaas.modules.properties.AutoEncryptionSupport.run(AutoEncryptionSupport.java:73)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)
Caused by: org.osgi.framework.InvalidSyntaxException: Missing '(': &((name=jasypt)(objectClass=org.apache.karaf.jaas.modules.EncryptionService))
	at org.osgi.framework.FrameworkUtil$FilterImpl$Parser.parse_filter(FrameworkUtil.java:1301)
	at org.osgi.framework.FrameworkUtil$FilterImpl$Parser.parse(FrameworkUtil.java:1285)
	at org.osgi.framework.FrameworkUtil$FilterImpl.newInstance(FrameworkUtil.java:378)
	at org.osgi.framework.FrameworkUtil.createFilter(FrameworkUtil.java:79)
	at org.apache.karaf.jaas.modules.encryption.EncryptionSupport.getFilter(EncryptionSupport.java:155)
	... 7 more
java.lang.IllegalStateException: org.osgi.framework.InvalidSyntaxException: Missing '(': &((name=jasypt)(objectClass=org.apache.karaf.jaas.modules.EncryptionService))
	at org.apache.karaf.jaas.modules.encryption.EncryptionSupport.getFilter(EncryptionSupport.java:157)
	at org.apache.karaf.jaas.modules.encryption.EncryptionSupport.getEncryption(EncryptionSupport.java:109)
	at org.apache.karaf.jaas.modules.encryption.EncryptionSupport.encrypt(EncryptionSupport.java:73)
	at org.apache.karaf.jaas.modules.properties.AutoEncryptionSupport.encryptedPassword(AutoEncryptionSupport.java:121)
	at org.apache.karaf.jaas.modules.properties.AutoEncryptionSupport.run(AutoEncryptionSupport.java:73)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)
Caused by: org.osgi.framework.InvalidSyntaxException: Missing '(': &((name=jasypt)(objectClass=org.apache.karaf.jaas.modules.EncryptionService))
	at org.osgi.framework.FrameworkUtil$FilterImpl$Parser.parse_filter(FrameworkUtil.java:1301)
	at org.osgi.framework.FrameworkUtil$FilterImpl$Parser.parse(FrameworkUtil.java:1285)
	at org.osgi.framework.FrameworkUtil$FilterImpl.newInstance(FrameworkUtil.java:378)
	at org.osgi.framework.FrameworkUtil.createFilter(FrameworkUtil.java:79)
	at org.apache.karaf.jaas.modules.encryption.EncryptionSupport.getFilter(EncryptionSupport.java:155)
	... 7 more
Exception in thread "pool-13-thread-1" java.lang.IllegalStateException: org.osgi.framework.InvalidSyntaxException:
Missing '(': &((name=jasypt)(objectClass=org.apache.karaf.jaas.modules.EncryptionService))
	at org.apache.karaf.jaas.modules.encryption.EncryptionSupport.getFilter(EncryptionSupport.java:157)
	at org.apache.karaf.jaas.modules.encryption.EncryptionSupport.getEncryption(EncryptionSupport.java:109)
	at org.apache.karaf.jaas.modules.encryption.EncryptionSupport.encrypt(EncryptionSupport.java:73)
	at org.apache.karaf.jaas.modules.properties.AutoEncryptionSupport.encryptedPassword(AutoEncryptionSupport.java:121)
	at org.apache.karaf.jaas.modules.properties.AutoEncryptionSupport.run(AutoEncryptionSupport.java:73)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)
Caused by: org.osgi.framework.InvalidSyntaxException: Missing '(': &((name=jasypt)(objectClass=org.apache.karaf.jaas.modules.EncryptionService))
	at org.osgi.framework.FrameworkUtil$FilterImpl$Parser.parse_filter(FrameworkUtil.java:1301)
	at org.osgi.framework.FrameworkUtil$FilterImpl$Parser.parse(FrameworkUtil.java:1285)
	at org.osgi.framework.FrameworkUtil$FilterImpl.newInstance(FrameworkUtil.java:378)
	at org.osgi.framework.FrameworkUtil.createFilter(FrameworkUtil.java:79)
	at org.apache.karaf.jaas.modules.encryption.EncryptionSupport.getFilter(EncryptionSupport.java:155)
	... 7 more
{code}
when start karaf



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message