runtime-error

My code compiles in Eclipse but I get a ClassNotFound at runtime how can I fix it?

爱⌒轻易说出口 提交于 2019-11-27 08:16:49
问题 What would cause a jar to be added successfully to an Eclipse Java project but then at runtime some of the classes from that jar are not found with ClassNotFound exceptions? 回答1: The CLASSPATH variable at runtime is likely set incorrectly or you missed adding some classes to your jar file. 回答2: @ojblass almost certainly has it right. Just to extend it, you can dump the jar file with the jar(1) tool and see if the class is there. I've had surprises from Eclipse where the project definition

your content must have a listview whose id attribute is ' android.r.id.list ' .

人盡茶涼 提交于 2019-11-27 08:11:55
问题 I write the program but when i run this program, the program has runtime error :( The error in LogCat is : your content must have a listview whose id attribute is 'android.r.id.list' I set android:id="@android:id/list" in ListView in activity_main.xml file. I write my code, Please read this and help me . MainActivity.java: public class MainActivity extends ListActivity { private TextView text; private static final String[] items={"test", "test1" , "test2" , "test3" , "test4" , "test5" ,

What are the automatic type promotions of variadic function arguments?

不羁的心 提交于 2019-11-27 07:55:40
问题 Consider the following code snippet: #include <stdio.h> #include <stdarg.h> void display(int num, ...) { char c; int j; va_list ptr; va_start(ptr,num); for (j= 1; j <= num; j++){ c = va_arg(ptr, char); printf("%c", c); } va_end(ptr); } int main() { display(4, 'A', 'a', 'b', 'c'); return 0; } The program gives runtime error because vararg automatically promotes char to int, and i should have used int in this case. What are all types are permitted when I use vararg, how to know which type to

Error RZ3007: Targeted tag name cannot be null or whitespace

心不动则不痛 提交于 2019-11-27 07:49:42
问题 After upgrading to .NET Core 2.0 my 1.1 web application cannot run. I get the error message indicated below. After checking the output I found references to the RZ3007 error which I believe is related to the Razor compiler. The View is not compiling. Home/Index.cshtml: @model LayoutViewModel <div></div> Views/Shared/_Layout.cshtml <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>@ViewData["Title"] -

Disable Microsoft Visual C++ Runtime Error

匆匆过客 提交于 2019-11-27 07:06:17
问题 If my application crashes, a Microsoft Visual C++ Runtime Library "Runtime Error!" occurs. The text of the message is: This applicaton has requested the Runtime to terminate in an unusual way. Please contact the application's support team for more information. I know, that I need to solve all these issues, but I imagine that this error did not appear in the past. Is there an option in Visual Studio 2005 to enable/disable such error (handling)?. Instead I expect the application to just crash

Why is 0 divided by 0 throwing an overflow error in VBA?

心已入冬 提交于 2019-11-27 06:50:57
问题 Why is 0/0 throwing Overflow error in VBA, while in .Net languages it is simply a Division by 0 error? E.g., in C# it is a System.DivideByZeroException static void Main() { int k = 0; int p = 0; Console.WriteLine(k/p); } Div/0 error exists in VBA . But 0/0 gives an overflow exception , while anything else divided by 0 gives a Div/0 exception: Public Sub TestMe() 'Integer PrintAndCheck (11) '- Division by zero error 'Double PrintAndCheck (0.9) '- Division by zero error 'Long PrintAndCheck

PHP generated XML shows invalid Char value 27 message

岁酱吖の 提交于 2019-11-27 06:49:25
I am generating XML using PHP library as below: $dom = new DOMDocument("1.0","utf-8"); Doing above results in a page which shows a message on top of the output. This page contains the following errors: error on line 16 at column 274505: PCDATA invalid Char value 27 Below is a rendering of the page up to the first error. I have tried rectifying using Tidy library.. used iconv to get the chinese character in UTF-8. Prashant A useful function to get rid of that error is suggested on this website. http://www.phpwact.org/php/i18n/charsets#common_problem_areas_with_utf-8 When you put utf-8 encoded

IOS 8 Simulator unable to boot

为君一笑 提交于 2019-11-27 05:29:45
When I try to run my app with Xcode 6 Beta 4 on the Simulator iOS 8.0 I always get this error: Unable to boot the iOS Simulator Actually I found some similar questions on this site and I tried all the answers and I still couldn't solve it. I had the same error with the Beta 2 version of Xcode 6 so I decided to wait. But now this is not normal anymore. Did anyone find a reason why this is happening and found the solution? Pooja M. Bohora I am very happy that finally my issue resolved. Thanks to apple who helped me. For those who are still looking for solution, here is the one which helped me:

jcombobox filter in java - Look and feel independent

久未见 提交于 2019-11-27 04:40:06
I have a simple JComboBox filter code like this : import java.awt.event.KeyAdapter; import java.awt.event.KeyEvent; import java.util.ArrayList; import java.util.List; import javax.swing.DefaultComboBoxModel; import javax.swing.JComboBox; import javax.swing.JFrame; import javax.swing.JTextField; import javax.swing.SwingUtilities; import javax.swing.UIManager; public class FilterComboBox extends JComboBox { private List<String> array; public FilterComboBox(List<String> array) { super(array.toArray()); this.array = array; this.setEditable(true); final JTextField textfield = (JTextField) this

Excel VBA Automation Error: The object invoked has disconnected from its clients

荒凉一梦 提交于 2019-11-27 04:32:06
问题 I know I've seen references to this issue before, but I have tried several of the suggestions and I am still getting the error. I have a workbook that assembles data from another book and generates a report. I then want to make a new workbook, copy the report information into the new book, save the new book and close it, and then move on to the next report. It should do this around 10 times. In the part of my code where I am copying and pasting the sheets, I am getting an error Error