RESTEasy Client + NoSuchMethodError

This problems are thrown cause of different version of Resteasy Client implementation between your app and Jboss EAP modules. You are using the newest version of jaxrs-client, but JBoss EAP 6.3.0 use very old version (resteasy-jaxrs-2.3.8.Final-redhat-3). Just download latest pack of JBoss Resteasy implementation (sometking like this: resteasy-jboss-modules-3.0.9.Final.zip) and unzip into EAP Modules folder replacing … Read more

Using onClick attribute in layout xml causes a NoSuchMethodException in Android dialogs

Define the method (dialogClicked) in Activity. And modify TestDialog like the following code: public class TestDialog extends Dialog { Context mContext; public TestDialog(final Context context) { super(context); mContext=context; } @Override protected void onCreate(final Bundle savedInstanceState) { super.onCreate(savedInstanceState); LinearLayout ll=(LinearLayout) LayoutInflater.from(mContext).inflate(R.layout.dialog, null); setContentView(ll); } } I think it works 🙂

The method getDispatcherType() is undefined for the type HttpServletRequest

You’re not supposed to provide Servlet API along with the web application archive if the target runtime already provides the API out the box. Tomcat as being a JSP/Servletcontainer already provides JSP, Servlet and EL APIs out the box. When you provide them along with your webapp anyway, then you may run into classloading conflicts … Read more

“Error: Main method not found in class MyClass, please define the main method as…”

When you use the java command to run a Java application from the command line, e.g., java some.AppName arg1 arg2 … the command loads the class that you nominated and then looks for the entry point method called main. More specifically, it is looking for a method that is declared as follows: package some; public … Read more

Resolving dependency problems in Apache Spark

Apache Spark’s classpath is built dynamically (to accommodate per-application user code) which makes it vulnerable to such issues. @user7337271‘s answer is correct, but there are some more concerns, depending on the cluster manager (“master”) you’re using. First, a Spark application consists of these components (each one is a separate JVM, therefore potentially contains different classes … Read more