i-jetty icon indicating copy to clipboard operation
i-jetty copied to clipboard

can't install on cyanogen mod

Open GoogleCodeExporter opened this issue 9 years ago • 17 comments

What steps will reproduce the problem?
1. Install cyanogen mod 4.1.11.1 (latest unstable) 
2. try to install i-jetty 2 from market or download to desktop first


What is the expected output? What do you see instead?
-Installation fails from market with an error.
-Installation fails from desktop
~ $ adb install Desktop/i-jetty-2.0-final-signed.apk 
126 KB/s (745067 bytes in 5.742s)
DDM dispatch reg wait timeout
Can't dispatch DDM chunk 52454151: no handler defined
    pkg: /data/local/tmp/i-jetty-2.0-final-signed.apk
Failure [INSTALL_FAILED_CPU_ABI_INCOMPATIBLE]

What version of the product are you using? On what operating system?
2.0 on cyanogen mod 4.1.11.1

Please provide any additional information below.
wont install..

Original issue reported on code.google.com by [email protected] on 30 Sep 2009 at 7:44

GoogleCodeExporter avatar Mar 14 '15 08:03 GoogleCodeExporter

Hi,

thanks for the bug report on cyanogen. Is there any chance you could debug this
further? I am struggling to get the time to even update i-jetty to the latest 
android
sdk, so for the time being I can't really contemplate taking on another 
environment.

Perhaps it is a compatibility problem - is the version of cyanogen you're using
supposed to be backwards compatible with 1.1_r1? That was the version that 
i-jetty
2.0 apk was built against.

thanks,
Jan

Original comment by [email protected] on 19 Oct 2009 at 5:57

GoogleCodeExporter avatar Mar 14 '15 08:03 GoogleCodeExporter

Hi,
I just upgraded my cyanogen to 4.1.9999 (latest) and tried installing with same 
result.
cyanogen 4.1.9999 is based on Android 1.6 from HTC. (time to update i-jetty :)


p.s.
do you know if it would be possible to use i-jetty with jruby on rails on 
android?

Original comment by [email protected] on 24 Oct 2009 at 5:49

GoogleCodeExporter avatar Mar 14 '15 08:03 GoogleCodeExporter

Mikerin,

I've successufully built and run i-jetty release 2.0 against Android 1.6, so it 
seems
like some incompatibility between cyanogen and android libs. Can you post a log 
of
the errors you get?

thanks
Jan

Original comment by [email protected] on 25 Oct 2009 at 9:24

GoogleCodeExporter avatar Mar 14 '15 08:03 GoogleCodeExporter

Hi,

adb install Desktop/i-jetty-2.0-final-signed.apk 
126 KB/s (745067 bytes in 5.742s)
DDM dispatch reg wait timeout
Can't dispatch DDM chunk 52454151: no handler defined
    pkg: /data/local/tmp/i-jetty-2.0-final-signed.apk
Failure [INSTALL_FAILED_CPU_ABI_INCOMPATIBLE]

Installing from market just fails without any description of why. Where can I 
get a
log for the install errors?

Original comment by [email protected] on 26 Oct 2009 at 3:30

GoogleCodeExporter avatar Mar 14 '15 08:03 GoogleCodeExporter

here is the latest

adb install ~/Desktop/i-jetty-2.0-final-signed.apk 
* daemon not running. starting it now *
* daemon started successfully *
865 KB/s (745067 bytes in 0.841s)
    pkg: /data/local/tmp/i-jetty-2.0-final-signed.apk
Failure [INSTALL_FAILED_CPU_ABI_INCOMPATIBLE]

Original comment by [email protected] on 26 Oct 2009 at 3:36

GoogleCodeExporter avatar Mar 14 '15 08:03 GoogleCodeExporter

Hi Mikerin,

Did you try building it first against cyanogen? Or against android 1.6?

Jan

Original comment by [email protected] on 26 Oct 2009 at 4:26

GoogleCodeExporter avatar Mar 14 '15 08:03 GoogleCodeExporter

Hi Jan,
My first name is Slava (Mikerin is last name)
I did not try building agains anything just install the app. I could give it a 
try.. 
(do you have instructions?)
I have Android 1.6 SDK and CyanogenMod

Original comment by [email protected] on 26 Oct 2009 at 6:51

GoogleCodeExporter avatar Mar 14 '15 08:03 GoogleCodeExporter

Just tried building from source (svn)
and get 
Trace
org.apache.maven.reactor.MavenExecutionException: Failed to validate POM for 
project 
org.mortbay.ijetty:ijetty-parent at 
/home/slava/Desktop/tmp/i-jetty-read-only/pom.xml
    at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:404)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:272)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
    at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav
a:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
    at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
    at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
    at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.project.InvalidProjectModelException: Failed to 
validate 
POM for project org.mortbay.ijetty:ijetty-parent at 
/home/slava/Desktop/tmp/i-jetty-
read-only/pom.xml
    at 
org.apache.maven.project.DefaultMavenProjectBuilder.processProjectLogic(DefaultM
avenPro
jectBuilder.java:1077)
    at 
org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(DefaultMavenPr
ojectBu
ilder.java:880)
    at 
org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFileInternal(
Default
MavenProjectBuilder.java:508)
    at 
org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjectBui
lder.ja
va:200)
    at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:604)
    at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:487)
    at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:391)
    ... 12 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: < 1 second
[INFO] Finished at: Sun Oct 25 23:41:10 PST 2009
[INFO] Final Memory: 1M/57M
[INFO] ------------------------------------

Original comment by [email protected] on 26 Oct 2009 at 7:42

GoogleCodeExporter avatar Mar 14 '15 08:03 GoogleCodeExporter

Hi Slava (I suspected that may have been your first name, I should have gone 
with my
instinct!),

Looks like you may not be building it with the right command line. Try 
something like:

mvn -Dandroid.home=$ANDROID_HOME -Dandroid.platform=platforms/android-1.6 clean 
install

cheers
Jan

Original comment by [email protected] on 26 Oct 2009 at 9:08

GoogleCodeExporter avatar Mar 14 '15 08:03 GoogleCodeExporter

Jan,
I tried building with your command, but apparently it tries to build with  1.1 
and 
prints

mvn -Dandroid.home=$ANDROID_HOME -Dandroid.platform=platforms/android-1.6 clean 
install
...
Missing:
----------
1) android:android:jar:1.1_r1
...

Original comment by [email protected] on 26 Oct 2009 at 11:24

GoogleCodeExporter avatar Mar 14 '15 08:03 GoogleCodeExporter

Slava,

You need to put the android jar into your local maven repo (subsitute 1.6 in the
following):

mvn install:install-file -DgroupId?=android -DartifactId?=android 
-Dversion=1.5_r2
-Dpackaging=jar
-Dfile=$ANDROID_HOME/android-sdk-linux_x86-1.5_r2/platforms/android-1.5/android.
jar 

Now edit the pom.xml and update the android.version property to be 1.6:
  <android-version>1.1_r1</android-version>

Now build with the command line from the previous post.

cheers
Jan

Original comment by [email protected] on 26 Oct 2009 at 11:44

GoogleCodeExporter avatar Mar 14 '15 08:03 GoogleCodeExporter

here is what I did:

export ANDROID_HOME=~/dev/lib/android-sdk

mvn install:install-file -DgroupId?=android -DartifactId?=android 
-Dversion=1.6_r1 -
Dpackaging=jar -Dfile=$ANDROID_HOME/platforms/android-1.6/android.jar

mvn -Dandroid.home=$ANDROID_HOME -Dandroid.platform=platforms/android-1.6 clean 
install

running last command prints
...
Downloading: 
http://repository.codehaus.org/android/android/1.6_r1/android-1.6_r1.pom
[INFO] Unable to find resource 'android:android:pom:1.6_r1' in repository 
codehaus.org 
(http://repository.codehaus.org)
Downloading: 
http://repo1.maven.org/maven2/android/android/1.6_r1/android-1.6_r1.pom
[INFO] Unable to find resource 'android:android:pom:1.6_r1' in repository 
central 
(http://repo1.maven.org/maven2)
Downloading: 
http://repository.codehaus.org/android/android/1.6_r1/android-1.6_r1.jar
[INFO] Unable to find resource 'android:android:jar:1.6_r1' in repository 
codehaus.org 
(http://repository.codehaus.org)
Downloading: 
http://repo1.maven.org/maven2/android/android/1.6_r1/android-1.6_r1.jar
[INFO] Unable to find resource 'android:android:jar:1.6_r1' in repository 
central 
(http://repo1.maven.org/maven2)
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

Missing:
----------
1) android:android:jar:1.6_r1


Original comment by [email protected] on 27 Oct 2009 at 12:38

GoogleCodeExporter avatar Mar 14 '15 08:03 GoogleCodeExporter

Finally the latest version of i-jetty 2.1 installed on my cyanogen 2.4.5
But now I am having issues getting it to run properly. 
-One problem is that i-jetty keeps stopping after 1-2 requests and i have to 
start it
up again.
-Another issue is that there is no way to tell if i-jetty is running at any 
point in
time. The ui does not show it. (please add a status label to main ui)

Original comment by [email protected] on 18 Nov 2009 at 9:29

GoogleCodeExporter avatar Mar 14 '15 08:03 GoogleCodeExporter

Hi Mikerin,

Sounds like we're making progress :)

Actually there is a status indication - when Jetty is running, it installs a
Notification in the bar at the top of the screen. Drag down the bar and click 
on the
i-jetty icon and it will take you to the i-jetty control screen.

Regarding the starting/stopping, have you got any logs? 

Jan

Original comment by [email protected] on 18 Nov 2009 at 10:19

GoogleCodeExporter avatar Mar 14 '15 08:03 GoogleCodeExporter

Hi Jan,
The name is Slava (Mikerin is my last name).

About the logs, where should I look for the log file? I did not build the app 
but
installed it from market.

Slava

Original comment by [email protected] on 19 Nov 2009 at 8:32

GoogleCodeExporter avatar Mar 14 '15 08:03 GoogleCodeExporter

Joakim, do you know anything about cyanogen?

Original comment by [email protected] on 27 Mar 2010 at 4:35

  • Changed state: Accepted

GoogleCodeExporter avatar Mar 14 '15 08:03 GoogleCodeExporter

Slava,

Can you help us with obtaining a System.img for the cyanogen mod that you are 
using?
This would allow us to run the same environment as yours on the emulator to 
attempt to 
resolve this issue.

- Joakim

Original comment by joakim.erdfelt on 1 Apr 2010 at 10:37

GoogleCodeExporter avatar Mar 14 '15 08:03 GoogleCodeExporter