I download openflow. It successfully been built. However, only scenario_Small is correctly working, when try to run other scenarios error runtime appears such as that:
Cannot add statistic 'numOutOfOrderArrivals' to module MultiController.Vancouver.client[0].pingApp[0] (NED type: openflow.apps.PingAppRandom): Error in source=numOutOfOrderArrivals: Signal 'numOutOfOrderArrivals' is not declared on type 'openflow.apps.PingAppRandom' (you can turn off this check by adding checkSignals=false to the #statistic property in the NED file) -- in module (PingAppRandom) MultiController.Vancouver.client[0].pingApp[0] (id=161), during network setup
when trying to run "szenario_Domains_multiController"
I tried to fix the error following the hint mentioned in error, but another errors appeared. How to fix those endless errors.
It seems that the codebase of this openflow project is already old and does not correspond to the new builds of OmNET++ and the INET framework.
I was success to build and run test scenarios from this project on Win 10 and OmNET++ 5.6.2 and INET 3.6.6.
Summary
Seems the guys did a great work with the built-in filtering, clustering and caching on the ClusterBuster vector tile server.
I'm really excited about this project that looks very promising and i'm eager to try it!
I'm working on a project on plotting Deck.gl layers (MVTLayer) on top of Google Maps from a vector tile server through their integration.
I want to try to integrate and to serve from ClusterBuster server some clustered points saved in PostGIS.
Expected result:
I want to receive tile data from ClusterBuster vector tile server like in their provided sample example.
Actual result:
Provided sample example not working (points not showing on map, neither on Mapbox, nor on Google Maps with Deck.gl).
My attempts
I tried building and running the example provided but somehow, i'm not able to do this.
I ran the provided express server clusterbuster/example/express.ts and for frontend tried with the provided mapbox example from clusterbuster/example/mapbox.html (with my mapbox token) but nothing appears on mapbox map (nor on Google maps with my Deck.gl example).
As stated in the clusterbuster/example/readme.md i created an .env file with PostGIS connections settings.
After running the following commands:
yarn
yarn start
i get this output:
C:\zFVStuff\Google Maps - Deck.gl\_Servers\ClusterBuster\clusterbuster-master> yarn start
yarn run v1.22.4
$ yarn build && ts-node example/express.ts
$ rollup --config rollup.config.js
./lib/index.ts → dist/index.d.ts...
created dist/index.d.ts in 5.7s
./lib/index.ts → dist/index.js...
created dist/index.js in 5.1s
attempting to create supporting SQL functions
failure in creating First SQL function
failure in creating TileBBox SQL function
failure in creating TileDoubleBBox SQL function
Example app listening on port 3005!
send3663284b-0e58-4587-af82-b35604a99303: 4.964ms
3663284b-0e58-4587-af82-b35604a99303: 817.819ms
sendd0bdd671-1f47-4b40-84ba-2fed6adfd045: 3.451ms
d0bdd671-1f47-4b40-84ba-2fed6adfd045: 1276.588ms
sendcd36f672-4c4b-4a95-b772-7584e6eb8c55: 1.349ms
cd36f672-4c4b-4a95-b772-7584e6eb8c55: 1754.146ms
The requests seems to be ok, returning status 200 but tile data from ClusterBuster server is undefined nothing appears on the map (neither your Mapbox, or my Google Maps).
Also, it's curious that all tile responses seems to have the same size 216 B.
The data was imported ok in the PostGIS database.
Result is undefined after debugging the express.ts server file with VSCode Javascript Debug Terminal and starting it with the command ts-node .\example\express.ts.
In the Chrome network tab, in none of the sub-tabs Preview or Response i can't see any data.
I also tried logging the result tile in the express server in the success function,
server({
...//excluded for visibility
}).then(result => {
...//excluded for visibility
console.log(result)
res.status(200).send(result);
})
and below is the output, i get undefined:
Any help or advice is really appreciate! Thank you in advance!
After enabling debug in the TileServer configuration (with debug: true), i noticed 2 errors:
SELECT ST_AsMVT(tile, 'points', 4096, 'geom') AS mvt FROM tile
{
e: error: password authentication failed for user "userXYZ"
...
SELECT ST_AsMVT(tile, 'points', 4096, 'geom') AS mvt FROM tile
{
e: Error: read ECONNRESET
at TCP.onStreamRead (internal/stream_base_commons.js:205:27) {
...
Initially I ran from the root of clusterbuster with ts-node .\example\express.ts or with yarn start (that underneath uses the same and it tries to connect with my user instead of .env config file)
After running ts-node express.ts from the example folder it took into account the .env config file with postgres user instead of my user. Now the tile data from the server is returned ok and the example works at expected.
Many thanks to the contributor cosmin-petrescu that helped me.
Entire thread can be seen here on github.
I did a first project on react-native, that still works when I want to emulate it on my AVD.
I started a react-native init new project that installed correctly but impossible to run it the first time, Node JS command open and shut down in a seconde. And, come to this point :
"Starting: Intent { cmp=com.ms/.MainActivity }"
Nothing happens : the following line is this one : PS C:\Users\arthu\MS>
And I get the error message : "Unable to load script. Make sure you either running a metro server (run react-native' start) or that your bundle 'index.android.bundle' is packaged correctly for release.
Thought it was due to the Node JS console, which was opening a few second, so I emptied its cache, didn't change anything, Re-installing Node JS, re-tried with my ancient project (which works), change port from where I run the project, nothing changed.
I guess it is not linked with Node JS, neither my code (because I didn't even start), but I am a bit confused about that, and didn't find a similar post ! Thank you for your answers ;)
I have cloned libuvc_ros to my catkin_ws/src and do rosmake libuvc_camera, and I got this error:
ERROR: cannot launch node of type [libuvc_camera/camera_node]: can't locate node [camera_node] in package [libuvc_camera]
I did install ros-kinetic-uvc-camera and ros-kinetic-libuvc-camera, and I'm quite lost. Can someone please tell me what is the correct step?
If You Don't Want To Modify libuvc_camera It's Better To Use Binaries (ros-kinetic-uvc-camera and ros-kinetic-libuvc-camera)
But If You Want To Compile It Anyway, First Remove ros-kinetic-uvc-camera and ros-kinetic-libuvc-camera and then Be Sure To Set ROS Path To catkin_ws/src By Running source <path_to_catkin>/catkin_ws/devel/setup.bash (or Place It In ~/.bashrc for all terminals) and then in catkin_ws Run catkin_make <-j if u want multiple job>
I solved it with ros packageuvc-camera and referred answers from setting a usb camera and stream usb camera in ros.
I checked the ros packages installed with rospack list-names and found uvc-camera is appropriate enough, then I started camera node using rosrun uvc_camera uvc_camera_node _device:=/dev/video1, in rostopic list I saw /camera_info and /image_raw which proved my solution.
Connected to the target VM, address: '127.0.0.1:63073', transport: 'socket'
Disconnected from the target VM, address: '127.0.0.1:63073', transport: 'socket'
I had the same problem. I noticed that the drop-down menu wasn't set on app. Check this out:
Which line did you put breakpoint? Suppose you have the following snippet:
public static void main(String[] args) {
int res = add(5, 8);
System.out.println(res);
}
public static int add(int a, int b)
{
int c=a+b;
return c;
}
When I put the breakpoint the line that has { under the add method. I got the very same error as you. If I put the breakpoint to the line int c=a+b;, the debugger works as expected. It's annoying, this is the solution I could come up.
This issue is very simple to resolve. Click on debug again and in the right-hand corner, you should see a tool bar. There's an icon that looks like two red break points overlapping. Click on that. It will pop open a menu under any exception. Please ensure that Enabled, Suspend, All, Condition, log message to console and log evaluated expression are all checked.
The above message shows that JVM started and has stopped successfully.
Now what you are expecting is to halt on the breakpoint which you have applied in your program but you can't achieve that because you might have clicked on "Mute Breakpoints" button and are trying to debug a code which does not display anything on console.
Since all breakpoints are muted, your program does not halt on the expected line.
Probably your program has a bug before your first breakpoint, or the program never reaches that breakpint.
Just find your projectApplication and then Run Debug on anything you want.
For Example see bellow
SpringBootApplication
public class BitApplication {
private final Logger logger = LoggerFactory.getLogger(BitApplication.class);
public static void main(String[] args) {
SpringApplication.run(BitApplication .class, args);
}
}
This could be a variety of things, but likely you're hitting an exception before any break points hit. Do you see an exception in your console?
An exception might look like this:
Exception in thread "main" java.lang.NullPointerException
This problem happen when another program is using that port, so you can change port in spring, and use another port. You just need to type this simple code in your program.
System.setProperty("server.port", "4000");
enter image description here
You see this message because there is nothing to debug at current marker. You can check whether your marker is in the correct place or not.
also, you might be trying to debug another class that has no markers or empty you can check your run configuration or run the the class that you want debug from project files.
restarting IDEA helped me with this issue
I needed to delete the out files that had been created by IntelliJ from my previous debugging. A simple right click and delete on the "out" folder under your project tab should do the trick. Then compile your program again.
This can happen for a lot of reasons. In my case the root cause was found in the hibernate entities I was using. I needed to use couple of attributes in the entity domain that were not part of related db table. When I annotated these attributes with Transient. The spring boot application started just fine.
Example:
Entity that caused error:
class ErrorDomain{
#Column(name = "db_prop_available")
private String dbPropAvailable;
private String dbPropNotAvailable;
}
Entity update to fix the issue:
class OkDomain{
#Column(name = "db_prop_available")
private String dbPropAvailable;
#Transient //javax.persistence
private String dbPropNotAvailable;
}
This is one of the reasons for the original error you posted. But I just wanted to comment if anybody has a similar case.
I had a similar error that led me directly to this thread.
Connected to the target VM, address: '127.0.0.1:57662', transport: 'socket'
#
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007ffd0e3122a0, pid=6908, tid=0x0000000000000594
#
# JRE version: Java(TM) SE Runtime Environment (8.0_131-b11) (build 1.8.0_131-b11)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.131-b11 mixed mode windows-amd64 compressed oops)
# Problematic frame:
# C [ig75icd64.dll+0xd22a0]
#
# Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
#
# An error report file with more information is saved as:
# C:\Users\UserNamed\IdeaProjects\supercoolproject\android\assets\hs_err_pid6908.log
#
# If you would like to submit a bug report, please visit:
# http://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
AL lib: (EE) alc_cleanup: 1 device not closed
Disconnected from the target VM, address: '127.0.0.1:57662', transport: 'socket'
By reading the unusual text between
Connected to the target VM, address: '127.0.0.1:63073', transport: 'socket'
and
Disconnected from the target VM, address: '127.0.0.1:63073', transport: 'socket'
I could locate a real stack trace at:
C:\Users\UserNamed\IdeaProjects\supercoolproject\android\assets\hs_err_pid6908.log
Which led me to trap my error precisely.
UPDATE, evening
YMMV, I just had a similar probelm, left the debugger running while reading a paper and Java notified me via popup there was a problem but IntelliJ gave me even less to go on. The obligatory:
Connected to the target VM, address: '127.0.0.1:63073', transport: 'socket'
Disconnected from the target VM, address: '127.0.0.1:63073', transport: 'socket'
Then something about it having closed with a 255 error code. I tried recreating the error, because it's easier than tracing my memory leak, and it worked, here is the Java error:
I'm suspicious of companies (IdeaC) pushing yet another Java binary. I clicked debug this time and got:
I can't say for certain but this appears a weakness in IntelliJ 2018. My code has got bigger too, but updates seem to bring more version conflicts.
In IntelliJ to solve this I found the following, that the class name wasn't linked to the file name
alt+shift+f10
right
Edit
The main class was only the name of the file I had as a class
ImageLabel
I had a similar problem + message Could not find or load main class.
It was a project on Scala with SBT.
How I solved this one:
Run my project via SBT like this: sbt my-project/run
Stopped it (Ctrl+C)
Run debug -- it works again.
For Maven+Spring projects, I was debugging using the Spring Boot Configuration and didn't realize that the Maven configuration was already running. Shutting Maven off and restarting did the trick.
Also if you use Docker do a docker ps -a to see if your container is running.
maven clean followed by maven install worked for me.
In my case I had commented my all test cases and then I was trying to run test cases in debug mode. So obviously there is nothing to run. So I was getting below message.
Once check if the run you are trying to do all is OK.
Connected to the target VM, address: '127.0.0.1:65223', transport: 'socket'
Disconnected from the target VM, address: '127.0.0.1:65223', transport: 'socket'
Process finished with exit code 0
Mute Breakpoints this worked well for me
Try re import project into intellij
I had the same problem when I wanted to import eclipse project into intellij ide and reimporting solved my issue
It could be possible that you have missing environment variables.
In my case, I forgot to re-enable debugger mode. Breakpoints were muted.
A similar issue I was getting in my Intenlliz and the root cause for that issue was application.yaml file.
Please validate properties value should have space:
Error with bad configuration:
wrong configuration
Expected configuration should have space between key and value after “:”
right configuration
I had a similar issue and took me a while to figure out what was wrong.
I was supplying some VM args in the tomcat config panel and one of the vm arg had a new line character. So check that the configs are correct. Once when I removed those special characters, it booted fine. wish u all good luck.
enter image description here
This problem occurs when another program uses that port, so you can change the port in the spring and use another port. You need to type this simple code in your application.properties.
server.port=8080
First mark a debug market on the left statement index panel, from where you want to debug the specific program. after that this will be fixed
In my case it was the scope in the dependency of tomcat that caused the problem. when removing it it run without stopping.
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
<scope>provided</scope>
</dependency>
I had the same issue, and fixed it by :
Adding activity name in App> manifest> androidManifest.XML