Bug 838856 - Insufficient logging in jbpm-console relating to ksession initialization
Summary: Insufficient logging in jbpm-console relating to ksession initialization
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: JBoss Enterprise BRMS Platform 5
Classification: JBoss
Component: jBPM Console
Version: BRMS 5.3.0.GA
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
: future
Assignee: Kris Verlaenen
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-07-10 10:11 UTC by Marco Rietveld
Modified: 2025-02-10 03:20 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2025-02-10 03:20:15 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Marco Rietveld 2012-07-10 10:11:53 UTC
Description of problem:


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. Run into a problem involving jbpm-console initialization
2. Look at the error log. 
3. Be confounded. 
  
Actual results:

You look at the server log and see something like this: 

org.jboss.resteasy.spi.UnhandledException: java.lang.NoClassDefFoundError: Could not initialize class org.jbpm.integration.console.StatefulKnowledgeSessionUtil$SessionHolder
org.jboss.resteasy.core.SynchronousDispatcher.unwrapException(SynchronousDispatcher.java:345)
org.jboss.resteasy.core.SynchronousDispatcher.handleApplicationException(SynchronousDispatcher.java:321)

You are confounded and frustrated and you possibly even curse the developers -- given that the error is not helping you at all with figuring out what the @#$% that stupid software is doing! 
	
Expected results:

You look at the server log and see an error that actually helps you. 

Additional info:

What's going on here is that the StatefulKnowledgeSessionUtil.initializeStatefulKnowledgeSession() method is throwing an exception, but that this exception is being swallowed up because it's called during initalization of the StatefulKnowledgeSessionUtil$SessionHolder inner class. 

I'm seeing this error in messages on internal lists where people are having problems with the console -- without appropriate information, it's very hard for them (or me helping them) to figure out what the problem is. 

The fix is to add logging at one or two points so that the appropriate (error/exception) information shows up in the server logs.

Comment 1 Maciej Swiderski 2012-08-21 12:34:59 UTC
fyi - this was taken under consideration as part of https://issues.jboss.org/browse/JBPM-3724 - configurable session in jbpm-console but since that jira is much more than just logging don't know if it is going to be included in 5.3.1

Comment 2 Lukáš Petrovický 2012-10-17 08:08:59 UTC
Moving to future and setting MODIFIED, as this can he expected in future versions of jBPM.

Comment 3 Rajesh Rajasekaran 2012-11-14 13:47:47 UTC
Setting the release flag to - as this issue will not make it into 5.3.1

Comment 13 Red Hat Bugzilla 2025-02-10 03:20:15 UTC
This product has been discontinued or is no longer tracked in Red Hat Bugzilla.


Note You need to log in before you can comment on or make changes to this bug.