java.lang.RuntimeException Cannot find FacesContext

java.lang.RuntimeException: Cannot find FacesContext Thus, the JSF <f:xxx> and <h:xxx> tags are complaining that FacesContext cannot be found. The FacesServlet is the one responsible for creating the faces context. The faces servlet is invoked when the request URL matches its URL pattern, which is in your particular case *.jsf. So, when you open the index.jsp … Read more

Error:Execution failed for task ‘:app:transformClassesWithDexForDebug’ in android studio

Error:Execution failed for task ‘:app:transformClassesWithDexForDebug’. com.android.build.api.transform.TransformException: java.lang.RuntimeException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process ‘command ‘C:\Program Files\Java\jdk1.7.0_79\bin\java.exe” finished with non-zero exit value 1 The upper error occure due to lot of reason. So I can put why this error occure and how to solve it. REASON 1 : Duplicate of class file name SOLUTION : when your … Read more

Can’t create handler inside thread which has not called Looper.prepare()

The error is self-explanatory… doInBackground() runs on a background thread which, since it is not intended to loop, is not connected to a Looper. You most likely don’t want to directly instantiate a Handler at all… whatever data your doInBackground() implementation returns will be passed to onPostExecute() which runs on the UI thread. mActivity = … Read more

ActionBarCompat: java.lang.IllegalStateException: You need to use a Theme.AppCompat

If you are extending ActionBarActivity in your MainActivity, you will have to change the parent theme in values-v11 also. So the style.xml in values-v11 will be – <!– res/values-v11/themes.xml –> <?xml version=”1.0″ encoding=”utf-8″?> <resources> <style name=”QueryTheme” parent=”@style/Theme.AppCompat”> <!– Any customizations for your app running on devices with Theme.Holo here –> </style> </resources> EDIT: I would … Read more