RomRaider Logo

RomRaider

Open Source ECU Tools
 FAQ •  Register •  Login 

RomRaider

Documentation

Community

Developers

It is currently Tue Dec 23, 2025 3:54 pm

All times are UTC - 5 hours [ DST ]





Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: Request: Everyone Running RomRaider Run From Terminal
PostPosted: Sat May 19, 2012 5:02 pm 
Offline
Experienced
User avatar

Joined: Thu Apr 19, 2012 3:44 am
Posts: 385
For windows users, that means from a CMD.exe window, for Linux/Mac users it means from a normal terminal.

If you do this, when an exception falls out of the application unhandled, you see it. Use this thread to dump such exceptions. I just got one, which I will dump in the next post.

Exceptions should never end up on the console if they're handleable - they should just be handled.. If they're not handleable, they should probably terminate the application, even if it gives the option of saving first, so as to force the user to report such issues.

Fred.

_________________
The type of scooby that I most enjoy!


Top
 Profile  
 
 Post subject: Re: Request: Everyone Running RomRaider Run From Terminal
PostPosted: Sat May 19, 2012 5:05 pm 
Offline
Experienced
User avatar

Joined: Thu Apr 19, 2012 3:44 am
Posts: 385
I clicked an inc/dec button in the edit view of some table/data and it did this because the field was blank. It should beep/do nothing/popup/go red/whatever, but it shouldn't dump an exception to the console. Having a blank field in a UI is anormal, certainly not exceptional, circumstance. Even better, disable the button while the field is blank?

EDIT: I entered words into there, and instead of it rejecting them from the outset (key press events for filtering anyone?) it reset it to the previous value when i clicked the button. This is in contrast to having nothing present which causes the below.

Code:
Exception in thread "AWT-EventQueue-0" java.lang.NumberFormatException: For input string: "null"
        at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1222)
        at java.lang.Double.parseDouble(Double.java:510)
        at com.romraider.swing.TableToolBar.decrementCoarse(TableToolBar.java:278)
        at com.romraider.swing.TableToolBar.mouseClicked(TableToolBar.java:241)
        at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:253)
        at java.awt.Component.processMouseEvent(Component.java:6291)
        at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
        at java.awt.Component.processEvent(Component.java:6053)
        at java.awt.Container.processEvent(Container.java:2041)
        at java.awt.Component.dispatchEventImpl(Component.java:4651)
        at java.awt.Container.dispatchEventImpl(Container.java:2099)
        at java.awt.Component.dispatchEvent(Component.java:4481)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
        at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4247)
        at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
        at java.awt.Container.dispatchEventImpl(Container.java:2085)
        at java.awt.Window.dispatchEventImpl(Window.java:2478)
        at java.awt.Component.dispatchEvent(Component.java:4481)
        at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:643)
        at java.awt.EventQueue.access$000(EventQueue.java:84)
        at java.awt.EventQueue$1.run(EventQueue.java:602)
        at java.awt.EventQueue$1.run(EventQueue.java:600)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
        at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
        at java.awt.EventQueue$2.run(EventQueue.java:616)
        at java.awt.EventQueue$2.run(EventQueue.java:614)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:613)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

_________________
The type of scooby that I most enjoy!


Top
 Profile  
 
 Post subject: Re: Request: Everyone Running RomRaider Run From Terminal
PostPosted: Sat May 19, 2012 11:53 pm 
Offline
RomRaider Developer

Joined: Wed May 20, 2009 9:49 pm
Posts: 7314
Location: Canada eh!
What field was blank?
Inc/dec operate on a selected cell in a map. Did you select a cell?
If not then yes there should be a warning of some sort.


Top
 Profile  
 
 Post subject: Re: Request: Everyone Running RomRaider Run From Terminal
PostPosted: Sun May 20, 2012 7:45 am 
Offline
Experienced
User avatar

Joined: Thu Apr 19, 2012 3:44 am
Posts: 385
Went in to answer your question and found this:

Code:
java.io.FileNotFoundException: /home/fred/RomRaider/cars_def.xml (No such file or directory)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(FileInputStream.java:120)
        at java.io.FileInputStream.<init>(FileInputStream.java:79)
        at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:70)
        at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:161)
        at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java:653)
        at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(XMLVersionDetector.java:186)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:772)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
        at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119)
        at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:235)
        at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:284)
        at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:208)
        at com.romraider.logger.ecu.ui.tab.dyno.DynoControlPanel.loadCars(DynoControlPanel.java:1429)
        at com.romraider.logger.ecu.ui.tab.dyno.DynoControlPanel.buildCarSelectComboBox(DynoControlPanel.java:1365)
        at com.romraider.logger.ecu.ui.tab.dyno.DynoControlPanel.<init>(DynoControlPanel.java:229)
        at com.romraider.logger.ecu.ui.tab.dyno.DynoTabImpl.<init>(DynoTabImpl.java:44)
        at com.romraider.logger.ecu.EcuLogger.bootstrap(EcuLogger.java:384)
        at com.romraider.logger.ecu.EcuLogger.construct(EcuLogger.java:308)
        at com.romraider.logger.ecu.EcuLogger.<init>(EcuLogger.java:276)
        at com.romraider.logger.ecu.EcuLogger.startLogger(EcuLogger.java:1456)
        at com.romraider.swing.ECUEditorMenuBar.actionPerformed(ECUEditorMenuBar.java:292)
        at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
        at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
        at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
        at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
        at javax.swing.AbstractButton.doClick(AbstractButton.java:357)
        at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:809)


It also just needs a warning or something, though I don't recall asking it to do anything, I just opened the logger and switched tabs a bit. I guess attempting to load it is implicit. "previously saved car def whatever thingy-ma-jig not found, choose a new one, silly" < how about this? :-)

_________________
The type of scooby that I most enjoy!


Last edited by Fearless on Sun May 20, 2012 7:50 am, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Request: Everyone Running RomRaider Run From Terminal
PostPosted: Sun May 20, 2012 7:50 am 
Offline
Experienced
User avatar

Joined: Thu Apr 19, 2012 3:44 am
Posts: 385
dschultz wrote:
What field was blank?
Inc/dec operate on a selected cell in a map. Did you select a cell?
If not then yes there should be a warning of some sort.

I did not select a cell, however I tried inc/dec and they didn't fall over. They come pre-populated with numbers, and you can't remove the numbers, it resets to the previous value. It was set/mul that did it, and selecting a cell had nothing to do with it (of course?) because it was about number formatting and the default blank field.

What you'll find in general, is that because I'm a noob (to RR) I'll "use" it in ways that you don't and don't expect, and find things you don't, because you, as *all* (without exception) developers do, use it in a specific designed/expected way. So, value my idiocy while I retain it, because it won't last that long :-)

Fred

_________________
The type of scooby that I most enjoy!


Top
 Profile  
 
 Post subject: Re: Request: Everyone Running RomRaider Run From Terminal
PostPosted: Sun May 20, 2012 7:54 am 
Offline
RomRaider Developer

Joined: Wed May 20, 2009 9:49 pm
Posts: 7314
Location: Canada eh!
cars_def.xml I want to fix by moving the data into the all encompassing ecu/logger def.
For a missing cars_def.xml you do get a pop-up warning. You then need to follow the instructions of the pop-up and the forum thread from where you download the file.


Top
 Profile  
 
 Post subject: Re: Request: Everyone Running RomRaider Run From Terminal
PostPosted: Sun May 20, 2012 9:09 am 
Offline
Experienced
User avatar

Joined: Thu Apr 19, 2012 3:44 am
Posts: 385
Cheers, I just discovered what was happening. I thought I was getting the same popup twice. One was for cardef and the other for logger. Logger does something more insidious, though, it lies to you :-) You give it a valid logger.xml and it tells you that you didn't! :-o What it really means is "you don't have the dtd in the 'installed' location, put it there".

_________________
The type of scooby that I most enjoy!


Top
 Profile  
 
 Post subject: Re: Request: Everyone Running RomRaider Run From Terminal
PostPosted: Sun May 20, 2012 7:01 pm 
Offline
RomRaider Developer

Joined: Wed May 20, 2009 9:49 pm
Posts: 7314
Location: Canada eh!
I don't see a Logger def exception related to DTD (it should be in the install directory after installation whit the other DTDs), but you might see an exception if you have not configured or you have deleted a previously configure ecu_def.xml in the Editor. The Logger relies on the ecu_def.xml to cross-reference ECU ID to CAL ID. And if you use the MAF/Injector scaling tabs then it will need to know the map info if you choose to apply any new scaling from the collected data.


Top
 Profile  
 
 Post subject: Re: Request: Everyone Running RomRaider Run From Terminal
PostPosted: Mon May 21, 2012 5:57 am 
Offline
Experienced
User avatar

Joined: Thu Apr 19, 2012 3:44 am
Posts: 385
Don't worry about it, the DTDs should be embedded in the jar and found there anyway. Then it won't be possible for me to move them and the app to balk :-)

_________________
The type of scooby that I most enjoy!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Style based on FI Subsilver by phpBBservice.nl