Utility library error string function?
I've been working on an Error Handler library, culled mostly from these wonderful fora (Roberto!). I can't seem to find an error code string generator for the functions in the Utiltiy Library though (in particular, functions like RenameFile, CopyFile, GetDir, SetDir, MakeDir, all the file i/o functions).
Most of those make mention to negative error types with some plain text explanations. But there's no mention of a nice code-to-string converter function, as there is in other libraries. For instance, for the RS232 library, there is GetRS232ErrorString. For the Formatting & I/O library, there is GetFmtIOErrorString.
Am I not seeing it somewhere? Inside the Utility library, there is a multithreading error code function called CmtGetErrorMessage.
Solved!
Go to Solution.
You're right: the Urility Library does not incorporate a function that translates error codes to a meaningful text. I suppose this is due to the fact that error codes partly overlap, so a unique function could not be used.
Just as an example, error -1 means File not found in almost all file I/O library functions, but it translates to No files found matching the search criteria in GetFirstFile () , to No more files in GetNextFiles () and Invalid Parameters in MakePathname ().
Another example: error -2 means GetFirstFile must be called before if returned by GetNextFile (), and Resulting pathname too long if returned by MakePathname ().
And this considering only File I/O section of the library!
While developing my own toolbox of utilities, I have created the following function, which I know is far from perfect and covers only file I/O functions:
char * CVIFUNC GetULibFileIOErrMsg (int error)
// Messages associated to error codes returned by functions in File Utilities class in Utility Library
switch (error) {
case 0: return "Success";
case -1: return "One of the path component not found";
case -2: return "Resulting pathname longer than 260 chars";
case -3: return "General I/O error occurred";
case -4: return "Insufficient memory to complete operation";
case -5: return "Invalid path";
case -6: return "Access denied";
case -7: return "Specified path is a directory, not a file";
case -8: return "Disk is full";
case -9: return "New file already exists";
default: return "Unknown error";
return NULL;
Proud to use LW/CVI from 3.1 on.
My contributions to the Developer Zone Community
If I have helped you, why not giving me a kudos?
Similar Messages
-
Import Library Error two functions with same name on different namespaces
Im trying impor a library developed by me. In this library have two functions ShowMenu. First function be inside into a class and its declared as
void __fastcall TTrayicon:howMenu(). The second function has declared as extern "C" __declspec(dllexport) ShowMenu(int x, int y).
When i use de assistant to import this library i select the library and its header file. But in the next step the assistant show to me the first function.
Anyone explain what's happen?I'm not sure what kind of answer you're looking for. LabVIEW's Import Library wizard does not always properly handle accessing functions in standard C++ DLLs. See this for more info.
-
How to build a library of string functions?
I want to create a set of my own special string functions. Trouble is I cannot create a class that extends String because it has been declared final. I want to be able to use the existing String functions as well as my own. Any ideas?
Thanks in advance.Create a class that doesn't extend String. Use the String methods. You don't have to extend a class to use its methods. Example:public class LameUtility {
public static char getFirstCharacter(String s) {
return s.charAt(0);
} -
Error in function PTCard.Store (): -2147467259
hello,
<p>
I am trying to add a card to the knowledge directory using API. I call <strong>IPTCard.Store()</strong> method to store the card. below is my code.
public void createCard(int folderParent, String cardName){
IPTCatalog catalog = session.GetCatalog();
IPTCard card = catalog.CreateCard();
card.SetName(cardName);
int[] parentIds = {folderParent};
card.SetCardSettings(PT_CARD_SETTINGS.PT_CARD_PARENTFOLDERIDS, parentIds);
card.SetDescription("test description.");
card.Store();
But when i call "IPTCard.Store()" method, it returns the following error;
</p>
<strong> com.plumtree.openfoundation.util.XPException: Error in function PTCard.Store (): -2147467259 - Failed to store card: storing cards in DB failed
</strong>does anybody have an idea, why this error appears ??
thank you for ur openion in adv.
<p>
</p>I can't tell from the error, but I suspect you will need to associate the card with a data source (content upload or similar) before it can be stored in the database (PTCard.Store).
Since I don't remember exactly how I did this at one point, I have provided some code below that I hacked from the API and changed around. It sets some extra stuff related to the file upload data source, but you can probably use some of it to piece together data source info. Here are some relevant lines that you'll probably need to fudge with:
IPTDataSource ptDS = (IPTDataSource)
session.GetDataSources().Open(nDataSourceID, false);
string strCardPropBagXML = pbagCardProp.SaveToXML(0);
ptDS.ImportDocument(strCardPropBagXML, nDocTypeID, ptCard, true, null);
And here's the rest of the code it was ripped from...
// Functions in this region were somewhat ripped from the UI source (KD submission space)
// they have been slightly cleaned and commented for clarity (actual card submission happens here)
public static IPTCard SubmitCard(int dataSourceId, int parentFolderId, string name, string description, string path, string type, string docId, string duServer, string duId, SortedList propertyList, IPTSession session, AActivitySpace space) {
IXPPropertyBag pbag = CreateCardSubmitUploadPropertyBag(path, type, docId);
return SubmitCardWithPropertyBag(parentFolderId, dataSourceId, name, description, duServer, duId, false, propertyList, pbag, session, space);
public static IPTCard SubmitCardWithPropertyBag(int parentFolderId, int nDataSourceID, string strCardName, string strCardDescription, string duServer, string duId, bool approved, SortedList propertyList, IXPPropertyBag pbagCardProp, IPTSession session, AActivitySpace space) {
// Set Parent Folder
int[] arFolderIDs = new int[] {parentFolderId};
// set language to be that of the default locale
// Retrieve the SearchLocaleVarPack to verify the language
IApplication application = ApplicationManager.GetInstance()
.GetApplication(AppConstants.MAIN_APPLICATION_NAME.ToString());
PTSearchLocaleVarPack vpPTSearchLocales = (PTSearchLocaleVarPack) application.GetVarPackManager()
.GetVariablePackage(PTSearchLocaleVarPack.VARPACK_ID);
// Retrieve the user's default language:
string strCardLanguageCode = (string) PTPersonalSettingsHelper.GetPersonalSettingValue(PersonalSettingNames.LANGUAGE,
space);
// default to english if invalid language
if (false == vpPTSearchLocales.IsValidLanguage(strCardLanguageCode)) {
strCardLanguageCode = DirModel.ENGLISH_LOCALE_CODE;
return SubmitCardWithPropertyBag(arFolderIDs, strCardLanguageCode, 0,
nDataSourceID, pbagCardProp, strCardName, strCardDescription, duServer, duId, approved, propertyList, session, space);
public static IPTCard SubmitCardWithPropertyBag(int[] arFolderIDs,
string strLanguage, int nDocTypeID, int nDataSourceID,
IXPPropertyBag pbagCardProp, string strCardName,
string strCardDescription, string duId, string duServer, bool approved,
SortedList propertyList, IPTSession session, AActivitySpace space) {
// create the card
IPTCard ptCard = session.GetCatalog().CreateCard();
ptCard.SetContentLanguage(strLanguage);
// Parent IDs can be a single value or an array of values
ptCard.SetCardSettings(PT_CARD_SETTINGS.PT_CARD_PARENTFOLDERIDS,
arFolderIDs);
// if the index server isn't up, don't try to index, create the card
// and inform the user later
IXPPropertyBag statusBag = session.GetCatalog().GetSearchServerStatus();
SearchServerStatusInfo statusInfo = new SearchServerStatusInfo(statusBag, "INDEXSTATUS");
if (XPStringUtility.EqualsIgnoreCase(statusInfo.connectStatus,"OK")) {
ptCard.SetCardSettings(PT_CARD_SETTINGS.PT_CARD_INDEXONSTORE, 1);
} else {
ptCard.SetCardSettings(PT_CARD_SETTINGS.PT_CARD_INDEXONSTORE, 0);
// if the card is approved, we set this flag
if (approved) {
ptCard.SetCardSettings(PT_CARD_SETTINGS.PT_CARD_INSERTAPPROVED, 1);
/* inherit parent folder ACLs */
ptCard.SetCardSettings(PT_CARD_SETTINGS.PT_CARD_INHERITPARENTFOLDERPERMISSIONS, 1);
// Set the crawler tag to be "Manual"
ptCard.SetCrawlerTag(space.GetString(1635, "ptmsgs_portalbrowsingmsgs"));
if ((null != strCardName) && (strCardName.Length > 0)) {
ptCard.SetCardSettings(PT_CARD_SETTINGS.PT_CARD_OVERWRITENAME, 0);
ptCard.SetName(strCardName);
if ((null != strCardDescription) && (strCardDescription.Length > 0)) {
ptCard.SetCardSettings(PT_CARD_SETTINGS.PT_CARD_OVERWRITEDESCRIPTION, 0);
ptCard.SetDescription(strCardDescription);
ptCard.SetDocumentLocation(pbagCardProp);
ptCard.SetDataSourceID(nDataSourceID);
// Get the DocumentTypeMap
if (0 == nDocTypeID) {
// Determine Default
IPTDocumentTypeMap ptMap;
ptMap = (IPTDocumentTypeMap) session.OpenGlobalObject(PT_GLOBALOBJECTS.PT_GLOBAL_DOCUMENTTYPEMAP,
false);
ptMap.Initialize(session);
nDocTypeID = ptMap.LookupByPropBag(pbagCardProp);
// If no default DocType was found,
// determine what default DocType should be used based on the server config setting
if (0 == nDocTypeID) {
IApplication application = ApplicationManager.GetInstance()
.GetApplication(AppConstants.MAIN_APPLICATION_NAME.ToString());
PTDirPrefsVarPack vpPTDirPrefs = (PTDirPrefsVarPack) application.GetVarPackManager()
.GetVariablePackage(PTDirPrefsVarPack.VARPACK_ID);
nDocTypeID = vpPTDirPrefs.GetDefaultDocType();
IPTDataSource ptDS = (IPTDataSource) session.GetDataSources().Open(nDataSourceID, false);
string strCardPropBagXML = pbagCardProp.SaveToXML(0);
ptDS.ImportDocument(strCardPropBagXML, nDocTypeID, ptCard, true, null);
// set file upload properties
/* get the card and it's property values */
IPTCardPropertyValues ptPropValues = ptCard.GetPropertyValues();
/* Document Upload ID */
IPTCardPropertyValue ptValue = ptPropValues.Add(PT_INTRINSICS.PT_PROPERTY_UPLOAD_DUID);
ptValue.SetOverrideValue(duId); /* make this an override value so it is not lost on a re-index */
/* Document Upload Server */
ptValue = ptPropValues.Add(PT_INTRINSICS.PT_PROPERTY_UPLOAD_DUSERVER);
ptValue.SetOverrideValue(duServer); /* make this an override value so it is not lost on a re-index */
/* Custom Property Settings */
if (propertyList.Count > 0) {
foreach (DictionaryEntry de in propertyList) {
try {
int propId = (int) de.Key;
ptValue = ptPropValues.GetItem(propId);
if (null == ptValue) { ptValue = ptPropValues.Add(propId); }
ptValue.SetOverrideValue(de.Value);
} catch (Exception) {
// ignore exceptions, maybe the wrong property or card
//store the card
ptCard.Store();
ptCard.UnlockObject();
// approve or unapprove the card
/* 2 for approve, 1 for unapprove */
//session.GetCatalog().SetApprovalStateByCard(ptCard.GetObjectID(), (approved ? 2 : 1), arFolderIDs );
return ptCard;
public static IXPPropertyBag CreateCardSubmitUploadPropertyBag(string path, string type, string _docID) {
IXPPropertyBag pbagCardProp;
pbagCardProp = PortalObjectsFactory.CreatePropertyBag();
pbagCardProp.Write("PTC_PBAGFORMAT", 2000);
pbagCardProp.Write("PTC_DTM_SECT", XPConvert.ToInteger(_type));
pbagCardProp.Write("PTC_UNIQUE", _path);
pbagCardProp.Write("PTC_DOC_ID", _docID);
return pbagCardProp;
} -
iTunes crashes when doing a power search. I get a Microsoft Visual C Runtime Library Error message: Program C:\Program Files (x86)\iTunes\iTunes.exe R6025. Pure virtual functional call. If I select ok, Windows 7 pops up with iTunes has stopped working and then it shuts iTunes down. Anyone else every have this issue. Any ideas on a fix?
Thanks,For general advice see Troubleshooting issues with iTunes for Windows updates.
The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down page in case one of them applies.
Your library should be unaffected by these steps but there is backup and recovery advice elsewhere in the user tip.
tt2 -
Error in XSLT mapping while using string functions
Hi All,
While using tokenize() and substring-before() functions in XSLT mapping,we are getting an error.The error message is Unexpected symbol "" So while using string functions in XSLT mapping do we have to use any header functions.
Please through light on syntax etc.,of string functions in XSLT.
Thanx in advance,
Lokesh Dhulipudi
Edited by: LOKESH DHULIPUDI on Dec 27, 2007 7:32 AMHi,
Hope you have gone thru this help:
http://w3schools.com/xsl/default.asp
Rgds, Moorthy -
We have an external procedure running fine on 8.1.7 on VMS. After compiling and linking succesfully under 10.1.0, I get ORA-06521 PL/SQL: Error mapping function and ORA-06522: ERROR - vms_dlsym for file x, where x in the filename of the linked executable. Another external procedure that does not connect to the 10.1.0 database runs fine. What could be causing this error in Server 10.1.0 on VMS?
Thanks,
DaveHere is the code to create the function:
CREATE OR REPLACE FUNCTION f1
(h_file_name IN VARCHAR2)
RETURN BINARY_INTEGER
IS EXTERNAL
LIBRARY l1
NAME "f1"
LANGUAGE C
WITH CONTEXT
PARAMETERS
(CONTEST,
h_file_name string);
Here is the beginning of the Pro*C:
int f1(epctx, h_file_name)
OCIExtProcContext *epctx;
char h_file_name[70];
char h_line_txt [251];
int lineno;
FILE *fptr;
/* register the connection context ... */
EXEC SQL REGISTER CONNECT USING :epctx;
The function loads a flat file into the database. It is probably not related but are unable to SQLPLUS/ or SQLLDR/ into the database from an OS autheniticated account (get ORA-12547: TNS:lost contact.) Thanks for taking the time to look at this. There aren't many people trying this on VMS, I'd bet. -
Hi All,
I've created a library and mapped it to the operating system directory(UNIX/AIX), and created a procedure that calls my C program through pl/sql, but I keep getting error
message (06521)Error mapping function. I have void datatype return values from my C program no calling parameters and it does return data when executed by itself. I've tested the directory path that I defined in my create library statement and, I believe It's reaching the C program in the said directory, but I recieve no data through the pl/sql program. TM states, as of oracle8 we can access external C,pascal,etc.. files.I'm assuming that this access can be achieved programmatically.
Am I overlooking something?
Thank you very much for your help!!<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Pankaj Choudhery ([email protected]):
parameters are not the same in pl/sql & C function<HR></BLOCKQUOTE>
Thanks for your reply Panka,
I think you're right there on the problem.
I too believe that the problem lies between the conversion of the datasources between the two languages.
I'm using oracle8's default external procedure datatype,to bridge the gap between the pl/sql code and the C parameters. By the Book its -- Varchar2(plsql) = STRING(external type) = C program(*char)...etc. There seems to be more to it than the book is explaining would you perhaps know of any other documentation sources?
Thanks again... -
Search and replace string function
Hello, I am using the "search and replace string" function and it does nt seem to work consistently for me. I am using it in a situation where I am taking an array of strings, converting this into a spreadsheet string then deleting all of the commas. Has anyone experienced the same behavior? I have searched through other posts and found other simular faults but none of the fixes worked for this. I can post the code it needed.
Thanks,
AndrewI agree that commas are often not desirable, especially if your software should also work in countries where comma is used as a decimal seperator.
Where are the commas coming from? Does (1) each element of the original array have one (or more), do you (2) use comma as seperator if you convert it to a spreadhseet string?
For (1), you might just strip out the comma for each element right in the loop. For case (2) you would simply use a different separator to begin with, of course.
Btw: you are abusing a WHILE loop as a FOR loop, because you have a fixed number of iterations. Please replace it with a FOR loop. If you use a FOR loop, LabVIEW can manage memory much more efficiently, because it can allocate the entire output array before the loop starts. For While loops, the total number of iterations is not known to the compiler. (Of course a real program would also stop the loop if an error occurs. In this case you would need to stay woth the WHILE loop. )
Do you have a simple example how the raw array elements look like. How many commas are there?
LabVIEW Champion . Do more with less code and in less time . -
Disk Utility internal error message
I am receiving an error message every time I try to repair permissions on my MB running OS X 10.4:
error:
Disk Utility Internal Error
Disk Utility has lost its connection with the Disk Management Tool and cannot continue. Please quit and re launch Disk Utility.
Tried that several times to no avail. After quittting Disk Utility, system becomes very sluggish and Finder stops responding.
I then booted from the installation CD and ran a Hard Disk integrity check. It checked Ok. Then I tried a permission repair and got the exact same error message quoted above.
Any help?There was a problem with this a couple of years ago involving iTunes Library Receipt files. See [Mac OS X 10.3: Repair Disk Permissions 'Disk Utility has lost its connection with the Disk Management Tool.|http://docs.info.apple.com/article.html?artnum=303132].
It seems unlikely that would surface now, but the suggested fix is worth trying. The article also mentions looking at Console log. Console is in Applications/Utilities.
Also, see this recent thread in the Panther forum:
http://discussions.apple.com/thread.jspa?threadID=1585878 -
I've been working on archiving a ton of video to DVD. I'm using Dual-Layer discs to minimize the amount of physical storage space needed for the finished project. I burned several discs in iDVD in July and regularly received errors. Then the drive suddenly stopped loading any type of media. Anything I inserted would spin briefly and then eject. Repaired permissions and followed steps outlined here and here. Took the Mac back to the store where I bought it (sadly, not an Apple Store - nearest one is 12 hrs away) where naturally it performed flawlessly for the store rep.
So I took it home and resumed burning, now saving as a disc image (ignoring iDVD's warning about the performance of DVDs burned this way) and using Disk Utility, since iDVD didn't seem to be reliable. Burned about 25 discs, error-free, in this fashion, then three days ago, got the error: "Unable to burn “Disc 19.img”. (The device failed to respond properly, unable to recover or retry.)"
Retried the same image, and it worked. Then burned two more in the same fashion with no errors. Today I got the same error again. Logs are identical for each failed burn, except for the time span between certain lines.
Price of DL media being what it is, I'd hate to keep ruining discs if there's something I can do to avoid it. I suppose it could be bad media, but it seems odd that I'd get two bum discs that close together after burning so many without issue. Checked the site and the forums, and there doesn't seem to be any answers. Does anyone have any ideas? (Other than "try a different brand of media." I've got a buttload of these discs and it's too late to return them now.) Even if it just helps determine where the issue lies. Warranty will be up soon, so if it's hardware related, I need to get it taken care of quick.
Media: Philips DVD+R DL 8x
*Drive info:*
HL-DT-ST DVDRW GS21N:
Firmware Revision: SA15
Interconnect: ATAPI
Burn Support: Yes (Apple Shipping Drive)
Cache: 2048 KB
Reads DVD: Yes
CD-Write: -R, -RW
DVD-Write: -R, -R DL, -RW, +R, +R DL, +RW
Write Strategies: CD-TAO, CD-SAO, CD-Raw, DVD-DAO
Media: Insert media and refresh to show available burn speeds
DiscUtility.log:
2009-10-03 08:54:01 -0600: Burning Image “Disc 22.img”
2009-10-03 08:55:15 -0600: Image name: “Disc 22.img”
2009-10-03 08:55:15 -0600: Burn disc in: “HL-DT-ST DVDRW GS21N”
2009-10-03 08:55:15 -0600: Erase disc before burning: No
2009-10-03 08:55:15 -0600: Leave disc appendable: No
2009-10-03 08:55:15 -0600: Verify burned data after burning: Yes
2009-10-03 08:55:15 -0600: Eject disc after burning
2009-10-03 08:55:15 -0600:
2009-10-03 08:55:15 -0600: Preparing data for burn
2009-10-03 08:56:30 -0600: Opening session
2009-10-03 08:56:35 -0600: Opening track
2009-10-03 08:56:35 -0600: Writing track
2009-10-03 09:01:37 -0600: Finishing burn
2009-10-03 09:02:37 -0600: Closing session
2009-10-03 09:02:38 -0600: Finishing burn
2009-10-03 09:38:37 -0600: Burn failed
2009-10-03 09:38:37 -0600: The device failed to respond properly, unable to recover or retry.
2009-10-03 09:38:37 -0600: Additional information can be found in the ~/Library/Logs/DiscRecording.log log file.
2009-10-03 09:38:37 -0600: Unable to burn “Disc 22.img”. (The device failed to respond properly, unable to recover or retry.)
DiscRecording.log:
Disk Utility: Burn started, Sat Oct 3 08:55:15 2009
Disk Utility: Burning to DVD+R DL (CMC MAG D03) media with DAO strategy in HL-DT-ST DVDRW GS21N SA15 via ATAPI.
Disk Utility: Requested burn speed was 47x, actual burn speed is 4x.
Disk Utility: Burn failed, Sat Oct 3 09:37:15 2009
Disk Utility: Burn sense: 4/44/90 Hardware Error,
Disk Utility: Burn error: 0x80020022 The device failed to respond properly, unable to recover or retry.
Message was edited by: Weasel42I have encountered the same problem. I have a Mac Book Pro from 2007, and it has gone through 3 DVD writers so far, all of which have ruined DVD+R DL disks. I have occasionally been able to burn one, but usually during verify, I get this error message:
Communication to the disk drive failed: 0x8002022
And disk utility fails with a "Invalid B-tree node size" error
Oddly, when I try to burn a disk near capacity (6.5Gb or more) it is more likely to fail than if I burn a smaller disk.
I've been using Memorex DVD+R DL disks, but I have used other brands in the past but they have failed, too. Out of about 50 disks so far, I have had success with about 5. -
Hi,
I am getting the following error :
SQL> select MinDistance(TT) from egg1;
select MinDistance(TT) from egg1
ERROR at line 1:
ORA-06521: PL/SQL: Error mapping function
ORA-06522: /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/custagg.so:
undefined symbol: ODCIAggregateInitialize
I am compiling my C program with OCI using the following command :
g++ -Wall -c custagg.c -o custagg.o -I$ORACLE_HOME/rdbms/public -I/usr/lib
I am linking to get a shared library custagg.so file with following command :
ld -shared -o custagg.so custagg.o $ORACLE_HOME/lib/l*.so ../../usr/lib/libstdc++.s*
I am not getting any errors during these two phases.
And when i am calling the extproc custagg(Mindistance) which i implemented using ODCI(oracle data catridge interface) ...I am getting the error undefined symbol : ODCIAggregateInitialize
So can any one please let me know what shared libraries are required to access the ODCI services and also am I compiling and linking it the right way or am I missing any libraries.
I have the oci.h & odci.h and several other header files in my :
$ORACLE_HOME/rdbms/public
And while linking i am using : $ORACLE_HOME/lib/*.so files.
So I don't know whether my directory is missing some shared files related to ODCI : can any one please let me know which files or shared libraries I am missing :
Below are list of files in my : $ORACLE_HOME/lib :
custagg123.o libclntsh.so libdbcfg10.so libjox10.so libocci.so.10.1 liborasdkbase.so libskgxpd.so libunwind.so.5
custagg.so libclntsh.so.10.1 libemmas10.so libldapjclnt10.so libocijdbc10.so liborasdkbase.so.10.2 libskgxpu.so libxdb.so
facility.lis libclsra10.so libhasgen10.so libnjni10.so libocr10.so liborasdk.so libsqlplus.so shell.so
hsdb_odbc.so libcorejava.so libheteroxa10.so libnjssl10.so libocrb10.so liborasdk.so.10.2 libsqora.so.10.1 sysliblist
hsdb_ora.so libcoresh10.so libhsbase.so libnnz10.so libocrutl10.so libqsmashr.so libsrvm10.so
lclasses12.zip libcprts.so.5 libhsnav.so libnque10.so libodm10.so libskgxn2.so libsrvmhas10.so
libagtsh.so libcxa.so.3 libimf.so libntcpaio10.so libodmd10.so libskgxns.so libsrvmocr10.so
libagtsh.so.1.0 libcxa.so.5 libirc.a libocci.so libons.so libskgxp10.so libuini10.so
Please reply to my queries.
Please let me know if you want to have a look at the symbols of my object file
Thanks & Regards,
-NNYour issue may relate to XE and it may relate to OCI but it does not relate to SQL and PL/SQL. Consider posting your question in a forum where it will be on topic.
When you do include full version information (3 decimal places) and the code that is generating the exception. -
Hi,
I am getting the following error :
SQL> select MinDistance(TT) from egg1;
select MinDistance(TT) from egg1
ERROR at line 1:
ORA-06521: PL/SQL: Error mapping function
ORA-06522: /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/custagg.so:
undefined symbol: ODCIAggregateInitialize
I am compiling my C program with OCI using the following command :
g++ -Wall -c custagg.c -o custagg.o -I$ORACLE_HOME/rdbms/public -I/usr/lib
I am linking to get a shared library custagg.so file with following command :
ld -shared -o custagg.so custagg.o $ORACLE_HOME/lib/l*.so ../../usr/lib/libstdc++.s*
I am not getting any errors during these two phases.
And when i am calling the extproc custagg(Mindistance) which i implemented using ODCI(oracle data catridge interface) ...I am getting the error undefined symbol : ODCIAggregateInitialize
So can any one please let me know what shared libraries are required to access the ODCI services and also am I compiling and linking it the right way or am I missing any libraries.
I have the oci.h & odci.h and several other header files in my :
$ORACLE_HOME/rdbms/public
And while linking i am using : $ORACLE_HOME/lib/*.so files.
So I don't know whether my directory is missing some shared files related to ODCI : can any one please let me know which files or shared libraries I am missing :
Below are list of files in my : $ORACLE_HOME/lib :
custagg123.o libclntsh.so libdbcfg10.so libjox10.so libocci.so.10.1 liborasdkbase.so libskgxpd.so libunwind.so.5
custagg.so libclntsh.so.10.1 libemmas10.so libldapjclnt10.so libocijdbc10.so liborasdkbase.so.10.2 libskgxpu.so libxdb.so
facility.lis libclsra10.so libhasgen10.so libnjni10.so libocr10.so liborasdk.so libsqlplus.so shell.so
hsdb_odbc.so libcorejava.so libheteroxa10.so libnjssl10.so libocrb10.so liborasdk.so.10.2 libsqora.so.10.1 sysliblist
hsdb_ora.so libcoresh10.so libhsbase.so libnnz10.so libocrutl10.so libqsmashr.so libsrvm10.so
lclasses12.zip libcprts.so.5 libhsnav.so libnque10.so libodm10.so libskgxn2.so libsrvmhas10.so
libagtsh.so libcxa.so.3 libimf.so libntcpaio10.so libodmd10.so libskgxns.so libsrvmocr10.so
libagtsh.so.1.0 libcxa.so.5 libirc.a libocci.so libons.so libskgxp10.so libuini10.so
Please reply to my queries.
Please let me know if you want to have a look at the symbols of my object file
Thanks & Regards,
-NNIt's only a quick guess but have you checked your tnsnames.ora file to ensure you've opened the environment to find the libraries? If you set the EXTPROC_DLLS=ANY, you open the database to security issues but it should tell you if this cause because you can't access the library that contains the symbol.
SID_LIST_CALLOUT_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = <oracle_home_directory>)
(PROGRAM = extproc)
(ENV = "EXTPROC_DLLS=ONLY:
<oracle_home_directory>/customlib/writestr1.so
,LD_LIBRARY_PATH=<oracle_home_directory>/lib")
) -
Shared Library Error after software update
After a software update check, I downloaded all recommendations which were the following: Java for Mac OS X 10.4 Release 5, iTunes 7.1, iPhoto Update 6.0.6, Security Update 2006-008 (PPC) 1.0, and Mac OS X Update (PPC) 10.4.9.
But upon restarting, I get 2 popup windows entitled Application Launch Failure. The first says: The application "(null)" could not be launched because of a shared library error: "5>HP Communications><CarbonLib><CFMPriv_CarbonSound>". The second reads: The application "EEventManager" could not be launched because of a shared library error: "1<EEventManager><CarbonLib><CFMPriv_CarbonSound>". I also get one when I try to launch AOL from the desktop. It also has the string with CarbonSound in it.
I tried reinstalling all of the updates and the Security update didn't work at all - which didn't seem to matter since it was an older version (I think??). I then reinstalled the OS update again, but this time I did the combo version. Still no luck. I looked into CarbonSound, but I haven't found anything current or relevant. Any suggestions? Thank you.
1.25 ghz ppc g4 Mac OS X (10.4.9)You might want to post your question in the Mac OS X v10.4 Tiger forum.
-
Hello, currently getting below error msg's utilizing software thru which LDAP is queried for discovering AD objects/path and resource enumeration and tracking.
Have ensured firewalls and port (389 ) relational to LDAP are not closed, thus causing hanging.
I see there was a write up on Svr 2003 ( https://support.microsoft.com/en-us/kb/315071 ) not sure if this is applicable, of if the "Ntdsutil.exe" arcitecture has changed much from Svr 03. Please advise.
-----------error msg ----------------
-- LDAP error number: 55
-- LDAP error string: Timeout Failed to get server error string from LDAP connectionThe link you shared is still applicable. You can adjust your LDAP policy depending on your software requirements.
I would also recommend that you in touch with your software vendor to get more details about the software requirements.
This posting is provided AS IS with no warranties or guarantees , and confers no rights.
Ahmed MALEK
My Website Link
My Linkedin Profile
My MVP Profile
Maybe you are looking for
-
Why was my free trial disabled after less than a day
Hi, I set up an Azure trial yesterday afternoon, roughly 4pm GMT. I came into the office this morning, and found an e-mail from about 3:30am GMT, telling me my trial had been disabled due to reaching it's spending limits? I did set up a VM yesterday,
-
It's difficult to check whether I've entered all of several intended recipients of an email I'm composing. I can scroll up and down, but I can't see the entire list to check for inclusions and duplicates. Please reinstate the pull-down arrow!
-
How to save ADOBE form , for trasporting to other system ?
Hello. Is any body know how i can to save the ADOBE form , for transport it to other R3 system or upload to file and download in the other project ??? Thank's in advance
-
I've created an App Viewer ("Synergy Magazine" ) for Newsstand as a free subscription. I've noticed after subscribing to the app in Newsstand the "Purchasing Subscription" in the header bar just spins and the subscribe banner never goes away after su
-
I am trying to update my iphone with the ios 5 update through my itunes, however-everytime I sign into itunes it says "itunes could not connect to the itunes store. the network connection has timed out" please help!