java.lang.NoClassDefFoundError: org.appcelerator.titanium.util.Log

Appcelerator JIRA | Shannon Hicks | 4 years ago
  1. 0

    I'm using a custom C2DM module that calls Log.d() to send some stuff to the debug console. With 2.1.0GA everything works fine. With 2.2CI I see this stack dump: {code} W/System.err( 5628): java.lang.NoClassDefFoundError: org.appcelerator.titanium.util.Log W/System.err( 5628): at com.findlaw.c2dm.C2dmModule.registerC2dm(C2dmModule.java:57) W/System.err( 5628): at org.appcelerator.kroll.runtime.v8.V8Runtime.nativeRunModule(Native Method) W/System.err( 5628): at org.appcelerator.kroll.runtime.v8.V8Runtime.doRunModule(V8Runtime.java:140) W/System.err( 5628): at org.appcelerator.kroll.KrollRuntime.handleMessage(KrollRuntime.java:284) W/System.err( 5628): at org.appcelerator.kroll.runtime.v8.V8Runtime.handleMessage(V8Runtime.java:166) W/System.err( 5628): at android.os.Handler.dispatchMessage(Handler.java:95) W/System.err( 5628): at android.os.Looper.loop(Looper.java:137) W/System.err( 5628): at org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:108) {code} Here's the first 57 lines of C2dmModule.java: {code} /** * This file was auto-generated by the Titanium Module SDK helper for Android * Appcelerator Titanium Mobile * Copyright (c) 2009-2010 by Appcelerator, Inc. All Rights Reserved. * Licensed under the terms of the Apache Public License * Please see the LICENSE included with this distribution for details. * */ package com.findlaw.c2dm; import org.appcelerator.kroll.KrollInvocation; import org.appcelerator.kroll.KrollDict; import org.appcelerator.kroll.KrollModule; import org.appcelerator.kroll.annotations.Kroll; import org.appcelerator.titanium.ITiAppInfo; import org.appcelerator.titanium.TiContext; import org.appcelerator.titanium.TiApplication; import org.appcelerator.titanium.util.Log; import java.util.HashMap; import org.appcelerator.kroll.KrollFunction; import android.app.Notification; import android.app.NotificationManager; import android.app.PendingIntent; import android.content.Context; import android.content.Intent; import android.content.pm.PackageManager; import android.net.Uri; import com.google.android.c2dm.C2DMessaging; import android.app.AlertDialog; import android.content.DialogInterface; @Kroll.module(name="C2dm", id="com.findlaw.c2dm") public class C2dmModule extends KrollModule { // Standard Debugging variables private static final String LCAT = "C2dmModule"; private static C2dmModule _THIS; private KrollFunction successCallback; private KrollFunction errorCallback; private KrollFunction messageCallback; public C2dmModule() { super(); _THIS = this; } // Methods @Kroll.method public void registerC2dm(String senderId, HashMap options) { Log.d(LCAT, "registerC2dm called"); {code}

    Appcelerator JIRA | 4 years ago | Shannon Hicks
    java.lang.NoClassDefFoundError: org.appcelerator.titanium.util.Log
  2. 0

    I'm using a custom C2DM module that calls Log.d() to send some stuff to the debug console. With 2.1.0GA everything works fine. With 2.2CI I see this stack dump: {code} W/System.err( 5628): java.lang.NoClassDefFoundError: org.appcelerator.titanium.util.Log W/System.err( 5628): at com.findlaw.c2dm.C2dmModule.registerC2dm(C2dmModule.java:57) W/System.err( 5628): at org.appcelerator.kroll.runtime.v8.V8Runtime.nativeRunModule(Native Method) W/System.err( 5628): at org.appcelerator.kroll.runtime.v8.V8Runtime.doRunModule(V8Runtime.java:140) W/System.err( 5628): at org.appcelerator.kroll.KrollRuntime.handleMessage(KrollRuntime.java:284) W/System.err( 5628): at org.appcelerator.kroll.runtime.v8.V8Runtime.handleMessage(V8Runtime.java:166) W/System.err( 5628): at android.os.Handler.dispatchMessage(Handler.java:95) W/System.err( 5628): at android.os.Looper.loop(Looper.java:137) W/System.err( 5628): at org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:108) {code} Here's the first 57 lines of C2dmModule.java: {code} /** * This file was auto-generated by the Titanium Module SDK helper for Android * Appcelerator Titanium Mobile * Copyright (c) 2009-2010 by Appcelerator, Inc. All Rights Reserved. * Licensed under the terms of the Apache Public License * Please see the LICENSE included with this distribution for details. * */ package com.findlaw.c2dm; import org.appcelerator.kroll.KrollInvocation; import org.appcelerator.kroll.KrollDict; import org.appcelerator.kroll.KrollModule; import org.appcelerator.kroll.annotations.Kroll; import org.appcelerator.titanium.ITiAppInfo; import org.appcelerator.titanium.TiContext; import org.appcelerator.titanium.TiApplication; import org.appcelerator.titanium.util.Log; import java.util.HashMap; import org.appcelerator.kroll.KrollFunction; import android.app.Notification; import android.app.NotificationManager; import android.app.PendingIntent; import android.content.Context; import android.content.Intent; import android.content.pm.PackageManager; import android.net.Uri; import com.google.android.c2dm.C2DMessaging; import android.app.AlertDialog; import android.content.DialogInterface; @Kroll.module(name="C2dm", id="com.findlaw.c2dm") public class C2dmModule extends KrollModule { // Standard Debugging variables private static final String LCAT = "C2dmModule"; private static C2dmModule _THIS; private KrollFunction successCallback; private KrollFunction errorCallback; private KrollFunction messageCallback; public C2dmModule() { super(); _THIS = this; } // Methods @Kroll.method public void registerC2dm(String senderId, HashMap options) { Log.d(LCAT, "registerC2dm called"); {code}

    Appcelerator JIRA | 4 years ago | Shannon Hicks
    java.lang.NoClassDefFoundError: org.appcelerator.titanium.util.Log
  3. 0

    Apache camel returns multiple exceptions during a route

    Stack Overflow | 11 months ago | lkn2993
    java.lang.NoClassDefFoundError: org/apache/mina/common/ByteBuffer It returns this error even though I have imported the mina in my pom.xml And: [org.apache.camel.processor.DefaultErrorHandler] : Redelivery enabled: false on error handler: DefaultErrorHandler[Channel[Splitter[on: BeanExpression[ method: hashTokens] to: Pipeline[[Channel[DelegateSync[main$1$1@5bd7d30f]], Channel[sendTo(Endpoint[file://files/Merged.txt])]]] aggregate: null]]] ] ] Message History ----------------------------------------------------------------------------- ---------------------------------------------------------- RouteId ProcessorId Processor Elapsed (ms) [route1 ] [route1 ] [file://files ] [ 45] [route1 ] [split1 ] [split[bean{SplitToken, method=hashTokens}] ] [ 19] Exchange ----------------------------------------------------------------------------- ---------------------------------------------------------- Exchange[ Id ID-ALI-PC-8060-1451994155551-0-4 ExchangePattern InOnly Headers {breadcrumbId=ID-ALI-PC-8060-1451994155551-0-1, CamelFileAbsolute=false, CamelFileAbsolutePath=C:\Users\ali25\Documents\IdeaProjects\files\1.txt, CamelFileContentType=text/plain, CamelFileLastModified=1451993202700, CamelFileLength=111, CamelFileName=1.txt, CamelFileNameConsumed=1.txt, CamelFileNameOnly=1.txt, CamelFileParent=files, CamelFilePath=files\1.txt, CamelFileRelativePath=1.txt, CamelRedelivered=false, CamelRedeliveryCounter=0} BodyType String Body Good1 450 ] Stacktrace ----------------------------------------------------------------------------- ---------------------------------------------------------- ]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    خطا در ایجاد وب سرویس

    barnamenevis.org | 11 months ago
    java.lang.NoClassDefFoundError: javax/enterprise/context/spi/Contextual
  6. 0

    Error on Restrict Access by IP in Apache Tomcat 6.0.20

    Stack Overflow | 6 years ago | Jacelyn
    java.lang.NoClassDefFoundError: org/apache/tomcat/util/compat/JdkCompat

    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.NoClassDefFoundError

      org.appcelerator.titanium.util.Log

      at com.findlaw.c2dm.C2dmModule.registerC2dm()
    2. com.findlaw.c2dm
      C2dmModule.registerC2dm
      1. com.findlaw.c2dm.C2dmModule.registerC2dm(C2dmModule.java:57)
      1 frame
    3. org.appcelerator.kroll
      V8Runtime.handleMessage
      1. org.appcelerator.kroll.runtime.v8.V8Runtime.nativeRunModule(Native Method)
      2. org.appcelerator.kroll.runtime.v8.V8Runtime.doRunModule(V8Runtime.java:140)
      3. org.appcelerator.kroll.KrollRuntime.handleMessage(KrollRuntime.java:284)
      4. org.appcelerator.kroll.runtime.v8.V8Runtime.handleMessage(V8Runtime.java:166)
      4 frames
    4. Android Platform
      Looper.loop
      1. android.os.Handler.dispatchMessage(Handler.java:95)
      2. android.os.Looper.loop(Looper.java:137)
      2 frames
    5. org.appcelerator.kroll
      KrollRuntime$KrollRuntimeThread.run
      1. org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:108)
      1 frame