[JBoss JIRA] (JBCLUSTER-315) Jboss 5.x ATTRIBUTE level session replication throws NullPointerException
by log an (Jira)
log an created JBCLUSTER-315:
--------------------------------
Summary: Jboss 5.x ATTRIBUTE level session replication throws NullPointerException
Key: JBCLUSTER-315
URL: https://issues.jboss.org/browse/JBCLUSTER-315
Project: JBoss Clustering
Issue Type: Bug
Components: HA-Server-Cache-JBC
Affects Versions: HA-Server-Cache-JBC 2.0.3.Final
Environment: jboss-eap-5.1
Reporter: log an
Assignee: Paul Ferraro
I have JSF based web application deployed in Jboss 5.1 EAP server. Enabled the distributable tag for session replication across two jboss nodes with Apache web server for failover feature and my business requires Attribute level replication but the system throws NullPointerException.
"Failed to replicate session java.lang.NullPointerException"
jboss-web.xml:
<replication-granularity>ATTRIBUTE</replication-granularity>
web.xml:
<distributable/>
Expected: Session should be replicated without NPE.
Actual: Failed to replicate session 9jYCBgKn2mIIVS2g8EzEzQ__.XXXX
Failed to replicate session 9jYCBgKn2mIIVS2g8EzEzQ__.XXXX
java.lang.NullPointerException
at org.jboss.web.tomcat.service.session.distributedcache.impl.jbc.AbstractJBossCacheService.getMarshalledValue(AbstractJBossCacheService.java:679)
at org.jboss.web.tomcat.service.session.distributedcache.impl.jbc.AttributeBasedJBossCacheService.storeSessionAttributes(AttributeBasedJBossCacheService.java:185)
at org.jboss.web.tomcat.service.session.distributedcache.impl.jbc.AttributeBasedJBossCacheService.storeSessionAttributes(AttributeBasedJBossCacheService.java:40)
at org.jboss.web.tomcat.service.session.distributedcache.impl.jbc.AbstractJBossCacheService.storeSessionData(AbstractJBossCacheService.java:402)
at org.jboss.web.tomcat.service.session.ClusteredSession.processSessionReplication(ClusteredSession.java:1192)
at org.jboss.web.tomcat.service.session.JBossCacheManager.processSessionRepl(JBossCacheManager.java:2221)
at org.jboss.web.tomcat.service.session.JBossCacheManager.storeSession(JBossCacheManager.java:321)
at org.jboss.web.tomcat.service.session.InstantSnapshotManager.snapshot(InstantSnapshotManager.java:51)
at org.jboss.web.tomcat.service.session.ClusteredSessionValve.handleRequest(ClusteredSessionValve.java:147)
at org.jboss.web.tomcat.service.session.ClusteredSessionValve.invoke(ClusteredSessionValve.java:94)
at org.jboss.web.tomcat.service.session.JvmRouteValve.invoke(JvmRouteValve.java:88)
at org.jboss.web.tomcat.service.session.LockingValve.invoke(LockingValve.java:62)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:95)
at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:567)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:451)
at java.lang.Thread.run(Thread.java:682)
Debugging details:
I have debugged the application and found that one of the attribute value is null.
Here is the line throws NPE:
org.jboss.web.tomcat.service.session.distributedcache.impl.jbc.AbstractJBossCacheService.class (Line no: 679)
if(MarshalledValueHelper.isTypeExcluded(value.getClass())) {
return value;
}
Please let me know if you need more detail. Also, I am trying to reproduce the issue with sample application but could not able to do. Kindly, provide some suggestions.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
4 years, 11 months
[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)
4 years, 11 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)
4 years, 11 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)
4 years, 11 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)
4 years, 11 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)
4 years, 11 months