i am unable to pass text using intent to another activity. unfortunately you app has stop

I try to pass data using intent and i keep getting error. everything else is working except for the intent 05-16 12:58:15.624 15880-15880/com.example.user.talk E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.user.talk, PID: 15880 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.user.talk/com.example.user.talk.UpdateActivity}: java.lang.NullPointerException at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2318) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2396) at android.app.ActivityThread.access$800(ActivityThread.java:139) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1293) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:149) at android.app.ActivityThread.main(ActivityThread.java:5257) at java.lang.reflect.Method.invokeNative(Native Method) … Continue reading “i am unable to pass text using intent to another activity. unfortunately you app has stop”

Foreign Key Hibernate Annotation

I can not manage to make this simple foreign key constraint work. @Entity @Table(name = “wheel”) @Data public class WheelEntity { @Id @Column(name = “id”) @GeneratedValue(strategy = GenerationType.IDENTITY) private Integer id; … @Entity @Table(name = “bike”) @Data public class BikeEntity { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Integer id; @ManyToOne(targetEntity = WheelEntity.class, fetch=FetchType.EAGER, cascade={CascadeType.PERSIST, CascadeType.MERGE, CascadeType.REMOVE}) … Continue reading “Foreign Key Hibernate Annotation”

Comparing data numbers, Iterator.remove() throwing NullPointerException

I am trying to make an Android app that can compare integers. However, when I am trying to compare integers and I need to delete some entries because they are redundant or they do not fit in, I cannot use Iterator.remove() without encountering a NullPointerException. Here is the specific output: E/AndroidRuntime: FATAL EXCEPTION: main Process: … Continue reading “Comparing data numbers, Iterator.remove() throwing NullPointerException”

Unity : CommandInvokationFailure: Failed to recompile android resource files

I’m new to Unity. When trying to build the android apk, I have an compiling error. I updated Unity (5.6), SDK(24), JDK(1.8.0) Seems to have a problem with Java, however I don’t understand it. Does anyone ever had the same issue ? Thanks a lot. CommandInvokationFailure: Failed to recompile android resource files. /Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/bin/javac -bootclasspath “/Users/kwij1/Desktop/Android … Continue reading “Unity : CommandInvokationFailure: Failed to recompile android resource files”

Why i cannot quit this while loop(java)?

I am new here and i got into trouble about my coding, i hope someone could help me break this loop, cause no matter what i type, it always in the loop.My code is as follow: boolean flag = true; while(flag) { System.out.println(“Please enter the movie’s title:”); title = s.nextLine().trim(); if(title.trim().equals(“”)) { System.out.println(“Please do not … Continue reading “Why i cannot quit this while loop(java)?”

Java Swing – Draw Station Names using GPS Coordinates on JPanel

I am working on an assignment and got stuck at a certain point. I am given a .txt file with a series of stations, and I am supposed to draw the station names using the GPS coordinates given to me, but I can’t translate those coordinates to XY coordinates that a JPanel uses. Also, GPS … Continue reading “Java Swing – Draw Station Names using GPS Coordinates on JPanel”

Struts -Hello World – HTTP Status [404]

I am simply trying to created Hello World Struts Application . I have implemented every possible configuration , Still 404 error didnot resolved . My Server config and Project Structure Index.jsp <%@ page language=”java” contentType=”text/html; charset=ISO-8859-1″ pageEncoding=”ISO-8859-1″%> <%@ taglib prefix=”s” uri=”/struts-tags”%> <!DOCTYPE html PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN” “http://www.w3.org/TR/html4/loose.dtd”> <html> <head> <title>Hello World</title> </head> <body> … Continue reading “Struts -Hello World – HTTP Status [404]”

Do I need to install JRE8

I created a Java application with Java 8. I’ve deployed it to a server and got the following error: Exception in thread “main” java.lang.UnsupportedClassVersionError: Rest : Unsupported major.minor version 52.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:803) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) at java.net.URLClassLoader.defineClass(URLClassLoader.java:442) at java.net.URLClassLoader.access$100(URLClassLoader.java:64) at java.net.URLClassLoader$1.run(URLClassLoader.java:354) at java.net.URLClassLoader$1.run(URLClassLoader.java:348) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:347) at java.lang.ClassLoader.loadClass(ClassLoader.java:425) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) at … Continue reading “Do I need to install JRE8”