Bug 742801 - java.lang.NoClassDefFoundError: twitter4j/TwitterException when creating a new Alert Definition using Twitter plugin
Summary: java.lang.NoClassDefFoundError: twitter4j/TwitterException when creating a ne...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: RHQ Project
Classification: Other
Component: Alerts
Version: 4.1
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Heiko W. Rupp
QA Contact: Mike Foley
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-10-02 21:07 UTC by Rafael Soares (Tuelho)
Modified: 2013-09-01 19:20 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
RHEL 6.1 WS RHQ 4.1.0 java version "1.6.0_27" Java(TM) SE Runtime Environment (build 1.6.0_27-b07) Java HotSpot(TM) 64-Bit Server VM (build 20.2-b06, mixed mode) Firefox 3.6.23
Last Closed: 2013-09-01 19:20:24 UTC
Embargoed:


Attachments (Terms of Use)

Description Rafael Soares (Tuelho) 2011-10-02 21:07:08 UTC
Description of problem:
A 'java.lang.NoClassDefFoundError: twitter4j/TwitterException' occurs when creating a new Alert Definition using Twitter plugin

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

How reproducible:
Create a new Alert Definition and choose Twitter from the list.

Steps to Reproduce:
1.
2.
3.
  
Actual results:
Message :	
Failed to get notification configuration preview
Severity :	
Error
	
Time :	
Sunday, October 2, 2011 6:01:58 PM Etc/GMT+3
Detail :	
java.lang.RuntimeException:[1317589318536] javax.ejb.EJBException:java.lang.RuntimeException: java.lang.NoClassDefFoundError: twitter4j/TwitterException -> java.lang.RuntimeException:java.lang.NoClassDefFoundError: twitter4j/TwitterException -> java.lang.NoClassDefFoundError:twitter4j/TwitterException -> java.lang.ClassNotFoundException:twitter4j.TwitterException
--- STACK TRACE FOLLOWS ---
[1317589318536] javax.ejb.EJBException:java.lang.RuntimeException: java.lang.NoClassDefFoundError: twitter4j/TwitterException -> java.lang.RuntimeException:java.lang.NoClassDefFoundError: twitter4j/TwitterException -> java.lang.NoClassDefFoundError:twitter4j/TwitterException -> java.lang.ClassNotFoundException:twitter4j.TwitterException
    at Unknown.java_lang_RuntimeException_$RuntimeException__Ljava_lang_RuntimeException_2Ljava_lang_RuntimeException_2(Unknown source:0)
    at Unknown.com_google_gwt_user_client_rpc_core_java_lang_RuntimeException_1FieldSerializer_instantiate__Lcom_google_gwt_user_client_rpc_SerializationStreamReader_2Ljava_lang_RuntimeException_2(Unknown source:0)
    at Unknown.com_google_gwt_user_client_rpc_impl_SerializerBase$MethodMap_$instantiate__Lcom_google_gwt_user_client_rpc_impl_SerializerBase$MethodMap_2Lcom_google_gwt_user_client_rpc_SerializationStreamReader_2Ljava_lang_String_2Ljava_lang_Object_2(Unknown source:0)
    at Unknown.com_google_gwt_user_client_rpc_impl_SerializerBase_$instantiate__Lcom_google_gwt_user_client_rpc_impl_SerializerBase_2Lcom_google_gwt_user_client_rpc_SerializationStreamReader_2Ljava_lang_String_2Ljava_lang_Object_2(Unknown source:0)
    at Unknown.com_google_gwt_user_client_rpc_impl_AbstractSerializationStreamReader_$readObject__Lcom_google_gwt_user_client_rpc_impl_AbstractSerializationStreamReader_2Ljava_lang_Object_2(Unknown source:0)
    at Unknown.com_google_gwt_user_client_rpc_impl_RequestCallbackAdapter_$onResponseReceived__Lcom_google_gwt_user_client_rpc_impl_RequestCallbackAdapter_2Lcom_google_gwt_http_client_Request_2Lcom_google_gwt_http_client_Response_2V(Unknown source:0)
    at Unknown.org_rhq_enterprise_gui_coregui_client_util_rpc_TrackingRequestCallback_onResponseReceived__Lcom_google_gwt_http_client_Request_2Lcom_google_gwt_http_client_Response_2V(Unknown source:0)
    at Unknown.com_google_gwt_http_client_Request_$fireOnResponseReceived__Lcom_google_gwt_http_client_Request_2Lcom_google_gwt_http_client_RequestCallback_2V(Unknown source:0)
    at Unknown.com_google_gwt_http_client_RequestBuilder$1_onReadyStateChange__Lcom_google_gwt_xhr_client_XMLHttpRequest_2V(Unknown source:0)
    at Unknown.anonymous(Unknown source:0)
    at Unknown.com_google_gwt_core_client_impl_Impl_entry0__Ljava_lang_Object_2Ljava_lang_Object_2Ljava_lang_Object_2Ljava_lang_Object_2(Unknown source:0)
    at Unknown.anonymous(Unknown source:0)
    at Unknown.anonymous(Unknown source:0)

Expected results:


Additional info:

Comment 1 Rafael Soares (Tuelho) 2011-10-03 02:16:08 UTC
Plugin is missing the twitter4j-core-2.1.2.jar dependency inside its lib dir.

Comment 2 Heiko W. Rupp 2012-07-04 15:23:21 UTC
Looks like Jay Shaughnessy has already solved this on Oct 10th, 2011. The 
current plugin jar contains the twitter jar.

Comment 3 Heiko W. Rupp 2013-09-01 19:20:24 UTC
Bulk closing of BZs that have no target version set, but which are ON_QA for more than a year and thus are in production for a long time.


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