java,android,xml,android-linearlayout,xmlnsRelated issues-Collection of common programming errors


  • Jochen Hebbrecht
    java jboss
    We have a stateful session bean which is working perfectly. The stateful session bean has the following annotations:@Stateful @SerializedConcurrentAccess @Scope(ScopeType.SESSION) @Name(“XXXSession”) @Interceptors(SeamInterceptor.class)The session bean gets passivated when the timeout exceeds (defined in ejb3-interceptors-aop.xml). But the passivation process fails and we are receiving the following stacktrace. I would like to debug this in depth, but I don’t know where to start. I guess we cann

  • Student
    java android google-maps
    I am working on a project that includes location detection using the GPS so I found this code that included a working .apk file but when I tried to compile it and run it, it always crashes. The application crashes when I try opening it in an emulator or on a Samsung S4 mobile. N.B. I’ve chosen the correct target which is API 17 and downloaded Google play services and included it in the library of the project.Here is the code if anyone can helpManifest file<?xml version=”1.0″ encoding=”utf-8″

  • wei zheng
    java crash jvm openjdk
    i built openjdk7u40-b43-26 successfully under ubuntu 12.04 in vmware 7, but when i using it debug code in eclipse, jvm crash at once when i debug into the constructor of String. can anyone help me? thanks!~this is my code, seems very simply!public static void main(String[] args) throws InterruptedException { String str = new String(“hello world!”); System.out.println(str); } this is my openjdk version info.openjdk version “1.7.0-internal-all_fastdebug” OpenJDK Runtime Environment (build 1

  • Flavio
    java grails fatal-error jvm-crash
    I have the following error while running my program and can’t figure out what is the solution I also looked at all the topics with a similar error , but could not resolve my issue. Here the error: My application is built on Groovy and Grails version 2.0.4A fatal error has been detected by the Java Runtime Environment:EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6dbc9a19, pid=5092, tid=3852JRE version: 6.0_25-b06 Java VM: Java HotSpot(TM) Server VM (20.0-b11 mixed mode windows-x86 ) Problema

  • Timin8er
    java jogl
    My friends and I are trying to make a jogl program. It runs properly on all of their computers but when I try to run it I get the following error log. I already tried re-installing java and eclipse and re-downloading the code. When I tried to run it in debug mode I seems to be crashing around the time the canvas was initialized. I have already checked to make sure my drivers are up to date. Does anybody have a possible solution?# # A fatal error has been detected by the Java Runtime Environment:

  • Nannie
    java hadoop cloudera oozie hue
    I’m new to Hadoop and I have the flowing problem:I keep getting a “java.lang.ClassNotFoundException” when I’m trying to run my oozzie work flow. I use the Cloudera quick start VM v 4.5. used oozzie settings:Jar name : sample.jar Main class : Driver Arguments : in_single/ outused java classpublic class Driver{ public static class TokenizerMapper extends Mapper<Object, Text, Text, Text> {@Overridepublic void map(final Object key, final Text value, final Mapper<Object, Text, Text, Text>

  • user3080575
    java android eclipse ide
    I’ve been trying to use the Eclipse 22.3.0-887826 SDK bundle to learn about android develeopment, however the IDE shuts down frequently. This happens a lot but mostly when cut/copy/paste are being used.I’ve also tried the Eclipse 22.0.4-741630 version also, but still have the same issue.I’ve also tried to “unbind” the items in preferences, but the problem still occurs the same way.I’m running Windows 7 64-bit, latest Java JDK (7u45 32-bit)Anyone else having this problem? I’m new to this so any s

  • user2981810
    java spring cxf
    I’m running into a problem with a combination of Spring 3.1.1 and Apache CXF 2.7.10. I’m guessing I’m just missing a dependency but can’t for the life of me figure out what.When starting my service I get the following exception:PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property ‘serviceBeans’ threw exception; nested exception is java.lang.NoSuchMethodError: org.apache.cxf.jaxrs.JAXRSServiceFactoryBean.sendEvent(Lorg/apache/cxf/service/factory/FactoryBeanLis

  • Student
    java android xml eclipse google-maps
    I am developing a Google map v2 Android application. It is crashing and not opening at all. I followed the tutorial by Google developers and got an API key that I used in the Manifest fileMainActivity.javapackage com.example.maps;import android.app.Activity; import android.os.Bundle;public class MainActivity extends Activity {@Overrideprotected void onCreate(Bundle savedInstanceState) {super.onCreate(savedInstanceState);setContentView(R.layout.activity_main);} }activity_main.xml<?xml version=

  • skaffman
    java osgi classloader class-loading eclipse-virgo
    For some reason one of my bundles fails to load class from another:[2011-09-08 10:57:55.574] Thread-2 <UR0001I> User region ready. [2011-09-08 10:57:56.580] fs-watcher <HD0001I> Hot deployer processing ‘INITIAL’ event for file ‘org.eclipse.virgo.apps.admin-2.1.1.RELEASE.plan’. [2011-09-08 10:58:02.127] TCP Connection(2)-127.0.0.1 <DE0000I> Installing bundle ‘poim_resources’ version ‘0.0.0’. [2011-09-08 10:58:14.291] TCP Connection(2)-1

  • rene
    android
    I have MainActivity (which extends Activity) and GameView (which extends SurfaceView).MainActivity has TextViews for score and for time left. GameView calculates score and time left, and updates the TextViews in MainActivity.This works wells, but the problem is when I re-start the game over and over. The more games are re-started, the slower they become and eventually the app force-closes.Below is what I see in logcat messages.08-21 10:01:59.826: E/MP-Decision(293): UP Nw:2.700000 Tw:180 rq:2.90

  • user3157940
    android bluetooth android-ndk shared-libraries
    I’m trying to build a shared library I can use to access native bluetooth API functions. I’m currently trying to compile a c file from: https://android.googlesource.com/platform/external/bluetooth/bluedroid/ Whenever I attempt to compile any of this code as a shared library I get numerous undefined reference errors.. it looks like to every function referenced by the header files. In my latest attempt, I copied the entire bluedroid/bta file to my eclipse project/jni folder. Using the include

  • virusss8
    android android-emulator
    My emulator is online, adb is seeing it, but emulator itself can’t get through the startup to homescreen. Startup routine stops when the title ANDROID is on the screen. I thought that the key to repaired emulator is update to the newest version of android sdk, but it wasn’t worked. It is still the same problem. Thanks12-31 15:47:32.269: I/DEBUG(30): debuggerd: Jun 30 2010 14:39:19 12-31 15:47:33.351: D/qemud(37): entering main loop 12-31 15:47:33.359: I/Netd(29): Netd 1.0 starting 12-31 15:47:33

  • Raghunandan
    android
    I am trying to start an activity from other one(MainAcitivty) but this is not working it stops immediately whenever i click the button.code for MainActivity.java:public class MainActivity extends Activity implements OnClickListener {EditText title,body;Button btn,getnotes;NotepadDb notepad;Cursor cursor;@Overrideprotected void onCreate(Bundle savedInstanceState) {super.onCreate(savedInstanceState);setContentView(R.layout.activity_main);title=(EditText)findViewById(R.id.title);body=(EditText)find

  • aSystemOverload
    android
    I’ve tried all the other posts on here and other places to solve this, but can’t get it working.I’m using the Eclipse IDE, it suggests there are no problems, but once it loads up the virtual device, and the application it force closes.On advice from another post, I’m just re-running the app with logCat loaded… Well attempting to, Eclipse freezes up sometimes with logCat loaded when I try to run the app. Also my Virtual Device seems to take a silly long time to boot into the GUI (when loading

  • Janusz Chudzynski
    android
    I am trying to parse a JSON using the JSONParser class presented below.Based on breakpoints it seems like it’s crashing on this line of code:HttpResponse httpResponse = httpClient.execute(httpPost);I don’t know how to proceed with it. I will appreciate any help.FRAGMENT public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {View view = inflater.inflate(R.layout.agenda, container, false);final ListView listview = (ListView)view.findViewById(R.id.listVie

  • Student
    java android google-maps
    I am working on a project that includes location detection using the GPS so I found this code that included a working .apk file but when I tried to compile it and run it, it always crashes. The application crashes when I try opening it in an emulator or on a Samsung S4 mobile. N.B. I’ve chosen the correct target which is API 17 and downloaded Google play services and included it in the library of the project.Here is the code if anyone can helpManifest file<?xml version=”1.0″ encoding=”utf-8″

  • user998953
    android target
    When I update my android app target form 2.2 to 4.2.2 and update the manifest.xml fileMy app can’t open anymore . there is some Native code error info in my logcat.here is the logs: I don’t know what happend06-25 19:41:09.229: I/DEBUG(4120): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** 06-25 19:41:09.229: I/DEBUG(4120): Build fingerprint: ‘SKY/SKY_IM-A760S/ef33s:4.0.4/IMM76D/S0211228.EF33S_004:user/release-keys’ 06-25 19:41:09.229: I/DEBUG(4120): pid: 13302, tid: 13341 >&g

  • Bananeweizen
    android listview sqlitedatabase
    In my application’s database I have 2 tables one called “PLAYERS” which holds the data of every user and “FRIENDSLIST” which is intended to be a personal “friends” list for every registered account.How the process goes in my app is that when a player (Joe) registers a Username his information goes into the “PLAYERS” table and now he could go into my FindFriends activty,search the app for his friend’s Username (Bob) and then clicks the ADD button.The friend (Bob) then gets added to the “FRIENDSLI

  • chentc
    android mediacodec
    I have a bunch of local images saved as jpeg files. My images are captured using CameraPreview and the PreviewFormat is as default: NV21. I want to generate a small video from a fixed number of images. I am not going to use FFMpeg because it requires NDK and will introduce compatibility issues. MediaCodec and MediaMuxer seems work but there are not one working solutions on the web. There are a few references lead to my current solution.1.EncodeAndMuxTest: http://bigflake.com/mediacodec/EncodeAnd

  • Student
    java android xml eclipse google-maps
    I am developing a Google map v2 Android application. It is crashing and not opening at all. I followed the tutorial by Google developers and got an API key that I used in the Manifest fileMainActivity.javapackage com.example.maps;import android.app.Activity; import android.os.Bundle;public class MainActivity extends Activity {@Overrideprotected void onCreate(Bundle savedInstanceState) {super.onCreate(savedInstanceState);setContentView(R.layout.activity_main);} }activity_main.xml<?xml version=

  • amit kohan
    xml visual-studio-2010 visual-studio xsd
    I have learned how to create an XSD file base on XML file using xsd.exe file. Now I have a site.xml file and also an schematic file as site.xsd. I needed this since I’m looking at an existing application and trying to understand how it works so had to start from basic steps. Things are OK now but the only question I’m having is that in the site.xsd (original app) when I open it in VS2010 it show two tables (exactly as we have in SQL SERVER and Access) where it shows the primary key and foreign k

  • Matt
    android xml eclipse debugging
    I’m making an Android app for my work. Fairly new to the app development process so I’m testing it at early stages of development.Here’s the eclipse code:public class ClientFeedbackActivity extends Activity {@Override public void onCreate(Bundle savedInstanceState) {super.onCreate(savedInstanceState);this.setContentView(R.Layout.main);ImageButton mPortrait = (ImageButton)findViewById(R.id.imgPortrait);mPortrait.setOnClickListener(new View.OnClickListener() {@Overridepublic void onClick(View v) {

  • Darius
    php xml
    I call commission junction API and receive this as a response.$xml_response = simplexml_load_file($xml_response); exit($xml_response);If I do $xml = new SimpleXMLElement($xml_response);I get an application error. (Not sure how to find what error this is, where could I set error codes to show for this part?)Warning: simplexml_load_file(): I/O warning : failed to load external entity ” 106032782478435B & H Photo VideoComputers & Solutions > Laptops > MacBookshttp://www.jdoqocy.com/cl

  • AlphaCode
    java android xml eclipse
    I’m using startActivityForResult between 2 classes “MainActivity” & “abc” class . The problem I have is the application keeps crashing upon launch and by reading LogCat I think the crash due to NPE ” NullPointException” in MainActivity class (but I’m not sure) . I have searched for hours for solution but couldn’t find one that solves my case .1)MainActivity class : package com.example.passstrings;import android.support.v7.app.ActionBarActivity; import android.support.v4.app.Fragment; import

  • Ankur Kumawat
    java xml spring tomcat spring-mvc
    I am getting ClassNotFoundException on org.springframework.web.filter.DelegatingFilterProxy when tomcat starts, I have included spring-web.jar, Which has the class org.springframework.web.filter.DelegatingFilterProxy.The complete message from tomcat is–>????? ??, ???? ?:??:?? ??????? org.apache.catalina.core.AprLifecycleListener init INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Fil

  • Jon Skeet
    java xml stringtemplate-4
    I need help in this regard.Iam using stringtemplate 4.0 version to modify xml file saved as string template(Below mentioned file is saved as post.st)<master xsi:schemaLocation=”https://abc.xyn.com master.xsd” schemaVersion=”1.0″ xmlns=”https://abc.xyn.com” xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance”><envelope><masterName>$masterName$</masterName><description>PKTest_Multiple Attributes1</description><campaign>PKTest_Multiple Attributes1</camp

  • Richy
    java android xml
    I am trying to create a login page which checks a SQLite database for the users details, and if they are present, they are advanced to the main page of the application. I keep getting the java.lang.NullPointerException and do not know what I am doing wrong. Please can you advise on where the issues are in the code?Login.java:package com.B00512756.angertwo;public class Login extends Activity implements OnClickListener{public static final String DATABASE_NAME = “login_database.db”;public static

  • Shazar
    android xml xml-parsing sax bufferedreader
    Hi I am trying to read xml file which is in assets folder of my project but when it is going to read through buffer reader it throw a SAX exception, I searched everywhere to tackle this problem but failed to do so, it read some part of the xml and then exception through “End of the Document” please help me in this regard,Given below is my source code:MAIN Activtypublic class MainActivity extends ListActivity {static final String KEY_TITLE = “d:Title”; // parent nodestatic final String KEY_CREATI

  • Woot4Moo
    xml
    I am migrating an application from JBoss 5 to 7. But it’s like JBoss 7 does not support programatic JNDI binging. I get the error message below when i start the web server:14:50:05,752 INFO [stdout] (MSC service thread 1-1) 05.09.201114:50:05.750 ERROR [MSC service thread 1-1]org.springframework.web.context.ContextLoader Context initializationfailed org.springframework.beans.factory.BeanCreationException: Errorcreating bean with name ‘testApplicationSessionFactory’ defined inServletContext reso

  • nommirou
    android android-layout android-linearlayout android-drawable
    My app launches and starts fine on my Samsung Galaxy S3 phone running Android 4.1.2, but when I try to test the same app on my Motorola Droid X running Android 2.3.4 the app crashes before anything is even displayed on my Droid X screen.My LogCat is below. Unfortunately, it does not point me to exactly what part of my code it is failing on, but it seems like something to do with my layout because of these exceptions:08-09 10:43:39.686: E/AndroidRuntime(3192): FATAL EXCEPTION: main 08-09 10:43:39

  • glodos
    android android-linearlayout relativelayout nesting
    I have a following situation in my xml:<?xml version=”1.0″ encoding=”UTF-8″?> <LinearLayout xmlns:android=”http://schemas.android.com/apk/res/android” android:orientation=”vertical” android:layout_width=”fill_parent” android:layout_height=”fill_parent”><TableLayout xmlns:android=”http://schemas.android.com/apk/res/android”android:orientation=”vertical”android:layout_width=”fill_parent”android:layout_height=”wrap_content” android:gravity=”center”android:background=”@drawable/topbar

  • Shobhit Puri
    android xml android-linearlayout
    In my XML file, i made a few LinearLayout’s, and for some reason I get an error on line : xmlns:android=”http://schemas.android.com/apk/res/android”. It is marked with red (Error) and the error log says : “Unexpected namespace prefix “xmlns” found for tag LinearLayout”Does somebody know what that means?

  • Mojo Jojo
    java android xml android-linearlayout xmlns
    This question already has an answer here:Unexpected namespace prefix “xmlns” found for tag LinearLayout4 answersgetting this error while creating my .xml file for customdialog in android app.Unexpected namespace prefix “xmlns” found for tag Linear Layout<?xml version=”1.0″ encoding=”utf-8″?> <LinearLayout android:layout_gravity=”center” android:orientation=”vertical” android:layout_width=”wrap_content” android:layout_height=”wrap_content”xmlns:android=”http://schemas.and

  • Mojo Jojo
    java android xml android-linearlayout xmlns
    getting this error while creating my .xml file for customdialog in android app.Unexpected namespace prefix “xmlns” found for tag Linear Layout<?xml version=”1.0″ encoding=”utf-8″?> <LinearLayout android:layout_gravity=”center” android:orientation=”vertical” android:layout_width=”wrap_content” android:layout_height=”wrap_content”xmlns:android=”http://schemas.android.com/apk/res/android”> <ImageView … <ScrollView … <LinearLayout …**xmlns:android=”http://schemas.andro

  • aga
    android android-linearlayout spacing
    I have the following layout:<?xml version=”1.0″ encoding=”utf-8″?><LinearLayout xmlns:android=”http://schemas.android.com/apk/res/android”android:orientation=”vertical”android:layout_width=”match_parent”android:layout_height=”match_parent”><ImageViewandroid:layout_width=”match_parent”android:layout_height=”0dp”android:layout_weight=”3″android:id=”@+id/fragment_send_imageView”android:layout_margin=”0dp”android:padding=”0dp”/><RelativeLayoutandroid:layout_width=”match_parent”a

  • Xylian
    android android-layout android-linearlayout
    I’m adding a new views to my LinearLayout on a runtime. I’d like them to be stacked on the right side of the layout.On the picture clock icon gets stacked on the left, so it’s oposite to what I want. Is it possible to make them stack on the right of the higlited LinearLayout? (It can be any other layout, not just Linear if it gives what I want)

  • SJL
    android gui scrollview android-linearlayout
    I need to design a GUI with content at the top of the screen that doesn’t scroll, and content below the top part that does scroll. I thought about using a LinearLayout for the non-scrolling part and ScrollView for the scrolling part. However, when I try to use ScrollView after a LinearLayout I get a runtime error. Is it possible to add a LinearLayout and a ScrollView to a parent LinearLayout?

  • skaffman
    android dynamic view size android-linearlayout
    This question already has an answer here:Determining the size of an Android view at runtime7 answersI have a unknown number of TextView elements some EditText elements and so on, that are all placed in one linear layout… And I want to calculate the height of the layout at run time so I can get the exact size in pixels for different resolution screens. Some editboxes can contain more text then other so their size will be bigger… Is there possibility to calculate the size of a layout at runtim

  • Karakuri
    android custom-controls android-linearlayout nosuchmethoderror inflate-exception
    I have a custom view that extends LinearLayout, with these constructors:public class CustomView extends LinearLayout {public CustomView(Context context) {this(context, null); }public CustomView(Context context, AttributeSet attrs) {this(context, attrs, R.attr.customViewStyle); }public CustomView(Context context, AttributeSet attrs, int defStyle) {super(context, attrs, defStyle);/* set custom attributes with TypedArray */ }/* other methods */ }In my /res/values/attrs.xml:<attr name=”customView

  • xeye
    java xml soap cxf xmlns
    this one is accepted (auth namespace declared explicitly)<soapenv:Envelope xmlns:soapenv=”http://schemas.xmlsoap.org/soap/envelope/” xmlns:auth=”http://foo.pro/Auth/”><soapenv:Header/><soapenv:Body><auth:login><login>xxx</login><password>xxxx</password></auth:login></soapenv:Body> </soapenv:Envelope>this one gives “Unmarshalling Error: unexpected element (uri:”http://foo.pro/Auth/”, local:”login”). Expected elements are <{}logi

  • aChipmunk
    android listview xmlns
    I added a list view under RelativeLayout in activity_main.xml to create a simple list view for the main activity (please excuse me if I am using wrong terminology. I am very new to android dev).<RelativeLayout xmlns:android=”http://schemas.android.com/apk/res/android”xmlns:tools=”http://schemas.android.com/tools”android:layout_width=”match_parent”android:layout_height=”match_parent”android:paddingBottom=”@dimen/activity_vertical_margin”android:paddingLeft=”@dimen/activity_horizontal_margin”a

  • Mojo Jojo
    java android xml android-linearlayout xmlns
    This question already has an answer here:Unexpected namespace prefix “xmlns” found for tag LinearLayout4 answersgetting this error while creating my .xml file for customdialog in android app.Unexpected namespace prefix “xmlns” found for tag Linear Layout<?xml version=”1.0″ encoding=”utf-8″?> <LinearLayout android:layout_gravity=”center” android:orientation=”vertical” android:layout_width=”wrap_content” android:layout_height=”wrap_content”xmlns:android=”http://schemas.and

  • Mojo Jojo
    java android xml android-linearlayout xmlns
    getting this error while creating my .xml file for customdialog in android app.Unexpected namespace prefix “xmlns” found for tag Linear Layout<?xml version=”1.0″ encoding=”utf-8″?> <LinearLayout android:layout_gravity=”center” android:orientation=”vertical” android:layout_width=”wrap_content” android:layout_height=”wrap_content”xmlns:android=”http://schemas.android.com/apk/res/android”> <ImageView … <ScrollView … <LinearLayout …**xmlns:android=”http://schemas.andro

  • Tealc Wu
    wpf xaml namespaces mapping xmlns
    In every default WPF window as below, there are four namespaces are referenced. I know xmlns=”http://schemas.microsoft.com/winfx/2006/xaml/presentation” and xmlns:x=”http://schemas.microsoft.com/winfx/2006/xaml” are mapping library PresentationCore.dll and PresentationFramework.dll. But where can I find the library files mapping namespace xmlns:d=”http://schemas.microsoft.com/expression/blend/2008″ and xmlns:mc=”http://schemas.openxmlformats.org/markup-compatibility/2006″?<Window x:Class=

  • splintor
    soap netbeans wsdl xmlns wsimport
    Hi Our application provides a SOAP API. Our wsdl starting lines are something like<wsdl:definitions name=’ControlDServices’ … xmlns:soap=’http://schemas.xmlsoap.org/wsdl/soap/’ …This usually works OK, but a customer complained that when they try to use our SOAP API in NetBeans with the wsdl we provide they got this error:Web Service can not be created by JAXWS:wsimport utility. Reason: invalid extension element: “soap:body” (in namespace “http://schemas.xmlsoap.org/wsdl/soap/”)This can be

Web site is in building