Why my Invocation API failed?

I want to call Java in my C program,but I failed in my beginning.this is my simple code:
#include "jni.h"
#include "stdio.h"
int main() {
JavaVMOption options[2];
JavaVMInitArgs vm_args;
JavaVM *jvm;
JNIEnv *env;
long status;
options[0].optionString = "-Djava.class.path=.";
options[1].optionString = "-verbose:jni";
memset(&vm_args, 0, sizeof(vm_args));
vm_args.version = JNI_VERSION_1_4;
vm_args.nOptions = 2;
vm_args.options = options;
status = JNI_CreateJavaVM(&jvm, (void**)&env, &vm_args);
if (status == JNI_ERR) {
printf("Can't create Java VM\n");
else {
printf("SUCCESS\n");
return 0;
the code pass the compiling,but when run,it always display:
Can't create Java VM
why?
My JDK is in JBuilder9,and have jvm.dll file,one in E:\JBuilder9\jdk1.4\jre\bin\client,another in
E:\JBuilder9\jdk1.4\jre\bin\server.and one is 1.1M,another is 2.7M.which one is right?

Hallo,
This topic has been discussed several times in this forum. Try searching the forum for JNI_CreateJavaVM[i]. The following code worked for me:
   JavaVMInitArgs vm_argsNew;
   vm_argsNew.version = JNI_VERSION_1_2;
   JavaVMOption options[3];
   options[0].optionString = "-verbose:gc";
   sprintf (classpath, "-Djava.class.path=%s", USER_CLASSPATH);
   options[1].optionString = classpath;
   options[2].optionString = "-Djava.compiler=NONE";
   vm_argsNew.options = options;
   vm_argsNew.nOptions = 3;
   vm_argsNew.ignoreUnrecognized = JNI_TRUE;
   /* Create the Java VM */
   void ** ppEnvVoid = reinterpret_cast <void **> (&a_pJNIenv);
   jint rc = JNI_CreateJavaVM(&a_pjvm, ppEnvVoid, &vm_argsNew);
    if (rc < 0)
       printf ("CreateJavaVm Failed\n");
       return RC_ERROR;
    }Unfortunately, the return codes from JNI_CreateJavaVM are not very informative! You need to keep playing until it works. I suspect that the [i]ignoreUnrecognized option could be important!

Similar Messages

  • Can you please tell us why our API fails

    Can you please tell us why our API fails when we use this timezone of Slovakia?
    API Name: jtf_tasks_pub.create_task
    This standard oracle API fails with the error : TIMEZONE FOR 483 IS EITHER DISABLED OR INVALID
    But we do have the Timezone record number 483 in Oracle.
    If we run this query, we see UPGRADE_TZ_ID 483 assigned to Europe/Bratislava
    select * from apps.fnd_timezones_vl
    where UPGRADE_TZ_ID=483
    Please let us know why it fails.

    I'd suggest you log a SR for this issue.
    Thanks,
    Hussein

  • JNI FindClass Error: Using the Invocation API  from visual C++

    I am using JNI invocation api in microsoft visual c++ to invoke java. When I use the FindClass method, I get a return value of 0. I have verified that the class "a" exists and believe have set the java class path appropriately. A valid jvm and jenv are created. The program fails at the FindClass call and returns 0.
    std::string classPath = "c:\\work\\java;C:\\j2sdk1.4.2_08;C:\\j2sdk1.4.2_08\\bin;C:\\j2sdk1.4.2_08\\lib";
         vmArgs.classpath = classpath;
         jint res = JNI_CreateJavaVM(&jvm, (void**)(&jenv), &vmArgs);
         if (res < 0)
              cout << "Error!! Cannot create jvm" << endl;
    jclass jFixEngineClass1 = jenv->FindClass("a");
         if (jFixEngineClass1 == 0)
              cout << "Error could not find a class" << endl;
         else
              cout << "a class found" << endl;
    thanks in advance,
    hcg

    Jschell,
    Thanks for your help.
    I found the error. I was using JDK1_1InitArgs for my vm_args. Since, I am using JDK 1.4, the classpath I was setting was not getting picked up. I changed the vm_args type as in the code below and it worked.
    JavaVMInitArgs vmArgs;
         JavaVMOption options[1];
         char classPathDef[1024];classPathDef[0] = '\0';
         sprintf(classPathDef, "%s", "-Djava.class.path=");
         sprintf(classpath, "%s%s", classPathDef, NYSE_FIX::userClassPath.c_str());
         options[0].optionString = classpath;
         cout << "Option string is:" << options[0].optionString << endl;
    vmArgs.version = 0x00010004;
    vmArgs.options = options;
    vmArgs.nOptions = 1;
    vmArgs.ignoreUnrecognized = JNI_TRUE;
         jint ret = JNI_GetDefaultJavaVMInitArgs(&vmArgs);

  • Invocation API to launch an application

    Hi!
    Is it really possible to "start " a java VM from an application written in java?
    The page: http://java.sun.com/j2se/1.4.2/docs/guide/jni/spec/invocation.html describes some c++ code that shall do the job I guess....?....but I can't say that I understand everything of it....
    There isn't a simple step by step tutorial out there which describes how it shall be done?
    And what is the "Java application launcher" which the writers of JRE Install Notes 1.4.2 (http://java.sun.com/j2se/1.4.2/jre/install-windows.html) refer to at the bottom of the text?
    Final question: which jre shall I download and install - Windows Offline Installation, Multi-language?.....
    the tutorial http://java.sun.com/j2se/1.4.2/docs/guide/jni/spec/invocation.html talks about different JVM - jdk 1.1, Netscape ......
    Could someone please enlight me in this topic?
    Thanks

    First of all, I think the "launcher" mentioned in JRE doc is just a terminology and not a concrete entity. I suppose when you change the setting in Netscape or IE so that it can invokes the Java VM automatically each time there's Java code, that's the equivalent of a "launcher". That's why they say if you want to bypass this "launching" mechanism, you can use Invocation API to do it yourself (or invoke it from something other than Netscape or IE, say, your own self-written software).
    Normally when you're running a Java program, you're inside a JVM, and there's no need to "start" another VM, right? But, just for discussion purpose, if you really want to start another JVM in another "working" space, then yes, I think you can use the Invocation API to do just that. It's a bit awkward, since you'll have to use JNI to call out from Java to C++, then inside the C++ code, invoke JNI_CreateJavaVM() to create a new JVM and work in there. Then call jvm->DestroyJavaVM when you're done. Note that all JVM run from jvm.dll, so they may decide to recycle the very JVM that you were starting from (thus defeating our purpose). But in my opinion it most likely will not (be recycled) and will be a brandnew JVM.
    If you're not sure then try to use the JNI tutorial first. The invocation API is just a part of JNI. Once you're comfortable with calling Java -> C++, then things'll become much clearer.

  • Invocation API

    I am working with the invocation api from the tutorial. I do not want to set the path to the jvm.dll before running the exe. How can I dynamically load the dll. When I start the exe, immediately it popsup a message box saying that jvm.dll not found. Can anyone please help me out as to how to load the dll dynamically. All help is appreciated.
    Razi

    Try this:
    // runjava.cpp
    #include <windows.h>
    #include <jni.h>
    #define DOTRELEASE  "1.4" /* Same for 1.3.1, 1.3.2 etc. */
    #define JRE_KEY         "Software\\JavaSoft\\Java Runtime Environment"
    // typedefs for calls to jvm.dll
    typedef jint (JNICALL *CreateJavaVM_t)(JavaVM **pvm, void **env, void *args);
    typedef jint (JNICALL *GetDefaultJavaVMInitArgs_t)(void *args);
    // globals
    JavaVMInitArgs vmArgs;
    JavaVM* jvm;
    JNIEnv* env;
    bool running=false;
    void LogError(const char * format,...)
        char    message[256];
        va_list args;
        va_start(args, format);
        vsprintf(message, format, args);
        va_end(args);
         printf("%s\n",message);          
    void LogWin32Error(const char * pTitle)
        PCHAR pBuffer;
        LONG  lError = GetLastError ( );
        FormatMessage ( FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM,
                        NULL,
                        lError,
                        MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
                        (char *)&pBuffer,
                        0,
                        NULL );
         LogError ("Win32 error: %s %s\n",pBuffer,pTitle);
        LocalFree ( pBuffer );
    bool GetStringFromRegistry(HKEY key, const char *name, unsigned char *buf, int bufsize)
        DWORD type, size;
        if (RegQueryValueEx(key, name, 0, &type, 0, &size) == 0
         && type == REG_SZ
         && (size < (unsigned int)bufsize))
              if (RegQueryValueEx(key, name, 0, 0, buf, &size) == 0)
                   return true;
        return false;
    bool GetPublicJREHome(char *buf, int bufsize)
        HKEY key, subkey;
        char version[MAX_PATH];
        /* Find the current version of the JRE */
        if(RegOpenKeyEx(HKEY_LOCAL_MACHINE, JRE_KEY,0,KEY_READ,&key)!=0)
              LogError("Error opening registry key '" JRE_KEY "'\n");
              return false;
        if(!GetStringFromRegistry(key,"CurrentVersion",(unsigned char *)version, sizeof(version)))
              LogError("Failed reading value of registry key:\n\t"JRE_KEY "\\CurrentVersion\n");
              RegCloseKey(key);
              return false;
        if(strcmp(version, DOTRELEASE)!= 0)
              LogError("Registry key '" JRE_KEY "\\CurrentVersion'\nhas value '%s', but '" DOTRELEASE "' is required.\n", version);
              RegCloseKey(key);
              return false;
        /* Find directory where the current version is installed. */
        if(RegOpenKeyEx(key,version,0,KEY_READ, &subkey)!= 0)
              LogError("Error opening registry key '"JRE_KEY "\\%s'\n", version);
              RegCloseKey(key);
              return false;
        if(!GetStringFromRegistry(subkey, "JavaHome", (unsigned char *)buf, bufsize))
              LogError("Failed reading value of registry key:\n\t"JRE_KEY "\\%s\\JavaHome\n", version);
              RegCloseKey(key);
              RegCloseKey(subkey);
              return false;
        RegCloseKey(key);
        RegCloseKey(subkey);
        return true;
    jint JNICALL _vfprintf_(FILE *fp, const char *format, va_list args)
         LogError(format,args);
         return 0;
    void JNICALL _exit_(jint code)
         LogError("VM exited");
         exit(code);
    void JNICALL _abort_(void)
         LogError("VM aborted");
         abort();
    void LoadJVM(char * dir)
         HINSTANCE handle;
         JavaVMOption options[5];
         char JREHome[MAX_PATH];
         char JVMPath[MAX_PATH];                                        
         char classpathOption[MAX_PATH];
         char librarypathOption[MAX_PATH];
         if(!GetPublicJREHome(JREHome, MAX_PATH))
              LogError("Could not locate JRE");
              abort();
         strcpy(JVMPath,JREHome);
         strcat(JVMPath,"\\bin\\client\\jvm.dll");
        if ((handle=LoadLibrary(JVMPath))==0)
              LogError("Error loading: %s", JVMPath);
              abort();
        CreateJavaVM_t pfnCreateJavaVM=(CreateJavaVM_t)GetProcAddress(handle,"JNI_CreateJavaVM");
        if (pfnCreateJavaVM==0)
              LogError("Error: can't find JNI interfaces in: %s",JVMPath);
              abort();
         strcpy(classpathOption,"-Djava.class.path=");
         strcat(classpathOption,dir);
         strcat(classpathOption,";");
         strcat(classpathOption,JREHome);
         strcat(classpathOption,"\\lib");
         strcat(classpathOption,";");
         strcat(classpathOption,JREHome);
         strcat(classpathOption,"\\lib\\comm.jar");
         strcpy(librarypathOption,"-Djava.library.path=");
         strcat(librarypathOption,JREHome);
         strcat(librarypathOption,"\\lib");
         OutputDebugString("classpath option=");
         OutputDebugString(classpathOption);
         OutputDebugString("\n");
         OutputDebugString("librarypath option=");
         OutputDebugString(librarypathOption);
         OutputDebugString("\n");
         options[0].optionString=classpathOption;     
         options[1].optionString=librarypathOption;     
         options[2].optionString="vfprintf";
         options[2].extraInfo=_vfprintf_;
         options[3].optionString="exit";
         options[3].extraInfo=_exit_;
         options[4].optionString="abort";
         options[4].extraInfo=_abort_;
        vmArgs.version  = JNI_VERSION_1_2;
        vmArgs.nOptions = 5;
        vmArgs.options  = options;
        vmArgs.ignoreUnrecognized = false;
         //if(JNI_CreateJavaVM(&jvm, (void**)&env, &vmArgs)<0)
        if(pfnCreateJavaVM(&jvm,(void**)&env, &vmArgs)!=0)
              LogError("Could not create VM");
              abort();
    void main(int argc, char *argv[])
        char path[MAX_PATH];
        char drive[MAX_PATH];
        char file[MAX_PATH];
        char dir[MAX_PATH];
        char ext[MAX_PATH];
         jclass  cls;
         jmethodID mid;
         jobjectArray args;
         if(argc>=2)
              _splitpath(path,drive,dir,file,ext);
              LoadJVM(dir);
              if(env==NULL)
                   LogError("Could not load VM");
                   abort();
              if(GetModuleFileName(NULL,path,MAX_PATH)==0)
                   LogWin32Error("Getting module filename");
                   abort();
              cls=env->FindClass(argv[1]);
              if(cls==NULL)
                   LogError("Could not find class %s (or its superclass)",argv[1]);
                   exit(-1);
              mid=env->GetStaticMethodID(cls,"main","([Ljava/lang/String;)V");
              if(mid==NULL)
                   LogError("Could not find method 'main'");
                   exit(-1);
              args=env->NewObjectArray(argc-2,env->FindClass("java/lang/String"),NULL);
              if(args==NULL)
                   LogError("Could not create args array");
              for(int arg=0;arg<argc-2;arg++)
                   env->SetObjectArrayElement(args,arg,env->NewStringUTF(argv[arg+2]));
              env->CallStaticVoidMethod(cls,mid,args);
              jvm->DestroyJavaVM();
         else
              printf("Usage: runjava classname\n");
              exit(-1);
    //*****************************************************************************

  • URGENT:upgrade to 3.0.8 issue Call to WPG_SESSION API Failed.Error-Code:6550

    I ran upgrade scripts to 3.0.8 from 3.0.6 and completed with no errors.
    csh diag.csh reports no errors.
    sqlplus to connect string works fine
    DAD connect string is correct.
    err text:
    Call to WPG_SESSION API Failed.
    Error-Code:6550
    Error TimeStamp:Tue, 5 Jun 2001 03:36:50 GMT
    Database Log In Failed
    TNS is unable to connect to destination. Invalid TNS address supplied or destination is not listening. This error can also occur because of underlying network transport problems.
    Verify that the TNS name in the connectstring entry of the DAD for this URL is valid and the database listener is running.
    DIAG.CSH output
    oracle(dba)@ws12:/export/home/upgrade:$csh diag.csh -s portal30 -p portal30 ->
    Begining Portal Diagnostics
    ...portal_schema: portal30
    ...portal_password: *************
    ...connect_string: iforce
    Loading java class for Portal Diagnostics ...SQL*Plus: Release 8.1.6.0.0 - Production on Mon Jun 4 20:48:59 2001
    (c) Copyright 1999 Oracle Corporation. All rights reserved.
    Connected to:
    Oracle8i Enterprise Edition Release 8.1.6.0.0 - Production
    With the Partitioning option
    JServer Release 8.1.6.0.0 - Production
    SQL> SQL> Creating Table 'wwsec_diagnostic$'
    Creating Sequence 'wwsec_diagnostic_seq'
    Diagnostics Report v 1.0: Oracle Portal v 3.0.8.9.8
    As of 04-Jun-2001 20:49:02 Schema Name: PORTAL30 SSO Schema Name: portal30_sso
    PORTAL30.wwsec_enabler_config_info$
    Login Server URL : http://ws12.sempi.eng.sun.com:7777/pls/portal30_sso/portal30_sso.wwsso_app_admin.ls_login
    DAD : portal30_sso
    Host connection : successful.
    mod_plsql : working.
    JServ : working.
    Schema name : portal30_sso
    Connect string : iforce
    Authentication mode : Single Sign-On
    portal30_sso.wwsec_enabler_config_info$
    Login Server URL : http://ws12.sempi.eng.sun.com:7777/pls/portal30_sso/portal30_sso.wwsso_app_admin.ls_login
    DAD : portal30_sso
    Host connection : successful.
    mod_plsql : working.
    JServ : working.
    Schema name : portal30_sso
    Connect string : iforce
    Authentication mode : Single Sign-On
    Partner Application Information
    **** Oracle Portal (portal30) ****
    Home URL : http://ws12.sempi.eng.sun.com:7777/pls/portal30/portal30.home
    Success URL : http://ws12.sempi.eng.sun.com:7777/pls/portal30/portal30.wwsec_app_priv.process_signon
    DAD : portal30
    Host connection : successful.
    mod_plsql : working.
    JServ : working.
    Schema name : portal30
    Connect string : iforce
    Authentication mode : Single Sign-On
    **** The Login Server (portal30_sso) ****
    Home URL : http://ws12.sempi.eng.sun.com:7777/pls/portal30_sso/portal30_sso.home
    Success URL : http://ws12.sempi.eng.sun.com:7777/pls/portal30_sso/portal30_sso.wwsso_home.process_signon
    DAD : portal30_sso
    Host connection : successful.
    mod_plsql : working.
    JServ : working.
    Schema name : portal30_sso
    Connect string : iforce
    Authentication mode : Single Sign-On
    Diagnostics completed successfully!
    Disconnected from Oracle8i Enterprise Edition Release 8.1.6.0.0 - Production
    With the Partitioning option
    JServer Release 8.1.6.0.0 - Production
    null

    Venu
    Have you also upgraded your 9iAS instance to 1.0.2.2? The WPG_SESSION API error commonly appears when you are not using the lastest version of mod_plsql contained in 1.0.2.2.
    See: Migration Guide for Oracle9iAS Solaris or NT/2000.

  • Call to WPG_SESSION API Failed. Error-Code:6550

    Can someone please help me figure out what I may be doing wrong? Using recent downloaded versions of 8i and 9iAS I cannot access Portal30 using IE5 browser. Please see error below. During portal configuration I specified connect string of oracle:1521:dba1. The connectstring entry of the DAD is dba1. I ran ssodatan. The database is open, listener is listening and SQL*Plus, DBA Studio, Net8 Assistant all connect to dba1 fine. Discussions mention cookies, upgrades, etc., but nothing definitive. Troubleshooting Guide does not reference error 6550. I am at a loss. Any suggestions would be appreciated.
    I downloaded and installed 8.1.7 on NT host oracle then downloaded and installed 9iAS on another NT host. Portal Diagnostics are successful, however I get database login failed when attempting to use IE5 browser to access portal at http://oracle/pls/portal30/PORTAL30.home
    Here's the diags:
    D:\ora9ias\portal30\admin\plsql>set ORACLE_HOME=d:\ora9ias
    D:\ora9ias\portal30\admin\plsql>diag -s portal30 -c dba1
    Begining Portal Diagnostics
    ...portal_schema: portal30
    ...portal_password: *************
    ...portal_connect_string: dba1
    Loading java class for Portal Diagnostics ...
    SQL*Plus: Release 8.1.7.0.0 - Production on Wed Jul 25 08:41:58 2001
    (c) Copyright 2000 Oracle Corporation. All rights reserved.
    Connected to:
    Oracle8i Enterprise Edition Release 8.1.7.0.0 - Production
    With the Partitioning option
    JServer Release 8.1.7.0.0 - Production
    Creating Table 'wwsec_diagnostic$'
    Creating Sequence 'wwsec_diagnostic_seq'
    Diagnostics Report v 1.01: Oracle Portal v 3.0.9.8.0
    As of 25-Jul-2001 08:42:17 Schema Name: PORTAL30 SSO Schema Name: portal30
    _sso
    Proxy Server Settings:
    HTTP Server:
    HTTP Server Port:
    No Proxy Servers for Domains beginning with:
    URL Connection Time-Out (seconds):
    PORTAL30.wwsec_enabler_config_info$
    Login Server URL : http://oracle/pls/portal30_sso/portal30_sso.wwsso_app_admi
    n.ls_login
    DAD : portal30_sso
    Host connection : successful.
    mod_plsql : working.
    JServ : working.
    Schema name : portal30_sso
    Connect string : dba1
    Authentication mode : Single Sign-On
    Partner Application Information
    **** The Login Server (portal30_sso) ****
    Home URL : http://oracle/pls/portal30_sso/portal30_sso.home
    Success URL : http://oracle/pls/portal30_sso/portal30_sso.wwsso_home.pro
    cess_signon
    DAD : portal30_sso
    Host connection : successful.
    mod_plsql : working.
    JServ : working.
    Schema name : portal30_sso
    Connect string : dba1
    Authentication mode : Single Sign-On
    **** Oracle Portal (portal30) ****
    Home URL : http://oracle/pls/portal30/portal30.home
    Success URL : http://oracle/pls/portal30/portal30.wwsec_app_priv.process
    _signon
    DAD : portal30
    Host connection : successful.
    mod_plsql : working.
    JServ : working.
    Schema name : portal30
    Connect string : dba1
    Authentication mode : Single Sign-On
    **** The Login Server (portal30_sso) ****
    Home URL : http://oracle/pls/portal30_sso/portal30_sso.home
    Success URL : http://oracle/pls/portal30_sso/portal30_sso.wwsso_home.pro
    cess_signon
    DAD : portal30_sso
    Host connection : successful.
    mod_plsql : working.
    JServ : working.
    Schema name : portal30_sso
    Connect string : dba1
    Authentication mode : Single Sign-On
    Diagnostics completed successfully!
    Disconnected from Oracle8i Enterprise Edition Release 8.1.7.0.0 - Production
    With the Partitioning option
    JServer Release 8.1.7.0.0 - Production
    D:\ora9ias\portal30\ admin\plsql>
    Call to WPG_SESSION API Failed.
    Error-Code:6550
    Error TimeStamp:Wed, 25 Jul 2001 12:33:52 GMT
    Database Log In Failed
    TNS is unable to connect to destination. Invalid TNS address supplied or destination is not listening. This error can also occur because of underlying network transport problems.
    Verify that the TNS name in the connectstring entry of the DAD for this URL is valid and the database listener is running.
    null

    I met that error several times. Check TNS connection from web server box to database server, if applicable. - use tnsping.
    That's the only cause that produces the error. If the web server box has more than one Oracle Home, find the correct one. Check $iAS_home/Apache/bin/apachectl script which will tell you its oracle home directory. It may not use $TNS_ADMIN/tnsnames.ora, but $ORACLE_HOME/network/admin/tnsnames.ora.

  • Why should Adobe Reader fail to print because of settings in the Edit/Preferences?

    AdobeReaderDocumentCouldNotPrint.txt
    Glyn Price Tue 17 March 2015
    Why should Adobe Reader fail to print because of settings
    in the Edit/Preference?
    Adobe Reader XI Version 11.0.10
    MS Window 7
    File > Print > Print
    I got the error message:
    The document could not be printed
    I googled this error message and used the following
    solution that worked i.e. it then printed successfully.
    Edit >  Preferences
    Category: Security(Enhancement)   'Enable Protected  Mode at Startup'
    It was checked, changed it to unchecked.
    Category: Documents    'View documents in PDF/Mode'
    It was set to 'Only for PDF/A'
    Set it to 'Never'
    Exited Adobe Reader and restart it. Then it printed.
    I had a look on another computer system (Adobe Reader XI Version 11.0.10
    and MS Window 7) and on this different computer I could print
    without doing the above two changes.
    I'm a bit puzzled. Why preferences on one system were not
    needed on a different system?

    Here is an elaborate method of troubleshooting this problem. There may be a simpler method if anybody wants to suggest one.
    There is a general technique that is helpful in this situation. I can't give you complete instructions here, and I haven't tested this with regard to bluetooth devices, but here's the gist of it.
    Create a second log-on account for your music projects. Configure it so that when you log in to the new music account, the drivers needed for the Bluetooth devices don't load. You do this in System Preferences: Accounts.
    When it's time to do music, log out of your usual account and onto the new one.
    When you install drivers for any peripheral, you have the option of installing them "for all users" or only for the user account that is active during the installation.
    This governs whether the drivers go in root/library or root/Users/your name/library.
    If drivers are in root/library, they will load whenever the Mac is booted up and will run for all users.
    But if drivers are loaded in root/Users/your name/library, they will only load if you log in as "your name". If you have a second account called root/Users/music account/, and you log in under that, the drivers in "your name" will not load. Get it?
    To get this working right you need to be knowledgeable about moving or deleting files in the /library/ directory and subdirectories, and you need to be careful because you can unwittingly cause some damage if you are not careful.
    There is also the root/System/library directory, and in general you should never mess around with anything in there or you might hose your system.
    In summary, I would start by using the installer programs for your BlueTooth devices and DE-installing all drivers. Reboot. Log back in as your usual user account. Then RE-install each driver and see if the installer program gives you the OPTION to installl for all users or just for this user. Choose the latter. Then log on to your new Music account and see if the problems go away.

  • Known issue: Speech APIs fail when an x86 package is run on an x64 desktop (Windows 10 Insider Preview SDK and tools, April 2015 release)

    When building an app for the x86 platform, speech APIs fail when the x86 package is run on the desktop of an x64 system. You may see an error with the message "mod not found".

    Use the Visual Studio Configuration Manager to retarget the app to x64 when running on an x64 system.

  • Known issue: Speech APIs fail in Silverlight for Phone (Windows 10 Insider Preview SDK and tools, April 2015 release)

    Silverlight speech APIs fail when running the Silverlight app on a Windows 10 phone.

    There is no workaround for this issue. You should continue to develop your Silverlight application on older versions of Windows Phone.

  • JNI, invocation API

    Hi,
    I would like to start with JNI.
    I read the JNI-Tutorial and
    didn't find the file: jni.h.
    Where can I get it?
    I would like to write an invocation API.
    A VC-program should call a java-function.
    Does anybody know,
    where to find the demo-code (c and java)
    of a 'hello world'-program?
    Thanks
    Ully

    Thanks bschauwe,
    I tested so many things,
    that I installed somethings else,
    but not the sdk!

  • Call to WPG_SESSION API fails with ORA-28231

    Hello,
    9ias 1.0.2.2.1 on SusSE 7.2 with 9.0.1 server.
    When executing http://<server>:<port>/pls/portal30/portal30.home apache logs the error:
    [warn] mod_plsql:Stale connection due to Oracle error 28231
    [error] mod_plsql: /pls/portal30/portal30.home HTTP-503 ORA-28231 <B> Call to WPG_SESSION API failed.</B>
    What is it that I can check here?
    Note:173529.1 says:
    Error: ORA-28231 (ORA-28231)
    Text: no data passed to obfuscation toolkit
    Cause: A NULL value was passed to a function or procedure.
    Action: Make sure that the data passed is not empty.
    Any pointers are greatly appreciated.
    Anatoliy

    At what point do you see this error?
    e.g., On initial page request, or after login, etc.
    Is there any more information in the error_log?
    It looks like there's no data in the cookie when trying to decrypt it.

  • Call to WPG_SESSION API Failed.

    I cannot access the portal from the home page (or any page) I cannot even get into the DAD configuration. I have never seen the new version of portal as it killed my old version on upgrade and I cannot seem to install the new one right. I have followed the install instructions to the T and still cannot get this software to run.
    I am getting really fed up with oracle portal.
    This is a fresh install of 9iAS 1.0.2.1 on windows 2000 I am running 8.1.7.
    Does anyone know what is going on and how to resolve this error?

    Can you tell me where the problem was for you? I am getting wpg_session api failed error 6550. I installed 8.1.7 on one host and 9iAS on another. Diag.exe succeeds. Dads seem to be ok. I can connect to the database using SQL*plus. I just can't get a portal web page.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Chopsaki:
    bill,
    I finally figured out where the problem. As I said I already followed these instructions down to the 'T'. Anyway while you are here... I had a question about uploading images and inserting them into a table as blobs. Does portal support this (without custom dev)? I saw that you had responded to someone about this already, but the document you mentioned was a dead link.
    Thanks for responding and thanks in advance.<HR></BLOCKQUOTE>
    null

  • Call to WPG_SESSION API Failed. Error-Code:20000

    Hi,
    to be short:
    Oracle: 8.1.7.0.0
    When trying to login to the portal application I got this error [bottom of message]
    I downloaded the diag tool and run it against my configuration, everything was reported OK.
    I've also searched all through this forum and have read similar problem, but nobody had error code 20000.
    Would you please guide me?
    Call to WPG_SESSION API Failed.
    Error-Code:20000
    Error TimeStamp:Thu, 29 Mar 2001 16:41:15 GMT
    Database Log In Failed
    TNS is unable to connect to destination. Invalid TNS address supplied or destination is not listening. This error can also occur because of underlying network transport problems.
    null

    Reza,
    Is this a new install?
    If so, on a new install, you often need to create an entry in the tnsnames.ora file within the Oracle9iAS $ORACLE_HOME. You can do this simply by copying the information from your tnsnames.ora in your Oracle 8.1.7 $ORACLE_HOME/network/admin.
    A lot of times, it could also be a difference of Portal trying to connect to the database with:
    ORA817.company.com
    instead of
    ORA817
    or vice versa.
    Check http://myhost.mydomain.com/pls/admin_/gateway.htm
    In each DAD, it will specify the connect string that Portal is trying to use to connect with. Make sure your tnsnames.ora is using the same.
    If this is not a new install, you may have just had a problem with the database. If this is not production, rather than debugging the problem connecting to the database. I have found that restarting the database and webserver usually works, that will at least get you back up and running. Then you can check the alert.log in the database for any problems or issues such as too many sessions, etc.
    Thanks,
    Sue

  • Why is auto tagging failing?

    Everytime I try to auto-tag any of the scripts I'm currently working from I get an error message, "Auto tagging has failed, please try again later". Is this aspect of the service down. I just upadated my Adobe Air to see if that was the problem but it still persists.

    I am having the same issue. I have tried creating a new film script from scratch with only a few lines and auto tagging everytime. "Auto tagging has failed, please try again later". Anyone know why auto tagging is failing? Are there any logs to see what the issue is?

Maybe you are looking for

  • How to insert special characters in pdf comments

    Now, we are ready to go "no paper" workflow, and so mark anything on pdf file, but we cannot insert most of special characters in PDF comments. Same as here, and the xml entity is "&PSgr;", "how to archive it?

  • CS6 crashes on exporting to PDF

    When I try to export a document as a PDF, CS6 keeps crashing. I've got a few PDFs in the document and have tried deleting them completely to see if they were the reason for the crashing. However it still keeps crashing. This is really frustrating as

  • Wrong display manager resolution

    Hi! I installed Arch with LXDE as desktop environment and LXDM as display manager (as I did on two other machines before with perfect result). Strangely enough, on this machine the screen resolution was not set automatically to the monitor's default

  • [Solved] USB 3 (uPD720200) only detects devices at boot time.

    Hello. I have an HP Probook 4530s laptop with an onboard USB 3 port. A device that is plugged into it before boot shows up in lsusb and can be used normally, but hotplugging a device will not work. Relevant outputs after booting with a drive plugged

  • Getting 404 error when trying to create a powerview report from a BISM (SharePoint 2013)

    When clicking on the BISM file, I would get a 404 FILE NOT FOUND.   But when I go through the menu of the BISM file and click on Create Power View Report, it will works, but not when i left click on the file. Please help. Thank you.