How to suppress platform logger output
Nicolai Parlog
nipa at codefx.org
Fri Sep 19 13:43:27 UTC 2014
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi Werner,
a little off topic but it might still be relevant for you.
There is a feature request logged in the JavaFX-Jira[1] which asks for
a type safe way to use Bindings.select. It the comments two libraries
are mentioned which do this (and more) and make selecting on object
hierarchies way easier:
* EasyBind by Toimas Mikula [2] (who is also on this list)
* LibFX by me [3]
I would recommend checking them out. I'm happy to answer questions and
I'm sure so is Tomas.
so long ... Nicolai
[1] https://javafx-jira.kenai.com/browse/RT-35923
[2] https://github.com/TomasMikula/EasyBind
[3] https://github.com/CodeFX-org/LibFX
On 19.09.2014 13:34, Werner Lehmann wrote:
> Hi,
>
> I'd like to use one of the Bindings.select* methods but can't
> really accept the tons of stderr output it generates for null
> steps. According to this ticket...
>
> [#RT-35957] Bindings class spits out a lot of unneeded log
> messages https://javafx-jira.kenai.com/browse/RT-35957
>
> ... 8u20 resolves this by logging on the FINE level. But how can I
> suppress this output then? As far as I know the platform logger
> logs to stderr if JDK logging is not used - and we are on log4j.
> Which means I get FINE logging on stderr which does not help much.
>
> Rgds Werner
>
>> Sep 19, 2014 1:33:32 PM
>> com.sun.javafx.binding.SelectBinding$SelectBindingHelper
>> getObservableValue WARNING: Exception while evaluating
>> select-binding [parent, value] Sep 19, 2014 1:33:32 PM
>> com.sun.javafx.binding.SelectBinding$SelectBindingHelper
>> getObservableValue INFO: Property 'value' in
>> ReadOnlyObjectProperty [bean: TreeItem [ value: b ], name:
>> parent, value: null] is null java.lang.NullPointerException at
>> com.sun.javafx.binding.SelectBinding$SelectBindingHelper.getObservableValue(SelectBinding.java:481)
>>
>>
>>
at
>> com.sun.javafx.binding.SelectBinding$AsString.computeValue(SelectBinding.java:394)
>>
>>
>>
at javafx.beans.binding.StringBinding.get(StringBinding.java:152)
>> at
>> mint.javafx.report.design.model.elements.MintJRTextField.main(MintJRTextField.java:182)
>>
>
>> // TreeItem<String> t1 = new TreeItem<String>("a");
>> TreeItem<String> t2 = new TreeItem<String>("b"); TreeItem<String>
>> t3 = new TreeItem<String>("c");
>>
>> // t1.getChildren().add(t2); t2.getChildren().add(t3);
>>
>> StringBinding binding = Bindings.selectString(t3, "parent",
>> "parent", "value"); System.out.println(binding.get());
>
- --
PGP Key:
http://keys.gnupg.net/pks/lookup?op=vindex&search=0xCA3BAD2E9CCCD509
Web:
http:\\codefx.org
a blog about software development
http:\\do-foss.de
Free and Open Source Software for the City of Dortmund
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (MingW32)
iQIcBAEBAgAGBQJUHDL6AAoJEMo7rS6czNUJtE0QAI+gUo1ILmSKbZ6YbVbMK4oN
iEby4uqqhfv+GK/0rXQo5Q4u6Z5pvWg3HlRs8V9tqAEgyy+iIkqswprEGCrr1hjb
UGPLQdUIp+U1pOZzhiZk5a/JqPJXB83HQ34e18Ewc2eHfrRPgYHF4ytuJh5cGkUw
qh1Fp/Pm5B3Yo9Kwdir7YkeIZQzrKclgB1Dn50uoYK6hdXLd+mUMbRu9DmWYKaT/
e5sulmPXxda2LEAHdHrpq97f85GFZ21xn4JEDdlMGCfTKJ6KHe5mTlwWbLv9S6Zs
8nXcPgbBvy8QtQyKq7Zt5xP2vdwNYswObyV4FsT4lAS0/Mjz2BVQGVL4xq86seuo
RGOc398DTHgyfmC4NKXr7Uf7f40cGeTeEGDR01Ix245EFzGnOwS7qrX9ji6G6o93
cZt2MjBikrebd1aKtssNYmWT8VmopupLZHaexWYpvrNzJEfyqG2D7WO7sop6uZd9
3uqFQpSCwpuq6ajSBzvKQvGey3pFyoEBFhkB/AkI9yj0ddpMRq65KgHecn9zdsRH
LyQfcj1TovCN5dZhpORNFEtWArPVf7NteNAbOU4gi96pN85Yj0mupFJQuJFR/ve2
GRoAWA+4u+u/fkl+pP2p1fzoBHTYE94+/it39PRvjdXxGAG3fC7Pmf6Yj29LNCOO
na15PD3aq9vxjpfNb9yp
=TbuV
-----END PGP SIGNATURE-----
More information about the openjfx-dev
mailing list