Comments (3)
Are you using PT in your simulation?
If so, PT doesn't have any plans (like a regular agent has) so this could explain why you are getting the java.lang.NullPointerException from line 131 in the class PlansTranslatorBasedOnEvents.java:
Plan selectedPlan = person.getSelectedPlan();
This is a known issue - more details and a possible fix here:
https://matsim.atlassian.net/browse/MATSIM-648
from matsim-code-examples.
Hello again,
Yes, i'm using PT simulation and I want to use Cadyts to work with a scenario that simulates public transit vehicles as regular vehicles on links. (transit vehicles pass a count station the same way as private cars)
I believe I did what you recommended correctly,
I defined - ((person == null)? return - in the PlansTranslatorBasedonEvents, but the same error in the same place (L131) happened .. it seems the change I made did not work .
I don't know if i did something wrong or actually to put (person=null) return it will not make difference in my case.
Do you know anything else I can do?
Follow my logfile.
Thanks for any help!!
from matsim-code-examples.
I defined - ((person == null)? return - in the PlansTranslatorBasedonEvents, but the same error in the same place (L131) happened .. it seems the change I made did not work .
if ( person == null ) return ;
is probably not the same as what you tried with ? and :; see here:
https://stackoverflow.com/questions/18124745/java-ternary-operator-and-nullpointerexception
Your code is not exactly the same as that one, but since you did not give the full code I cannot really tell.
from matsim-code-examples.
Related Issues (20)
- Osm_way_id speeds do not match osm tag speed or default speed of highway type HOT 3
- Registering new modes in EES (BDI MATSIM) extension HOT 18
- How can we improve and fine-tune the Matsim scenario
- An error in using drt HOT 11
- setFlowCapacityChange in NetworkChangeEvent
- Exploring the practical usage of Facility and Household files HOT 3
- Effect of car ownership , having drivers license or car availability
- Use case of income attribute HOT 2
- Visualize the output files in MATSim 15.0 HOT 1
- How to get the real-time vehicle's location data๏ผ
- MATSim over AWS/Azure HOT 2
- VolumesAnalyzer for count the vehicles leave links HOT 1
- plans file HOT 1
- Issue with the GUI HOT 1
- switch from one drt mode to another one during the same trip HOT 4
- Error while running code in MATSim HOT 4
- Trouble with the simulation
- Help with Obtaining Real Origin-Destination Data HOT 4
- Strange long walking behaviour in multimodal scenario! HOT 8
- MATSIM Beginner user HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from matsim-code-examples.