WordRider Home
Welcome! Log In Create A New Profile

Advanced

Java problém

Posted by lukikomi 
Re: Java problém
July 18, 2014 06:14AM
mal som taký problém aj ja.. nie je to javou je to pravdepodobne nejaký plugin nechcelo sa mi to hľadať že ktorý tak som všetké súbory v nastavení FRD vymazal (MS Windows 7: c:\Users\YOUR_USER_NAME\AppData\Roaming\VitySoft\FRD\) síce musím všetko od znova nastaviť ale ide winking smiley
Re: Java problém
February 08, 2015 12:35AM
Zaregistroval som sa, aby som podakoval tvorcom programu a aj Gee Dee l-imu z predchadzajuceho prispevku za radu, ako to znova rozbehat.. Vdaka!
Re: Java problém
May 08, 2015 05:11PM
Po posledni aktualizaci Javy - 1.9.0-ea prestal FRD zobrazovat v hlavnim okne informace o stahovani (misto vypisu jen bile okno) - aktualni i dokoncene stahovani. Stejny problem se objevi pri aktualizaci pluginu - nabidne aktualizaci, ale zadne pluginy se ve vypisu nezobrazi. Stahovani normalne funguje, jen neni nic videt a pri pridani linku se zobrazi chyba
Error


Message:
java.lang.IndexOutOfBoundsException: valid modelIndex: 0 <= index < 0 but was: 5
Level:
SEVERE
Stack Trace:
valid modelIndex: 0 = index 0 but was: 5
org.jdesktop.swingx.sort.DefaultSortController.convertRowIndexToView(DefaultSortController.java:335)
javax.swing.JTable.convertRowIndexToView(JTable.java:2646)
cz.vity.freerapid.swing.Swinger.convertRowIndexToView(Swinger.java:404)
cz.vity.freerapid.gui.content.ContentPanel.selectAdded(ContentPanel.java:1333)
cz.vity.freerapid.gui.actions.FileActions$2.run(FileActions.java:127)
java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
java.awt.EventQueue.dispatchEventImpl(EventQueue.java:759)
java.awt.EventQueue.access$500(EventQueue.java:97)
java.awt.EventQueue$3.run(EventQueue.java:712)
java.awt.EventQueue$3.run(EventQueue.java:706)
java.security.AccessController.doPrivileged(Native Method)
java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:75)
java.awt.EventQueue.dispatchEvent(EventQueue.java:729)
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:192)
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:117)
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:106)
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:102)
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:94)
java.awt.EventDispatchThread.run(EventDispatchThread.java:83)

Vymazat adresar z nastavenim .FRD jsem zkousel. Log prikladam v priloze. System je Ubuntu 14.04. Ma tento problem nejake reseni? Diky
Attachments:
open | download - frd_log.txt (3.5 KB)
Re: Java problém
May 08, 2015 05:55PM
@Ntoskrnl: any idea how to solve table sort problem? It seems they changed something in JDK since sorting on JDK8 is broken too - as soon as any file is deleted in the queue.

-------------------------------------

Re: Java problém
May 08, 2015 06:21PM
What is the problem? Is it always reproducible? I can't read Czech unfortunately.
Re: Java problém
May 08, 2015 06:31PM
I tested this and it's reproducible - JDK 8_40:
1. Run FRD , click on column header to change sort order - it's working fine
2. Remove 1 file from the list
3. Sort again, result seems to be a random mess

That guy has an exception on JDK9, he can not even launch FRD, unfortunately I cannot test it, Win builds are not available yet.

-------------------------------------

Re: Java problém
May 08, 2015 10:07PM
It's probably like they did in the past : [bugs.java.com]. They introduced new sort implementation, that breaks something on some cases : [bugs.java.com].

I'm not sure about this issue though. I'm still using JDK7.

I've used java.util.Arrays.useLegacyMergeSort and java.net.preferIPv4Stack system properties to launch FRD for years, I forget the reasons.

Does supplying -Djava.util.Arrays.useLegacyMergeSort=true as java parameter fix the issue?
Re: Java problém
May 08, 2015 10:49PM
when the table model is changed (eg. deleting) some table customisations are lost (eg. column sorters) and need to be reinstated.
this also happened in java 6 & 7

code updated to fix this problem
some other fixes and small improvements also previously uploaded
Re: Java problém
May 09, 2015 12:24AM
@Birchie
Thanks birchie for pointing me out where the problem is. I still can't believe they are wiping all info about columnComparators when anything is changed.
I spent last 2.5 hours of debugging table sorting sad smiley. I updated your solution to shorter one, I will also add the new table sorter class into other places where we are using sorting (table in history, plugins table...). I am not sure how it will be working in the future without support of SwingX (JXTable).
Don't hesitate to test this solution.

I also thanks for the additional commits. Don't you also add some gui settings into User Preferences for the toolbar customization?

-------------------------------------

Re: Java problém
May 09, 2015 01:50AM
looked too short, but it works

toolbar customization in 'startup.properties' was easier to implement that a gui editor in preferences.
Sorry, only registered users may post in this forum.

Click here to login