JxMaps Null Pointer Exception - nullpointerexception

this is my first run for JxMaps lib
and i got a Null Pointer Exception in the first line
-> final MapView mapView = new MapView();
this code is from JxMaps JavaFX Quick Start Guide
enter image description here

This problem already fixed in the latest version of JxMaps. Please download new version from https://www.teamdev.com/jxmaps.

Related

debugging vxworks loadModule failure

I have a VxWorks Image Project project without a File-System on MPC5200B, using DIAB tool-chain.
I need to dynamically load a module from flash.
I allocated memory on my stack char myTemporaryModuleData[MAX_MODULE_SIZE]
and filled it with the module data from Flash.
(checked that the binary data is intact)
then i create a memDevice('/mem/mem01', myTemporaryModuleData, moduleReadLength)
open the psuedo-stream int fdModuleData = open("/mem/mem01", O_RDONLY, 777);
when i run int mId = loadModule(fdModuleData, LOAD_ALL_SYMBOLS);
did not see anything in the console after running loadModule();
but mId = 0 which indicates failure :(.
getErrno() returned 0x3D0004 (S_objLib_OBJ_TIMEOUT)
NOTE: it didn't take long at all to fail => timeout?
i tried replacing the module with a simple void foo() { printf(...); } module but still failes with same issue.
tried loading an .out instead of .o
unfortunately, nothing got me nowhere,
How can i know what caused it to fail? (log, last_error, anything i should check?)
FOUND IT.
Apparently, it was a mistake in the data read from the flash.
What I can contribute is that 'loadModule()' from memDrv device is possible and working.

Zerobrane: fractal-samples: zplane.lua is exiting with an error

I tried out some of the samples coming along with ZeroBraneStudio.
spirograph-samples are working fine. May be there should be also a wait() statement at the end of the livecoding-samples and the fractal-samples. Otherwise the graphic window disappears at the end of execution. For
fractal-samples: zplane.lua I get an error:
Zoom: {1}
Cent: {0,0}
Area: {-2,2,-2,2}
/Applications/ZeroBraneStudio.app/Contents/ZeroBraneStudio/bin/lua.app
/Contents/MacOS/lua: ./fractal.lua:123: attempt to index local 'C' (a nil value)
stack traceback:
./fractal.lua:123: in function 'Draw'
..ts/ZeroBraneStudio/myprograms/fractal-samples/zplane.lua:103: in main chunk
[C]: at 0x00001c80
In my version of fractal.lua there is no reference to C variable on line 123. I'd try a newer version, as I don't see any issue with the execution of zplane.lua with the current version of fractal.lua.

CloudReports (Cloudsim Extension) on Cloudlet migrations gives error Null Exception

I'm Kind new in Cloudsim and CloudReports Extension so i don't know why
when running the CloudReports simulator it gives this Error:
nullpointerexception at org.cloudbus.cloudsim.power.powerdatacenter.processcloudletsubmit(powerdatacenter.java:269)
I was adding a cloudlet scheduling Algorithm to the Extension
All I can see that the error happens with cloudlets Migration.
I tried searching alot about how to Fix it but didn't find something that will help me.
the Error is like this:
java.lang.NullPointerException
at org.cloudbus.cloudsim.Datacenter.processCloudletSubmit(Datacenter.java:761)
at org.cloudbus.cloudsim.power.PowerDatacenter.processCloudletSubmit(PowerDatacenter.java:269)
at org.cloudbus.cloudsim.Datacenter.processEvent(Datacenter.java:159)
at org.cloudbus.cloudsim.core.SimEntity.run(SimEntity.java:406)
at org.cloudbus.cloudsim.core.CloudSim.runClockTick(CloudSim.java:471)
at org.cloudbus.cloudsim.core.CloudSim.run(CloudSim.java:835)
at org.cloudbus.cloudsim.core.CloudSim.startSimulation(CloudSim.java:151)
at cloudreports.simulation.Simulation.runSimulation(Simulation.java:157)
at cloudreports.simulation.Simulation.runAllSimulations(Simulation.java:129)
at cloudreports.simulation.Simulation.run(Simulation.java:98)
at java.lang.Thread.run(Thread.java:748)
plz Advise;
Regards.
I ran into the same problem while I was following the simulation examples provided in the CloudSim project. After debugging figured out that the problem was with setting the UserID of the created cloudlet. I was setting a random value as the userId while the simulation retrieves the cloudlet using the brokerId. So setting the userId with the brokerId that was created did the trick for me.
// dataCenterBroker is the instance of the broker which you created
int brokerId = dataCenterBroker.getId();
//setting the userId after creating the cloudlet
cloudLet.setUserId(brokerId)

XCODE 8 xcuitest code generation compilation error

I have downloaded the xcode 8, and tried to record a test in xcuitest
but the generated code by xcode gives compilation error
Generated code
window.tables.children(matching: .tableRow).element(boundBy: 0).children(matching: .cell).element(boundBy: 5).click()
Error
but it is giving compilation error like Value of type
'XCUIElementQuery' has no member ‘containing’
'XCUIElementQuery' has no member ‘ children’
'XCUIElementQuery' has no member ‘ matching’
'XCUIElementQuery' has no member ‘ element'
also .other should be changed to .Other
.cell should be changed to .Cell to fix the error
i selected swift 2.3 while installing xcode 8
Any help appreciated
It looks like the code generator migrated to a new sytnax for the call to the children, but not the code interpreter. Replace .children(matching: .cell) with childrenMatchingType(.Cell)

Pointer Detective - Inspecting an Object (instance) and Doing a "PointerDetective openOn: self." leads to a System Error in Pharo?

Pointer Detective - Inspecting an Object (instance) and Doing a "PointerDetective openOn: self." leads to a System Error in Pharo?
The object is a WhateverRoot instance (subclass of WAComponent) that has "canBeRoot ^true."
Am I doing something wrong?
PS. My "eagle eye" caught a typo on line 9 of the error. "'Orginal error:' ,title asString.". Maybe, just maybe...
Pharo 3:
Managed to zero in closer to the issue. It seems the problem only happens with the latest commit (10) of PointerDetective. The one before that (9) works as advertised. This "weak self" error only happens on the latest commit.
Squeak 4.5 and Pharo 4 (bleeding edge): Also tried the latest commit (10) on Squeak 4.5 All In One and on the latest Build of Pharo 4 and they both pop up a Debugger instead of the White Crash.
Easy to replicate, even the example on the smalltalkhub page crashes it.
Steps to replicate:
Get Pharo 3
Open Monticello
Add repository.
Open repository.
Choose latest commit (10)
Load
Open Workspace
Paste in example and Do It -> White screen press esc to remove.
testObject := 'END5'.
ref1 := { testObject. nil }.
ref2 := { ref1 }.
ref3 := PDTestResource new heldObject: ref2.
ref1 at: 2 put: ref3. "note the reference loop this creates"
PointerDetective openOn: testObject.