java.lang.NoSuchMethodError: in the logcat,but when i transfer the apk file to other devices then 80% of the users reported the app got crashed while just opening the app or opening an activity with on the app.This is driving me crazy i tested this on different eamulators and none of them got crashed.I just coudn't understand what the problem is please help. MY AndroidMaifest.xml <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.androgeekzz.pokemongo_bestguidetipsandtricks"> <uses-permission android:name="android.permission.INTERNET" /> <application android:allowBackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:supportsRtl="true" android:theme="@style/AppTheme"> <activity android:name=".MainActivity"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> <activity android:name=".Basics" /> <activity android:name=".Tips" /> <activity android:name=".Tricks" /> <activity android:name=".Bas_What" /> <activity android:name=".Bas_Downld" /> <activity android:name=".Bas_Pikatchu" /> <activity android:name=".Bas_PokeCapture" /> <activity android:name=".Bas_LVI5" /> <activity android:name=".Bas_GainXP_LVL_Up" /> <activity android:name=".Bas_All_Iteams" /> <activity android:name=".Bas_All_Places" /> <activity android:name=".Advanced" /> <activity android:name=".Adv_gainXP" /> <activity android:name=".Adv_1candies" /> <activity android:name=".Adv_2Evolution" /> <activity android:name=".Adv_3PowerUp" /> <activity android:name=".Adv_4FightAGym" /> <activity android:name=".Adv_5DefendGym" /> <activity android:name=".Adv_6LvlGym" /> <activity android:name=".Adv_7Type" /> <activity android:name=".Adv_8Egg" /> <activity android:name=".Tips_0Good" /> <activity android:name=".Tips_1Eevee" /> <activity android:name=".Tips_2EarnXP" /> <activity android:name=".Tips_3Find" /> <activity android:name=".Tips_4Nest" /> <activity android:name=".Adv_Nests" /> <activity android:name=".Resources"></activity> </application> Main Activity- package com.androgeekzz.pokemongo_bestguidetipsandtricks; import android.app.AlertDialog; import android.content.DialogInterface; import android.content.Intent; import android.content.SharedPreferences; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.MenuItem; import android.view.View; public class MainActivity extends AppCompatActivity { SharedPreferences prefs; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); prefs = getSharedPreferences("myPrefs", MODE_PRIVATE); int times = prefs.getInt("ok_clicked", 0); if(times==0){ new AlertDialog.Builder(MainActivity.this) .setTitle("Hi there user") .setMessage("This app version right now is just 1.0 the later versions will be released soon with even more content,Images and in app video tutorials etc..and this app is completely ADD free so please do consider rating it. ") .setPositiveButton(android.R.string.yes, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int which) { prefs = getSharedPreferences("myPrefs", MODE_PRIVATE); SharedPreferences.Editor editor = prefs.edit(); editor.putInt("ok_clicked", 1); editor.apply(); } }) .show(); } getSupportActionBar().setDisplayHomeAsUpEnabled(true); getSupportActionBar().setHomeButtonEnabled(true); } public void basicsOnclick(View view) { Intent i = new Intent(this,Basics.class); startActivity(i); } public void advanceOnclick(View view) { Intent i = new Intent(this,Advanced.class); startActivity(i); } public void tipsOnclick(View view) { Intent i = new Intent(this,Tips.class); startActivity(i); } public void tricksOnclick(View view) { Intent i = new Intent(this,Tricks.class); startActivity(i); } public void resourceLinksOnclick(View view) { Intent i = new Intent(this,Resources.class); startActivity(i); } public void aboutOnclick(View view) { new AlertDialog.Builder(MainActivity.this) .setTitle("About") .setMessage("App Name :Pokemon GO-Guide\nVersion :1.0 \nCreator :Prudhvi") .setPositiveButton(android.R.string.yes, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int which) { } }) .show(); } @Override public boolean onOptionsItemSelected(MenuItem item) { switch (item.getItemId()) { case android.R.id.home: this.finish(); return true; default: return super.onOptionsItemSelected(item); } } } LogCat(It had not crashed for this log cat)- at com.android.systemui.statusbar.SignalClusterView.apply(SignalClusterView.java:468)

Stack Overflow | Prudhvi Reddy | 4 months ago
  1. 0

    My android app is crashing in most devices

    Stack Overflow | 4 months ago | Prudhvi Reddy
    java.lang.NoSuchMethodError: in the logcat,but when i transfer the apk file to other devices then 80% of the users reported the app got crashed while just opening the app or opening an activity with on the app.This is driving me crazy i tested this on different eamulators and none of them got crashed.I just coudn't understand what the problem is please help. MY AndroidMaifest.xml <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.androgeekzz.pokemongo_bestguidetipsandtricks"> <uses-permission android:name="android.permission.INTERNET" /> <application android:allowBackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:supportsRtl="true" android:theme="@style/AppTheme"> <activity android:name=".MainActivity"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> <activity android:name=".Basics" /> <activity android:name=".Tips" /> <activity android:name=".Tricks" /> <activity android:name=".Bas_What" /> <activity android:name=".Bas_Downld" /> <activity android:name=".Bas_Pikatchu" /> <activity android:name=".Bas_PokeCapture" /> <activity android:name=".Bas_LVI5" /> <activity android:name=".Bas_GainXP_LVL_Up" /> <activity android:name=".Bas_All_Iteams" /> <activity android:name=".Bas_All_Places" /> <activity android:name=".Advanced" /> <activity android:name=".Adv_gainXP" /> <activity android:name=".Adv_1candies" /> <activity android:name=".Adv_2Evolution" /> <activity android:name=".Adv_3PowerUp" /> <activity android:name=".Adv_4FightAGym" /> <activity android:name=".Adv_5DefendGym" /> <activity android:name=".Adv_6LvlGym" /> <activity android:name=".Adv_7Type" /> <activity android:name=".Adv_8Egg" /> <activity android:name=".Tips_0Good" /> <activity android:name=".Tips_1Eevee" /> <activity android:name=".Tips_2EarnXP" /> <activity android:name=".Tips_3Find" /> <activity android:name=".Tips_4Nest" /> <activity android:name=".Adv_Nests" /> <activity android:name=".Resources"></activity> </application> Main Activity- package com.androgeekzz.pokemongo_bestguidetipsandtricks; import android.app.AlertDialog; import android.content.DialogInterface; import android.content.Intent; import android.content.SharedPreferences; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.MenuItem; import android.view.View; public class MainActivity extends AppCompatActivity { SharedPreferences prefs; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); prefs = getSharedPreferences("myPrefs", MODE_PRIVATE); int times = prefs.getInt("ok_clicked", 0); if(times==0){ new AlertDialog.Builder(MainActivity.this) .setTitle("Hi there user") .setMessage("This app version right now is just 1.0 the later versions will be released soon with even more content,Images and in app video tutorials etc..and this app is completely ADD free so please do consider rating it. ") .setPositiveButton(android.R.string.yes, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int which) { prefs = getSharedPreferences("myPrefs", MODE_PRIVATE); SharedPreferences.Editor editor = prefs.edit(); editor.putInt("ok_clicked", 1); editor.apply(); } }) .show(); } getSupportActionBar().setDisplayHomeAsUpEnabled(true); getSupportActionBar().setHomeButtonEnabled(true); } public void basicsOnclick(View view) { Intent i = new Intent(this,Basics.class); startActivity(i); } public void advanceOnclick(View view) { Intent i = new Intent(this,Advanced.class); startActivity(i); } public void tipsOnclick(View view) { Intent i = new Intent(this,Tips.class); startActivity(i); } public void tricksOnclick(View view) { Intent i = new Intent(this,Tricks.class); startActivity(i); } public void resourceLinksOnclick(View view) { Intent i = new Intent(this,Resources.class); startActivity(i); } public void aboutOnclick(View view) { new AlertDialog.Builder(MainActivity.this) .setTitle("About") .setMessage("App Name :Pokemon GO-Guide\nVersion :1.0 \nCreator :Prudhvi") .setPositiveButton(android.R.string.yes, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int which) { } }) .show(); } @Override public boolean onOptionsItemSelected(MenuItem item) { switch (item.getItemId()) { case android.R.id.home: this.finish(); return true; default: return super.onOptionsItemSelected(item); } } } LogCat(It had not crashed for this log cat)- at com.android.systemui.statusbar.SignalClusterView.apply(SignalClusterView.java:468)
  2. 0

    Trying to create feeder causes java.lang.NoSuchMethodError

    Google Groups | 4 months ago | Jonathan Vaughn
    java.lang.NoSuchMethodError: com.fasterxml.jackson.databind.ObjectMapper. readerFor(Ljava/lang/Class;)Lcom/fasterxml/jackson/databind/ObjectReader; means "the JVM could find the ObjectMapper class but it's missing the readFor <https://github.com/FasterXML/jackson-databind/blob/master/src/main/java/com/fasterxml/jackson/databind/ObjectMapper.java#L3351-L3360> method". You've done something (that's for you to figure out) that causes your project to ship a jackson-databind version that's older than the one expected by Gatling 2.2.2. *St├ęphane Landelle* *GatlingCorp CEO* slan...@gatling.io On Thu, Aug 11, 2016 at 3:41 AM, Jonathan Vaughn <jona...@creatuity.com> wrote: This is in Gatling 2.2.2 I have a simple CSV I'm trying to use in the user-files/data directory, in the format of: loginEmail,loginPassword "test+s...@example.com","password" "test+s...@example.com","password2" ... (etc) Trying to create the feeder gives an error: Code: package example import io.gatling.core.Predef._ import io.gatling.http.Predef._ import io.gatling.jdbc.Predef._ import io.gatling.http.HeaderNames._ import io.gatling.http.check.HttpCheck import scala.concurrent.duration._ import util.Random import io.gatling.jsonpath.JsonPath object Login { val loginFeeder = csv("customer_accounts.csv") ... Removing / commenting the csv line (and anything referencing it) will prevent the error from occurring, though I then have to hard code the values it's meant to replace for the script to actually work. If I put the file somewhere else or otherwise make the path to the file wrong, I get a corresponding error about the CSV file not being found, so it at least gets as far as trying to read the file. Nothing in the CSV file is outside the range of [0-9a-zA-Z] except for the '@' in the email field, and the commas and quotation marks formatting the CSV file itself. This is the error I get: Exception in thread "main" java.lang.NoSuchMethodError: com.fasterxml.jackson.databind.ObjectMapper.readerFor(Ljava/lang/Class;) Lcom/fasterxml/jackson/databind/ObjectReader; at io.gatling.core.feeder.SeparatedValuesParser$.stream( SeparatedValuesParser.scala:46) at io.gatling.core.feeder.SeparatedValuesParser$.io$ gatling$core$feeder$SeparatedValuesParser$$$anonfun$1( SeparatedValuesParser.scala:38) at io.gatling.core.feeder.SeparatedValuesParser$lambda$$ parse$1.apply(SeparatedValuesParser.scala:37) at io.gatling.core.feeder.SeparatedValuesParser$lambda$$ parse$1.apply(SeparatedValuesParser.scala:37)
  3. 0

    Trying to create feeder causes java.lang.NoSuchMethodError

    Google Groups | 4 months ago | Jonathan Vaughn
    java.lang.NoSuchMethodError: com.fasterxml.jackson.databind.ObjectMapper. > readerFor(Ljava/lang/Class;)Lcom/fasterxml/jackson/databind/ObjectReader; means > "the JVM could find the ObjectMapper class but it's missing the readFor > <https://github.com/FasterXML/jackson-databind/blob/master/src/main/java/com/fasterxml/jackson/databind/ObjectMapper.java#L3351-L3360> > method". > > You've done something (that's for you to figure out) that causes your > project to ship a jackson-databind version that's older than the one > expected by Gatling 2.2.2. > > *St├ęphane Landelle* > *GatlingCorp CEO* > slan...@gatling.io > > > On Thu, Aug 11, 2016 at 3:41 AM, Jonathan Vaughn <jona...@creatuity.com> > wrote: > This is in Gatling 2.2.2 I have a simple CSV I'm trying to use in the user-files/data directory, in the format of: loginEmail,loginPassword "test+s...@example.com","password" "test+s...@example.com","password2" ... (etc) Trying to create the feeder gives an error: Code: package example import io.gatling.core.Predef._ import io.gatling.http.Predef._ import io.gatling.jdbc.Predef._ import io.gatling.http.HeaderNames._ import io.gatling.http.check.HttpCheck import scala.concurrent.duration._ import util.Random import io.gatling.jsonpath.JsonPath object Login { val loginFeeder = csv("customer_accounts.csv") ... Removing / commenting the csv line (and anything referencing it) will prevent the error from occurring, though I then have to hard code the values it's meant to replace for the script to actually work. If I put the file somewhere else or otherwise make the path to the file wrong, I get a corresponding error about the CSV file not being found, so it at least gets as far as trying to read the file. Nothing in the CSV file is outside the range of [0-9a-zA-Z] except for the '@' in the email field, and the commas and quotation marks formatting the CSV file itself. This is the error I get: Exception in thread "main" java.lang.NoSuchMethodError: com.fasterxml.jackson.databind.ObjectMapper.readerFor(Ljava/ lang/Class;)Lcom/fasterxml/jackson/databind/ObjectReader; at io.gatling.core.feeder.SeparatedValuesParser$.stream(Separat edValuesParser.scala:46) at io.gatling.core.feeder.SeparatedValuesParser$.io$gatling$ core$feeder$SeparatedValuesParser$$$anonfun$1(SeparatedValue sParser.scala:38) at io.gatling.core.feeder.SeparatedValuesParser$lambda$$parse$ 1.apply(SeparatedValuesParser.scala:37) at io.gatling.core.feeder.SeparatedValuesParser$lambda$$parse$ 1.apply(SeparatedValuesParser.scala:37)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Jersey REST web service with Hibernate causes NoSuchMethodError on JBoss EAP 6.4

    Stack Overflow | 1 year ago | Henrik
    java.lang.NoSuchMethodError: org.hibernate.internal.CoreMessageLogger.debugf(Ljava/lang/String;I)V" When running the project as a Java Application on Eclipse, Hibernate works perfectly. The project contains Item -domain class, ItemDAO -data access object, ItemManager which contains REST -method and hibernate.cfg.xml. I have googled and tried pretty much everything to solve exception, but nothing seems to help. if you have any ideas please help me. Exception: 15:18:18,944 SEVERE [com.sun.jersey.spi.container.ContainerResponse] (http-/0.0.0.0:8080-1) The exception contained within MappableContainerException could not be mapped to a response, re-throwing to the HTTP container: java.lang.NoSuchMethodError: org.hibernate.internal.CoreMessageLogger.debugf(Ljava/lang/String;I)V
  6. 0

    java.lang.NoSuchMethodError: org.omg.CosTransactions.OTSPolicy.value()S

    Oracle Community | 9 years ago | chesterxgchen123
    java.lang.NoSuchMethodError: org.omg.CosTransactions.OTSPolicy.value()S during InitialContext.lookup I am not sure What I did wrong, please help. I have following the steps in FAQ for stand-alone java client and put the appserv-rt.jar and javaee.jar in the classpath. (The client and server on the same host). I used the InitialContext ctx = new InitialContext(); Insteadof new InitialContext(Properties). Anything else I should do ? Thanks Chester --------------Here is the exception stack trace. [testng] java.lang.NoSuchMethodError: org.omg.CosTransactions.OTSPolicy.value()S [testng]

    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. java.lang.NoSuchMethodError

      in the logcat,but when i transfer the apk file to other devices then 80% of the users reported the app got crashed while just opening the app or opening an activity with on the app.This is driving me crazy i tested this on different eamulators and none of them got crashed.I just coudn't understand what the problem is please help. MY AndroidMaifest.xml <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.androgeekzz.pokemongo_bestguidetipsandtricks"> <uses-permission android:name="android.permission.INTERNET" /> <application android:allowBackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:supportsRtl="true" android:theme="@style/AppTheme"> <activity android:name=".MainActivity"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> <activity android:name=".Basics" /> <activity android:name=".Tips" /> <activity android:name=".Tricks" /> <activity android:name=".Bas_What" /> <activity android:name=".Bas_Downld" /> <activity android:name=".Bas_Pikatchu" /> <activity android:name=".Bas_PokeCapture" /> <activity android:name=".Bas_LVI5" /> <activity android:name=".Bas_GainXP_LVL_Up" /> <activity android:name=".Bas_All_Iteams" /> <activity android:name=".Bas_All_Places" /> <activity android:name=".Advanced" /> <activity android:name=".Adv_gainXP" /> <activity android:name=".Adv_1candies" /> <activity android:name=".Adv_2Evolution" /> <activity android:name=".Adv_3PowerUp" /> <activity android:name=".Adv_4FightAGym" /> <activity android:name=".Adv_5DefendGym" /> <activity android:name=".Adv_6LvlGym" /> <activity android:name=".Adv_7Type" /> <activity android:name=".Adv_8Egg" /> <activity android:name=".Tips_0Good" /> <activity android:name=".Tips_1Eevee" /> <activity android:name=".Tips_2EarnXP" /> <activity android:name=".Tips_3Find" /> <activity android:name=".Tips_4Nest" /> <activity android:name=".Adv_Nests" /> <activity android:name=".Resources"></activity> </application> Main Activity- package com.androgeekzz.pokemongo_bestguidetipsandtricks; import android.app.AlertDialog; import android.content.DialogInterface; import android.content.Intent; import android.content.SharedPreferences; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.MenuItem; import android.view.View; public class MainActivity extends AppCompatActivity { SharedPreferences prefs; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); prefs = getSharedPreferences("myPrefs", MODE_PRIVATE); int times = prefs.getInt("ok_clicked", 0); if(times==0){ new AlertDialog.Builder(MainActivity.this) .setTitle("Hi there user") .setMessage("This app version right now is just 1.0 the later versions will be released soon with even more content,Images and in app video tutorials etc..and this app is completely ADD free so please do consider rating it. ") .setPositiveButton(android.R.string.yes, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int which) { prefs = getSharedPreferences("myPrefs", MODE_PRIVATE); SharedPreferences.Editor editor = prefs.edit(); editor.putInt("ok_clicked", 1); editor.apply(); } }) .show(); } getSupportActionBar().setDisplayHomeAsUpEnabled(true); getSupportActionBar().setHomeButtonEnabled(true); } public void basicsOnclick(View view) { Intent i = new Intent(this,Basics.class); startActivity(i); } public void advanceOnclick(View view) { Intent i = new Intent(this,Advanced.class); startActivity(i); } public void tipsOnclick(View view) { Intent i = new Intent(this,Tips.class); startActivity(i); } public void tricksOnclick(View view) { Intent i = new Intent(this,Tricks.class); startActivity(i); } public void resourceLinksOnclick(View view) { Intent i = new Intent(this,Resources.class); startActivity(i); } public void aboutOnclick(View view) { new AlertDialog.Builder(MainActivity.this) .setTitle("About") .setMessage("App Name :Pokemon GO-Guide\nVersion :1.0 \nCreator :Prudhvi") .setPositiveButton(android.R.string.yes, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int which) { } }) .show(); } @Override public boolean onOptionsItemSelected(MenuItem item) { switch (item.getItemId()) { case android.R.id.home: this.finish(); return true; default: return super.onOptionsItemSelected(item); } } } LogCat(It had not crashed for this log cat)- at com.android.systemui.statusbar.SignalClusterView.apply(SignalClusterView.java:468)

      at com.android.systemui.statusbar.policy.NetworkControllerImpl.refreshViews()
    2. com.android.systemui
      NetworkControllerImpl.onReceive
      1. com.android.systemui.statusbar.policy.NetworkControllerImpl.refreshViews(NetworkControllerImpl.java:1986)
      2. com.android.systemui.statusbar.policy.NetworkControllerImpl.refreshViews(NetworkControllerImpl.java:1679)
      3. com.android.systemui.statusbar.policy.NetworkControllerImpl.onReceive(NetworkControllerImpl.java:643)
      3 frames
    3. Android Platform
      ActivityThread.main
      1. android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:895)
      2. android.os.Handler.handleCallback(Handler.java:810)
      3. android.os.Handler.dispatchMessage(Handler.java:99)
      4. android.os.Looper.loop(Looper.java:189)
      5. android.app.ActivityThread.main(ActivityThread.java:5529)
      5 frames
    4. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:372)
      2 frames
    5. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:956)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:751)
      2 frames
    6. XposedBridge
      XposedBridge.main
      1. de.robv.android.xposed.XposedBridge.main(XposedBridge.java:114)
      1 frame