Strange exception with msAccess

Hi,
I'm building an application that uses MS Access 2000 database and I'm getting strange exception when I'm trying to update database with cursor.
MYTABLE has three attributes:
Text is a memo,
Int is an integer,
Id is an autonumber.
Statement stmt = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE);
ResultSet rs = stmt.executeQuery("select * from MYTABLE");
rs.moveToInsertRow();
rs.updateString("Text", "some text");
rs.updateInt("Int", 5);
rs.insertRow();The code above throws
java.lang.ArrayIndexOutOfBoundsException.
The exception is thrown when rs.insertRow() is executed.
Thanks

Out of curiosity:
the API for moveToInsertRow() acutally specifies that ALL of the columns for a row be set using an updateXXX method. You have an autoId field in your table, have you tried setting a value for it in your code?
It would be nice if you tried this, and told us the result you get.
Regards,
Manuel Amago.

Similar Messages

  • An strange exception with getAvailableFontFamilyNames.

    I'm using jre1.5.0_05 linux version.
    When I run freemind 0.8 (a mindmap java program using swing),
    The following exception occurs:
    Exception in thread "main" java.lang.IllegalArgumentException
    at java.nio.Buffer.position(Unknown Source)
    at sun.font.TrueTypeFont.lookupName(Unknown Source)
    at sun.font.TrueTypeFont.getFamilyName(Unknown Source)
    at sun.java2d.SunGraphicsEnvironment.getAvailableFontFamilyNames(Unknown Source)
    at sun.java2d.SunGraphicsEnvironment.getAvailableFontFamilyNames(Unknown Source)
    at freemind.main.Tools.getAvailableFontFamilyNames(Tools.java:179)
    at freemind.main.Tools.isAvailableFontFamily(Tools.java:202)
    at freemind.controller.Controller.<init>(Controller.java:228)
    at freemind.main.FreeMind.<init>(FreeMind.java:227)
    at freemind.main.FreeMind.main(FreeMind.java:647)
    Is it anything to do with the file /usr/java/jre1.5.0_05/lib/fontconfig.properties?
    But the Chinese characters display OK when running ControlPanel.
    Any sugguestion is welcome. Thanks!

    I tried to run freemind 0.8 and have run into a similar error. However, I am using Solaris JRE 1.6 b 105.
    Name: main
    State: RUNNABLE
    Total blocked: 0 Total waited: 5
    Stack trace:
    java.lang.Throwable.fillInStackTrace(Native Method)
    - locked java.lang.NullPointerException@160e2d0
    java.lang.Throwable.<init>(Throwable.java:181)
    java.lang.Exception.<init>(Exception.java:29)
    java.lang.RuntimeException.<init>(RuntimeException.java:32)
    java.lang.NullPointerException.<init>(NullPointerException.java:36)
    java.io.RandomAccessFile.getChannel(RandomAccessFile.java:251)
    sun.font.TrueTypeFont.open(TrueTypeFont.java:260)
    - locked sun.font.TrueTypeFont@104eabb
    sun.font.TrueTypeFont.verify(TrueTypeFont.java:382)
    sun.font.TrueTypeFont.<init>(TrueTypeFont.java:159)
    sun.font.FontManager.registerFontFile(FontManager.java:986)
    sun.font.FontManager.initialiseDeferredFont(FontManager.java:932)
    - locked java.lang.Class@1ce9f9d
    sun.font.FontManager.initialiseDeferredFonts(FontManager.java:770)
    - locked java.lang.Class@1ce9f9d
    sun.java2d.SunGraphicsEnvironment.loadFonts(SunGraphicsEnvironment.java:394)
    - locked java.lang.String@510dc2
    sun.java2d.SunGraphicsEnvironment.loadFontFiles(SunGraphicsEnvironment.java:424)
    sun.java2d.SunGraphicsEnvironment.getInstalledFontFamilyNames(SunGraphicsEnvironment.java:647)
    sun.java2d.SunGraphicsEnvironment.getAvailableFontFamilyNames(SunGraphicsEnvironment.java:672)
    sun.java2d.SunGraphicsEnvironment.getAvailableFontFamilyNames(SunGraphicsEnvironment.java:699)
    freemind.main.Tools.getAvailableFontFamilyNames(Tools.java:180)
    freemind.main.Tools.isAvailableFontFamily(Tools.java:204)
    freemind.controller.Controller.<init>(Controller.java:228)
    freemind.main.FreeMind.<init>(FreeMind.java:227)
    freemind.main.FreeMind.main(FreeMind.java:646)
    As I understand the problem is with GraphicsEnvironment.getLocalGraphicsEnvironment().getAvailableFontFamilyNames();
    I tried the following program and it seems to work fine. Wonder what the problem is with freemind.
    <snip>
    public class Main {
    public static void main(String[] args) {
    GraphicsEnvironment gEnv = GraphicsEnvironment
    .getLocalGraphicsEnvironment();
    String envFonts[] = gEnv.getAvailableFontFamilyNames();
    for (int i = 0; i < envFonts.length; i++) {
    System.out.println("envFont "+ i +" " + envFonts);
    </snip>

  • Strange Problem with ARD 2.2 *Please Help*

    Strange Problem with ARD 2.2 (2 problems)
    We have a classroom lab with 14 G5 PPC's running 10.4.11 with ARD 2.2 clients installed.
    We controlled all the G5's from a PPC Mac Mini running 10.4.11 with ARD 2.2, this was our Admin machine in our server room.
    We then added a teachers machine in the lab, an iMac PPC running 10.4.11 and ARD 2.2 also with admin status.
    Everything was working fine!
    We then upgraded the iMac PPC to an iMac Intel with 10.4.11. We installed ARD 2.2 admin and did the intel intergration.
    Everything worked fine.
    The iMac PPC was moved to another location, ARD was removed following instructions on the Apple website telling us to delete the application then run some terminal commands to remove pref's.
    Then our Intel iMac screen broke, we had the "lines" problem so bad only half the screen was visible. Long story short Apple wanted to charge us almost half the cost of the machine (no Applecare as it was a donated machine) to repair the screen!
    So we moved the PPC iMac back into the lab, re-install ARD 2.2.
    Now here is the problem, I can control, observe and run almost any command but cannot share with any computer!
    2nd,the Mac Mini Tech computer is running fine but cannot control or observe the PPC iMac teacher machine (we were able to do this before) I can even share the Mac Mini with the iMac but cannot observe or control!!
    Any ideas?

    "With ARD you have to enable option to control a Mac which has ARD running on it as opposed to remotely controlling normal client Mac."
    I'm not sure I understand, do you mean in System Pref's under sharing? Or is there somewhere else I need to enable to control?
    Seems like a hassle to reinstall the entire OS just to fix this problem, I am able to do everything else, except observe from one admin to another, and control from 1 admin to clients.
    thanks

  • Handshake Exception with Firefox and Jetty Servlet Container

    We do have a strange problem with Firefox 2 and Jetty 6.1 (a Servlet Container) using HTTPS to communicate: At some stage Firefox (FF) sends a ClientHelloV2, to which Jetty responds with a ServerHelloV3. This leads to a handshake failure for this handshake and for any subsequent attempt.
    To avoid the handshake failures there are 2 options:
    1.) restart FF
    2.) change the servername or port, by using ssltap [2] as a proxy.
    [FF] --> [ssltap] --> [Jetty]
    That way it is possible to change the port without restarting
    FF and Jetty, and to debug the SSL traffic.
    Both options make FF to start a SSL session, by sending a ClientHelloV3. Then everything works until we get to the same stage described above.
    h2. Logs:
    From what I can see in the logs of ssltap, Firefox is sending some data, which might be something like a partial handshake (?).
    --> [
    alloclen = 63 bytes
    (63 bytes of 63)
    [Wed Jan 09 12:18:41 2008] [ssl2] ClientHelloV2 {
    version = {0x03, 0x00}
    cipher-specs-length = 36 (0x24)
    sid-length = 0 (0x00)
    challenge-length = 16 (0x10)
    cipher-suites = {
    (0x000039) TLS/DHE-RSA/AES256-CBC/SHA
    (0x000038) TLS/DHE-DSS/AES256-CBC/SHA
    (0x000035) TLS/RSA/AES256-CBC/SHA
    (0x000033) TLS/DHE-RSA/AES128-CBC/SHA
    (0x000032) TLS/DHE-DSS/AES128-CBC/SHA
    (0x000004) SSL3/RSA/RC4-128/MD5
    (0x000005) SSL3/RSA/RC4-128/SHA
    (0x00002f) TLS/RSA/AES128-CBC/SHA
    (0x000016) SSL3/DHE-RSA/3DES192EDE-CBC/SHA
    (0x000013) SSL3/DHE-DSS/DES192EDE3CBC/SHA
    (0x00feff) SSL3/RSA-FIPS/3DESEDE-CBC/SHA
    (0x00000a) SSL3/RSA/3DES192EDE-CBC/SHA
    session-id = { }
    challenge = { 0xa954 0x2122 0x3e82 0xb993 0xd72f 0xea54 0x779f 0x958c }
    The server responds with:
    <-- [
    (1161 bytes of 1156)
    SSLRecord { [Wed Jan 09 12:18:41 2008]
    0: 16 03 00 04 84 |....�
    type = 22 (handshake)
    version = { 3,0 }
    length = 1156 (0x484)
    handshake {
    0: 02 00 00 46 |...F
    type = 2 (server_hello)
    length = 70 (0x000046)
    ServerHello {
    server_version = {3, 0}
    random = {...}
    0: 47 84 ad 91 a1 f6 cb e5 f8 e2 f0 46 60 4b dd 48 | G����.&#9574;.�.�F`K.H
    10: 13 a8 93 96 d2 4f 2b d8 2d fe 49 2f 22 e5 29 5e | .����O+�-.I/".)^
    session ID = {
    length = 32
    contents = {..}
    0: 47 84 ad 91 84 b7 ef 62 92 fb 03 d7 8a 41 ae 82 | G������b��.�.A�.
    10: d5 57 a3 e0 24 cc b5 2e b2 c7 29 3d 3a 37 a6 11 | &#305;W��$&#9568;�.&#9619;�)=:7�.
    cipher_suite = (0x0032) TLS/DHE-DSS/AES128-CBC/SHA
    0: 0b 00 02 f6 |....
    type = 11 (certificate)
    length = 758 (0x0002f6)
    CertificateChain {
    chainlength = 755 (0x02f3)
    Certificate {
    size = 752 (0x02f0)
    data = { saved in file 'cert.001' }
    0: 0c 00 01 38 |...8
    type = 12 (server_key_exchange)
    length = 312 (0x000138)
    0: 0e 00 00 00 |....
    type = 14 (server_hello_done)
    length = 0 (0x000000)
    +Then FF responds with a handshake failure:+
    --> [
    (7 bytes of 2)
    SSLRecord { [Wed Jan 09 12:18:41 2008]
    0: 15 03 00 00 02 |.....
    type = 21 (alert)
    version = { 3,0 }
    length = 2 (0x2)
    fatal: handshake failure
    0: 02 28 |.(
    I am pretty stuck. Do you have any idea? Or can you give me any advice, how to further investigate this problem?
    Thanks,
    -Stefan
    [2] http://www.mozilla.org/projects/security/pki/nss/tools/ssltap.html

    I did some more analysis:
    When I replace the keystore by another keystore provided by the Jetty
    distribution, Firefox will not complain about the handshake
    exception. Nevertheless there are handshake exceptions, and the SSL
    level switches from TLS to SSLv3.
    Now I guess the question is: What is the difference between the two
    keystores?
    Answer: As far as I can see, the Keystore provided in the Jetty distro
    has expired in 2001, while my keystore is still valid (although also
    self-generated).
    Could it be, that Firefox some is less strict regarding handshake
    failures, after you have told it to accept an expired certificate?
    I am not sure whether this is problem of JSSE, or not? What do you think?

  • Strange problem with WD component build

    Hi all,
    I have strange problem with building one wd component, which is part of SC. I'm getting few errors which stops me from building component (and transporting to other systems via CMS of course). I'm providing sample of the errors (3 types) and ant error:
    [code]     [wdgen] [Error]   com.gbs.gmob.RequisitionFoCust --> ContextValueAttribute startDate [type]: Type missing (Hint: The type property must be set to a simple type, a built in type or any java native type)
         [wdgen] [Error]   com.gbs.gmob.RequisitionFoCust --> ContextValueAttribute stopDate [type]: Type missing (Hint: The type property must be set to a simple type, a built in type or any java native type)
         [wdgen] [Error]   com.gbs.gmob.SuppMatGroupView --> TextView MATERIAL_GROUP_NAME_editor [text]: Context element and property are not compatible
         [wdgen] [Error]   com.gbs.gmob.SuppMatGroupView --> TextView MATERIAL_GROUP_ID_editor [text]: Context element and property are not compatible
         [wdgen] [Error]   com.gbs.gmob.SupplierCust --> ContextModelNode SuppMatGroup [modelClass]: The context model node has not been bound to a model class (Hint: A Context model node has to be bound to a model class or mapped to a model node of another controller.)
         [wdgen] [Error]   com.gbs.gmob.SupplierCust --> ContextValueAttribute material_group_list [type]: Type missing (Hint: The type property must be set to a simple type, a built in type or any java native type)
         [wdgen] [Warning] com.gbs.gmob.ApprovalRejectView --> TextEdit TextEdit: UIElement does not have a label
         [wdgen] [Info]    Catching throwable null
         [wdgen] [Info]    com.sap.webdynpro.generation.ant.GenerationAntTaskError
         [wdgen]      at com.sap.webdynpro.generation.ant.GenerationAnt.showCheckResult(GenerationAnt.java:153)
         [wdgen]      at com.sap.ide.webdynpro.generation.Generation.check(Generation.java:2050)
         [wdgen]      at com.sap.ide.webdynpro.generation.Generation.generatePersistentComponent(Generation.java:1299)
         [wdgen]      at com.sap.ide.webdynpro.generation.console.GenerationConsole.generate(GenerationConsole.java:175)
         [wdgen]      at com.sap.webdynpro.generation.ant.GenerationAnt.main(GenerationAnt.java:50)
         [wdgen]      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         [wdgen]      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         [wdgen]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         [wdgen]      at java.lang.reflect.Method.invoke(Method.java:324)
         [wdgen]      at com.sap.webdynpro.generation.ant.WDGenAntTask.execute(WDGenAntTask.java:219)
         [wdgen]      at org.apache.tools.ant.Task.perform(Task.java:341)
         [wdgen]      at org.apache.tools.ant.Target.execute(Target.java:309)
         [wdgen]      at org.apache.tools.ant.Target.performTasks(Target.java:336)
         [wdgen]      at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
         [wdgen]      at com.sap.tc.buildplugin.techdev.ant.util.AntRunner.run(AntRunner.java:115)
         [wdgen]      at com.sap.tc.buildplugin.AbstractAntBuildAction.execute(AbstractAntBuildAction.java:65)
         [wdgen]      at com.sap.tc.buildplugin.AbstractPlugin.handleBuildStepSequence(AbstractPlugin.java:225)
         [wdgen]      at com.sap.tc.buildplugin.AbstractPlugin.performBuild(AbstractPlugin.java:201)
         [wdgen]      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         [wdgen]      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         [wdgen]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         [wdgen]      at java.lang.reflect.Method.invoke(Method.java:324)
         [wdgen]      at com.sap.tc.buildtool.PluginCommunicator.maybeInvoke(PluginCommunicator.java:114)
         [wdgen]      at com.sap.tc.buildtool.PluginCommunicatorV2.communicate(PluginCommunicatorV2.java:42)
         [wdgen]      at com.sap.tc.buildtool.PluginHandlerImpl.handlePluginCommunication(PluginHandlerImpl.java:354)
         [wdgen]      at com.sap.tc.buildtool.PluginHandlerImpl.execute(PluginHandlerImpl.java:176)
         [wdgen]      at com.sap.tc.devconf.impl.DCProxy.make(DCProxy.java:1726)
         [wdgen]      at com.sap.tc.devconf.impl.DCProxy.make(DCProxy.java:5559)
         [wdgen]      at com.sap.ide.eclipse.component.provider.actions.dcproject.BuildAction.buildDCsForDevConfig(BuildAction.java:307)
         [wdgen]      at com.sap.ide.eclipse.component.provider.actions.dcproject.BuildAction.access$200(BuildAction.java:58)
         [wdgen]      at com.sap.ide.eclipse.component.provider.actions.dcproject.BuildAction$1.run(BuildAction.java:212)
         [wdgen]      at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:101)
         [wdgen] ERROR: Unknown exception during generation null (com.sap.webdynpro.generation.ant.GenerationAntTaskError)
         [wdgen] ERROR: Generation failed due to errors (6 seconds)
    Ant runtime 9.234 seconds
    Ant build finished with ERRORS
    [Error]   Generation failed!
    Error: Build stopped due to an error: [Error]   Generation failed!
    [/code]
    Strange is that if I try to rebuild and deploy locally, no errors occurs and I can normally deploy and run application manually!
    Does anyone have experience with this problem?
    Thanks in advance!
    Regards,
    Ivan

    Hi Ivan
    I have faced this problem earlier BUT ultimately I have to create the DC from scratch.
    But you can check these things:
    1.Have you copy/pasted Dictionary type from other location (check the path of the dictionary types ) --> If yes then deleted that and create again(do not use copy/paste)
    2.This also happens if your "Used DC" has some problems in the JDI --> Remove the used DC and add it again.
    3.Make sure the NWDI infastructure is perfect- this may be a cause.
    4. Check Context mappings --> delete all mappings > save metadata > Create again.
    5. Delete the model and recreate it again.
    6.If you have done reimporting model make sure to restart J2EE instance.
    Hope this solves the problem - if not please post
    Regards
    Ananda

  • Strange behavior with Collections

    Hello!
    I have a - from my point of view - strange behavior with a List (same also applies to Vector, LinkedList, and others):
    List<String> myList = new myList<String>;
    myList.add("One");
    while (true) {
    try {
    System.out.println(myList.size());
    throw new Exception();
    } catch (Exception e) {
    e.printStackTrace();
    }And the result is 1, 2, 2, 2, ...although I added only one element. The two elements in the List point to the same object.
    What could case this issue?
    Regards,

    len00x wrote:
    List<String> myList = new myList<String>;This doesn't even look like it will compile for at least one reason, easily two.

  • Strange behavior with Label#setWrapText(true) in GridPane.

    I've got a strange behavior with a Label, which has setWrapText(true) in a GridPane.
    Check out the sample and click the button.
    You see, that the GridPane suddenly behaves as if it had GridPane.setVGrow and HGrow set for the lblStatus.
    (it takes the full available space).
    Furthermore the first column shrinks to a minimum, so that lblText1 can't display its text anymore.
    Tested with 2.1 GA.
    Any help with that?
    import javafx.application.Application;
    import javafx.event.ActionEvent;
    import javafx.event.EventHandler;
    import javafx.geometry.Insets;
    import javafx.scene.Scene;
    import javafx.scene.control.Button;
    import javafx.scene.control.Label;
    import javafx.scene.layout.GridPane;
    import javafx.stage.Stage;
    public class TestApp4 extends Application {
        public static void main(String[] args) {
            launch(args);
        @Override
        public void start(final Stage stage) throws Exception {
            GridPane gridPane = new GridPane();
            gridPane.setPadding(new Insets(2, 2, 2, 2));
            Label lblText1 = new Label();
            lblText1.textProperty().set("Some text");
            Label lblText2 = new Label();
            lblText2.textProperty().set("Some other text");
            Button btnClick = new Button();
            btnClick.textProperty().set("Click me");
            final Label lblStatus = new Label();
            lblStatus.setWrapText(true);
            gridPane.add(lblText1, 0, 0, 1, 1);
            gridPane.add(lblText2, 1, 0);
            gridPane.add(lblStatus, 0, 2, 2, 1);
            gridPane.add(btnClick, 0, 3, 2, 1);
            btnClick.setOnAction(new EventHandler<ActionEvent>() {
                @Override
                public void handle(ActionEvent actionEvent) {
                    lblStatus.setText("very long text, very long text, very long text, very long text,very long text, very long text");
            gridPane.setGridLinesVisible(true);
            Scene scene = new Scene(gridPane, 300, 300);
            stage.setScene(scene);
            stage.show();
    }Edited by: csh on 19.07.2012 03:35

    It seems the Label doesn't like it, that it is in a GridCell with rowspan = 2
    If it is in a normal cell (no rowspan), it works.
    If I add ColumnConstraints to the gridpane, it kind of works, but the Label still occupies more space than it should.
    Edited by: csh on 19.07.2012 03:51

  • Strange behavior with Bindings??

    Hello to all JavaFX 2 Binding experts,
    I have a strange behavior with Bindings in JavaFX 2.2 (Java 1.7 update 21). Please have a look at the following source code:
    package test;
    import javafx.application.Application;
    import javafx.beans.binding.BooleanBinding;
    import javafx.beans.property.SimpleBooleanProperty;
    import javafx.beans.value.ChangeListener;
    import javafx.beans.value.ObservableValue;
    import javafx.fxml.FXML;
    import javafx.fxml.FXMLLoader;
    import javafx.scene.Parent;
    import javafx.scene.Scene;
    import javafx.scene.control.Label;
    import javafx.scene.control.RadioButton;
    import javafx.stage.Stage;
    public class BindingVsProperty extends Application
        @FXML
        private RadioButton opt11;
        @FXML
        private RadioButton opt12;
        @FXML
        private RadioButton opt21;
        @FXML
        private RadioButton opt22;
        @FXML
        private Label lbl11And21;
      @Override
        public void start(Stage arg0) throws Exception
            FXMLLoader l_loader = new FXMLLoader();
            l_loader.setLocation(BindingVsProperty.class.getResource("BindingVsproperty.fxml"));
            l_loader.setController(this);
            l_loader.load();
            Scene l_scene = new Scene((Parent)l_loader.getRoot());
            arg0.setScene(l_scene);
            useBinding1();
            //useBinding2();
            //useBinding3();
            arg0.show();
        private void useBinding1() // NOT WORKING - ChangeListener.changed(..) is not called
            BooleanBinding l_andOpt11Opt21 = opt11.selectedProperty().and(opt21.selectedProperty());
            l_andOpt11Opt21.addListener(new ChangeListener<Boolean>()
                @Override
                public void changed(ObservableValue<? extends Boolean> arg0, Boolean arg1, Boolean arg2)
                    System.out.println("Opt 1.1 AND Opt 2.1 changed to: " + arg2);
        private void useBinding2() // OK - ChangeListener.changed(..) is called
            BooleanBinding l_andOpt11Opt21 = opt11.selectedProperty().and(opt21.selectedProperty());
            lbl11And21.visibleProperty().bind(l_andOpt11Opt21);
            l_andOpt11Opt21.addListener(new ChangeListener<Boolean>()
                @Override
                public void changed(ObservableValue<? extends Boolean> arg0, Boolean arg1, Boolean arg2)
                    System.out.println("Opt 1.1 AND Opt 2.1 changed to: " + arg2);
        private void useBinding3() // NOT WORKING - ChangeListener.changed(..) is not called
            BooleanBinding l_andOpt11Opt21 = opt11.selectedProperty().and(opt21.selectedProperty());
            new SimpleBooleanProperty(false).bind(l_andOpt11Opt21);
            l_andOpt11Opt21.addListener(new ChangeListener<Boolean>()
                @Override
                public void changed(ObservableValue<? extends Boolean> arg0, Boolean arg1, Boolean arg2)
                    System.out.println("Opt 1.1 AND Opt 2.1 changed to: " + arg2);
        public static void main(String[] args)
            launch(args);
    <?xml version="1.0" encoding="UTF-8"?>
    <?import java.lang.*?>
    <?import java.util.*?>
    <?import javafx.scene.control.*?>
    <?import javafx.scene.layout.*?>
    <?import javafx.scene.paint.*?>
    <BorderPane id="BorderPane" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefWidth="371.0" xmlns:fx="http://javafx.com/fxml">
      <center>
        <AnchorPane prefHeight="200.0" prefWidth="200.0">
          <children>
            <Label id="lblAnd" fx:id="lbl11And21" layoutX="82.0" layoutY="121.0" text="Group1 Opt1 AND Group2 Opt1 is true" textFill="#41cc00" visible="false" />
            <RadioButton fx:id="opt21" layoutX="216.0" layoutY="24.0" mnemonicParsing="false" text="Group 2 - Opt 1">
              <toggleGroup>
                <ToggleGroup fx:id="group2" />
              </toggleGroup>
            </RadioButton>
            <RadioButton fx:id="opt22" layoutX="216.0" layoutY="67.0" mnemonicParsing="false" text="Group 2 - Opt 2" toggleGroup="$group2" />
            <RadioButton fx:id="opt11" layoutX="29.0" layoutY="24.0" mnemonicParsing="false" text="Group 1 - Opt 1">
              <toggleGroup>
                <ToggleGroup fx:id="group1" />
              </toggleGroup>
            </RadioButton>
            <RadioButton fx:id="opt12" layoutX="29.0" layoutY="67.0" mnemonicParsing="false" text="Group 1- Opt 2" toggleGroup="$group1" />
          </children>
        </AnchorPane>
      </center>
    </BorderPane>
    What I need for my application is the use case in useBinding1(), i.e., a BooleanBinding where several listeners are attached to. The problem is that I never get a callback in the ChangeListener if one of the RadioButton.selectedProperty() is changed.
    Now I tried what happens if I use the same BooleanBinding for another binding to a property plus the listener, now the listener gets callbacks as expected! (see useBinding2() )
    Than I thought may be Bindings must be bound in order to trigger listeners and tried useBinding3() where I bind the BooleanBinding to a new BooleanProperty, in this case the listener doesn't get callback anymore...
    And now I'm very frustrated and hope that anyone out there can help me to understand this strange behavior.
    Thanks a lot!
    WhiteAntelope

    All these work just fine for me: the listeners are all called as expected. Note that the listener is only invoked when the value of the binding actually changes, which doesn't happen every time a radio button is pressed. (For example, if both buttons are unselected, the binding is false. If one button is selected, the binding remains false and the listener is not invoked. When the second button is selected, the binding becomes true, and the listener is invoked.)

  • Strange trouble with Color

    I experience strange trouble with Color I can't overcame. I try to export DPX sequences in Color ("manually") without using Final Cut. I navigate in setup room to my folder where the files are stored and after I open that folder there is nothing there at all. I tried different folders as well sometime it opens empty and I have to go back up and open folder again to be able to see the contents. But some folder are never "refresh" always opens empty , but I am 110 present sure there are files in them ( I check in Finder). This starts to happen after 10.5.2 update. I have no idea what to do with this and how to overcame that problem., please help.
    My setup is Mac pro 2x2.66Mhz , 3GB Ram, ATI Radeon X1900 video card, 2 Apple cinema displays.
    Mac OS X 10.5.2, Color 1.0.2
    Thanks!

    Let me see if I understand this...
    What you are attempting to convey is that you are trying to import .dpx files into COLOR directly and that COLOR does not recognize the files.
    My bet would be that there is an issue with the .dpx file format. It may be the way they are written, stored, named, the bit-depth... any number of issues. The fact that they don't show up is COLOR's way of telling you that there is a compatibility problem. My experience is that 10-bit and above is poorly handled at the moment, and is not supported at all by some previous versions of Quicktime and Shake, for example, under Leopard, and not even Tiger .4.11. What I started getting were perfect proxy renditions, but actual rendered material was almost pure noise, except there were shadowy remnants of the original scene.
    Consider yourself lucky that the application stopped you at this point, rather than allow the project to go forward, then corrupt after you had devoted a considerable amount of your time and energy to it, then have to go back to fix the original files and do ti all over again, or struggle with reconform, etc.
    jPo

  • Strange problem with my build JAR

    Hiii everybody... I'm having a strange problem with my build (JAR file)... when I work with the Eclipse and I click in the table that returns the clients stored in my PostGre database it works fine, but when I build my application and it generates my JAR file and I open it and click in the same table to return the objects that I have.. it does not appears anymore.. just show when I work with eclipse... and the database is the same for both.
    I already checked the database path in my properties file... and the application recognize the database because I can login and there isn't any runtime exception...
    In that application I work with Hibernate and Spring... for me it is very strange because the application works fine when I run by eclipse... but does not return the database data when I click on my Jar file to open the application..
    Someone can help me with that?
    I dont know if the problem is in the Spring, Hibernate, Libraries...
    thanks in advance...

    So what's the error then? Are there any error messages? Have you checked the console? Or are you just clicking on the jar and you wouldn't even see the errors if there are any?
    What do the logs say?
    You're not giving a lot to work on here.

  • Strange Problem with Mail & Address Book

    Hi,
    I'm having a strange problem with Mail & Address Book.
    When I go to compose a new message from Mail and hit the Address button (to show my email addresses), it won't launch the contacts window!
    I get this log from console;
    2007-10-15 22:55:59.079 Mail[410] * -[NSCFArray objectAtIndex:]: index (0) beyond bounds (0)
    If I try to launch the Address Book from my Applications folder, it won't open, and it gives me this log from console;
    2007-10-15 22:57:57.348 Address Book[417] * -[NSKeyedUnarchiver initForReadingWithData:]: data is NULL
    Oct 15 22:57:57 PB-G4 /Applications/Address Book.app/Contents/MacOS/Address Book: CGImageSourceCreateWithData data parameter is nil\n
    2007-10-15 22:57:57.350 Address Book[417] Don't know about packed image EditLeftCapStd
    2007-10-15 22:57:57.350 Address Book[417] Exception raised during posting of notification. Ignored. exception: * -[NSCFArray addObject:]: attempt to insert nil
    If I quit Address Book, i'll get this from console;
    2007-10-15 22:58:37.892 Address Book[417] -[ABAddressBook setDefaultCountryCode:] called with a unknown country code 'us'
    I tried deleting the preferences, re-installing Address Book, also tried creating a new user, again no luck!
    Can somebody help!!!
    Please?!

    Hi dp13.
    Do you have any Address Book plug-ins or system utilities that could interfere with Address Book? In the Finder, go to each of the following folders (if they exist). What do you see there?
    /Library/Address Book Plug-Ins/
    ~/Library/Address Book Plug-Ins/
    To make accurately reporting this information easier, you may open /Applications/Utilities/Terminal, type the following command (you can just copy it here and paste it in Terminal), and press <Return>. You can then copy the output of that command from Terminal and paste it in your reply to this post:
    ls -1 /Library/Address\ Book\ Plug-Ins ~/Library/Address\ Book\ Plug-Ins
    Note: For those not familiarized with the ~/ notation, it refers to the user’s home folder. You can easily locate any of the folders referred to in this post by copying the folder path here, doing Go > Go to Folder in the Finder, and pasting the folder path there.
    <hr>
    Did you also reinstall the appropriate Combo Update after reinstalling Address Book?
    Quit all the applications and verify/repair the startup disk (not just permissions), as described here:
    The Repair functions of Disk Utility: what's it all about?
    After having fixed all the filesystem issues, if any, reinstall the Combo Update for the type of computer and the version of Mac OS X you’re using, unless this is the version of Mac OS X that came with the computer:
    About the Mac OS X 10.4.10 Combo Update
    Mac OS X 10.4.10 Combo Update for PowerPC
    Mac OS X 10.4.10 Combo Update for Intel
    After installing the Combo Update, the computer may restart twice and the first restart may take several minutes. This is normal.
    Take a look at the following articles for guidelines on how to properly install system updates:
    Troubleshooting installation and software updates
    Installing software updates
    Basically, you should verify/repair the startup disk and back up before installing the update, no applications should be running while installing it, and you may experience unexpected results if you have third-party system software modifications (not normal applications) installed.

  • Strange problem with Inheritance

    Hi,
    I have a Strange problem with Inheritance which I think should work, but doesn't.
    I have 3 classes in 3 different packages.
    Class A in package 1 is abstract
    Class B extend class A is also Abstract and is in package 2
    Class C extend Class B and is in package 3
    When i do the following
    C c = new C();
    A a = (A)c;
    I get a class cast exception
    Any ideas?
    Jag

    That should work fine. Can you check the exact classes created (using: System.out.println(c.getClass().toString()). You may have accidentally created an instance of a class with the same name but from a different package.

  • Strange problem with SSL Sockets using more than 10 Clients

    Hi
    I�m using Jsse ( JDK 1.4.2_06 ). I have coded a Client/Server Applikation acting over SSLSockets or over unsecured Sockets. If I use unsecured Sockets everthing works fine, but if I use SSLSockets for the Connection and about 20 Clients, the Clients often can�t connect to the Server and the following Exception was thrown:
    java.net.ConnectException: Connection refused: connect
    Could it be that there is some strange problem with SSLServerSockets relating to this phenomenon?
    If I use only a few Clients the Exception occurs never or only sometimes.
    Has anyboby an idea what is happaning there?
    Regards Chrisli

    Hi
    From the description of your scenario, you have coded your own server side of the application. I would advise that you consider moving your application to run under Tomcat framework and test if you still get the same exception.

  • Strange discrepancy with adjustment levels

    Using CS4 on a MacBookPro with OS 10.6.2.
    Being a very experienced user, I suddenly encountered a weird thing that doesn't go away restarting the computer or resetting PS:
    When I have the levels dialogue (cmd+l) on the screen, I tweak the settings until I see what I want to see, like always.
    HOWEVER, when I then click OK to accept my adjustment, the image CHANGES.
    Looks rather similar to switching between RGB and CMYK-preview, or even more drastical.
    This makes the whole dialogue completely useless, since what I see is no longer what I get.
    Same problem with the other adjustments - curves, saturation.
    What I see in preview is NOT what I get after accepting.
    I can trick it by using an adjustment layer in stead, since that obviously doesn't involve clicking OK.
    BUT! When I than flatten the image or merge the adjustment layer down on to the image layer, the same thing happens: the image changes appearance.
    Can't begin to imagine where the problem might lay - anyone got an idea??
    Have run this program on this computer with this monitor for some time now, and the strange behaviour just started today, out of the blue.

    Yes, you were right.
    With "bizarre" I meant that I never noticed the effect in more than 10 years, having spent probably in the thousands of hours in Photoshop, all the way back to the Stone Age version 4.
    In fact, I tried different files and could NOT reproduce the effect, except with the one file that caused my alarm.
    It was a shot of a very textured metal surface, and I am of course well aware of the fact that PS cannot depict 16,6% of a pixel, hence the moire and general noise.
    I was amazed, however, to see how much of a discrepancy the levels caused at this magnification.
    Anyway, point taken, case closed. Thanks.

  • Strange behavior with "insertTextAsContent"

    Hi,
    I've got a strange behavior with this loop :
    for (j = 0; j < myParagraph.characters.length-1; j++) {
         var myCharacter = myParagraph.characters[j];
         if (myCharacter.appliedFont.fontStyleName == "Regular") {
              alert(myCharacter.contents);
              myXmlElement.insertTextAsContent(myCharacter.contents, XMLElementPosition.ELEMENT_END);
    I loop through every characters of a paragraph, test if they are "regular", "italic", "bold"..., and store them in different xmlElement. Everything is fine except that every double characters (in french : homme, cette, elle, ville...) output in my xmlElement as one only character (home, cete, ele, vile...). I try with "aaaaaazzzzzzeeeeeerrrrrtttttyyyyy" and it give me, the same way, "azerty" ?!
    The "alert" line output the correct full sentences character by character ("h", "o", "m", "m", "e"...).
    If you have any idea to explain, you are more than welcome
    Thanks
    ** edit : don't know if it's important but I'm using CS6 **

    Hi
    Have you seen this in the object model viewer?
    XMLElement.insertTextAsContent (using:varies, position: XMLElementPosition ): Text
    Adobe InDesign CC (8.0) Object Model
    Inserts the specified text as content before, in, or after the XML element.
    using: Data Type: varies
    The text to be inserted. Can accept: String or SpecialCharacters enumerator.
    position: Data Type: XMLElementPosition
    The position at which to insert the text. Note that text inserted before or after the element does not become part of the content of the element. Instead, it becomes content of the parent of the element.
    Don't ask me why it works when there is no doubled character
    So i tried the following and it worked. I hope this will solve your problem.
    function main() {
         if (app.documents.length != 0) {
            var myDoc = app.activeDocument;
            var myParagraph = myDoc.textFrames[0].paragraphs[0];
            var myXmlElement  = myDoc.xmlElements[0];
            for (j = 0; j < myParagraph.characters.length-1; j++) {
                var myCharacter = myParagraph.characters[j];
                if (myCharacter.appliedFont.fontStyleName == "Regular") {
                    alert(myCharacter.contents);
                    myXmlElement.contents += myCharacter.contents;
                    alert(">" + myXmlElement.contents+ "<");
                }     // if
            }     //for
        }     // if
    }   // main()
    Kind regards
    Dani (from Switzerland)

Maybe you are looking for

  • Flash player does not work in safari

    I need to install updated Flash player when I click on the 'install' button for Flash player - nothing happens. I have tried to 'uninstall' and again nothing happens. Running 10.7.4 and have Safari plug-ins enabled. Can anyone help? thanks

  • Sequence number in Trigger

    I'm trying to create an insert trigger that will do the following: 1.) Grab the next sequence number from a sequence and use it as the value for the id_number column. 2.) Grab the SYSDATE and use it as the value for the create_date column. I'm using

  • How can I send an email to someone on my contact list?

    How can I send an email to someone on my contact lis

  • I can't install firefox in my laptop, what should i do?

    I had trouble with the previous version, so i try to install again but kept on saying run as a. current user or b. run the program as the following user. I picked current user but nothing happens. what should I do?

  • ZipFile class random access

    Hi All, I am using the ZipFile class in Java to parse/read data from an ascii file. But I want to implement this reading process using the RandomAccessFile and read the data randomly. But I am using a StreamTokenizer from the ZipFile to read the data