runtime-error

NoClassDefFoundError: org/glassfish/jersey/process/internal/RequestExecutorFactory

为君一笑 提交于 2019-12-12 01:50:03
问题 I get this error when I send out a request with post: NoClassDefFoundError: org/glassfish/jersey/process/internal/RequestExecutorFactory my code looks like that: @POST @Path("/processPayment") public Response processPay(PaymentRequestInterface request) throws ServletException { Object obj = new Object(); //create an object at the used library and do something with it return Response.status(status).entity(obj).build(); } and if I change my POST to a GET method I get this error:

“Cannot find symbol error” in my Triangle class

旧巷老猫 提交于 2019-12-12 01:38:47
问题 I can't figure out why I'm getting the cannot find symbol errors for the num and triangle type variables. This is the class: public class Triangle { private int s1; private int s2; private int s3; public Triangle (int s1, int s2, int s3) { s1= num1; s2= num2; s3= num3; } public String toString() { return (s1 + " " + s2 + " " + s3); } public boolean is_equilateral(){ if(s1==s2 && s2==s3 && s3==s1) { return Triangle.is_equilateral; } else { return false; } } public boolean is_isosceles(){ if(

Referencing to the EntityFramework.dll cause an run-time error in VS2010

…衆ロ難τιáo~ 提交于 2019-12-12 00:28:21
问题 [Updated] I have 2 projects in my solution. the first one is my DAL project(Class Library), and the second is a Windows Project(UI), my DAL Project referenced to EF 4.3.1 and worked normally, Recently I referenced my DAL project to EF6 , using Package Manager Console, by Update-Package EntityFramework command, in VS2010, after applying the recommended changes in EF official site, now the app.config of my DAL project include these lines: <configSections> <section name="entityFramework" type=

Runtime error Java

依然范特西╮ 提交于 2019-12-11 23:18:52
问题 I am a beginner in Java and I have a run time error question. I have answered it correctly, however I do not completely understand the concept behind the answer. Could someone please explain why B is the right answer to the question, thank you: Consider the following declarations: private ArrayList<String> list; ... public void printAll() { int index = 0; while (index < list.size) { index = index + 1; System.out.println(list.get(index)); } } Assuming that list is not null, which one of the

c++/error :: exc_bad_access error code=1

落爺英雄遲暮 提交于 2019-12-11 22:50:12
问题 Im getting a runtime error of exc_bad_access ( code = 1, address=0x0) on line asize = **y[0] + **y[1]; in the summation function. I know the problem is not a memory leak, so i don't quite know how to go about solving this problem. void allocArr (int **&x, int ***&y, int **&q, int ****&z) { x = new int *[2]; y = new int **(&*x); q = &*x; z = new int ***(&q); } void summation(int ***&y, int arr[]) { int asize = 0; asize = **y[0] + **y[1]; **y[2] = *new int [asize]; *(arr + 2) = asize; } void

Eclipse CDT fails to run compiled executable in Windows with error “terminated, exit value: <some number>”

时光总嘲笑我的痴心妄想 提交于 2019-12-11 21:22:51
问题 I just reinstalled Windows on my machine. Before that, I was using the Eclipse CDT IDE for Windows (64-bit) with MinGW compiler suite (downloaded using mingw-get). Everything worked perfectly fine before the reinstall. After the installation I tried to compile and run my C++ projects, but I always got the terminated, exit value: <some number> error in the console, even for a Hello World! project. I also got an error saying the libgcc_s_dw2-1.dll is missing from my computer when I tried to run

Error 13 when Pasting from another Workbook

纵然是瞬间 提交于 2019-12-11 21:16:18
问题 I'm new to VBA, and I've been trying to paste some data from one file into my active file. Unfortunately, I've been getting error 13 - Type Mismatch. I've tried changing each of the variable definitions, even declaring them as Variant , but nothing helped. The most relevant part of the code is below, with the error between the asterisks. dim i, j, k, CompShtStartNum, CompShtQty as integer dim OldFile as variant dim WCompWS, WCOl, NumEntryCol, ShtName as string dim InputsSht as worksheet dim

e(fx)clipse equinox compilation error

Deadly 提交于 2019-12-11 19:55:18
问题 I'm developing an OSGI (Equinox) Based-System and i came across JavaFX, i was trying the e(fx)clipse {OSGI bundle project} and i wrote a simple test project, but it is giving me some compilation errors. i have a main class : import java.io.IOException; import javafx.application.Application; import javafx.fxml.FXMLLoader; import javafx.scene.Scene; import javafx.stage.Stage; public class main extends Application { private static main _main ; public main () { _main = this; } public static main

VBA run-time error when passing dates to MySQL query

╄→尐↘猪︶ㄣ 提交于 2019-12-11 19:39:25
问题 From Excel VBA i connect to MySQL to fetch my_stored_procedure. Working fine except that when I use date filter as parameters to pass to MySQL SP i receive a run-time error. The date filters are entered by the user in two cells as start-date and end-date. The cells are defined defined as ranges dateFrom and dateTo. So I'm using these ranges to pass on to mySql rs, but VBA throws back: Run-time error '-2147217900 (80040e14)' You have an error in MySQL syntax; check the manual that corresponds

Issues writing merge sort with pointers in c [closed]

左心房为你撑大大i 提交于 2019-12-11 19:38:20
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I'm trying to write a merge sort program with pointers, and it is near to working good, but there is the problem that in the output there are some '0' instead of some of the numbers of the sorted array. For testing the code you have to write a txt file prova.txt in which there is the array, one number for line.