java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.test/com.example.test.MainActivity}:

Stack Overflow | katherine | 5 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    How to connect android to oracle database?

    Stack Overflow | 5 months ago | katherine
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.test/com.example.test.MainActivity}:
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  1. Adrien 4 times, last 2 weeks ago
  2. Indri Yunita 2 times, last 2 months ago
  3. bluebunnty 2 times, last 3 months ago
  4. dealloc 2 times, last 3 months ago
  5. Alexandru Popa 3 times, last 3 months ago
15 more registered users
21 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. android.os.NetworkOnMainThreadException

    No message provided

    at android.os.StrictMode$AndroidBlockGuardPolicy.onNetwork()
  2. Android Platform
    StrictMode$AndroidBlockGuardPolicy.onNetwork
    1. android.os.StrictMode$AndroidBlockGuardPolicy.onNetwork(StrictMode.java:1145)
    1 frame
  3. Android
    IoBridge.connect
    1. libcore.io.BlockGuardOs.connect(BlockGuardOs.java:84)
    2. libcore.io.IoBridge.connectErrno(IoBridge.java:127)
    3. libcore.io.IoBridge.connect(IoBridge.java:112)
    3 frames
  4. Java RT
    Socket.<init>
    1. java.net.PlainSocketImpl.connect(PlainSocketImpl.java:192)
    2. java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
    3. java.net.Socket.startupSocket(Socket.java:567)
    4. java.net.Socket.tryAllAddresses(Socket.java:128)
    5. java.net.Socket.<init>(Socket.java:178)
    6. java.net.Socket.<init>(Socket.java:150)
    6 frames
  5. Oracle jdbc
    OracleDriver.connect
    1. oracle.net.nt.TcpNTAdapter.connect(Unknown Source)
    2. oracle.net.nt.ConnOption.connect(Unknown Source)
    3. oracle.net.nt.ConnStrategy.execute(Unknown Source)
    4. oracle.net.resolver.AddrResolution.resolveAndExecute(Unknown Source)
    5. oracle.net.ns.NSProtocol.establishConnection(Unknown Source)
    6. oracle.net.ns.NSProtocol.connect(Unknown Source)
    7. oracle.jdbc.driver.T4CConnection.connect(T4CConnection.java:844)
    8. oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:268)
    9. oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:414)
    10. oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:165)
    11. oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:35)
    12. oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:801)
    12 frames
  6. Java RT
    DriverManager.getConnection
    1. java.sql.DriverManager.getConnection(DriverManager.java:179)
    2. java.sql.DriverManager.getConnection(DriverManager.java:213)
    2 frames
  7. com.example.test
    MainActivity.onCreate
    1. com.example.test.MainActivity.getDataFromOraDB(MainActivity.java:36)
    2. com.example.test.MainActivity.doStuff(MainActivity.java:18)
    3. com.example.test.MainActivity.onCreate(MainActivity.java:56)
    3 frames
  8. Android Platform
    ActivityThread.main
    1. android.app.Activity.performCreate(Activity.java:5231)
    2. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
    3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2159)
    4. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245)
    5. android.app.ActivityThread.access$800(ActivityThread.java:135)
    6. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
    7. android.os.Handler.dispatchMessage(Handler.java:102)
    8. android.os.Looper.loop(Looper.java:136)
    9. android.app.ActivityThread.main(ActivityThread.java:5017)
    9 frames
  9. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invokeNative(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:515)
    2 frames
  10. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
    2 frames
  11. Android Platform
    NativeStart.main
    1. dalvik.system.NativeStart.main(Native Method)
    1 frame