java,android,libgdxRelated issues-Collection of common programming errors
Sindri Traustason
java maven build sonar cobertura
I have a fairly large maven project with a bunch of subprojects, my bamboo instance runs continuous builds with “mvn clean deploy”. Also there is a separate nightly “mvn clean sonar:sonar” that is failing with the error below. MediaServiceType is an Enum in the main java part of the subproject being compiled, it implements an interface from another project. AbstractToolTest is in the same package as MediaServiceType hence it doesn’t show the full package name. The line in question is just castin
tgkprog
java eclipse swing maven
Update : solved by using assembly plugin to copy in artifacts, to a folder or create a redistributable zip file. Do not know maven. Used STS/ eclipse to make a maven project that is a swing standalone application. App runs fine inside STS. Example helped. {figured out how it’s getting the runner script. template is there in the source. maven just filters it and puts the current jar name. Now just need to figure out how to stop maving putting my app jar in the assembly lib (want it one level up
Arjun Thakur
java solr hadoop
Please help me guys I am trying to crawl the sites using NUTCH, But it gives me error “java.io.IOException: Job failed!”I am running this command “bin/nutch solrindex http://<host name>:8080/solr/ crawl/crawldb -linkdb crawl/linkdb crawl/segments/*” and i am using NUTCH 1.5.1 and SOLR 3.6.1 and jdk java-7-openjdk-i386 and ubuntu 12.04.In hadoop.log exist within NUTCH/log folder displays the following things:2012-09-13 12:56:10,524 INFO solr.SolrIndexer – SolrIndexer: starting at 2012-09-1
EuanMilton
java jaxb jax-ws cxf webservice-client
We have an application which needs to consume an external web service. To do this we have generated the set of Java artifacts from the WSDL via Maven using the wsdl2java goal provided by the cxf-codegen-plugin plugin.In the application we want to set the endpoint to use for the web service call at runtime (to cater for different web service endpoint URLs in test environments) and so have written some code as follows to do this for us:private <T> T createServiceObject(final Class<T>
C graphics
java swing jfreechart swingworker
I am trying to use jFreechart to generate two figures each of which with 12 graphs (being referred as series in jFreeChart ). However some of the graphs get simply skipped! I know I have synchronization issue here and tried to used the method the user @trashgod provided me here however I failed. I know the way I use swingworker is wrong! I dont know how to fix itEach figure should contain 10 graphs which are parallel horizontal straight lines. As you see in the attached image some of the lines
Kadir BASOL
java single-sign-on kerberos gssapi
i am try to login kerberos kdc from Java. But Java is throwing exception. Seems like login is successful but something is stops login. I dont know why ? Someone have solution for this problem? Here is my java system output:Debug is true storeKey false useTicketCache true useKeyTab false doNotPrompt false ticketCache is null isInitiator true KeyTab is null refreshKrb5Config is true principal is null tryFirstPass is false useFirstPass is false storePass is false clearPass is false Refreshing Ker
T.Rob
java websphere-mq
I am trying to set up a 2 way SSl using my java code. I am successful doing it one way that is server certificate gets validated from my side but when it comes to two way I get a 2397 Error code.Steps followed by me are:Create a keystore with a self-signed certificate using Keytool, deploy it in truststore of MQ server. Create a keystore for MQ server and create a self-signed certificate. Deploy MQ server’s certificate in my truststore.Then I try to run my java Code. This works fine without SSL
ObscureRobot
java c++ vector jni swig
I have some native C++ code that I’m converting to Java using SWIG so that my Java application can use it. In particular there are some functions that return std::vector. Here’s a snippet of my interface file:%include “std_vector.i” namespace std {%template(Vector) vector<double>;%template(Matrix) vector<vector<double> >; }%include “std_string.i”std_string.i and std_vector.i were included in my build of SWIG I’m using. My first surprise was that the Java output included SWIG’s
BalusC
java hibernate jpa
i made a test with a small class using @Entity, the class had 4 vars, and all the vars was build by hibernate, but when i add another class with more than 20 vars, the hibernate just return this error:23:34:58,100 INFO [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-7) JBAS010418: Stopped Driver service with driver-name = Projeto01.war_org.postgresql.Driver_9_023:34:58,144 INFO [org.jboss.as.jpa] (ServerService Thread Pool — 236) JBAS011410: Stopping Persistence Unit (phase 1 of
Stilly.stack
java android google-maps mapactivity
I’m working with googlemaps v2, firstly I get error “Couldn’t get connection factory client” Android MapActivity googlemaps : Couldnt get connection factory client. And I try to fix it from some tutorial and now get error “FATAL EXCEPTION: main java.lang.NoClassDefFoundError”.Logcat error12-18 09:48:40.670: V/SQLITE(330): Check DB on /data/data/com.mtower.adha/databases/mtowerdb.sqlite 12-18 09:48:40.790: I/coba(330): async start 12-18 09:48:41.470: D/dalvikvm(330): GC_FOR_MALLOC freed 2156 obje
Android-Developer
android encryption aes
I need a little help here.So basically I have to make a test of AES encryption/decryption of an image in Android.I’m new in android programming and that’s why a friend of mine give me an example of how to do it, but the problem is that when I run the sample it crashes after like 20-30 seconds and I’m not really sure what’s happening.So can anyone please look at the code and tell me where is the problem.The sample code needs to do this : Encrypt and Decrypt the same image and show me a log with i
500865
android exception maven
This is the stack trace of the error which Is thrown when I do mvn install :[INFO] ———————————————————————— [INFO] BUILD FAILURE [INFO] ———————————————————————— [INFO] Total time: 15.511s [INFO] Finished at: Fri Jun 15 10:20:12 EDT 2012 [INFO] Final Memory: 14M/81M [INFO] ———————————————————————— [ERROR] Failed to execute goal com.jayway.maven.plugins.an
Paul Asiimwe
android android-ndk libpng unsatisfiedlinkerror
I have an image converter app on google play that runs fine and well, it incorporates NDK for support of more file formats using the DevIL Image Processing library.It wokrs fine on most devices but since Android 4.4 Kitkat came out, i’ve received emails and crash reports on Google Play Console especially from Nexus devices that have 4.4 and now other older devices that receive the updateHere is the crash reportjava.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol “png_set_longjmp_f
hatboysam
android timeout android-pendingintent andengine in-app-billing
Ok so I have been trying to fix this for days, and I’m not coming here looking for someone to do my work for me as I have been troubleshooting and fixed every single error message in the LogCat. I am developing an Android game using Andengine (this might be part of the problem so being familiar with it could help). I’m not doing anything too fancy, my game activities are all single scene and don’t have any Physics or anything like that, just a bunch of sprites and textures. I also used Ande
theblitz
android listview indexoutofboundsexception
I’ve seen this question a couple of times before but none of the answers seem to fit my case. As with the others, the exception is withing the Android code and not mine.The weird thing is it only happens with Android 4.1 and 4.2. My Galaxy 3 recently updated to 4.3 and the problem disappeared. OTOH, on a Nexus with 4.4 it still happens!We don’t have any headers in the view. The other point is that it only happens when there are not enough rows to fill the screen.FATAL EXCEPTION: main java.lang.
vladimir
android cordova
I am using cordova and android platform.var CORDOVA_JS_BUILD_LABEL = ‘3.0.0-0-ge670de9’; AVD platform 4.2.2 API level 17I am trying to use Connection object I added next string into app/res/xml/config.xml<plugin name=”NetworkStatus” value=”org.apache.cordova.NetworkManager” />and next string into app/AndroidManifest.xml<uses-permission android:name=”android.permission.INTERNET” /> <uses-permission android:name=”android.permission.ACCESS_NETWORK_STATE” /> <uses-permission an
Suman
android gdb android-ndk breakpoints
Development Environment: NDK: r7 SDK & Tools: r15 AVD: GB2.3.3, API Level 10 I wrote a test application in which thread will be launched in the native. I Kept a break point in the thread. (Intially when i tried on Galaxy S2 i was getting an error, “Thread debugging not supported in this Platform”. So i created an AVD 2.3.3 Level 10). After this i was getting an error like this #0 0xafd0c51c in epoll_wait () from /Volumes/SecureCode/webos/rta/android/obj/local/armeabi/libc.so#1 0xa81216a6
karthi
android web-services opencv camera
I am working on an android application. In which I am getting users photo images(5 images)(Using opencv2.4.2 camera with face detection) and save into my database in the server using web service. For this I am using Opencv2.4.2 face detection sample, Ksoap2 for web service. In my android emulator and device(android 4.0.4) application working fine. But When I check with another device(android 4.0.3) it throws “Unfortunately, Myapp has stopped”. I have attached my log file below. I don’t know what
Stilly.stack
java android google-maps mapactivity
I’m working with googlemaps v2, firstly I get error “Couldn’t get connection factory client” Android MapActivity googlemaps : Couldnt get connection factory client. And I try to fix it from some tutorial and now get error “FATAL EXCEPTION: main java.lang.NoClassDefFoundError”.Logcat error12-18 09:48:40.670: V/SQLITE(330): Check DB on /data/data/com.mtower.adha/databases/mtowerdb.sqlite 12-18 09:48:40.790: I/coba(330): async start 12-18 09:48:41.470: D/dalvikvm(330): GC_FOR_MALLOC freed 2156 obje
reekdev
java android oauth oauth-2.0 authorization
I found this excellent example of Application-Only Authorization (OAuth 2.0) and OAuth 1.0a. The problem is the examples are both displayed in the same java file and I’m really interested in testing the capabilities of the OAuth 2.0 read-only authorization. When I try to comment out and disable parts of the 0Auth 1.0a, it blows up. I’m also trying to minimize the amount of buttons used down to two (1a & 1b) or even none, but I keep running into errors. I’ll post the problem code, but if you
ArcheNoah
java android crash libgdx android-logcat
I decided to retype the question since i gain more insight into the problem:Hi, I am quite despaired! Please help me! I invested so much time in this app and can’t find the solution to this bug since 2 weeks!App description: I developed an app for android with the LibGdx engine. It’s a jump and run game. Hereby Box2d is modeling the physic, a tiled map is rendered, a object parser is creating the objects, all data is managed with the asset manager, a stage which contains tables for the menu/HUD
shoayb
android libgdx runtime-error game-engine
I have created a sample game that runs perfectly on desktop but crashes with following error on android phone.**Unfortunately, My LibGDX Game has stopped.**I have tested with two different phones and even the emulator but the error remains the same. Below are the project properties for Android version.LogCat is(With Error Filter):04-03 21:55:41.582: E/Trace(20583): error opening trace file: No such file or directory (2) 04-03 21:55:42.022: E/MediaPlayerService(224): [MediaPlayerService getPlayer
user2711099
libgdx
I’m new and trying to understand this great lib. when i’m trying to run html with run as>web application i get errors. here’s the console text and gwt definiton file. I’ve searched in forum and googled for 2 days but i couldn’t solve this problem. Any suggestions? thanks guys :)`Loading modules com.me.mygdxgame.GwtDefinition Loading inherited module ‘com.me.mygdxgame.GwtDefinition’ [ERROR] Line 3: Unexpected exception while processing element ‘module’ java.lang.IllegalArgumentException: No enum
lakshman
android libgdx
i am trying to build android game from this libgdx based games but the android app crashes when ported to android game the libgdx code i downloaded from http://rengelbert.com/blog/downloads/froggerLibGDXSource.zipand i have build the android code for this game you can download it from here https://rapidshare.com/files/3456268683/FroggerLibGDXAndroid.zipthe game crashes and not starting Please help me in porting the game to androidthis is the error message i got/AndroidRuntime( 2966): >>>
Lestat
java android in-app-purchase libgdx
I followed these instructions to integrate both Libgdx and native android code using ActionResolver interface. I have no problem calling the Android method from the Libgdx part of my code. But I am hitting a dead end when I am trying to intergrate Google IAP with Libgdx. According to TrivialDrive example, it uses mPurchaseFinishedListener (outside of calling method). My question is: how do I pass this IAP resultcode back to Libgdx since the listener is outside the calling method? Currently, purc
Susei
java gwt ant libgdx
When I build with ant my project that uses libgdx, I get a strange error. It says that a class com.google.gwt.dom.client.ImageElement is not found, but it isn’t used at all in the code. How can I find what makes this class necessary? Even searching over the whole project doesn’t give any results. It says that error is at PixmapTextureAtlas.java:16 (class source), but there is no code that uses that ImageElement class. Adding the library containing com.google.gwt.dom.client.ImageElement class hel
user2510952
android libgdx
I have been follwoing the tutorial on google and other sites implementing GameHelper with LibGdx and I am not sure why I am getting this errorHere is my Main Activityimport android.content.Intent; import android.os.Bundle; import android.os.Handler; import android.os.Message; import android.view.View; import android.view.Window; import android.view.WindowManager; import android.widget.RelativeLayout;import com.CrazyEagle.utils.AdsHandler; import com.CrazyEagle.utils.GameAction; import com.badlog
BlueMonster
android android-emulator libgdx
Whenever i try to execute the application on the emulator, the emulator displays an error saying “Unfortunately, My libGDX Game has stopped.” The application runs fine in the desktop version though. I have the latest nightly version, ADT version 18, latest GWT, and latest version of eclipse. My Android SDK tools is version 19, while my android SDK platform-tools is version 11. Any ideas on how to fix this?I was following along this tutorial: LibGDX tutorialHere is a screenshot of what i see: Log
Vantrebla
box2d libgdx destroy
I´m using Libgdx with Box2D.I have a Problem with destroying a joint when a specific body crashes on the ground, the colliding bodies are detected and then I want to destroy some joints. Always when I will do this i get an error.Also I tested the destroy method seperatly for testing and i get the same error. It´s called right after the world.step(…) is this right?I read about something that the error happens when the joints are destroyed inbetween the timestep, but how i could do this outside
G1i1ch
java scala geometry libgdx
I have Tiled maps working in libgdx, now I’m trying to do collision with these maps. I figured it’d be really useful just to draw polygons in Tiled and use them for collisions in libgdx. I’d actually prefer it this way rather than doing a per tile collision since it’ll give me collision flexibility which the game requires. I’ve successfully parsed each object’s xml and grabbed the polygon points. I’ve been able to make a box2d PolygonShape with these and it shows up in game! But it’s mirrored up
Web site is in building