[JBoss JIRA] (AS7-3072) SecurityException deploying login quickstart on a server with signed jars
by Norito Agetsuma (Jira)
[ https://issues.jboss.org/browse/AS7-3072?page=com.atlassian.jira.plugin.s... ]
Norito Agetsuma reassigned AS7-3072:
------------------------------------
Assignee: Norito Agetsuma (was: Stuart Douglas)
> SecurityException deploying login quickstart on a server with signed jars
> -------------------------------------------------------------------------
>
> Key: AS7-3072
> URL: https://issues.jboss.org/browse/AS7-3072
> Project: Application Server 7
> Issue Type: Bug
> Components: CDI / Weld
> Affects Versions: 7.1.0.Beta1b
> Reporter: Marek Schmidt
> Assignee: Norito Agetsuma
> Priority: Blocker
> Fix For: 7.1.0.Final
>
>
> Attempting to deploy the "login" quickstart on AS7 with signed modules fails with the following exception:
> {noformat}
> 17:35:11,860 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC00001: Failed to start service jboss.deployment.unit."jboss-as-login.war".WeldService: org.jboss.msc.service.StartException in service jboss.deployment.unit."jboss-as-login.war".WeldService: org.jboss.weld.exceptions.WeldException: by java.lang.SecurityException: class "org.jboss.as.quickstarts.login.UserManager$-2022604038$Proxy$_$$_Weld$Proxy$"'s signer information does not match signer information of other classes in the same package
> at org.jboss.as.weld.services.WeldService.start(WeldService.java:96)
> at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824) [jboss-msc-1.0.1.GA.jar:]
> at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759) [jboss-msc-1.0.1.GA.jar:]
> at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_24]
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_24]
> at java.lang.Thread.run(Thread.java:662) [:1.6.0_24]
> Caused by: org.jboss.weld.exceptions.WeldException: by java.lang.SecurityException: class "org.jboss.as.quickstarts.login.UserManager$-2022604038$Proxy$_$$_Weld$Proxy$"'s signer information does not match signer information of other classes in the same package
> at org.jboss.weld.bean.proxy.ProxyFactory.getProxyClass(ProxyFactory.java:273)
> at org.jboss.weld.bean.SessionBean.initProxyClass(SessionBean.java:231)
> at org.jboss.weld.bean.SessionBean.initialize(SessionBean.java:164)
> at org.jboss.weld.bean.AbstractProducerBean.initialize(AbstractProducerBean.java:174)
> at org.jboss.weld.bean.ProducerMethod.initialize(ProducerMethod.java:115)
> at org.jboss.weld.bootstrap.AbstractBeanDeployer.deploy(AbstractBeanDeployer.java:115)
> at org.jboss.weld.bootstrap.BeanDeployment.deployBeans(BeanDeployment.java:204)
> at org.jboss.weld.bootstrap.WeldBootstrap.deployBeans(WeldBootstrap.java:344)
> at org.jboss.as.weld.WeldContainer.start(WeldContainer.java:81)
> at org.jboss.as.weld.services.WeldService.start(WeldService.java:89)
> ... 5 more
> Caused by: javassist.CannotCompileException: by java.lang.SecurityException: class "org.jboss.as.quickstarts.login.UserManager$-2022604038$Proxy$_$$_Weld$Proxy$"'s signer information does not match signer information of other classes in the same package
> at org.jboss.weld.util.bytecode.ClassFileUtils.toClass(ClassFileUtils.java:99)
> at org.jboss.weld.bean.proxy.ProxyFactory.createProxyClass(ProxyFactory.java:374)
> at org.jboss.weld.bean.proxy.ProxyFactory.getProxyClass(ProxyFactory.java:271)
> ... 14 more
> Caused by: java.lang.SecurityException: class "org.jboss.as.quickstarts.login.UserManager$-2022604038$Proxy$_$$_Weld$Proxy$"'s signer information does not match signer information of other classes in the same package
> at java.lang.ClassLoader.checkCerts(ClassLoader.java:807) [:1.6.0_24]
> at java.lang.ClassLoader.preDefineClass(ClassLoader.java:488) [:1.6.0_24]
> at java.lang.ClassLoader.defineClassCond(ClassLoader.java:626) [:1.6.0_24]
> at java.lang.ClassLoader.defineClass(ClassLoader.java:616) [:1.6.0_24]
> at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source) [:1.6.0_24]
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [:1.6.0_24]
> at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_24]
> at org.jboss.weld.util.bytecode.ClassFileUtils.toClass2(ClassFileUtils.java:118)
> at org.jboss.weld.util.bytecode.ClassFileUtils.toClass(ClassFileUtils.java:95)
> ... 16 more
> {noformat}
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
6 years, 7 months
[JBoss JIRA] (WFLY-12093) bug in tutorial "batch-processing" with column "End Time"
by Святослав Кремлёв (Jira)
[ https://issues.jboss.org/browse/WFLY-12093?page=com.atlassian.jira.plugin... ]
Святослав Кремлёв updated WFLY-12093:
-------------------------------------
Affects Version/s: (was: 17.0.0.Alpha1)
> bug in tutorial "batch-processing" with column "End Time"
> ---------------------------------------------------------
>
> Key: WFLY-12093
> URL: https://issues.jboss.org/browse/WFLY-12093
> Project: WildFly
> Issue Type: Bug
> Components: Quickstarts
> Environment: batch-processing
> Reporter: Святослав Кремлёв
> Assignee: Eduardo Martins
> Priority: Major
> Attachments: 2019-05-18 23_16_51-Batch Processing.png
>
>
> in file
> org/jboss/as/quickstarts/batch/controller/JobData.java
> {code}
> public Date getEndTime() {
> endTime = new Date();
> return endTime.getTime() == 0 ? null : endTime;
> }
> {code}
> its returns current time every time, not the job endTime
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
6 years, 7 months
[JBoss JIRA] (WFLY-12152) Remove redundant subString endIndex .length() calls
by William Collishaw (Jira)
[ https://issues.jboss.org/browse/WFLY-12152?page=com.atlassian.jira.plugin... ]
William Collishaw updated WFLY-12152:
-------------------------------------
Description:
Remove all instances of redundant .length() calls in the String substring calls.
Both the following samples produce the same output:
{code:java}
str2 = str1.substring(beginIndex, str1.length());
str2 = str1.substring(beginIndex);
{code}
This minor enhancement removes unnecessary String length() calls.
was:
Remove all instances of redundant .length() calls in the Sting substring calls.
Both the following samples produce the same output:
{code:java}
str2 = str1.substring(beginIndex, str1.length());
str2 = str1.substring(beginIndex);
{code}
This minor enhancement removes unnecessary String length() calls.
> Remove redundant subString endIndex .length() calls
> ---------------------------------------------------
>
> Key: WFLY-12152
> URL: https://issues.jboss.org/browse/WFLY-12152
> Project: WildFly
> Issue Type: Enhancement
> Reporter: William Collishaw
> Assignee: Brian Stansberry
> Priority: Optional
>
> Remove all instances of redundant .length() calls in the String substring calls.
> Both the following samples produce the same output:
> {code:java}
> str2 = str1.substring(beginIndex, str1.length());
> str2 = str1.substring(beginIndex);
> {code}
> This minor enhancement removes unnecessary String length() calls.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
6 years, 7 months
[JBoss JIRA] (WFLY-12153) Replace redundant StringBuilder append String.subString with append CharSequence
by William Collishaw (Jira)
William Collishaw created WFLY-12153:
----------------------------------------
Summary: Replace redundant StringBuilder append String.subString with append CharSequence
Key: WFLY-12153
URL: https://issues.jboss.org/browse/WFLY-12153
Project: WildFly
Issue Type: Enhancement
Reporter: William Collishaw
Assignee: Brian Stansberry
Replace all instances of redundant StringBuilder append String.subString with append CharSequence
Both the following samples produce the same output:
{code:java}
buffer.append(str.substring(startIndex, endIndex));
buffer.append(str, startIndex, endIndex);
{code}
This minor enhancement removes an intermediate String construction during append
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
6 years, 7 months
[JBoss JIRA] (WFLY-12152) Remove redundant subString endIndex .length() calls
by William Collishaw (Jira)
[ https://issues.jboss.org/browse/WFLY-12152?page=com.atlassian.jira.plugin... ]
William Collishaw updated WFLY-12152:
-------------------------------------
Description:
Remove all instances of redundant .length() calls in the Sting substring calls.
Both the following samples produce the same output:
{code:java}
str2 = str1.substring(beginIndex, str1.length());
str2 = str1.substring(beginIndex);
{code}
This minor enhancement removes unnecessary String length() calls.
was:
Remove all instances of redundant .length() calls in the Sting substring calls.
Both the following samples produce the same output.
{code:java}
str2 = str1.substring(beginIndex, str1.length());
str2 = str1.substring(beginIndex);
{code}
This minor enhancement removes unnecessary String length() calls.
> Remove redundant subString endIndex .length() calls
> ---------------------------------------------------
>
> Key: WFLY-12152
> URL: https://issues.jboss.org/browse/WFLY-12152
> Project: WildFly
> Issue Type: Enhancement
> Reporter: William Collishaw
> Assignee: Brian Stansberry
> Priority: Optional
>
> Remove all instances of redundant .length() calls in the Sting substring calls.
> Both the following samples produce the same output:
> {code:java}
> str2 = str1.substring(beginIndex, str1.length());
> str2 = str1.substring(beginIndex);
> {code}
> This minor enhancement removes unnecessary String length() calls.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
6 years, 7 months
[JBoss JIRA] (WFLY-12152) Remove redundant subString endIndex .length() calls
by William Collishaw (Jira)
[ https://issues.jboss.org/browse/WFLY-12152?page=com.atlassian.jira.plugin... ]
William Collishaw updated WFLY-12152:
-------------------------------------
Priority: Optional (was: Trivial)
> Remove redundant subString endIndex .length() calls
> ---------------------------------------------------
>
> Key: WFLY-12152
> URL: https://issues.jboss.org/browse/WFLY-12152
> Project: WildFly
> Issue Type: Enhancement
> Reporter: William Collishaw
> Assignee: Brian Stansberry
> Priority: Optional
>
> Remove all instances of redundant .length() calls in the Sting substring calls.
> Both the following samples produce the same output.
> {code:java}
> str2 = str1.substring(beginIndex, str1.length());
> str2 = str1.substring(beginIndex);
> {code}
> This minor enhancement removes unnecessary String length() calls.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
6 years, 7 months
[JBoss JIRA] (WFLY-12152) Remove redundant subString endIndex .length() calls
by William Collishaw (Jira)
William Collishaw created WFLY-12152:
----------------------------------------
Summary: Remove redundant subString endIndex .length() calls
Key: WFLY-12152
URL: https://issues.jboss.org/browse/WFLY-12152
Project: WildFly
Issue Type: Enhancement
Reporter: William Collishaw
Assignee: Brian Stansberry
Remove all instances of redundant .length() calls in the Sting substring calls.
Both the following samples produce the same output.
{code:java}
str2 = str1.substring(beginIndex, str1.length());
str2 = str1.substring(beginIndex);
{code}
This minor enhancement removes unnecessary String length() calls.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
6 years, 7 months
[JBoss JIRA] (DROOLS-4089) EvaluatedExpression not well resolved with JIT during race
by Mario Fusco (Jira)
[ https://issues.jboss.org/browse/DROOLS-4089?page=com.atlassian.jira.plugi... ]
Mario Fusco commented on DROOLS-4089:
-------------------------------------
Yes, we do a release at the end of each sprint. The sprint is finished today, so drools 7.23 will be out next week. Thanks for reproducer.
> EvaluatedExpression not well resolved with JIT during race
> ------------------------------------------------------------
>
> Key: DROOLS-4089
> URL: https://issues.jboss.org/browse/DROOLS-4089
> Project: Drools
> Issue Type: Bug
> Components: core engine
> Affects Versions: 7.20.0.Final, 7.22.0.Final
> Reporter: vincent palau
> Assignee: Mario Fusco
> Priority: Major
> Attachments: debugging-1.png
>
>
> We recently moved from Drools 7.9.0 to 7.20.
> Some errors started appearing in ours tests when calling static methods in LHS drools.
> This started happening when all tests were run simultaneously.
> It seems the mvel JIT compiler kicks in and it incorrectly evaluates the property name:
> A simple call to {noformat}ValidationUtils.isNullOrEmpty(interestedPartyNumber){noformat} ends up with this kind of error:
> {noformat}
> "java.lang.RuntimeException: Unknown property 'nullOrEmpty' on class tech.stage.utils.cwr.model.PublisherRecord"
> {noformat}
> Debugging info:
> Related source-code: https://github.com/kiegroup/drools/blob/7.20.0.Final/drools-core/src/main...
> !debugging-1.png|full!
> 1) is the current evaluated property
> 2) Should be the right property of WriterRecord
> 3) Perhaps the expression which should be executed instead of invocations.get(0)
> We fixed that somehow disabling JIT with {noformat}ConstraintJittingThresholdOption{noformat}
> Is there any chance to this bug fixed?
> Do you need more info?
> Thanks in advance for your support.
> {panel:title=Reproducer}
> https://github.com/vp-stage/evaluatedexpressionandjit
> {panel}
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
6 years, 7 months
[JBoss JIRA] (WFLY-12031) Memory leak in wildfly transaction client
by Cheng Fang (Jira)
[ https://issues.jboss.org/browse/WFLY-12031?page=com.atlassian.jira.plugin... ]
Cheng Fang commented on WFLY-12031:
-----------------------------------
I'll need to review it with Flavia for a thorough assessment and will post updates soon.
> Memory leak in wildfly transaction client
> -----------------------------------------
>
> Key: WFLY-12031
> URL: https://issues.jboss.org/browse/WFLY-12031
> Project: WildFly
> Issue Type: Bug
> Components: Transactions
> Affects Versions: 15.0.1.Final
> Environment: wildfly-transaction-client-1.1.3.Final
> wildfly.15.0.1.Final
> Windows 10
> Reporter: Joachim Petrich
> Assignee: Cheng Fang
> Priority: Critical
>
> After a volume run of our system we recognized millions of entries in the openFilePaths Object of class FileSystemXAResourceRegistry. When enabling traces for org.wildfly.transaction it seems that for adding an entry a xid string is used
> {code:java}
> XAResourceRegistryFile(Xid xid) throws SystemException {
> xaRecoveryPath.toFile().mkdir(); // create dir if non existent
> final String xidString = SimpleXid.of(xid).toHexString('_');
> this.filePath = xaRecoveryPath.resolve(xidString);
> openFilePaths.add(*xidString*);
> {code}
> and for removing the entire file path:
> {code:java}
> protected void removeResource(XAResource resource) throws XAException {
> if (resources.remove(resource)) {
> if (resources.isEmpty()) {
> // delete file
> try {
> if (fileChannel != null) {
> fileChannel.close();
> }
> Files.delete(filePath);
> // deleting using the filepath as key caused a memory leak,
> // if xid string have been added, therefore build the xid string for removing
> openFilePaths.remove(*filePath.toString()*);
> {code}
> We didn't find any code where this xid are cleaned up.
> As workaround we additionally extract the xid String from the file path and remove the corresponding entry.
> {code:java}
> String xidString = filePath.toString().substring(filePath.toString().indexOf(
> xaRecoveryPath.toString()) + xaRecoveryPath.toString().length() + 1);
> openFilePaths.remove(xidString);
> {code}
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
6 years, 7 months