unfortunately application has stopped in emulator - android-layout

log cat
01-16 20:29:48.904: D/dalvikvm(1008): GC_FOR_ALLOC freed 37K, 7% free 2585K/2768K, paused 110ms, total 113ms
01-16 20:29:48.944: D/AndroidRuntime(1008): Shutting down VM
01-16 20:29:48.944: W/dalvikvm(1008): threadid=1: thread exiting with uncaught exception (group=0x40a71930)
01-16 20:29:48.984: E/AndroidRuntime(1008): FATAL EXCEPTION: main
01-16 20:29:48.984: E/AndroidRuntime(1008): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.cuet.teachersroom/com.cuet.teachersroom.Teachers_Room}: android.view.InflateException: Binary XML file line #20: Error inflating class <unknown>
01-16 20:29:48.984: E/AndroidRuntime(1008): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2180)
01-16 20:29:48.984: E/AndroidRuntime(1008): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230)
01-16 20:29:48.984: E/AndroidRuntime(1008): at android.app.ActivityThread.access$600(ActivityThread.java:141)
01-16 20:29:48.984: E/AndroidRuntime(1008): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234)
01-16 20:29:48.984: E/AndroidRuntime(1008): at android.os.Handler.dispatchMessage(Handler.java:99)
01-16 20:29:48.984: E/AndroidRuntime(1008): at android.os.Looper.loop(Looper.java:137)
01-16 20:29:48.984: E/AndroidRuntime(1008): at android.app.ActivityThread.main(ActivityThread.java:5041)
01-16 20:29:48.984: E/AndroidRuntime(1008): at java.lang.reflect.Method.invokeNative(Native Method)
01-16 20:29:48.984: E/AndroidRuntime(1008): at java.lang.reflect.Method.invoke(Method.java:511)
01-16 20:29:48.984: E/AndroidRuntime(1008): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
01-16 20:29:48.984: E/AndroidRuntime(1008): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
01-16 20:29:48.984: E/AndroidRuntime(1008): at dalvik.system.NativeStart.main(Native Method)
01-16 20:29:48.984: E/AndroidRuntime(1008): Caused by: android.view.InflateException: Binary XML file line #20: Error inflating class <unknown>
01-16 20:29:48.984: E/AndroidRuntime(1008): at android.view.LayoutInflater.createView(LayoutInflater.java:613)
01-16 20:29:48.984: E/AndroidRuntime(1008): at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56)
01-16 20:29:48.984: E/AndroidRuntime(1008): at android.view.LayoutInflater.onCreateView(LayoutInflater.java:660)
01-16 20:29:48.984: E/AndroidRuntime(1008): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:685)
01-16 20:29:48.984: E/AndroidRuntime(1008): at android.view.LayoutInflater.rInflate(LayoutInflater.java:746)
01-16 20:29:48.984: E/AndroidRuntime(1008): at android.view.LayoutInflater.rInflate(LayoutInflater.java:749)
01-16 20:29:48.984: E/AndroidRuntime(1008): at android.view.LayoutInflater.rInflate(LayoutInflater.java:749)
01-16 20:29:48.984: E/AndroidRuntime(1008): at android.view.LayoutInflater.inflate(LayoutInflater.java:489)
01-16 20:29:48.984: E/AndroidRuntime(1008): at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
01-16 20:29:48.984: E/AndroidRuntime(1008): at android.view.LayoutInflater.inflate(LayoutInflater.java:352)
01-16 20:29:48.984: E/AndroidRuntime(1008): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:270)
01-16 20:29:48.984: E/AndroidRuntime(1008): at android.app.Activity.setContentView(Activity.java:1881)
01-16 20:29:48.984: E/AndroidRuntime(1008): at com.cuet.teachersroom.Teachers_Room.onCreate(Teachers_Room.java:38)
01-16 20:29:48.984: E/AndroidRuntime(1008): at android.app.Activity.performCreate(Activity.java:5104)
01-16 20:29:48.984: E/AndroidRuntime(1008): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1080)
01-16 20:29:48.984: E/AndroidRuntime(1008): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2144)
01-16 20:29:48.984: E/AndroidRuntime(1008): ... 11 more
01-16 20:29:48.984: E/AndroidRuntime(1008): Caused by: java.lang.reflect.InvocationTargetException
01-16 20:29:48.984: E/AndroidRuntime(1008): at java.lang.reflect.Constructor.constructNative(Native Method)
01-16 20:29:48.984: E/AndroidRuntime(1008): at java.lang.reflect.Constructor.newInstance(Constructor.java:417)
01-16 20:29:48.984: E/AndroidRuntime(1008): at android.view.LayoutInflater.createView(LayoutInflater.java:587)
01-16 20:29:48.984: E/AndroidRuntime(1008): ... 26 more
01-16 20:29:48.984: E/AndroidRuntime(1008): Caused by: android.content.res.Resources$NotFoundException: File res/drawable-mdpi/white.png from drawable resource ID #0x7f020005: .xml extension required
01-16 20:29:48.984: E/AndroidRuntime(1008): at android.content.res.Resources.loadColorStateList(Resources.java:2094)
01-16 20:29:48.984: E/AndroidRuntime(1008): at android.content.res.TypedArray.getColorStateList(TypedArray.java:342)
01-16 20:29:48.984: E/AndroidRuntime(1008): at android.widget.TextView.<init>(TextView.java:904)
01-16 20:29:48.984: E/AndroidRuntime(1008): at android.widget.TextView.<init>(TextView.java:578)
01-16 20:29:48.984: E/AndroidRuntime(1008): ... 29 more
01-16 20:29:49.166: D/dalvikvm(1008): GC_CONCURRENT freed 508K, 21% free 2500K/3152K, paused 12ms+7ms, total 166ms

Your error log shows that there was an unknown error in inflating one of your classes.
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.cuet.teachersroom/com.cuet.teachersroom.Teachers_Room}: android.view.InflateException: Binary XML file line #20: Error inflating class <unknown>
So we'd really need to take a look at the associated xml file that com.cuet.teachersroom.Teachers_Room is calling to see what's going on.

Related

Itext7 Stopped at PdfWriter with FileNotFoundException Error

I tried to make PDF file with Itext 7.2.2 and it just stop working at PdfWriter (im using Log to find where it stop) but the application doesnt crash. Here is my part of the code:
public void createPDF(ArrayList<ModelAttendance> arrayListAttendances, Integer attendeeCount){
try{
Log.i(TAG, "Create PDF with " +attendeeCount +" Attendee");
String path = Environment.getExternalStorageDirectory().getAbsolutePath() + "/Kegiatan/" + eventNama + ".pdf";
File file = new File(path);
file.mkdirs();
PdfWriter writer = new PdfWriter(file);
PdfDocument pdfDoc = new PdfDocument(writer);
Document document = new Document(pdfDoc, new PageSize(612, 936).rotate());
document.setMargins(0,0,0,0);
...
}
}
This the error:
W/System.err: java.io.FileNotFoundException: /storage/emulated/0/Kegiatan/Kegiatan 2.pdf (Is a directory)
W/System.err: at java.io.FileOutputStream.open0(Native Method)
W/System.err: at java.io.FileOutputStream.open(FileOutputStream.java:308)
W/System.err: at java.io.FileOutputStream.<init>(FileOutputStream.java:238)
W/System.err: at java.io.FileOutputStream.<init>(FileOutputStream.java:119)
W/System.err: at com.itextpdf.commons.utils.FileUtil.getBufferedOutputStream(FileUtil.java:201)
W/System.err: at com.itextpdf.kernel.pdf.PdfWriter.<init>(PdfWriter.java:138)
W/System.err: at com.itextpdf.kernel.pdf.PdfWriter.<init>(PdfWriter.java:125)
W/System.err: at id.go.hulusungaiselatankab.absensikegiatanpemerintahan.HelperClassPDF7.createPDF(HelperClassPDF7.java:42)
W/System.err: at id.go.hulusungaiselatankab.absensikegiatanpemerintahan.ActivityAttendance.lambda$onCreate$0$id-go-hulusungaiselatankab-absensikegiatanpemerintahan-ActivityAttendance(ActivityAttendance.java:86)
W/System.err: at id.go.hulusungaiselatankab.absensikegiatanpemerintahan.ActivityAttendance$$ExternalSyntheticLambda0.onClick(Unknown Source:2)
W/System.err: at android.view.View.performClick(View.java:6597)
W/System.err: at android.view.View.performClickInternal(View.java:6574)
W/System.err: at android.view.View.access$3100(View.java:778)
W/System.err: at android.view.View$PerformClick.run(View.java:25885)
W/System.err: at android.os.Handler.handleCallback(Handler.java:873)
W/System.err: at android.os.Handler.dispatchMessage(Handler.java:99)
W/System.err: at android.os.Looper.loop(Looper.java:193)
W/System.err: at android.app.ActivityThread.main(ActivityThread.java:6669)
W/System.err: at java.lang.reflect.Method.invoke(Native Method)
W/System.err: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
I change my code from:
File file = new File(path);
file.mkdirs();
To:
File root = new File(path);
if (!root.exists()){
root.mkdirs();
}
File file = new File(path + eventNama + ".pdf");
if(root.exists()){
file.delete();
}
file.createNewFile();
FileOutputStream outputStream = new FileOutputStream(file);
I got the answer from here: How to create files to a specific folder in android application?

while I test my app, I get the follow error in the Android-Studio-Consol:

E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.example.firstproject, PID: 6019
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.firstproject/com.example.firstproject.MainActivity}: android.view.InflateException: Binary XML file line #25: Error inflating class android.webkit.WebView
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2325)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2387)
at android.app.ActivityThread.access$800(ActivityThread.java:151)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1303)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5254)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
Caused by: android.view.InflateException: Binary XML file line #25: Error inflating class android.webkit.WebView
at android.view.LayoutInflater.createView(LayoutInflater.java:633)
at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:55)
at android.view.LayoutInflater.onCreateView(LayoutInflater.java:682)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:741)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:806)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:809)
at android.view.LayoutInflater.inflate(LayoutInflater.java:504)
at android.view.LayoutInflater.inflate(LayoutInflater.java:414)
at android.view.LayoutInflater.inflate(LayoutInflater.java:365)
at androidx.appcompat.app.AppCompatDelegateImpl.setContentView(AppCompatDelegateImpl.java:555)
at androidx.appcompat.app.AppCompatActivity.setContentView(AppCompatActivity.java:161)
at com.example.firstproject.MainActivity.onCreate(MainActivity.java:19)
at android.app.Activity.performCreate(Activity.java:5990)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2278)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2387) 
at android.app.ActivityThread.access$800(ActivityThread.java:151) 
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1303) 
at android.os.Handler.dispatchMessage(Handler.java:102) 
at android.os.Looper.loop(Looper.java:135) 
at android.app.ActivityThread.main(ActivityThread.java:5254) 
at java.lang.reflect.Method.invoke(Native Method) 
at java.lang.reflect.Method.invoke(Method.java:372) 
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698) 
Caused by: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Constructor.newInstance(Native Method)
at java.lang.reflect.Constructor.newInstance(Constructor.java:288)
at android.view.LayoutInflater.createView(LayoutInflater.java:607)
at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:55) 
at android.view.LayoutInflater.onCreateView(LayoutInflater.java:682) 
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:741) 
at android.view.LayoutInflater.rInflate(LayoutInflater.java:806) 
at android.view.LayoutInflater.rInflate(LayoutInflater.java:809) 
at android.view.LayoutInflater.inflate(LayoutInflater.java:504) 
at android.view.LayoutInflater.inflate(LayoutInflater.java:414) 
at android.view.LayoutInflater.inflate(LayoutInflater.java:365) 
at androidx.appcompat.app.AppCompatDelegateImpl.setContentView(AppCompatDelegateImpl.java:555) 
at androidx.appcompat.app.AppCompatActivity.setContentView(AppCompatActivity.java:161) 
at com.example.firstproject.MainActivity.onCreate(MainActivity.java:19) 
at android.app.Activity.performCreate(Activity.java:5990) 
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106) 
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2278) 
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2387) 
at android.app.ActivityThread.access$800(ActivityThread.java:151) 
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1303) 
at android.os.Handler.dispatchMessage(Handler.java:102) 
at android.os.Looper.loop(Looper.java:135) 
at android.app.ActivityThread.main(ActivityThread.java:5254) 
at java.lang.reflect.Method.invoke(Native Method) 
at java.lang.reflect.Method.invoke(Method.java:372) 
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698) 
Caused by: android.content.res.Resources$NotFoundException: String resource ID #0x2040003
at android.content.res.Resources.getText(Resources.java:299)
at android.content.res.Resources.getString(Resources.java:385)
at com.android.org.chromium.content.browser.ContentViewCore.setContainerView(ContentViewCore.java:684)
at com.android.org.chromium.content.browser.ContentViewCore.initialize(ContentViewCore.java:608)
at com.android.org.chromium.android_webview.AwContents.createAndInitializeContentViewCore(AwContents.java:631)
at com.android.org.chromium.android_webview.AwContents.setNewAwContents(AwContents.java:780)
at com.android.org.chromium.android_webview.AwContents.(AwContents.java:619)
at com.android.org.chromium.android_webview.AwContents.(AwContents.java:556)
at com.android.webview.chromium.WebViewChromium.initForReal(WebViewChromium.java:311)
at com.android.webview.chromium.WebViewChromium.access$100(WebViewChromium.java:96)
at com.android.webview.chromium.WebViewChromium$1.run(WebViewChromium.java:263)
at com.android.webview.chromium.WebViewChromium$WebViewChromiumRunQueue.drainQueue(WebViewChromium.java:123)
at com.android.webview.chromium.WebViewChromium$WebViewChromiumRunQueue$1.run(WebViewChromium.java:110)
at com.android.org.chromium.base.ThreadUtils.runOnUiThread(ThreadUtils.java:144)
at com.android.webview.chromium.WebViewChromium$WebViewChromiumRunQueue.addTask(WebViewChromium.java:107)
at com.android.webview.chromium.WebViewChromium.init(WebViewChromium.java:260)
at android
public class MainActivity extends AppCompatActivity {
#Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
final WebView webView = (WebView) findViewById(R.id.web_view) ;
final EditText editText = (EditText) findViewById(R.id.etext) ;
webView.setWebViewClient (new WebViewClient() );
Button button = (Button)findViewById(R.id.btn_go) ;
button.setOnClickListener (new View.OnClickListener() {
#Override
public void onClick (View v){
webView.loadUrl(editText.getText().toString() ) ;
}
});
}
}
Here's XML code :
Here's Emulator :

java.lang.NoClassDefFoundError: com.twilio.Twilio

For some reason Twilio SMS works only in a public static void main function as shown here. When I try to move it to a JSF environment shown here it gives me an error saying "NoClassDefFoundError" which means the class was not found in the classpath. The strange this both the working and not working twilio are in the same project which puzzles me. I'm unsure of how to solve it.
Working Code
package twilio;
import com.twilio.Twilio;
import com.twilio.type.PhoneNumber;
import com.twilio.rest.api.v2010.account.Message;
import javax.faces.bean.ManagedBean;
#ManagedBean
public class TwilioMSG {
public static final String ACCOUNT_SID = "myAccSid";
public static final String AUTH_TOKEN = "myAuth";
public static void main(String[] args) {
Twilio.init(ACCOUNT_SID, AUTH_TOKEN);
Message.creator( new PhoneNumber("+myNumber"), new PhoneNumber("+TwilioNumber"), "I am having Java class").create();
}
}
Code with error
package controllers;
import com.twilio.Twilio;
import com.twilio.rest.api.v2010.account.Message;
import com.twilio.type.PhoneNumber;
import javax.faces.bean.ManagedBean;
#ManagedBean
public class PhoneController {
public static final String ACCOUNT_SID = "myAccSid";
public static final String AUTH_TOKEN = "myAuth";
public PhoneController() {
}
public void testSMS(){
Twilio.init(ACCOUNT_SID, AUTH_TOKEN);
Message.creator( new PhoneNumber("+myNumber"), new PhoneNumber("+TwilioNumber"), "I am having OS class")
}
}
Error Message
[#|2019-01-13T19:58:46.428+0800|WARNING|glassfish 5.0|javax.enterprise.resource.webcontainer.jsf.lifecycle|_ThreadID=27;_ThreadName=http-listener-1(2);_TimeMillis=1547380726428;_LevelValue=900;|
#{phoneController.testS}: java.lang.NoClassDefFoundError: com/twilio/Twilio
javax.faces.FacesException: #{phoneController.testS}: java.lang.NoClassDefFoundError: com/twilio/Twilio
at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:119)
at javax.faces.component.UICommand.broadcast(UICommand.java:330)
at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:870)
at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1418)
at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:201)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:670)
at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1580)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:258)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:160)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:652)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:591)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:99)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155)
at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:371)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:238)
at com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:463)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:168)
at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:206)
at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:180)
at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:242)
at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:284)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:201)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:133)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:112)
at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)
at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:539)
at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:112)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:117)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:56)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:137)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:593)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:573)
at java.lang.Thread.run(Thread.java:745)
Caused by: javax.faces.el.EvaluationException: java.lang.NoClassDefFoundError: com/twilio/Twilio
at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:101)
at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
... 35 more
Caused by: java.lang.NoClassDefFoundError: com/twilio/Twilio
at twilio.TwilioMSG.WhatsApp(TwilioMSG.java:19)
at twilio.TwilioMSG.SMS(TwilioMSG.java:28)
at controllers.PhoneController.testS(PhoneController.java:19)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.sun.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:181)
at com.sun.el.parser.AstValue.invoke(AstValue.java:289)
at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:304)
at org.jboss.weld.module.web.util.el.ForwardingMethodExpression.invoke(ForwardingMethodExpression.java:40)
at org.jboss.weld.module.web.el.WeldMethodExpression.invoke(WeldMethodExpression.java:50)
at com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:107)
at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:87)
... 36 more
|#]
[#|2019-01-13T19:58:46.431+0800|SEVERE|glassfish 5.0|javax.enterprise.resource.webcontainer.jsf.context|_ThreadID=27;_ThreadName=http-listener-1(2);_TimeMillis=1547380726431;_LevelValue=1000;|
javax.faces.el.EvaluationException: java.lang.NoClassDefFoundError: com/twilio/Twilio
at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:101)
at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
at javax.faces.component.UICommand.broadcast(UICommand.java:330)
at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:870)
at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1418)
at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:201)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:670)
at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1580)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:258)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:160)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:652)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:591)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:99)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155)
at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:371)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:238)
at com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:463)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:168)
at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:206)
at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:180)
at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:242)
at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:284)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:201)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:133)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:112)
at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)
at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:539)
at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:112)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:117)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:56)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:137)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:593)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:573)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NoClassDefFoundError: com/twilio/Twilio
at twilio.TwilioMSG.WhatsApp(TwilioMSG.java:19)
at twilio.TwilioMSG.SMS(TwilioMSG.java:28)
at controllers.PhoneController.testS(PhoneController.java:19)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.sun.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:181)
at com.sun.el.parser.AstValue.invoke(AstValue.java:289)
at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:304)
at org.jboss.weld.module.web.util.el.ForwardingMethodExpression.invoke(ForwardingMethodExpression.java:40)
at org.jboss.weld.module.web.el.WeldMethodExpression.invoke(WeldMethodExpression.java:50)
at com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:107)
at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:87)
... 36 more
|#]
I am using Glassfish as my server and IntelliJ just for extra information
Usually NoClassDefFound errors are related to missing libraries at runtime.
In your case, probably in your local setup you have it in your classpath, running your main method successfully.
Now when moving to a JSF environment, you have a server involved, so you have to pay attention in a couple things:
Is the dependency JAR available on a shared folder/classpath on the server?
Is the dependency being package along your WAR or EAR?
So unpack and check you WAR ans check the classpaths to see If your dependency is available, and provide it in the classpath or WAR/EAR.

Kafka 0.9 Spring Integration DSL Configuration

I've played with the latest Spring Integration DSL and got stuck on the consumer configuration.
This is my consumer config:
#Configuration
public static class ConsumerConfiguration {
#Autowired
private KafkaConfig kafkaConfig;
private Log log = LogFactory.getLog(getClass());
#Bean
public ConsumerFactory<String, String> consumerFactory() {
Map<String, Object> props = new HashMap<>();
props.put(ConsumerConfig.BOOTSTRAP_SERVERS_CONFIG, kafkaConfig.getBrokerAddress());
props.put(ConsumerConfig.GROUP_ID_CONFIG, "myGroup");
props.put(ConsumerConfig.KEY_DESERIALIZER_CLASS_CONFIG, StringDeserializer.class);
props.put(ConsumerConfig.VALUE_DESERIALIZER_CLASS_CONFIG, StringDeserializer.class);
props.put(ConsumerConfig.AUTO_OFFSET_RESET_CONFIG, "earliest");
props.put(ConsumerConfig.ENABLE_AUTO_COMMIT_CONFIG, true);
return new DefaultKafkaConsumerFactory<>(props);
}
#Bean
IntegrationFlow consumer() {
log.info("starting consumer..");
KafkaMessageDrivenChannelAdapterListenerContainerSpec<String, String> kafkaMDCAListenerContainerSpec =
Kafka09.messageDriverChannelAdapter(consumerFactory(), kafkaConfig.getTopic());
return IntegrationFlows
.from(kafkaMDCAListenerContainerSpec)
.<Map<String, List<String>>>handle((payload, headers) -> {
payload.entrySet().forEach(e -> log.info(e.getKey() + '=' + e.getValue()));
return null;
})
.get();
}
}
During application startup I am getting the following exception:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'consumer' defined in class path resource [demo/DemoApplication$ConsumerConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.integration.dsl.IntegrationFlow]: Factory method 'consumer' threw exception; nested exception is java.lang.NoSuchMethodError: org.springframework.kafka.listener.adapter.MessagingMessageListenerAdapter.<init>(Ljava/lang/reflect/Method;)V
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:599) ~[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1128) ~[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1023) ~[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:510) ~[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482) ~[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) ~[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) ~[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) ~[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:751) ~[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:861) ~[spring-context-4.3.3.RELEASE.jar:4.3.3.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:541) ~[spring-context-4.3.3.RELEASE.jar:4.3.3.RELEASE]
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:761) [spring-boot-1.4.1.RELEASE.jar:1.4.1.RELEASE]
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:371) [spring-boot-1.4.1.RELEASE.jar:1.4.1.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:315) [spring-boot-1.4.1.RELEASE.jar:1.4.1.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1186) [spring-boot-1.4.1.RELEASE.jar:1.4.1.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1175) [spring-boot-1.4.1.RELEASE.jar:1.4.1.RELEASE]
at demo.DemoApplication.main(DemoApplication.java:162) [classes/:na]
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.integration.dsl.IntegrationFlow]: Factory method 'consumer' threw exception; nested exception is java.lang.NoSuchMethodError: org.springframework.kafka.listener.adapter.MessagingMessageListenerAdapter.<init>(Ljava/lang/reflect/Method;)V
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:189) ~[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE]
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:588) ~[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE]
... 17 common frames omitted
Caused by: java.lang.NoSuchMethodError: org.springframework.kafka.listener.adapter.MessagingMessageListenerAdapter.<init>(Ljava/lang/reflect/Method;)V
at org.springframework.integration.dsl.kafka.Kafka09MessageDrivenChannelAdapter$IntegrationMessageListener.<init>(Kafka09MessageDrivenChannelAdapter.java:152) ~[spring-integration-java-dsl-1.2.0.M2.jar:na]
at org.springframework.integration.dsl.kafka.Kafka09MessageDrivenChannelAdapter.<init>(Kafka09MessageDrivenChannelAdapter.java:50) ~[spring-integration-java-dsl-1.2.0.M2.jar:na]
at org.springframework.integration.dsl.kafka.Kafka09MessageDrivenChannelAdapterSpec.<init>(Kafka09MessageDrivenChannelAdapterSpec.java:54) ~[spring-integration-java-dsl-1.2.0.M2.jar:na]
at org.springframework.integration.dsl.kafka.Kafka09MessageDrivenChannelAdapterSpec$KafkaMessageDrivenChannelAdapterListenerContainerSpec.<init>(Kafka09MessageDrivenChannelAdapterSpec.java:71) ~[spring-integration-java-dsl-1.2.0.M2.jar:na]
at org.springframework.integration.dsl.kafka.Kafka09.messageDriverChannelAdapter(Kafka09.java:148) ~[spring-integration-java-dsl-1.2.0.M2.jar:na]
at org.springframework.integration.dsl.kafka.Kafka09.messageDriverChannelAdapter(Kafka09.java:123) ~[spring-integration-java-dsl-1.2.0.M2.jar:na]
at demo.DemoApplication$ConsumerConfiguration.consumer(DemoApplication.java:149) ~[classes/:na]
at demo.DemoApplication$ConsumerConfiguration$$EnhancerBySpringCGLIB$$845f73e4.CGLIB$consumer$0(<generated>) ~[classes/:na]
at demo.DemoApplication$ConsumerConfiguration$$EnhancerBySpringCGLIB$$845f73e4$$FastClassBySpringCGLIB$$64cb05f3.invoke(<generated>) ~[classes/:na]
at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228) ~[spring-core-4.3.3.RELEASE.jar:4.3.3.RELEASE]
at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:356) ~[spring-context-4.3.3.RELEASE.jar:4.3.3.RELEASE]
at demo.DemoApplication$ConsumerConfiguration$$EnhancerBySpringCGLIB$$845f73e4.consumer(<generated>) ~[classes/:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_60]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_60]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_60]
at java.lang.reflect.Method.invoke(Method.java:497) ~[na:1.8.0_60]
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:162) ~[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE]
... 18 common frames omitted
Any help is highly appreciated. Thanks in advance.
SOLUTION:
The updated and working code can be found here:
https://github.com/magiccrafter/spring-kafka09
See, you have as a dependency:
<dependency>
<groupId>org.springframework.kafka</groupId>
<artifactId>spring-kafka</artifactId>
<version>1.1.0.RELEASE</version>
<scope>compile</scope>
</dependency>
But that one is already for the Apache Kafka-0.10. The Spring Integration Java DSL isn't compatible with that yet.
We are planning to move there after Java DSL 1.2 RELEASE.
So, you have to switch to spring-kafka-1.0.x, or just use spring-integration-kafka-2.1.0.RELEASE directly, bypassing Kafka09 factory!

Error while running app

I have an app with flipper and animation of images on each page of Flipper...
App works on HTC Desire, Desire S, Samsung Galaxy tab 1 (7')... But when I try to run it on Samsung Galaxy Tab 10.1 - this error occures...
flipper = (ViewFlipper) findViewById(R.id.flipper);
LayoutInflater inflater = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE);
int layouts[] = new int[]{ R.layout.first, R.layout.second, R.layout.third, R.layout.fourth,
R.layout.fifth, R.layout.sixth, R.layout.seventh, R.layout.eighth, R.layout.nineth, R.layout.tenth,
R.layout.eleventh, R.layout.twelveth, R.layout.thirteen, R.layout.fourteenth };
for (int layout : layouts)
flipper.addView(inflater.inflate(layout, null));
02-16 09:33:44.129: E/AndroidRuntime(1733): FATAL EXCEPTION: main
02-16 09:33:44.129: E/AndroidRuntime(1733): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.home/com.home.Main}: android.view.InflateException: Binary XML file line #2: Error inflating class <unknown>
02-16 09:33:44.129: E/AndroidRuntime(1733): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1751)
02-16 09:33:44.129: E/AndroidRuntime(1733): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1767)
02-16 09:33:44.129: E/AndroidRuntime(1733): at android.app.ActivityThread.access$1500(ActivityThread.java:122)
02-16 09:33:44.129: E/AndroidRuntime(1733): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1005)
02-16 09:33:44.129: E/AndroidRuntime(1733): at android.os.Handler.dispatchMessage(Handler.java:99)
02-16 09:33:44.129: E/AndroidRuntime(1733): at android.os.Looper.loop(Looper.java:132)
02-16 09:33:44.129: E/AndroidRuntime(1733): at android.app.ActivityThread.main(ActivityThread.java:4028)
02-16 09:33:44.129: E/AndroidRuntime(1733): at java.lang.reflect.Method.invokeNative(Native Method)
02-16 09:33:44.129: E/AndroidRuntime(1733): at java.lang.reflect.Method.invoke(Method.java:491)
02-16 09:33:44.129: E/AndroidRuntime(1733): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:844)
02-16 09:33:44.129: E/AndroidRuntime(1733): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:602)
02-16 09:33:44.129: E/AndroidRuntime(1733): at dalvik.system.NativeStart.main(Native Method)
02-16 09:33:44.129: E/AndroidRuntime(1733): Caused by: android.view.InflateException: Binary XML file line #2: Error inflating class <unknown>
02-16 09:33:44.129: E/AndroidRuntime(1733): at android.view.LayoutInflater.createView(LayoutInflater.java:596)
02-16 09:33:44.129: E/AndroidRuntime(1733): at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56)
02-16 09:33:44.129: E/AndroidRuntime(1733): at android.view.LayoutInflater.onCreateView(LayoutInflater.java:644)
02-16 09:33:44.129: E/AndroidRuntime(1733): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:669)
02-16 09:33:44.129: E/AndroidRuntime(1733): at android.view.LayoutInflater.inflate(LayoutInflater.java:457)
02-16 09:33:44.129: E/AndroidRuntime(1733): at android.view.LayoutInflater.inflate(LayoutInflater.java:391)
02-16 09:33:44.129: E/AndroidRuntime(1733): at android.view.LayoutInflater.inflate(LayoutInflater.java:347)
02-16 09:33:44.129: E/AndroidRuntime(1733): at com.home.Main.onCreate(Main.java:98)
02-16 09:33:44.129: E/AndroidRuntime(1733): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1048)
02-16 09:33:44.129: E/AndroidRuntime(1733): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1715)
02-16 09:33:44.129: E/AndroidRuntime(1733): ... 11 more
02-16 09:33:44.129: E/AndroidRuntime(1733): Caused by: java.lang.reflect.InvocationTargetException
02-16 09:33:44.129: E/AndroidRuntime(1733): at java.lang.reflect.Constructor.constructNative(Native Method)
02-16 09:33:44.129: E/AndroidRuntime(1733): at java.lang.reflect.Constructor.newInstance(Constructor.java:416)
02-16 09:33:44.129: E/AndroidRuntime(1733): at android.view.LayoutInflater.createView(LayoutInflater.java:576)
02-16 09:33:44.129: E/AndroidRuntime(1733): ... 20 more
02-16 09:33:44.129: E/AndroidRuntime(1733): Caused by: java.lang.OutOfMemoryError
02-16 09:33:44.129: E/AndroidRuntime(1733): at android.graphics.BitmapFactory.nativeDecodeAsset(Native Method)
02-16 09:33:44.129: E/AndroidRuntime(1733): at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:577)
02-16 09:33:44.129: E/AndroidRuntime(1733): at android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:445)
02-16 09:33:44.129: E/AndroidRuntime(1733): at android.graphics.drawable.Drawable.createFromResourceStream(Drawable.java:738)
02-16 09:33:44.129: E/AndroidRuntime(1733): at android.content.res.Resources.loadDrawable(Resources.java:1869)
02-16 09:33:44.129: E/AndroidRuntime(1733): at android.content.res.TypedArray.getDrawable(TypedArray.java:601)
02-16 09:33:44.129: E/AndroidRuntime(1733): at android.view.View.<init>(View.java:2462)
02-16 09:33:44.129: E/AndroidRuntime(1733): at android.view.View.<init>(View.java:2401)
02-16 09:33:44.129: E/AndroidRuntime(1733): at android.view.ViewGroup.<init>(ViewGroup.java:359)
02-16 09:33:44.129: E/AndroidRuntime(1733): at android.widget.RelativeLayout.<init>(RelativeLayout.java:173)
02-16 09:33:44.129: E/AndroidRuntime(1733): ... 23 more
As I understand after googling this error is because of Manifest, any ideas?
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.home"
android:installLocation="preferExternal"
android:versionCode="1"
android:versionName="1.0">
<uses-sdk android:minSdkVersion="8" />
<supports-screens
android:smallScreens="true"
android:normalScreens="true"
android:largeScreens="true"
android:anyDensity="true"/>
<application android:icon="#drawable/icon" android:label="#string/app_name">
<activity android:name=".Main"
android:label="#string/app_name"
android:screenOrientation="landscape"
>
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
No, this is because of OutOfMemoryError exception. You're trying to load some heavy enough bitmap from your resources:
02-16 09:33:44.129: E/AndroidRuntime(1733): Caused by: java.lang.OutOfMemoryError
02-16 09:33:44.129: E/AndroidRuntime(1733): at android.graphics.BitmapFactory.nativeDecodeAsset(Native Method)
02-16 09:33:44.129: E/AndroidRuntime(1733): at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:577)
02-16 09:33:44.129: E/AndroidRuntime(1733): at android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:445)
02-16 09:33:44.129: E/AndroidRuntime(1733): at android.graphics.drawable.Drawable.createFromResourceStream(Drawable.java:738)
02-16 09:33:44.129: E/AndroidRuntime(1733): at android.content.res.Resources.loadDrawable(Resources.java:1869)
02-16 09:33:44.129: E/AndroidRuntime(1733): at android.content.res.TypedArray.getDrawable(TypedArray.java:601)
02-16 09:33:44.129: E/AndroidRuntime(1733): at android.view.View.<init>(View.java:2462)
02-16 09:33:44.129: E/AndroidRuntime(1733): at android.view.View.<init>(View.java:2401)
02-16 09:33:44.129: E/AndroidRuntime(1733): at android.view.ViewGroup.<init>(ViewGroup.java:359)
02-16 09:33:44.129: E/AndroidRuntime(1733): at android.widget.RelativeLayout.<init>(RelativeLayout.java:173)
02-16 09:33:44.129: E/AndroidRuntime(1733): ... 23 more

Resources