As seen in the image, every time when I run the test, only the test class failed step is displayed in the console. It doesn't display the method step where it failed. I used to get the method failed line number in the console before but not sure what made this go away now.
734 orgPortal.satisfyAllconditionOfSanctions(); step failed is displayed in the console but it is not displayed where it has failed in the method ie satisfyAllcondtionOfSanctions
Related
I open the project: ML Kit Vision Quickstart. https://github.com/googlesamples/mlkit/tree/master/android/vision-quickstart
Build and run on phone with no problem. I want to save an object created by the program with Shared Preferences but when I create a new object this error apear:
('PoseLandmark(int, com.google.mlkit.vision.common.PointF3D, float)'
is not public in 'com.google.mlkit.vision.pose.PoseLandmark'. Cannot
be accessed from outside package)
This class PoseLandmark is read only. And there is 2 clickable link "Download Sources" and "Choose Sources". When a go to the Download sources the task fails with the message:
Task :app:DownloadSources FAILED
1 actionable task: 1 executed
FAILURE: Build failed with an exception.
Where:
Initialization script '/tmp/ijmiscinit1.gradle' line: 20
What went wrong: Execution failed for task ':app:DownloadSources'.
Could not resolve all files for configuration ':app:downloadSources_0dad3cd2-2bde-4430-8d97-b0c59cc95ab3'.
Could not find com.google.mlkit:pose-detection-common:17.1.0-beta2#aar.
Required by:
project :app
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in 5s 23:52:38: Task execution finished
'DownloadSources'.
I try to change this version on the gradle.build file from:
implementation 'com.google.mlkit:pose-detection:17.0.1-beta3
to:
implementation 'com.google.mlkit:pose-detection:17.0.1-beta2
but didn't work!
And I already try many things: invalidate cache/restart, remove .idea and .gradle files, import project again, download files again, install new version oh the studio...
Someone have some suggestion of how can I save this object?
Edit:
The object is created here:
#Override
public void draw(Canvas canvas) {
List<PoseLandmark> landmarks = pose.getAllPoseLandmarks();
if (landmarks.isEmpty()) {
return;
}
And used in the sequence:
for (PoseLandmark landmark : landmarks) {
drawPoint(canvas, landmark, whitePaint);
if (visualizeZ && rescaleZForVisualization) {
zMin = min(zMin, landmark.getPosition3D().getZ());
zMax = max(zMax, landmark.getPosition3D().getZ());
}
}
Maybe a can workaround.
I want to save an object created by the program with Shared Preferences
Could you provide the code snippet about how you save the object? What object are you trying to save? Are you using the gson library or something similar?
PoseLandmark(int, com.google.mlkit.vision.common.PointF3D, float) is the constructor for PoseLandmark. It is not public. That is probably why you cannot access it.
Currently, you cannot construct a Pose object by yourself. It is not part of the API. To workaround, could you consider extracting the information you need out of Pose and store them in a class you define?
I am running cucumber test cases in bulk.
Suppose I have 5 feature files to run in bulk and one failed out of it.
So in next execution I'm trying to run failed test cases, for that I'm trying to use Intellij provided feature, i.e. Rerun failed Test. So when I click on it, it gives me below error.
Error:
0 test classes found in package 'test.java'
Picked up JAVA_TOOL_OPTIONS: -'path of JAVA_TOOL_OPTION'
Process finished with exit code -2
Empty test suite.
I have created a JFrame form for simple data capture, and it was running fine. Now when I run it in Ecplise, I get nothing and this warning comes up:
Unable to find location of java.lang.Thread.setName() in debuggee, for type java.lang.Thread.
.My form never loads and there are no errors.
When I try to run my program, Eclipse gives me this error in completely red text.
X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 154 (GLX)
Minor opcode of failed request: 24 (X_GLXCreateNewContext)
Value in failed request: 0x0
Serial number of failed request: 29
Current serial number in output stream: 30
I have tried commenting out various statements and using Eclipse's debugger. The program still gives the same error immediately, no matter where I put the debugger's breakpoints.
What might be causing this, and is there anything I can do to fix it?
I haven't included any of my code because my program is too large and I can't narrow the problem down. Also, the fact that the debugger's not working makes me think this has more to do with how Eclipse is handling my program anyway.
I am using Oracle's Java-8 with JavaFX and Eclipse 2018-19 (4.9.0) on Ubuntu 18.04.
I have a Java GUI program that occasionally crashes with the following output:
(java:830): Gdk-ERROR **: The program 'java' received an X Window System error.
This probably reflects a bug in the program.
The error was 'RenderBadPicture (invalid Picture parameter)'.
(Details: serial 16758 error_code 146 request_code 143 minor_code 7)
(Note to programmers: normally, X errors are reported asynchronously;
that is, you will receive the error a while after causing it.
To debug your program, run it with the --sync command line
option to change this behavior. You can then get a meaningful
backtrace from your debugger if you break on the gdk_x_error() function.)
/bin/sh: line 1: 830 Trace/breakpoint trap /usr/java/oracle-jdk-1.8.0_u131/jre/bin/java ...
but I cannot seem to find any details what it was doing at the time, eg. a Java stacktrace.
Are there any logs produced in this situation? Or do I need to use "trap" and "--sync" to debug the underlying C code?