Anonymous | Login
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] A. Platformminorrandom2016-10-10 10:582016-12-16 18:37
ReporteralostaleView Statuspublic 
Assigned Toalostale 
PriorityurgentResolutionfixedFixed in Version3.0PR17Q1
StatusclosedFix in branchFixed in SCM revision2d6dd13cc6dd
ProjectionnoneETAnoneTarget Version3.0PR17Q1
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Tocaristu
Web browser
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo

0034179: random request failures

DescriptionIf for some reason (was not able to reproduce it), weld listener leaves a request thread in an inconsistent state, the next time this thread is used to process another request, this request produces an error 500 and is rejected.

This causes random requests to fail from this point.

Weld tries to fix this problem and log a WARN, the error is caused internally when trying to log it.
Steps To ReproduceI was unable to reproduce the cause the request is set in invalid state, so alternatively.

1. Add in the sources and modify web.xml to be used as 1st listener
2. Try to open openbravo:
  2.1 All requests are rejected
  2.2 In localhost.log see:
   Oct 05, 2016 10:18:42 AM org.apache.catalina.core.StandardContext fireRequestInitEvent
SEVERE: Exception sending request initialized lifecycle event to listener instance of class org.jboss.weld.environment.servlet.Listener
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
        at java.lang.AbstractStringBuilder.substring(
        at java.lang.StringBuilder.substring(
        at java.lang.AbstractStringBuilder.subSequence(
        at java.lang.StringBuilder.subSequence(
        at ch.qos.cal10n.util.LexicalUtil.convertSpecialCharacters(
        at ch.qos.cal10n.util.TokenStream.tokenizeLine(
        at ch.qos.cal10n.util.TokenStream.tokenize(
        at ch.qos.cal10n.util.Parser.<init>(
        at ch.qos.cal10n.util.CAL10NResourceBundle.<init>(
        at ch.qos.cal10n.util.CAL10NResourceBundleFinder.makePropertyResourceBundle(
        at ch.qos.cal10n.util.CAL10NResourceBundleFinder.getBundle(
        at ch.qos.cal10n.MessageConveyor.lookup(
        at ch.qos.cal10n.MessageConveyor.getMessage(
        at org.jboss.weld.logging.WeldMessageConveyor.getMessage(
        at org.slf4j.cal10n.LocLogger.warn(
        at org.jboss.weld.context.http.HttpRequestContextImpl.associate(
        at org.jboss.weld.context.http.HttpRequestContextImpl.associate(
        at org.jboss.weld.servlet.WeldListener.requestInitialized(
        at org.jboss.weld.servlet.api.helpers.ForwardingServletListener.requestInitialized(
        at org.apache.catalina.core.StandardContext.fireRequestInitEvent(
        at org.apache.catalina.core.StandardHostValve.invoke(
        at org.apache.catalina.valves.ErrorReportValve.invoke(
        at org.apache.catalina.core.StandardEngineValve.invoke(
        at org.apache.catalina.connector.CoyoteAdapter.service(
        at org.apache.coyote.ajp.AjpProcessor.process(
        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(
        at java.util.concurrent.ThreadPoolExecutor.runWorker(
        at java.util.concurrent.ThreadPoolExecutor$
Proposed SolutionThe error is thrown when trying to get the localized message in cal10n library. Currently, the cal10n version is 0.7.4.

Weld 1.1.24 depends on newer cal10n 0.7.7 which correctly handles weld messages.
TagsNo tags attached.
Attached Files? file icon [^] (2,272 bytes) 2016-10-14 08:20

- Relationships Relation Graph ] Dependency Graph ]
related to feature request 0027245 closedalostale upgrade weld 

-  Notes
hgbot (developer)
2016-10-14 08:11

Repository: erp/devel/pi
Changeset: 2d6dd13cc6ddbbc2e5feee5159e1aafe348d4c00
Author: Asier Lostalé <asier.lostale <at>>
Date: Mon Oct 10 11:45:08 2016 +0200
URL: [^]

fixed bug 34179: random request failures

  Updated cal10n-api from 0.7.4 to 0.7.7, which fixes parsing of Weld messages
  that were causing an exception.

M legal/Licensing.txt
A modules/org.openbravo.base.weld/lib/runtime/cal10n-api-0.7.7.jar
R modules/org.openbravo.base.weld/lib/runtime/cal10n-api-0.7.4.jar
caristu (developer)
2016-10-21 11:03

hudsonbot (developer)
2016-12-16 18:37

A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: [^]
Maturity status: Test

- Issue History
Date Modified Username Field Change
2016-10-10 10:58 alostale New Issue
2016-10-10 10:58 alostale Assigned To => platform
2016-10-10 10:58 alostale Modules => Core
2016-10-10 10:58 alostale Triggers an Emergency Pack => No
2016-10-10 11:02 alostale Description Updated View Revisions
2016-10-10 11:02 alostale Steps to Reproduce Updated View Revisions
2016-10-10 11:02 alostale Relationship added related to 0027245
2016-10-10 11:03 alostale Review Assigned To => caristu
2016-10-10 11:09 alostale Proposed Solution updated
2016-10-10 11:46 alostale Status new => scheduled
2016-10-10 11:46 alostale Target Version => 3.0PR17Q1
2016-10-14 08:11 hgbot Checkin
2016-10-14 08:11 hgbot Note Added: 0090561
2016-10-14 08:11 hgbot Status scheduled => resolved
2016-10-14 08:11 hgbot Resolution open => fixed
2016-10-14 08:11 hgbot Fixed in SCM revision => [^]
2016-10-14 08:15 alostale Assigned To platform => alostale
2016-10-14 08:20 alostale File Added:
2016-10-21 11:03 caristu Note Added: 0090754
2016-10-21 11:03 caristu Status resolved => closed
2016-10-21 11:03 caristu Fixed in Version => 3.0PR17Q1
2016-12-16 18:37 hudsonbot Checkin
2016-12-16 18:37 hudsonbot Note Added: 0092505

Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker