Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8276735
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T08:27:41+00:00 2026-06-08T08:27:41+00:00

my code is try { ConnectionConfiguration connConfig = new ConnectionConfiguration(hostname, portno, ); conn =

  • 0

my code is

try {
ConnectionConfiguration connConfig = new ConnectionConfiguration(hostname, portno, "");
                 conn = new XMPPConnection(connConfig);
                conn.connect();
                } 
            catch (XMPPException e)
            {
                throw new ProtocolException(e.toString());
            }

How to resolve this problem?

07-23 11:54:08.126: W/dalvikvm(19805): VFY: unable to resolve static
method 3144: Ljavax/swing/SwingUtilities;.invokeLater
(Ljava/lang/Runnable;)V 07-23 11:54:08.126: D/dalvikvm(19805): VFY:
replacing opcode 0x71 at 0x0006 07-23 11:54:08.126: D/dalvikvm(19805):
VFY: dead code 0x0009-0009 in
Lorg/jivesoftware/smackx/debugger/EnhancedDebugger;.userHasLogged
(Ljava/lang/String;)V 07-23 11:54:09.507: W/System.err(19805):
java.lang.reflect.InvocationTargetException 07-23 11:54:09.517:
W/System.err(19805): at
java.lang.reflect.Constructor.constructNative(Native Method) 07-23
11:54:09.517: W/System.err(19805): at
java.lang.reflect.Constructor.newInstance(Constructor.java:415) 07-23
11:54:09.527: W/System.err(19805): at
org.jivesoftware.smack.XMPPConnection.initReaderAndWriter(XMPPConnection.java:1027)
07-23 11:54:09.527: W/System.err(19805): at
org.jivesoftware.smack.XMPPConnection.initConnection(XMPPConnection.java:850)
07-23 11:54:09.547: W/System.err(19805): at
org.jivesoftware.smack.XMPPConnection.connectUsingConfiguration(XMPPConnection.java:834)
07-23 11:54:09.577: W/System.err(19805): at
org.jivesoftware.smack.XMPPConnection.connect(XMPPConnection.java:1276)
07-23 11:54:09.607: W/System.err(19805): at
com.src.protocol.XMPPProtocolManager.connect(XMPPProtocolManager.java:116)
07-23 11:54:09.607: W/System.err(19805): at
com.src.screen.Login.onClick(Login.java:80) 07-23 11:54:09.607:
W/System.err(19805): at
android.view.View.performClick(View.java:2532) 07-23 11:54:09.607:
W/System.err(19805): at
android.view.View$PerformClick.run(View.java:9293) 07-23 11:54:09.617:
W/System.err(19805): at
android.os.Handler.handleCallback(Handler.java:587) 07-23
11:54:09.617: W/System.err(19805): at
android.os.Handler.dispatchMessage(Handler.java:92) 07-23
11:54:09.627: W/System.err(19805): at
android.os.Looper.loop(Looper.java:150) 07-23 11:54:09.627:
W/System.err(19805): at
android.app.ActivityThread.main(ActivityThread.java:4310) 07-23
11:54:09.637: W/System.err(19805): at
java.lang.reflect.Method.invokeNative(Native Method) 07-23
11:54:09.637: W/System.err(19805): at
java.lang.reflect.Method.invoke(Method.java:507) 07-23 11:54:09.647:
W/System.err(19805): at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
07-23 11:54:09.647: W/System.err(19805): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597) 07-23
11:54:09.657: W/System.err(19805): at
dalvik.system.NativeStart.main(Native Method) 07-23 11:54:09.657:
W/System.err(19805): Caused by: java.lang.NoClassDefFoundError:
javax.swing.JTabbedPane 07-23 11:54:09.667: W/System.err(19805): at
org.jivesoftware.smackx.debugger.EnhancedDebugger.createDebug(EnhancedDebugger.java:158)
07-23 11:54:09.667: W/System.err(19805): at
org.jivesoftware.smackx.debugger.EnhancedDebugger.(EnhancedDebugger.java:147)
07-23 11:54:09.667: W/System.err(19805): … 19 more 07-23
11:54:09.677: E/[Login.java] : onConnection :(19805):
java.lang.NullPointerException 07-23 11:54:12.190: E/[Login.java] :
login :(19805): java.lang.IllegalStateException: Not connected to
server.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T08:27:43+00:00Added an answer on June 8, 2026 at 8:27 am

    The exception is thrown if

    InvocationTargetException - if the underlying method throws an exception.
    

    So if the method, that has been invoked with reflection API, throws an exception (runtime exception for example), the reflection API will wrap the exception into an InvocationTargetException.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Consider the following C++ code: try { throw foo(1); } catch (foo &err) {
I have the following code: try { res = new Utils(ubc_context).new DownloadCalendarTask().execute().get(); } catch
Here's the code: try{ //The exception is thrown. throw new Exception('Parâmetros de consulta inválidos');
Consider the following code: try { using(TransactionScope) { Process.Start(SQLInstaller.EXE); throw new Exception(); Commit(); }
I have the following coffeescript code: try do something catch error log something throw
I have this snipped code: try{ JAXB.xmlJavaConverter(clientCommand); } catch (Exception e){ nServerFifo.add(clientCommand); } I
We have following code: try { // some code throwing MyException } catch (MyException
I have this code try { //AN EXCEPTION IS GENERATED HERE!!! } catch {
I have this code: try { var _o, _l, i, _d = new Array(),
I am creating date using following code try { newdatetime = new DateTime(2012, 2,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.