Warning while loading example VIs for XPS motion controller

Hi,
I'm new to Labview. I want to control the XPS motion controller using Labview and I wanted to get started with the examples provided by XPS along with the drivers. But I get a warning while loading the example. I have attached a screenshot of it. Please help.
Also, opening the example opens just the front panel. How do I open the bloack diagram of the example VI?
Thank you.
Attachments:
warning.png ‏40 KB

That warning is nothing to be worried about -- it just means that things were found in a new location, which is normal when you move code around.  Once you save the project it should go away.
To look at the block diagram, use Window - Show Block Diagram, or simply Ctrl+E.
Good luck!
Edwin

Similar Messages

  • Excel, PowerView error in SharePoint 2013: "An error occurred while loading the model for the item or data source 'EntityDataSource'. Verify that the connection information is correct and that you have permissions to access the data source."

    I've installed SQL Server 2012 SP1 + SP server 2012 + SSRS and PowerPivot add-in.
    I also configured excel services correctly. Everything works fine but the powerview doesn't work!
    While I open an excel workbook consist of a PowerView report an error occurs: "An error occurred while loading the model for the item or data source 'EntityDataSource'. Verify that the connection information is correct and that you have permissions
    to access the data source."
    error detail: 
    <detail><ErrorCode xmlns="http://www.microsoft.com/sql/reportingservices">rsCannotRetrieveModel</ErrorCode><HttpStatus xmlns="http://www.microsoft.com/sql/reportingservices">400</HttpStatus><Message xmlns="http://www.microsoft.com/sql/reportingservices">An
    error occurred while loading the model for the item or data source 'EntityDataSource'. Verify that the connection information is correct and that you have permissions to access the data source.</Message><HelpLink xmlns="http://www.microsoft.com/sql/reportingservices">http://go.microsoft.com/fwlink/?LinkId=20476&amp;EvtSrc=Microsoft.ReportingServices.Diagnostics.Utilities.ErrorStrings&amp;EvtID=rsCannotRetrieveModel&amp;ProdName=Microsoft%20SQL%20Server%20Reporting%20Services&amp;ProdVer=11.0.3128.0</HelpLink><ProductName
    xmlns="http://www.microsoft.com/sql/reportingservices">Microsoft SQL Server Reporting Services</ProductName><ProductVersion xmlns="http://www.microsoft.com/sql/reportingservices">11.0.3128.0</ProductVersion><ProductLocaleId
    xmlns="http://www.microsoft.com/sql/reportingservices">127</ProductLocaleId><OperatingSystem xmlns="http://www.microsoft.com/sql/reportingservices">OsIndependent</OperatingSystem><CountryLocaleId xmlns="http://www.microsoft.com/sql/reportingservices">1033</CountryLocaleId><MoreInformation
    xmlns="http://www.microsoft.com/sql/reportingservices"><Source>ReportingServicesLibrary</Source><Message msrs:ErrorCode="rsCannotRetrieveModel" msrs:HelpLink="http://go.microsoft.com/fwlink/?LinkId=20476&amp;EvtSrc=Microsoft.ReportingServices.Diagnostics.Utilities.ErrorStrings&amp;EvtID=rsCannotRetrieveModel&amp;ProdName=Microsoft%20SQL%20Server%20Reporting%20Services&amp;ProdVer=11.0.3128.0"
    xmlns:msrs="http://www.microsoft.com/sql/reportingservices">An error occurred while loading the model for the item or data source 'EntityDataSource'. Verify that the connection information is correct and that you have permissions to access the
    data source.</Message><MoreInformation><Source>Microsoft.ReportingServices.ProcessingCore</Source><Message msrs:ErrorCode="rsErrorOpeningConnection" msrs:HelpLink="http://go.microsoft.com/fwlink/?LinkId=20476&amp;EvtSrc=Microsoft.ReportingServices.Diagnostics.Utilities.ErrorStrings&amp;EvtID=rsErrorOpeningConnection&amp;ProdName=Microsoft%20SQL%20Server%20Reporting%20Services&amp;ProdVer=11.0.3128.0"
    xmlns:msrs="http://www.microsoft.com/sql/reportingservices">Cannot create a connection to data source 'EntityDataSource'.</Message><MoreInformation><Source></Source><Message>For more information about this error navigate
    to the report server on the local server machine, or enable remote errors</Message></MoreInformation></MoreInformation></MoreInformation><Warnings xmlns="http://www.microsoft.com/sql/reportingservices" /></detail>
    Please help me to solve this issue. I don't know if uploading the excel workbook is enough or maybe It needed to connect to another data source.
    I Appreciate in advance.

    Hi Ali.y,
    Based on the current error message, the error can be related to the
    Claims to Windows Token Service (C2WTS) and is an expected error under certain conditions. To verify the issue, please check the aspects below:
         1. The C2WTS Windows service and C2WTS SharePoint service are both running.
         2. Check the SQL Server Browser service is running on the machine that has the PowerPivot instance of SSAS.
         3. Check the domain. You're signing into SharePoint with a user account in some domain (call it Domain A).  When Domain A is equal to Domain B which SharePoint server itself is located (they're the same domain), or Domain
    A trusts Domain B.
    In addition, the error may be caused by Kerberos authentication issue due to missing SPN. In order to make the Kerberos authentication work, you need to configure the Analysis Services to run under a domain account, and register the SPNs for the Analysis
    Services server.
    To create the SPN for the Analysis Services server that is running under a domain account, run the following commands at a command prompt:
    • Setspn.exe -S MSOLAPSvc.3/Fully_Qualified_domainName OLAP_Service_Startup_Account
    Note: Fully_Qualified_domainName is a placeholder for the FQDN.
    • Setspn.exe -S MSOLAPSvc.3/serverHostName OLAP_Service_Startup_Account
    For more information, please see:
    How to configure SQL Reporting Services 2012 in SharePoint Server 2010 / 2013 for Kerberos authentication
    Regards,
    Heidi Duan
    Heidi Duan
    TechNet Community Support

  • An error occurred while loading the model for the item or data source 'EntityDataSource'.

    Hi Team,
    We are trying to configure the Power View in SharePoint 2013. We did the entire configuration by following below steps. When we open the excel workbook (2013) containing
    Power View sheet (using excel web services) deployed in SharePoint Document library, we get the below error.
    “An error occurred while loading the model for the item or data source
    'EntityDataSource'. Verify that the connection information is correct and that you have permissions to access the data source.”
    Steps followed for configuring Power View in SharePoint Server 2013 (Single Machine setup):
    Installed SharePoint Server 2013 Enterprise edition
    Did not configure it at this time
    Installed SQL Server 2012 with default instance installation (selected every features)
    Later installed SP1 for SQL Server 2012
    After that installed Analysis Server in SharePoint mode (SQL Server PowerPivot for SharePoint)
    Again installed another Analysis Server and selected the tabular mode of data model
    Then ran the configuration wizard of Share point 2013 for farm configuration (only for central admin creation)
    Later we ran the PowerPivot for SharePoint 2013 (spPowerpivot.msi)
    Then using the Power Pivot Configuration tool for 2013 and completed all the steps and configured the excel service and registered the above two analysis service instances. 
    Questions/Doubts are:
    Is our steps followed as mentioned above is correct for configuring Power View in SharePoint Server 2013 Enterprise edition?
    Is the SQL Server 2012 Enterprise edition with SP1 installed is sufficient to view Power View sheets in SharePoint 2013 or we need to use the SQL Server 2012 SP1
    CTP3 software for Power View feature as mentioned in the below link.
    http://technet.microsoft.com/en-us/library/jj219634.aspx
    but we don’t have an option to download CTP3 software now from Microsoft site
    Or do we need to install
    Microsoft SQL Server 2012 With Power View For Multidimensional Models
    CTP
    http://www.microsoft.com/en-sg/download/details.aspx?id=35822
    Few blogs says that SQL Server 2012 instance should have been installed with SP1 at one go (not seperately).
    http://www.microsoft.com/en-in/download/details.aspx?id=35575
    Error detail :
    <detail><ErrorCode xmlns="http://www.microsoft.com/sql/reportingservices">rsCannotRetrieveModel</ErrorCode><HttpStatus xmlns="http://www.microsoft.com/sql/reportingservices">400</HttpStatus><Message
    xmlns="http://www.microsoft.com/sql/reportingservices">An error occurred while loading the model for the item or data source 'EntityDataSource'. Verify that the connection information is correct and that you have permissions to access
    the data source.</Message><HelpLink xmlns="http://www.microsoft.com/sql/reportingservices">http://go.microsoft.com/fwlink/?LinkId=20476&amp;EvtSrc=Microsoft.ReportingServices.Diagnostics.Utilities.ErrorStrings&amp;EvtID=rsCannotRetrieveModel&amp;ProdName=Microsoft%20SQL%20Server%20Reporting%20Services&amp;ProdVer=11.0.3000.0</HelpLink><ProductName
    xmlns="http://www.microsoft.com/sql/reportingservices">Microsoft SQL Server Reporting Services</ProductName><ProductVersion xmlns="http://www.microsoft.com/sql/reportingservices">11.0.3000.0</ProductVersion><ProductLocaleId
    xmlns="http://www.microsoft.com/sql/reportingservices">127</ProductLocaleId><OperatingSystem xmlns="http://www.microsoft.com/sql/reportingservices">OsIndependent</OperatingSystem><CountryLocaleId xmlns="http://www.microsoft.com/sql/reportingservices">1033</CountryLocaleId><MoreInformation
    xmlns="http://www.microsoft.com/sql/reportingservices"><Source>ReportingServicesLibrary</Source><Message msrs:ErrorCode="rsCannotRetrieveModel" msrs:HelpLink="http://go.microsoft.com/fwlink/?LinkId=20476&amp;EvtSrc=Microsoft.ReportingServices.Diagnostics.Utilities.ErrorStrings&amp;EvtID=rsCannotRetrieveModel&amp;ProdName=Microsoft%20SQL%20Server%20Reporting%20Services&amp;ProdVer=11.0.3000.0"
    xmlns:msrs="http://www.microsoft.com/sql/reportingservices">An error occurred while loading the model for the item or data source 'EntityDataSource'. Verify that the connection information is correct and that you have permissions to access
    the data source.</Message><MoreInformation><Source>Microsoft.ReportingServices.ProcessingCore</Source><Message msrs:ErrorCode="rsErrorOpeningConnection" msrs:HelpLink="http://go.microsoft.com/fwlink/?LinkId=20476&amp;EvtSrc=Microsoft.ReportingServices.Diagnostics.Utilities.ErrorStrings&amp;EvtID=rsErrorOpeningConnection&amp;ProdName=Microsoft%20SQL%20Server%20Reporting%20Services&amp;ProdVer=11.0.3000.0"
    xmlns:msrs="http://www.microsoft.com/sql/reportingservices">Cannot create a connection to data source 'EntityDataSource'.</Message><MoreInformation><Source>Microsoft.AnalysisServices.SPClient</Source><Message>We
    cannot locate a server to load the workbook Data Model.</Message><MoreInformation><Source></Source><Message>We cannot locate a server to load the workbook Data Model.</Message><MoreInformation><Source>Microsoft.Office.Excel.Server.WebServices</Source><Message>We
    cannot locate a server to load the workbook Data Model.</Message></MoreInformation></MoreInformation></MoreInformation></MoreInformation></MoreInformation><Warnings xmlns="http://www.microsoft.com/sql/reportingservices"
    /></detail>
    Please help me in  configuring Power View for SharePoint 2013.
    Thanks in advance.
    Pavan Kumar

    I'll bet that I know the answer to this one - and you probably won't like it ;)
    Here's the telling portion of that error:  "We cannot locate a server to load the workbook Data Model."
    This error is thrown in two scenarios; the first, when you haven't registered an analysis server.  The second appears to be the issue you're having:
    PowerPivot requires SQL Server 2012 SP1.  Microsoft issued a release of SQL Server 2012 SP1 that really wasn't SP1...
    Check the version of SQL that you are running.  It should be version 11.0.3000 or greater.  If it's not, you have the wrong "SP1" installed.  The correct one is
    here.
    Here's the bad news- you can't simply redeploy the correct one... because the installer already thinks that SP1 is installed.  You'll have to backup (or detach and copy) your databases, then re-install SQL with the correct SP1, then restore or reattach
    the databases.  Once you've done that, PowerPivot and PowerView will work properly.
    I sincerely hope this resolves your issues - we wasted TWO WEEKS of our time with this problem!

  • Example VIs for winsock with LabVIEW 7.0

    Are there any example VIs for TCP communications with winsock using LabVIEW 7.0?

    I would like to join the request - I would like to know how to use WinSock from within LabVIEW to use a modem to dial a number and connect to another PC with a modem. An extra complicaiton is the fact that I need to be able to vary the number (to access numerous data acquisition stations).
    Message Edited by alysko on 03-08-2006 03:57 PM
    Message Edited by alysko on 03-08-2006 03:58 PM

  • Error while loading JS libraries for UI5 and I5 Grid together

    Hello Experts,
    I am trying to load JavaScript libaries for UI5 (OpenUI5 SDK) and I5 Grid (from bootstrap.js).
    My requirement is to create UI5 as well as I5 Chart/Grid components in the IRPT pages.
    Development environment is MII 14.0 sp04 .
    I have added a JS link for my UI5 library as follows, in my IRPT page.
      <script src="/XMII/CM/DCMS_Master/UI5Library-1.22.8/resources/sap-ui-core.js"
      id="sap-ui-bootstrap"
      data-sap-ui-libs="sap.m, sap.ui.table, sap.ui.commons"
      data-sap-ui-theme="sap_bluecrystal">
      <script>
       sap.ui.localResources("/XMII/CM/DCMS_Master/UI5Library-1.22.8/resources");
      </script>
    Afer this Include, I have loaded the I5 component JS library like this:
    <SCRIPT type="text/javascript" src="/XMII/JavaScript/bootstrap.js" data-libs="i5Chart,i5Grid"></SCRIPT>
    However, I get an error on the console as follows   
    Failed to load resource: the server responded with a status of 404 (Not Found)                                            
    <MII Server Host>:50000/XMII/CM/DCMS_Master/UI5Library-1.22.8/resources/JSONListBinding.js
    Uncaught Error: found in negative cache: 'sap/ui/model/json/JSONModel.js' from /XMII/CM/DCMS_Master/UI5Library-1.22.8/resources/sap/ui/core/library-preload.json/sap/ui/model/json/JSONModel.js: Error: failed to load 'JSONListBinding.js' from /XMII/CM/DCMS_Master/UI5Library-1.22.8/resources/JSONListBinding.js: 404 - Not Found                                    sap-ui-core.js:80
    Uncaught Error: "Element sap.ui.commons.layout.MatrixLayout#matrix4" is not valid for aggregation "content" of ManagedObject sap.ui.core.UIArea#headerSelection                                                                                                                         sap-ui-core.js:134
    Does that mean that I5 JS libs and UI5 libs cannot be imported together?
    Any help will be appreciated.
    Best,
    Arihant Kothari

    Hi Arihant,
    The i5component JS library internally loads the SAP UI5 library that you are trying to load explicitly. If you intend to use both MII i5 components and SAP UI5 components together then you can just use the following:
    <SCRIPT type="text/javascript" src="/XMII/JavaScript/bootstrap.js" data-libs="i5Chart,i5Grid"></SCRIPT>
    And for sure you would have deployed SAP UI5 library on your MII server right.. ? In that case you load the UI5 library with the following script tag:
    <script src="/sapui5/resources/sap-ui-core.js" id="sap-ui-bootstrap"data-sap-ui-libs="sap.m, sap.ui.table, sap.ui.commons" data-sap-ui-theme="sap_bluecrystal">
    <script>
    In case you choose to use only SAP UI5 components/controls then you can use only the above script tag so that the MII i5 components don't get loaded.
    To check if SAP UI5 is deployed on your server you can try to access the following link:
    http|s://<host>:<port>//sapui5/resources/sap-ui-core.js
    And to check the SAP UI5 version you can type the following in browser console: sap.ui.version
    Hope this helps!
    Thanks and Best Regards,
    Ria

  • MS Office report for servo motion controller

    Dear all,
    Good day,
    My application is servo motion controller where I will choose profile from tab deliminated text file.
    Attached VI working fine and I would like to add more features like MS office report where report will be generate after completion of all cycles automatically with data points and graphs. For that I am not sure where to add this function "MS Office report".
    Please help me on this. If you need any further information I'll provide.
    Attachments:
    1-Axis Motion controler_M1.vi ‏151 KB
    5steps test.txt ‏2 KB

    Tried with while loop, and "REPORT" button in front panel as loop condition but not working out well required..

  • Error -3259 while loading 2.0 for iPod Touch

    I bought software 2.0 on my iMac G4 with the lastest version of iTunes, and everytime I try to load the software, a error -3259 comes. I called my internet supplier and the guy told me that my connexion was alright, so I just don't know what to do...

    Because it's for the iPhone, you need the iPod touch 2.0 software, which is different.

  • Getting warning while running concurrent program for XML report

    HI,
    Am trying to run a xml-publisher report by converting a D2k report and am getting the following warning message and not getting the out put.
    Receivables: Version : 11.5.0 - Development
    Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
    XX_EMPLOYEES module: XX_EMPLOYEES
    Current system time is 04-DEC-2007 12:25:37
    +-----------------------------
    | Starting concurrent program execution...
    +-----------------------------
    APPLLCSP Environment Variable set to :
    XML_REPORTS_XENVIRONMENT is :
    /dplay/applmgr/product/8.0.6/guicommon6/tk60/admin/Tk2Motif_UTF8.rgb
    XENVIRONMENT is set to /dplay/applmgr/product/8.0.6/guicommon6/tk60/admin/Tk2Motif_UTF8.rgb
    Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
    AMERICAN_AMERICA.UTF8
    Report Builder: Release 6.0.8.25.0 - Production on Tue Dec 4 12:25:38 2007
    (c) Copyright 1999 Oracle Corporation. All rights reserved.
    Enter Username:
    Start of log messages from FND_FILE
    End of log messages from FND_FILE
    Executing request completion options...
    ------------- 1) PUBLISH -------------
    Beginning post-processing of request 2057165 on node CRMAP102.ASHOKLEYLAND.COM at 04-DEC-2007 12:25:42.
    Post-processing of request 2057165 failed at 04-DEC-2007 12:27:43 with the error message:
    The Output Post-processor is running but has not picked up this request.
    No further attempts will be made to post-process this request, and the request will be marked
    with Warning status.
    Setting the profile option Concurrent: OPP Response Timeout to a higher value may be necessary.
    ------------- 2) PRINT   -------------
    Finished executing request completion options.
    Concurrent request completed
    Current system time is 04-DEC-2007 12:27:43
    pls help
    Thanks

    Hi
    pls see this post
    OPP Timing out
    Thanks
    Rahul

  • Warning while creating PR/PO for existing MRP

    Hello everyone,
    is possibile to customize a message that while creating a PR or a PO suggest him that the material has already been purchased via MRP?
    Thanks in advance,
    Marco.

    No as per standard SAP.

  • Warning while laoding data thru load rule

    Hello,
    I am getting a warning while loading the data thru load rule.
    Where can I see that waning?
    Thanks

    By default the error information store in datdload.err
    or
    if you want to set your own error file in maxl using statement
    import database dbname data from datafile datafilepath using server rule file filename +on error write to the path where you want to store\file name.err+
    the file name is user choice
    thanks
    kumar
    Edited by: 806739 on Nov 1, 2010 9:51 AM
    Edited by: 806739 on Nov 1, 2010 9:51 AM

  • Sax Loader example vs XSLT

    mdrake,
    your Sax Loader example in the FAQ (found here: Sax Loader example )
    is very timely. I've been working around this issue for several days.
    Like the example, I have a very large document that is really a collection of smaller documents.
    Until I read your example, I was leaning towards using XSLT to break out the smaller documents.
    The huge document would be in XML DB in one folder, but without any namespace.
    I was hoping that XSLT could be used
    a) to read that huge document,
    b) to parse out the smaller documents,
    c) to create a new file in XML DB in an output folder for each of the smaller documents in the huge document,
    d) while creating each of the smaller documents, to add a namespace reference to the document so that the document would be shredded as it is added to the output folder.
    I admit I'm a newb. Can XSLT be used for this? Any guesses as to which approach would take less elapsed time?
    Thanks

    mdrake,
    a followup question
    Your SaxLoader example at
    Sax Loader example is for 10g.
    There is a similar one for 9i and I have found a readme for the 9i version at http://www.oracle.com/technology/sample_code/tech/xml/xmldb/saxloader/StandAlone_Install.html, but it's incomplete.
    Is there a readme for the 10g? If so, I can't find it. Will you provide a link to a 10g version of the readme?
    Also, is the 10g version designed (as written) only to work inside an Oracle server, or will it work at a command line prompt under Window/Unix/Linux?
    Thanks

  • Error 1517 when executing the VIs for DLL

    I want to be able to use a certain function from C++ DLL, and I followed the TOOLS>>IMPORT>>SHARED LIBRARY(.dll) wizard. l use the head file and dll from company. This is for a motion controller. When I run VIs, they always show the error 1097 and the VIs can not work on the motion controller both in the simulation and in the real operation. I use the sac.dll and sacenums.h file. As you can see in the picture, the return value is very strange and the pAxisId should be "0" instead of "128"
    Attachments:
    Sac.zip ‏1535 KB
    sacenums.h ‏69 KB

    Two things to check:
    1. Make sure you have the correct calling convention selected
    Calling convention—Specifies the calling convention for the function. The default is C.
    stdcall (WINAPI)—Controls whether the object uses the __stdcall calling convention.
    C—Controls whether the object uses the __cdecl calling convention.
    2. Try lowering the error checking.  Try "default" or even "disabled" to see if it fixes the issue:
    Error Checking—Use the Error Checking tab to specify the error checking level for the Call Library Function Node.
    Error Checking Level—Contains the following options:
    Maximum—Enables the maximum level of error checking for the Call Library Function Node. In addition to the error checking capabilities of the Default level, the Maximum level causes the Call Library Function Node returns a warning if the function being called in the shared library or DLL writes beyond the space allocated for the specified string or array parameter.
    Note  Selecting the Maximum control on the Error Checking tab reduces the execution speed and increases the memory usage of the Call Library Function Node. Therefore, you should select the Maximum control only when debugging your configuration of the Call Library Function Node.
    Default—Enables the default level of error checking for the Call Library Function Node. The default level of error checking allows LabVIEW to recover from unhandled exceptions that occur during execution of the called shared library or DLL. This error checking level also causes the Call Library Function Node to return an error if the Calling convention you select on the Function tab does not match the calling convention of the function you are calling in the shared library or DLL.
    Disabled—Disables error checking for the Call Library Function Node. Disabling error checking for the Call Library Function Node improves the execution speed of the Call Library Function Node. However, certain errors can cause an irregular shutdown of LabVIEW. Before disabling error checking, be sure that the function the Call Library Function Node references does not raise any unhandled exceptions.
    *Source: http://zone.ni.com/reference/en-XX/help/371361K-01/lvdialog/call_lib_function_db/
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    If someone helped you out, please select their post as the solution and/or give them Kudos!

  • Uncommitted Data warning on loading the taskflow

    Hi,
    I want to use the Uncommitted data warning for our application.
    I am getting the Uncommitted data warning while loading the taskflow.
    I am using the JDeveloper 11g 11.1.1.3.0
    I have create Taskflow with Isolated scope and start new transaction every time.
    My Takflow have Following thing:
    1) Execute Action: Which will call as default activity adn load the data.
    2) Router: That will if row exist in view then transfer to jsff page otherwise Call CreateInsert binding action and then redirected to same jsff page.
    3) Jsff Page: jsff page that have panelFormLayout with the fields for add/Update.
    In that scenario if my table don't have any record in database that why CreateInsert binding action will called. Once it will called and control is redirected to jsff page.
    Page is throwing the uncommitted data warning but there is not data on that page only the blank fields are there.
    If I click on OK button of popup that is showing blank screen not even label of the fields.
    Can anybody tell me please how can i resolve this issue?
    How will my page will appear with calling CreateInsert binding Action with UncommitedDatawarnings set as on?
    Thanks in Advance
    Amit

    As per http://www.oracle.com/technetwork/issue-archive/2012/12-mar/o22adf-1518265.html , in 11.1.2.1) or later ->
    Access the tab transaction state. Tabs can be marked as having their content changed, in which case they are referred to as dirty.
    A warning dialog box will appear if users or the application try to close these tabs. A tab’s dirty state can be checked and manipulated with the TabContext API.Looks like this is available out of the box.

  • Issue while loading the library files(".so" or ".sl") using JNI

    Hi,
    We are loading the c library files using system.load during the init phase of servlet.
    While loading the application for the first time everything goes smooth and application behaves as expected.
    We are facing the below issue when we try restarting the application through admin console in case of WAS (web sphere) for any patch deployment in the application.
    java.lang.UnsatisfiedLinkError: Native Library /users/test1/siva/jnilib.so already loaded in another classloader.
    If we restart the complete WAS every thing works fine.
    There is no specific System.unload function available in java to remove the loaded library in JVM.
    Is there any alternate way to unload the library which is loaded in class loader to resolve this issue which can be called in the destroy phase of servlet?
    Any help here is highly apreciated.
    TIA,
    Siva.

    sivabalan wrote:
    Hi,
    We are loading the c library files using system.load during the init phase of servlet.
    You mean a shared library, not C files (which would be source.)
    However I am not sure that loading it in a servlet is a good idea. But that is a different issue.
    Is there any alternate way to unload the library which is loaded in class loader to resolve this issue which can be called in the destroy phase of servlet?This is how it works on the Sun VM back to about 1.2. And as far as I know there is no other way for it to work on any other VM.
    You have a class with native methods that relies on the shared library. The class and the shared library are loaded into a class loader. If the class loader is unloaded by the GC then the native library will be unloaded as well.
    A class loader can be collected by the GC if if the classes loaded by it are no longer actively references. So ALL class instances can be collected.
    If the above is true then by running System.gc() twice it will collect the classloader and thus the native library.
    So in your situation it might work if your app server allows you do GC (full GC is better if that is an option). You could try unloading the app, then doing the GC option several times, then do a load. Try the GC option about 6 times and the reduce it down to see if 2 work.
    If that doesn't work then there could be some programmatic solutions using the same idiom.

  • OUI-10151:There was an error while loading library: globalVarQueries

    Hi,
    I am installing Oracle Database 11g version 11.1.0.6.0 on RHEL 5.3 x64.
    After completing all the requirements & pre-reqs, when the installation starts it throws the following error :
    OUI-10151:There was an error while loading library: globalVarQueries
    For this I selected "Stop installation of this component only"
    After this it gives the following error:
    OUI-10151:There was an error while loading library: generalQueries
    For this I again selected "Stop installation of this component only"
    But, after this the previous error keeps getting repeated over & over again, until installation stops, with the following error:
    OUI-10133:Invalid staging area. There are no top level components for Linux available for installation in this staging area
    Please help me out here, guys.

    Hi,
    did you install all this packages?
    # mount /dev/cdrom /mnt; cd /mnt/Server
    # rpm -ivh libgomp-4.3.2-7.el5.x86_64.rpm \
               kernel-headers-2.6.18-128.el5.x86_64.rpm \
               glibc-headers-2.5-34.x86_64.rpm \
               libstdc++-devel-4.1.2-44.el5.x86_64.rpm \
               sysstat-7.0.2-3.el5.x86_64.rpm \
               glibc-devel-2.5-34.x86_64.rpm \
               libaio-devel-0.3.106-3.2.x86_64.rpm \
               gcc-4.1.2-44.el5.x86_64.rpm \
               gcc-c++-4.1.2-44.el5.x86_64.rpm \
               elfutils-libelf-devel-static-0.137-3.el5.x86_64.rpm \
               elfutils-libelf-devel-0.137-3.el5.x86_64.rpm \
               compat-db-4.2.52-5.1.x86_64.rpm \
               compat-gcc-34-3.4.6-4.x86_64.rpm \
               compat-gcc-34-c++-3.4.6-4.x86_64.rpm \
               gdb-6.8-27.el5.x86_64.rpm \
               libtermcap-devel-2.0.8-46.1.x86_64.rpm \
               readline-devel-5.1-1.1.x86_64.rpm \
               unixODBC-2.2.11-7.1.x86_64.rpm \
               unixODBC-devel-2.2.11-7.1.x86_64.rpm \
               glibc-devel-2.5-34.i386.rpm \
               libXp-1.0.0-8.1.el5.i386.rpm \
               libstdc++-devel-4.1.2-44.el5.i386.rpm \
               unixODBC-2.2.11-7.1.i386.rpm \
               unixODBC-devel-2.2.11-7.1.i386.rpm \
               libaio-devel-0.3.106-3.2.i386.rpmRegards,
    David
    OCP 9i /10g / 11g
    http://www.oratoolkit.ch/knowledge/howto/installation/eeSrv-11g-R1-on-RHEL-5.3-x86_64.php

Maybe you are looking for