Cannot write negative values on modbus server on cRIO 9068

Hello everybody,
I'm trying to move a project from a cRIO 9114 platform to a cRIO9068, the reason is for a heavy difference in terms of CPU power, memory, FPGA performance etc..
On real time side I deploy a TCP modbus server, and I publish just I16 data.
The problem comes when the program try to write a negative value in a variable binded on modbus. That variable is in the same format (I16), so the program could write negative values between 0 and -32768, but everytime the modbus force the value to zero.
I tested the modbus also with "NI Distribuited System Manager 2014" but still cannot write negative values on I16, but I can if I consider data as I32!!!
(see enclosed files)
Moreover I deployed a modbus server on my PC and in this case all goes right.
Some more information:
I'm working with labView 14.0f1.
On cRIO are installed "Labview RealTIme 14.0.0" and "Modbus I/O server 14.0.0".
I tested the feature on three different cRIO 9068 with  same result.
I'm thinking that's something wrong with cRIO 9068, can somebody help me?
Thank you
MZ
Solved!
Go to Solution.
Attachments:
Force negative value I16.jpg ‏48 KB
Force negative value I32.jpg ‏48 KB

marcello.zoppetti wrote:
How can I track the CAR?
Just watch for it in the new release notes for a version of LabVIEW and the patches.  NI does not make their bug reports public.
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines

Similar Messages

  • In bc4j debug output - "Cannot write SessionCookie value to a commited.."

    I am taking a look at an application debug logs and whenever an AM is Reset this warning is thrown:
    "Cannot write SessionCookie value to a commited response."
    Has anyone else seen this in their log?
    This is a 10.1.2 app with struts and BC4J. I'm trying to debug a memory leak on a server, and I suspect it has something to do with an overloaded bc4jrequestprocessor...and it kind of worries me that the session might not be being saved and perhaps some resources are sticking around....ideas?

    Finally found the problem!
    Even if the data type is Date/Time in Access and it is possible to set the field name to DateTime it seems to be a restricted word when using an SQL statement. The solution is to add brackets around DateTime like this:
    INSERT INTO Measurement (TestID,[DateTime]) VALUES (1,'2015-01-28 06:52:16');
    Thanks for your help Cosworth.
    Ben64

  • Error 1406. Setup cannot write the value mlcfg32.cpl

    Hi to all. I am attempting to upgrade Office 2007 Standard to Office 2013 Pro. I have used the OCT tool to create a custom MSP. On some machine the upgrade fails. It is always the same error (see below).
    [quote]
    Error 1406. Setup cannot write the value mlcfg32.cpl to the registry key \Software\Microsoft\Windows\CurrentVersion\Control Panel\Cpls. Verify that you have
    sufficient permissions to access the registry or contact microsoft product services (PPS) for assistance. For information about how to contact PSS, see
    C:\Users\......
    [/quote]
    I have attempted the following:
    1.Log on to the computer by using an Administrator user account.
    2.Start Microsoft Windows Explorer.
    3.On the Organize menu, click Folder and search options.
    4.Click the View tab.
    5.Under Hidden files and folders, click Show hidden files, folders, and drives.
    6.Click to clear the Hide extensions for known file types check box.
    7.Click to clear the Hide protected operating system file (Recommended) check box, and then click OK.
    8.On the Warning dialog box, click Yes.
    9.Open the following folder: C:\Users\All Users\Microsoft\Office\Data\
    10.If you are running Office 2007, right-click Opa12.dat or if you are running Office 2003, right-click Data.dat, and then click Properties.
    11.Click the Security tab.
    12.Click Advanced.
    13.Click the Permissions tab.
    14.Click to select Everyone in the Permission entries list, and then click Edit.
    15.Click to select the Full Control check box.
    16.Click OK four times. If these steps do not resolve this issue, delete the Opa12.dat, the Opa11.dat file or the Data.dat file from the following folder, and then restart an Office 2007 program, an Office 2003 program or an Office XP program
    C:\Users\All Users\Microsoft\Office\Data
    Has anyone seen this issue previously?
    Kind Regards,
    Phil.

    Hi Phil,
    Thank you for your questions. Have you uninstalled Office 2007 from the machine before the Office 2013 installation?
    I believe you've already seen this KB article before, the steps above are quoted from it:
    http://support.microsoft.com/kb/838687
    As can been seen from the article, the steps above are specific to Method 4. There are three other Methods mentioned in the article, have you ever tried them? If not yet, I would suggest you to have a try:
    Method 1: Set the permission for the Everyone group of the registry subkeys that are listed in the error message to Full Control.
    Method 2: Disable the third-party application.
    Method 3: Try the installation again in
    Let me know if the issue persists after the steps above, we'll take a further look then.
    Regards,
    Ethan Hua
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • Error: You cannot enter negative value - message 3504-4

    Getting the above error message when trying to enter a sales order delivery. quantity on hand for the warehouse is 3000. We are trying to ship 3000 and getting the above error.
    Any ideas

    Hi Keith ,
    This might be helpful too to troubleshoot .
    You cannot enter a negative value - Goods Receipt - PO
    Even though thread talks about GRPO , Apple's message also talk about same issue in Delivery.
    Hope this helps
    Bishal

  • Write Negative Value Byte to File

    In this example, I'm trying to write a value in between -128 to 127 to a text file. When I read it back (and check it using a binary viewer), the text file actually gets 63. The only workable range is 0 to 127. How can I get negatives?
              Byte b = (byte)-12;
              BufferedWriter writer = new BufferedWriter(new FileWriter("C:\\Documents and Settings\\Joe\\Desktop\\test.txt"));
              writer.write(b);
              writer.close();
              DataInputStream is = new DataInputStream(new FileInputStream("C:\\Documents and Settings\\Joe\\Desktop\\test.txt"));
              System.out.println(is.read());
              is.close();

    The byte became unsigned when using the OutputStream. I tried to write -12, and I got 244. But now, I can write 0 through 255 (a bigger range)
    But I can just use arithmetic to make it work.
    Thanks!
              Byte b = (byte)-12;
              OutputStream out = new FileOutputStream("C:\\Documents and Settings\\joe\\Desktop\\test.txt");
              out.write(b);
                    out.close();
              DataInputStream is = new DataInputStream(new FileInputStream("C:\\Documents and Settings\\joe\\Desktop\\test.txt"));
              System.out.println(is.read());
              is.close();

  • How to enter negative value in a currency field

    Hi Experts,
    Please help me how to allow to enter negative value in a field on report selection.
    I created a currency field on a report selection using PARAMETERS.
    I can enter positive value in the field. But, I cannot enter negative value.
    SAP shows an error message 00 126 "Specify positive values only".
    I know I can place check ON at "with sign" option of the field in case I create the screen by myself.
    However, I cannot do it on screen 1000 created by report program.
    Thanks,
    George

    Hi ,
    I know I can place check ON at "with sign" option of the field in case I create the screen by myself.
        Prabhu--> Just Create a new Domain( select "WITH SIGN") and date elemet,And Use Data Element in your report.
    regards
    Prabhu

  • Binded variables change value of modbus PLC variable when application starts

    Hello,
    I have a front panel with controls binded to some shared variables that use a modbus server to control a PLC. There is no logic behind that front panel, all I want to do is to be able to read/write some variables on the PLC.
    I binded the control with datasocket. The reason I did not use PSP is that I would like to bind the controls programmatically so if the client change the server (that holds the library and the citadel BD) the only thing he would have to do is to change the name of the server in the configuration file. It's seems that there is a bug in the Data Bindingath Property and it always return me an error when I try to bind dynamically (Which is not the case with the DataSocket:URL Property) .
    Now the PROBLEM: 
    Lets say a certains variable on the PLC holds the value 10. When I open my panel, I can see that value (10) a very short moment (milliseconds) and the value shifts to '0'. That undesirable '0' is indded written on the shared variable on the server and on the PLC. After that I can change the same value back and everything works properly. Its seems to me that the problem occurs only at the first connection. Same thing apend with booleans controls.
    I would like to be able to open my application, see the '10' in my control, update it if I want, close the application and get the last value when I re-open it.
    I'm running an executable with the DSC run-time.
    Thanks in advance for your help!
    Vincent

    Hello Vincent,
    This was reported to R&D (#161821) for further investigation.  I noticed that this only happens for controls in subVIs.  Perhaps you could restructure your program so that it no longer needs to view the front panel of its subVIs.  I will let you know if I find any other workarounds.  Thanks for the feedback!
    Regards,
    Burt S

  • SQL errors in SMS_STATE_SYSTEM - Trying to write NULL values to PropertyLocale

    Hi!
    We are getting a lot of the following error in the SMS_STATE_SYSTEM:
    Microsoft SQL Server reported SQL message 515, severity 16: [23000][515][Microsoft][SQL Server Native Client 11.0][SQL Server]Cannot insert the value NULL into column 'PropertyLocale', table 'CM_I20.dbo.CatalogAppModelProperties'; column does not allow
    nulls. UPDATE fails. : usp_BuildCatalogPropertyTable
    Please refer to your Configuration Manager documentation, SQL Server documentation, or the Microsoft Knowledge Base for further troubleshooting information.
    I understand what this message means but i cant find which applications are causing the problem.
    (actually i think I do but I still get the error messages after deleting them..)
    It seems it's trying to write NULL-values twice every 5 minutes, but from "where"? What is telling it to update the row with a NULL value?

    Here are part of the statesys.log - It's not very helpful ;)
    Seems it's the  'Update Application Catalog Tables'-task who is responsible for the mess.. But it does not say anything about the application..
    Started task 'Update Application Catalog Tables'
    SMS_STATE_SYSTEM 03.02.2014 16:18:14
    4744 (0x1288)
    *** exec usp_RunCatalogTableTasks NULL, 0xA102000074652041
    SMS_STATE_SYSTEM 03.02.2014 16:18:29
    4744 (0x1288)
    *** [23000][515][Microsoft][SQL Server Native Client 11.0][SQL Server]Cannot insert the value NULL into column 'PropertyLocale', table 'CM_I20.dbo.CatalogAppModelProperties'; column does not allow nulls. UPDATE fails. : usp_BuildCatalogPropertyTable
    SMS_STATE_SYSTEM 03.02.2014 16:18:29
    4744 (0x1288)
    *** exec usp_RunCatalogTableTasks NULL, 0xA102000074652041
    SMS_STATE_SYSTEM 03.02.2014 16:18:29
    4744 (0x1288)
    *** [24000][0][Microsoft][SQL Server Native Client 11.0]Invalid cursor state
    SMS_STATE_SYSTEM 03.02.2014 16:18:29
    4744 (0x1288)
    *** exec usp_RunCatalogTableTasks NULL, 0xA102000074652041
    SMS_STATE_SYSTEM 03.02.2014 16:18:33
    4744 (0x1288)
    *** [23000][515][Microsoft][SQL Server Native Client 11.0][SQL Server]Cannot insert the value NULL into column 'PropertyLocale', table 'CM_I20.dbo.CatalogAppModelProperties'; column does not allow nulls. UPDATE fails. : usp_BuildCatalogPropertyTable
    SMS_STATE_SYSTEM 03.02.2014 16:18:33
    4744 (0x1288)
    Task 'Update Application Catalog Tables' failed after running for 19 seconds.
    SMS_STATE_SYSTEM 03.02.2014 16:18:33
    4744 (0x1288)
    Will sleep until task 'Update NAP Restriction Error Summary' is due in 220 seconds.
    SMS_STATE_SYSTEM 03.02.2014 16:18:33
    4744 (0x1288)
    Main thread waiting for file change notification or timeout after 220 seconds.
    SMS_STATE_SYSTEM 03.02.2014 16:18:33
    4744 (0x1288)
    Inbox notification triggered, pause for 10 seconds....
    SMS_STATE_SYSTEM 03.02.2014 16:19:53
    4744 (0x1288)
    Found new state messages to process, starting processing thread
    SMS_STATE_SYSTEM 03.02.2014 16:20:03
    4744 (0x1288)
    Thread "State Message Processing Thread #0" id:3088 started
    SMS_STATE_SYSTEM 03.02.2014 16:20:03
    3088 (0x0C10)
    total chucks loaded (1) SMS_STATE_SYSTEM
    03.02.2014 16:20:03 3088 (0x0C10)
    total chucks loaded (0) SMS_STATE_SYSTEM
    03.02.2014 16:20:03 3088 (0x0C10)
    Thread "State Message Processing Thread #0" id:3088 terminated normally
    SMS_STATE_SYSTEM 03.02.2014 16:20:03
    3088 (0x0C10)
    CThreadMgr::ThreadTerminating - All threads have stopped running
    SMS_STATE_SYSTEM 03.02.2014 16:20:03
    3088 (0x0C10)
    Found new state messages to process, starting processing thread
    SMS_STATE_SYSTEM 03.02.2014 16:21:03
    4744 (0x1288)
    Thread "State Message Processing Thread #0" id:6468 started
    SMS_STATE_SYSTEM 03.02.2014 16:21:03
    6468 (0x1944)
    total chucks loaded (1) SMS_STATE_SYSTEM
    03.02.2014 16:21:03 6468 (0x1944)
    total chucks loaded (0) SMS_STATE_SYSTEM
    03.02.2014 16:21:03 6468 (0x1944)
    Thread "State Message Processing Thread #0" id:6468 terminated normally
    SMS_STATE_SYSTEM 03.02.2014 16:21:03
    6468 (0x1944)
    CThreadMgr::ThreadTerminating - All threads have stopped running
    SMS_STATE_SYSTEM 03.02.2014 16:21:03
    6468 (0x1944)
    Started task 'Update NAP Restriction Error Summary'
    SMS_STATE_SYSTEM 03.02.2014 16:22:18
    4744 (0x1288)
    Task 'Update NAP Restriction Error Summary' completed successfully after running for 15 seconds, with status 0.
    SMS_STATE_SYSTEM 03.02.2014 16:22:33
    4744 (0x1288)
    Will sleep until task 'Update Application Catalog Tables' is due in 60 seconds.
    SMS_STATE_SYSTEM 03.02.2014 16:22:33
    4744 (0x1288)
    Main thread waiting for file change notification or timeout after 60 seconds.
    SMS_STATE_SYSTEM 03.02.2014 16:22:33
    4744 (0x1288)
    Inbox notification triggered, pause for 10 seconds....
    SMS_STATE_SYSTEM 03.02.2014 16:23:20
    4744 (0x1288)
    Found new state messages to process, starting processing thread
    SMS_STATE_SYSTEM 03.02.2014 16:23:30
    4744 (0x1288)
    Thread "State Message Processing Thread #0" id:4076 started
    SMS_STATE_SYSTEM 03.02.2014 16:23:30
    4076 (0x0FEC)
    total chucks loaded (1) SMS_STATE_SYSTEM
    03.02.2014 16:23:30 4076 (0x0FEC)
    total chucks loaded (0) SMS_STATE_SYSTEM
    03.02.2014 16:23:30 4076 (0x0FEC)
    Thread "State Message Processing Thread #0" id:4076 terminated normally
    SMS_STATE_SYSTEM 03.02.2014 16:23:30
    4076 (0x0FEC)
    CThreadMgr::ThreadTerminating - All threads have stopped running
    SMS_STATE_SYSTEM 03.02.2014 16:23:30
    4076 (0x0FEC)
    Started task 'Update Application Catalog Tables'
    SMS_STATE_SYSTEM 03.02.2014 16:23:45
    4744 (0x1288)
    *** exec usp_RunCatalogTableTasks NULL, 0xA102000074652041
    SMS_STATE_SYSTEM 03.02.2014 16:24:00
    4744 (0x1288)
    *** [23000][515][Microsoft][SQL Server Native Client 11.0][SQL Server]Cannot insert the value NULL into column 'PropertyLocale', table 'CM_I20.dbo.CatalogAppModelProperties'; column does not allow nulls. UPDATE fails. : usp_BuildCatalogPropertyTable
    SMS_STATE_SYSTEM 03.02.2014 16:24:00
    4744 (0x1288)
    *** exec usp_RunCatalogTableTasks NULL, 0xA102000074652041
    SMS_STATE_SYSTEM 03.02.2014 16:24:00
    4744 (0x1288)
    *** [24000][0][Microsoft][SQL Server Native Client 11.0]Invalid cursor state
    SMS_STATE_SYSTEM 03.02.2014 16:24:00
    4744 (0x1288)
    *** exec usp_RunCatalogTableTasks NULL, 0xA102000074652041
    SMS_STATE_SYSTEM 03.02.2014 16:24:04
    4744 (0x1288)
    *** [23000][515][Microsoft][SQL Server Native Client 11.0][SQL Server]Cannot insert the value NULL into column 'PropertyLocale', table 'CM_I20.dbo.CatalogAppModelProperties'; column does not allow nulls. UPDATE fails. : usp_BuildCatalogPropertyTable
    SMS_STATE_SYSTEM 03.02.2014 16:24:04
    4744 (0x1288)
    Task 'Update Application Catalog Tables' failed after running for 19 seconds.
    SMS_STATE_SYSTEM 03.02.2014 16:24:04
    4744 (0x1288)
    Found new state messages to process, starting processing thread
    SMS_STATE_SYSTEM 03.02.2014 16:24:49
    4744 (0x1288)
    Thread "State Message Processing Thread #0" id:6800 started
    SMS_STATE_SYSTEM 03.02.2014 16:24:49
    6800 (0x1A90)
    total chucks loaded (1) SMS_STATE_SYSTEM
    03.02.2014 16:24:49 6800 (0x1A90)
    total chucks loaded (0) SMS_STATE_SYSTEM
    03.02.2014 16:24:49 6800 (0x1A90)
    Thread "State Message Processing Thread #0" id:6800 terminated normally
    SMS_STATE_SYSTEM 03.02.2014 16:24:49
    6800 (0x1A90)
    CThreadMgr::ThreadTerminating - All threads have stopped running
    SMS_STATE_SYSTEM 03.02.2014 16:24:49
    6800 (0x1A90)
    Will sleep until task 'Update NAP Restriction Summary' is due in 16 seconds.
    SMS_STATE_SYSTEM 03.02.2014 16:26:04
    4744 (0x1288)
    Main thread waiting for file change notification or timeout after 16 seconds.
    SMS_STATE_SYSTEM 03.02.2014 16:26:04
    4744 (0x1288)
    Inbox notification triggered, pause for 10 seconds....
    SMS_STATE_SYSTEM 03.02.2014 16:26:20
    4744 (0x1288)
    Started task 'Update NAP Restriction Summary'
    SMS_STATE_SYSTEM 03.02.2014 16:26:30
    4744 (0x1288)
    Task 'Update NAP Restriction Summary' completed successfully after running for 15 seconds, with status 0.
    SMS_STATE_SYSTEM 03.02.2014 16:26:45
    4744 (0x1288)
    Will sleep until task 'Update Application Catalog Tables' is due in 139 seconds.
    SMS_STATE_SYSTEM 03.02.2014 16:26:45
    4744 (0x1288)
    Main thread waiting for file change notification or timeout after 139 seconds.
    SMS_STATE_SYSTEM 03.02.2014 16:26:45
    4744 (0x1288)

  • Write OPC Values Delayed or Conflicting?

    We have Lookout 6.1 and KepWare OPC server.  We have values from a fieldpoint module that we are then writing out to tags on the Kepware OPC server which is connected to a Mitsubishi PLC network.  If the PLC writes a value to the same device we are writing to, the device stays that value for time "X" (seems to be upward of a minute or more) before the fieldpoint value is written to the PLC device again resetting the value to the current actual value.  The OPC device in Lookout is setup as OPC 1.0 (2.0 doesn't seem to work in Lookout), use asynchronous I/O, force refresh after write, reconnect automatically, update rate of 100 ms, deadband of 0.000 percent, no poll device, and no default access.
    If we reopen Lookout, then the devices all get updated with the current values from the fieldpoint system.

    It looks like correct behaviour from your description.
    For example, you have the connection OPClient.xxx.xxx = FieldPoint.xxx.xxx
    Whenever the FieldPoint's data changes, it will be written to the Kepware through OPClient object. But it doesn't know if the data on OPC Server is changed by other source. The Lookout data will be output to OPC Server only when it changes in Lookout.
    When the PLC writes a value to the same device or same address, Lookout doesn't know that it needs to write or reset the data again because the data source in Lookout doesn't change. 
    The problem I think is there are two sources that can write value to a same address. Maybe it's in need sometimes, but the confliction cannot be avoided.
    Let me know if I misunderstand your description.
    Ryan Shi
    National Instruments

  • Cannot write to the database

    I am using MySql 4.0 with Kodo.
    For the tutorials I can get pretty good result. But when I tried my own
    database, I can only browse but cannot write. when I write a new data
    item, the below exceptions popped up:
    kodo.util.FatalDataStoreException: The transaction has been rolled back.
    See the nested exceptions for details on the errors that occurred.
         at
    kodo.runtime.PersistenceManagerImpl.throwFlushException(PersistenceManagerImpl.java:1297)
         at
    kodo.runtime.PersistenceManagerImpl.flush(PersistenceManagerImpl.java:1159)
         at
    kodo.runtime.PersistenceManagerImpl.flushSafe(PersistenceManagerImpl.java:1042)
         at
    kodo.runtime.PersistenceManagerImpl.beforeCompletion(PersistenceManagerImpl.java:969)
         at kodo.runtime.LocalManagedRuntime.commit(LocalManagedRuntime.java:69)
         at
    kodo.runtime.PersistenceManagerImpl.commit(PersistenceManagerImpl.java:629)
         at reversetutorial.Finder.executeCreatQuery(Finder.java:108)
         at reversetutorial.Finder.main(Finder.java:44)
    NestedThrowablesStackTrace:
    kodo.util.DataStoreException: You have an error in your SQL syntax. Check
    the manual that corresponds to your MySQL server version for the right
    syntax to use near 'key, value) VALUES ('test', '50')' at line 1
    {prepstmnt 849515 INSERT INTO ns_config (key, value) VALUES (?, ?)
    [reused=0]} [code=1064, state=42000]
         at
    kodo.jdbc.sql.DBDictionary.newDataStoreException(DBDictionary.java:3400)
         at kodo.jdbc.sql.SQLExceptions.getDataStore(SQLExceptions.java:77)
         at kodo.jdbc.sql.SQLExceptions.getDataStore(SQLExceptions.java:63)
         at kodo.jdbc.sql.SQLExceptions.getDataStore(SQLExceptions.java:43)
         at
    kodo.jdbc.runtime.PreparedStatementManager.flush(PreparedStatementManager.java:210)
         at kodo.jdbc.runtime.UpdateManagerImpl.flush(UpdateManagerImpl.java:220)
         at kodo.jdbc.runtime.UpdateManagerImpl.flush(UpdateManagerImpl.java:95)
         at kodo.jdbc.runtime.JDBCStoreManager.flush(JDBCStoreManager.java:614)
         at
    kodo.runtime.DelegatingStoreManager.flush(DelegatingStoreManager.java:153)
         at
    kodo.runtime.PersistenceManagerImpl.flush(PersistenceManagerImpl.java:1159)
         at
    kodo.runtime.PersistenceManagerImpl.flushSafe(PersistenceManagerImpl.java:1042)
         at
    kodo.runtime.PersistenceManagerImpl.beforeCompletion(PersistenceManagerImpl.java:969)
         at kodo.runtime.LocalManagedRuntime.commit(LocalManagedRuntime.java:69)
         at
    kodo.runtime.PersistenceManagerImpl.commit(PersistenceManagerImpl.java:629)
         at reversetutorial.Finder.executeCreatQuery(Finder.java:108)
         at reversetutorial.Finder.main(Finder.java:44)
    NestedThrowablesStackTrace:
    com.solarmetric.jdbc.ReportingSQLException: You have an error in your SQL
    syntax. Check the manual that corresponds to your MySQL server version
    for the right syntax to use near 'key, value) VALUES ('test', '50')' at
    line 1 {prepstmnt 849515 INSERT INTO ns_config (key, value) VALUES (?, ?)
    [reused=0]} [code=1064, state=42000]
         at
    com.solarmetric.jdbc.LoggingConnectionDecorator.wrap(LoggingConnectionDecorator.java:124)
         at
    com.solarmetric.jdbc.LoggingConnectionDecorator.access$600(LoggingConnectionDecorator.java:19)
         at
    com.solarmetric.jdbc.LoggingConnectionDecorator$LoggingConnection$LoggingPreparedStatement.executeUpdate(LoggingConnectionDecorator.java:728)
         at
    com.solarmetric.jdbc.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:362)
         at
    kodo.jdbc.runtime.JDBCStoreManager$CancelPreparedStatement.executeUpdate(JDBCStoreManager.java:1716)
         at
    kodo.jdbc.runtime.PreparedStatementManager.flushInternal(PreparedStatementManager.java:235)
         at
    kodo.jdbc.runtime.PreparedStatementManager.flush(PreparedStatementManager.java:206)
         at kodo.jdbc.runtime.UpdateManagerImpl.flush(UpdateManagerImpl.java:220)
         at kodo.jdbc.runtime.UpdateManagerImpl.flush(UpdateManagerImpl.java:95)
         at kodo.jdbc.runtime.JDBCStoreManager.flush(JDBCStoreManager.java:614)
         at
    kodo.runtime.DelegatingStoreManager.flush(DelegatingStoreManager.java:153)
         at
    kodo.runtime.PersistenceManagerImpl.flush(PersistenceManagerImpl.java:1159)
         at
    kodo.runtime.PersistenceManagerImpl.flushSafe(PersistenceManagerImpl.java:1042)
         at
    kodo.runtime.PersistenceManagerImpl.beforeCompletion(PersistenceManagerImpl.java:969)
         at kodo.runtime.LocalManagedRuntime.commit(LocalManagedRuntime.java:69)
         at
    kodo.runtime.PersistenceManagerImpl.commit(PersistenceManagerImpl.java:629)
         at reversetutorial.Finder.executeCreatQuery(Finder.java:108)
         at reversetutorial.Finder.main(Finder.java:44)
    java.sql.SQLException: You have an error in your SQL syntax. Check the
    manual that corresponds to your MySQL server version for the right syntax
    to use near 'key, value) VALUES ('test', '50')' at line 1
         at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2921)
         at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1570)
         at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1665)
         at com.mysql.jdbc.Connection.execSQL(Connection.java:2978)
         at com.mysql.jdbc.Connection.execSQL(Connection.java:2902)
         at
    com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:930)
         at
    com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1159)
         at
    com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1076)
         at
    com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1061)
         at
    com.solarmetric.jdbc.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:362)
         at
    com.solarmetric.jdbc.PoolConnection$PoolPreparedStatement.executeUpdate(PoolConnection.java:358)
         at
    com.solarmetric.jdbc.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:362)
         at
    com.solarmetric.jdbc.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:362)
         at
    com.solarmetric.jdbc.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:362)
         at
    com.solarmetric.jdbc.LoggingConnectionDecorator$LoggingConnection$LoggingPreparedStatement.executeUpdate(LoggingConnectionDecorator.java:724)
         at
    com.solarmetric.jdbc.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:362)
         at
    kodo.jdbc.runtime.JDBCStoreManager$CancelPreparedStatement.executeUpdate(JDBCStoreManager.java:1716)
         at
    kodo.jdbc.runtime.PreparedStatementManager.flushInternal(PreparedStatementManager.java:235)
         at
    kodo.jdbc.runtime.PreparedStatementManager.flush(PreparedStatementManager.java:206)
         at kodo.jdbc.runtime.UpdateManagerImpl.flush(UpdateManagerImpl.java:220)
         at kodo.jdbc.runtime.UpdateManagerImpl.flush(UpdateManagerImpl.java:95)
         at kodo.jdbc.runtime.JDBCStoreManager.flush(JDBCStoreManager.java:614)
         at
    kodo.runtime.DelegatingStoreManager.flush(DelegatingStoreManager.java:153)
         at
    kodo.runtime.PersistenceManagerImpl.flush(PersistenceManagerImpl.java:1159)
         at
    kodo.runtime.PersistenceManagerImpl.flushSafe(PersistenceManagerImpl.java:1042)
         at
    kodo.runtime.PersistenceManagerImpl.beforeCompletion(PersistenceManagerImpl.java:969)
         at kodo.runtime.LocalManagedRuntime.commit(LocalManagedRuntime.java:69)
         at
    kodo.runtime.PersistenceManagerImpl.commit(PersistenceManagerImpl.java:629)
         at reversetutorial.Finder.executeCreatQuery(Finder.java:108)
         at reversetutorial.Finder.main(Finder.java:44)
    Exception in thread "main"
    This is not a problem of Database version.
    I found the sql statement that Kodo generated is like:
    insert into ns_config (key, value) values ("test","50")
    this is not correct, the correct should be:
    insert into ns_config (`key`, `value`) values ('test','50')
    but I found the script created with reversemappingtool is all correct
    (with the ` symbol in the statement).
    So this problem really caught me.
    ps: below is the java code I use for testing:
    1. Finder.java
    package reversetutorial;
    import java.lang.reflect.Constructor;
    import java.util.*;
    import javax.jdo.*;
    import kodo.runtime.*;
    public class Finder
         *     Usage: java reversetutorial.Finder <JDOQL query>
         public static void main (String[] args)
              if (args.length != 1)
                   System.err.println ("Usage: java reversetutorial.Finder "
                        + "<JDOQL query>");
                   return;
                   executeCreatQuery();
         private static void executeCreatQuery ()
              Constructor[] constructors = NsConfig.class.getDeclaredConstructors
              for (int i = 0; i < constructors.length; i++)
                        // Find an appropriate constructor.
                   Class[] paramTypes = constructors.getParameterTypes ();
                   if (paramTypes.length == 2 &&
                             paramTypes[0] == String.class)
                        Object[] params = new Object[] {
                             "test", "50"
                        Object newObject = null;
                        try
                        newObject = constructors[i].newInstance (params);
                        } catch (Exception e) {
                             System.out.println("error!");
                        PersistenceManagerFactory pmf =
              KodoHelper.getPersistenceManagerFactory
    ("kodo.properties");
              PersistenceManager pm = pmf.getPersistenceManager ();
                        Transaction tx = pm.currentTransaction();
                        tx.begin();
                        pm.makePersistent(newObject);
                        tx.commit();
                        pm.close ();
                        pmf.close ();
    2. NsConfig.java
    package reversetutorial;
    * Auto-generated by:
    * kodo.jdbc.meta.ReverseMappingTool$ReverseCodeGenerator
    public class NsConfig {
         private String key;
         private String value;
         public NsConfig() {
         public NsConfig(String key, String value) {
              this.key = key;
              this.value = value;
         public String getKey() {
              return key;
         public void setKey(String key) {
              this.key = key;
         public String getValue() {
              return value;
         public void setValue(String value) {
              this.value = value;

    Odd. My guess is that maybe "key" is a reserved word in MySQL 4, but
    was allowed during table creation for some reason. I assume this is a
    fresh DB created by Kodo? If so, I would drop it, delete the .mapping
    files for the classes, and start over after setting the following
    configuration property:
    kodo.jdbc.DBDictionary: ReservedWords=KEY

  • Write key value problem

    Hello friends!
    I have run into a problem. I have a dialog box VI which asks for a serial number for each connector. There is an End button on the same VI. Its purpose if to cancel the calling of subsequent MAC no dialog boxes and serial number dialog box and to write a value of false against the enabled status of the serial ports (including the current serial port, which is being scanned). What is happening is that the serial port  for which the end button is pressed gets a true written against its enabled state (COM Port 0 Enabled=TRUE) in the config file.
    I have been trying to find the source of error but to no avail. So I finally ask for my dear friends help at NI.
    I am attaching the two VIs (these are part of a project so they use a lot of other VI unrelated to the current problem) (kindly let me know if more VIs are required for debugging).
    Thanks a lot for taking time out to let me out of my predicament.
    Attachments:
    WriteConfig.zip ‏61 KB

    I found your code extremely difficult to follow because of your excessive use of sequence frames and local variables. All of the code you showed can be written without using sequence frames, and most, if not all of the local variables can be eliminated. This would make the code much easier to follow and debug. If you right-click on the sequence frame and select Replace -> Flat Sequence you will see what I mean. It seems you have a background in text-based coding. As it is, here's what I can say:
    "Enter Serial Number" VI 
    You are not properly using the event structure. For example, in your "End" event case you set a separate Boolean control and fire off the event for a value change in one of the cluster elements. Why? This second "End Loop" Boolean is competely superflous. Delete it. The cluster is not visible to the user, so they cannot change it. Place the code that's in that event case in the "End" event case, and place the "End" button in that event case and wire it out to the stop terminal of the loop. 
    The "Serial No" value change event case is completeley unnecessary. You're writing the value that it's being changed to back to the control. It's already been changed!
    Change the mechanical action of "OK1" to the default of "Latch When Released", and change the "Mouse Down" event case to "Value Changed". Place the "OK1" Boolean inside that event case. This event will fire when the user presses the button and lets go of the mouse button while the cursor is still on the button, adhering to standard user interfaces. Thus, if they want to cancel the button press they can. The way you have it, this is not possible.
    The "Connector In" control is not necessary. All you're doing is writing its value to another control which is the big string input. Just make this big string input your terminal control, and delete the superflous "Connector In".
    Frame 3 serves no purpose.
    Frame 4 serves no purpose since at no other time do you actually write a True to "Cancel.
    "LaunchSNM..."
    Same comment regarding frames and local variables.
    In Frame0 you do not need to use Build Array. Simply wire out the "Connector" element straight out of the loop and auto-index it to get your array automatically.
    Use a shift register instead of a local variable to carry around a value in a loop. This pertains to your "Scan End" Boolean.

  • TS3276 I cannot connect to my outgoing email server on my macBook pro, yet I can, for the same email account on my iPad. Also I can send emails from the other email account I have on my MacBook...really confused can anyone help?

    I cannot connect to my outgoing email server on my macBook pro, yet I can, for the same email account on my iPad. Also I can send emails from the other email account I have on my MacBook...really confused can anyone help?

    Sometimes deleting the account and then re-creating it can solve this issue
    Write down all the information in accounts before doing this
    Highlight the account on the left and click the minus button
    Then click the plus button to add the new account and follow the prompts

  • OpenSQLException - Cannot assign double value

    Hello,
      I have some table in database with field of type 'double'. I use JDBC to store data in this table and sometimes I would like to place special values in it, eg:
    preparedStatement.setDouble(1, Double.MIN_VALUE);
    Unfortunately I get exception like the one below.
    My question is: what is the allowed range of values for type 'double' in database according to OpenSQL spec ?
    Thanks!
    Marcin Zduniak
      com.sap.sql.log.OpenSQLException: Cannot assign double value 4.9E-324 to host variable 3 because it is not in the allowed range of +/- to +/-.
        at com.sap.sql.log.Syslog.createAndLogOpenSQLException(Syslog.java:85)
        at com.sap.sql.log.Syslog.createAndLogOpenSQLException(Syslog.java:124)
        at com.sap.sql.jdbc.common.CommonPreparedStatement.setDouble(CommonPreparedStatement.java:534)
        at com.sap.engine.services.dbpool.wrappers.PreparedStatementWrapper.setDouble(PreparedStatementWrapper.java:281)
        at pl.com.bcc.hai.SpecificationBean0Persistent.ejb_iUpdate(SpecificationBean0Persistent.java:558)
        ... 42 more
    Full exception chain:
    com.sap.engine.services.ejb.exceptions.BaseEJBException: Transaction system failure in method pl.com.bcc.hai.SpecificationLocalLocalObjectImpl0.setTargetValue(java.lang.Double).
         at pl.com.bcc.hai.SpecificationLocalLocalObjectImpl0.setTargetValue(SpecificationLocalLocalObjectImpl0.java:4537)
         at pl.com.bcc.hai.conf.BCC_H_CConfig.setSTimeSeriesesAIM(BCC_H_CConfig.java:4129)
         at pl.com.bcc.hai.conf.wdp.InternalBCC_H_CConfig.setSTimeSeriesesAIM(InternalBCC_H_CConfig.java:1038)
         at pl.com.bcc.hai.conf.wdp.IPublicBCC_H_CConfig$ISTimeSeriesesElement.setAIM(IPublicBCC_H_CConfig.java:3651)
         at pl.com.bcc.hai.conf.wdp.IPublicBCC_H_CConfig$ISTimeSeriesesElement.wdSetObject(IPublicBCC_H_CConfig.java:3786)
         at com.sap.tc.webdynpro.progmodel.context.MappedNodeElement.wdSetObject(MappedNodeElement.java:365)
         at pl.com.bcc.hai.conf.wdp.IPrivateSpecificationEditor$ISTimeSeriesesElement.wdSetObject(IPrivateSpecificationEditor.java:1737)
         at com.sap.tc.webdynpro.progmodel.context.AttributePointer.setObject(AttributePointer.java:223)
         at com.sap.tc.webdynpro.clientserver.data.DataContainer.transportPendingUserInput(DataContainer.java:1267)
         at com.sap.tc.webdynpro.clientserver.data.DataContainer.transportPendingUserInput(DataContainer.java:474)
         at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.transport(ClientComponent.java:548)
         at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.transport(ClientComponent.java:552)
         at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.transport(ClientApplication.java:701)
         at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.transportData(WebDynproMainTask.java:717)
         at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.execute(WebDynproMainTask.java:649)
         at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:59)
         at com.sap.tc.webdynpro.clientserver.cal.ClientManager.doProcessing(ClientManager.java:251)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doWebDynproProcessing(DispatcherServlet.java:154)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:116)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:55)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    Caused by: com.sap.engine.services.ts.exceptions.BaseRollbackException: Exception in beforeCompletition of ( SAP J2EE Engine JTA Transaction : [1a55ffffffb01205ffffffd4ffffffdd] ).
         at com.sap.engine.services.ts.jta.impl.TransactionImpl.commit(TransactionImpl.java:232)
         at pl.com.bcc.hai.SpecificationLocalLocalObjectImpl0.setTargetValue(SpecificationLocalLocalObjectImpl0.java:4486)
         ... 35 more
    Caused by: com.sap.engine.services.ejb.exceptions.BaseEJBException: SQLException while the data is being flushed. The persistent object is pl.com.bcc.hai.SpecificationBean0Persistent.
         at com.sap.engine.services.ejb.entity.pm.UpdatablePersistent.ejbFlush(UpdatablePersistent.java:101)
         at com.sap.engine.services.ejb.entity.pm.TransactionContext.flushAll(TransactionContext.java:429)
         at com.sap.engine.services.ejb.entity.pm.TransactionContext.flush(TransactionContext.java:378)
         at com.sap.engine.services.ejb.entity.pm.TransactionContext.beforeCompletion(TransactionContext.java:506)
         at com.sap.engine.services.ejb.entity.SynchronizationList.beforeCompletion(SynchronizationList.java:136)
         at com.sap.engine.services.ts.jta.impl.TransactionImpl.commit(TransactionImpl.java:220)
         ... 36 more
    Caused by: com.sap.sql.log.OpenSQLException: Cannot assign double value 4.9E-324 to host variable 3 because it is not in the allowed range of +/- to +/-.
         at com.sap.sql.log.Syslog.createAndLogOpenSQLException(Syslog.java:85)
         at com.sap.sql.log.Syslog.createAndLogOpenSQLException(Syslog.java:124)
         at com.sap.sql.jdbc.common.CommonPreparedStatement.setDouble(CommonPreparedStatement.java:534)
         at com.sap.engine.services.dbpool.wrappers.PreparedStatementWrapper.setDouble(PreparedStatementWrapper.java:281)
         at pl.com.bcc.hai.SpecificationBean0Persistent.ejb_iUpdate(SpecificationBean0Persistent.java:558)
         at com.sap.engine.services.ejb.entity.pm.UpdatablePersistent.ejbFlush(UpdatablePersistent.java:80)
         ... 41 more
    com.sap.engine.services.ts.exceptions.BaseRollbackException: Exception in beforeCompletition of ( SAP J2EE Engine JTA Transaction : [1a55ffffffb01205ffffffd4ffffffdd] ).
         at com.sap.engine.services.ts.jta.impl.TransactionImpl.commit(TransactionImpl.java:232)
         at pl.com.bcc.hai.SpecificationLocalLocalObjectImpl0.setTargetValue(SpecificationLocalLocalObjectImpl0.java:4486)
         at pl.com.bcc.hai.conf.BCC_H_CConfig.setSTimeSeriesesAIM(BCC_H_CConfig.java:4129)
         at pl.com.bcc.hai.conf.wdp.InternalBCC_H_CConfig.setSTimeSeriesesAIM(InternalBCC_H_CConfig.java:1038)
         at pl.com.bcc.hai.conf.wdp.IPublicBCC_H_CConfig$ISTimeSeriesesElement.setAIM(IPublicBCC_H_CConfig.java:3651)
         at pl.com.bcc.hai.conf.wdp.IPublicBCC_H_CConfig$ISTimeSeriesesElement.wdSetObject(IPublicBCC_H_CConfig.java:3786)
         at com.sap.tc.webdynpro.progmodel.context.MappedNodeElement.wdSetObject(MappedNodeElement.java:365)
         at pl.com.bcc.hai.conf.wdp.IPrivateSpecificationEditor$ISTimeSeriesesElement.wdSetObject(IPrivateSpecificationEditor.java:1737)
         at com.sap.tc.webdynpro.progmodel.context.AttributePointer.setObject(AttributePointer.java:223)
         at com.sap.tc.webdynpro.clientserver.data.DataContainer.transportPendingUserInput(DataContainer.java:1267)
         at com.sap.tc.webdynpro.clientserver.data.DataContainer.transportPendingUserInput(DataContainer.java:474)
         at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.transport(ClientComponent.java:548)
         at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.transport(ClientComponent.java:552)
         at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.transport(ClientApplication.java:701)
         at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.transportData(WebDynproMainTask.java:717)
         at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.execute(WebDynproMainTask.java:649)
         at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:59)
         at com.sap.tc.webdynpro.clientserver.cal.ClientManager.doProcessing(ClientManager.java:251)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doWebDynproProcessing(DispatcherServlet.java:154)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:116)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:55)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    Caused by: com.sap.engine.services.ejb.exceptions.BaseEJBException: SQLException while the data is being flushed. The persistent object is pl.com.bcc.hai.SpecificationBean0Persistent.
         at com.sap.engine.services.ejb.entity.pm.UpdatablePersistent.ejbFlush(UpdatablePersistent.java:101)
         at com.sap.engine.services.ejb.entity.pm.TransactionContext.flushAll(TransactionContext.java:429)
         at com.sap.engine.services.ejb.entity.pm.TransactionContext.flush(TransactionContext.java:378)
         at com.sap.engine.services.ejb.entity.pm.TransactionContext.beforeCompletion(TransactionContext.java:506)
         at com.sap.engine.services.ejb.entity.SynchronizationList.beforeCompletion(SynchronizationList.java:136)
         at com.sap.engine.services.ts.jta.impl.TransactionImpl.commit(TransactionImpl.java:220)
         ... 36 more
    Caused by: com.sap.sql.log.OpenSQLException: Cannot assign double value 4.9E-324 to host variable 3 because it is not in the allowed range of +/- to +/-.
         at com.sap.sql.log.Syslog.createAndLogOpenSQLException(Syslog.java:85)
         at com.sap.sql.log.Syslog.createAndLogOpenSQLException(Syslog.java:124)
         at com.sap.sql.jdbc.common.CommonPreparedStatement.setDouble(CommonPreparedStatement.java:534)
         at com.sap.engine.services.dbpool.wrappers.PreparedStatementWrapper.setDouble(PreparedStatementWrapper.java:281)
         at pl.com.bcc.hai.SpecificationBean0Persistent.ejb_iUpdate(SpecificationBean0Persistent.java:558)
         at com.sap.engine.services.ejb.entity.pm.UpdatablePersistent.ejbFlush(UpdatablePersistent.java:80)
         ... 41 more

    Hi,
       Thank you for your replay. I didn't touch DB directly, I defined db structure through NetWeaver Dictionary perspective and table that i'm interested in is defined like the one on this screen: http://zduniak.com/tmp/sap_dictionary_double.png
    So I'm looking for generic solution (SAP OpenSQL), not specific to any particular DB vendor.
    Maybe there is somewhere on help.sap.com (i couldn't find unfortunately) information what is the allowed range of values for type 'double' in database according to OpenSQL spec ?
    Thank,
      Marcin Zduniak

  • SharePoint List Form using InfoPath 2010 "Cannot insert the value NULL into column 'tp_DocId', table 'Content_SP_00003.dbo.AllUserData'; column does not allow nulls"

    I am experiencing issue with my SharePoint site , when I am trying to add new Item in List . Error given below :--> 02/03/2015 08:23:36.13 w3wp.exe (0x2E04) 0x07E8 SharePoint Server Logging Correlation Data 9gc5 Verbose Thread change; resetting trace
    level override to 0; resetting correlation to e2e9cddc-cf35-4bf8-b4f3-021dc91642da c66c2c17-faaf-4ff9-a414-303aa4b4726b e2e9cddc-cf35-4bf8-b4f3-021dc91642da 02/03/2015 08:23:36.13 w3wp.exe (0x2E04) 0x07E8 Document Management Server Document Management 52od
    Medium MetadataNavigationContext Page_InitComplete: No XsltListViewWebPart was found on this page[/sites/00003/Lists/PM%20Project%20Status/NewForm.aspx?RootFolder=&IsDlg=1]. Hiding key filters and downgrading tree functionality to legacy ListViewWebPart(v3)
    level for this list. e2e9cddc-cf35-4bf8-b4f3-021dc91642da 02/03/2015 08:23:36.17 w3wp.exe (0x1B94) 0x1A0C SharePoint Server Logging Correlation Data 77a3 Verbose Starting correlation. b4d14aec-5bd4-4fb1-b1e3-589ba337b111 02/03/2015 08:23:36.17 w3wp.exe (0x1B94)
    0x1A0C SharePoint Server Logging Correlation Data 77a3 Verbose Ending correlation. b4d14aec-5bd4-4fb1-b1e3-589ba337b111 02/03/2015 08:23:36.31 w3wp.exe (0x2E04) 0x07E8 SharePoint Foundation Database 880i High System.Data.SqlClient.SqlException: Cannot insert
    the value NULL into column 'tp_DocId', table 'Content_SP_00003.dbo.AllUserData'; column does not allow nulls. INSERT fails. The statement has been terminated. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) at
    System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject
    stateObj) at System.Data.SqlClient.SqlDataReader.ConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavi... e2e9cddc-cf35-4bf8-b4f3-021dc91642da 02/03/2015
    08:23:36.31* w3wp.exe (0x2E04) 0x07E8 SharePoint Foundation Database 880i High ...or runBehavior, String resetOptionsString) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream,
    Boolean async) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior,
    RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior) at Microsoft.SharePoint.Utilities.SqlSession.ExecuteReader(SqlCommand
    command, CommandBehavior behavior,

    Are you trying to setup P2P? Could you explain the process you followed completely? By anychance you create the backup and then created the publication?
    Regards, Ashwin Menon My Blog - http:\\sqllearnings.com

  • Cannot write to transaction log "C:\Program Files (x86)\SAP BusinessObjects\sqlanywhere\database\BI4_Audit.log

    Hi friends,
    My server Intelligence Agent (SIA) can not start because the database service "SQLAnywhereForBI" can't start also. I got the following error :
    "I . 08/09 20:35:06. A read failed with error code: (1392), Le fichier ou le répertoire est endommagé et illisible.
    E. 08/09 20:35:06. Fatal error:  cannot write to transaction log "C:\Program Files (x86)\SAP BusinessObjects\sqlanywhere\database\BI4_Audit.log"
    E. 08/09 20:35:06. unable to start database "C:\Program Files (x86)\SAP BusinessObjects\sqlanywhere\database\BI4_CMS.db"
    E. 08/09 20:35:06. Error writing to transaction log file
    I. 08/09 20:35:06. Database server shutdown due to startup error "
    inside the database log file.
    Please, can you help me

    I found the solution by following the advice given on the following forum:
    http://evtechnologies.com/transaction-logs-on-sybase-sql-anywhere-and-sap-​​businessobjects-bi-4-1
    In fact, I crushed the BI4_Audit.db and BI4_Audit.log files and I replaced with others that I got from another machine where I installed BO again and where the files are not corrupted . After I logged in to the CMS database by executing the command in the command line:
    dbisql -c "UID = DBA; PWD = mypassword; BI4 Server =; DBF = C: \ Program Files (x86) \ SAP BusinessObjects \ sqlanywhere \ database \ BI4_CMS.db."
    Once connected, I start the command:
    alter database 'C: \ Program Files (x86) \ SAP BusinessObjects \ sqlanywhere \ database \ BI4_Audit.db' alter log off;
    The query runs successfully.
    And that's good, I can be connected to BO smoothly.
    Thank you again Eric

Maybe you are looking for