Can't create Java Object in ASP

Hi:
I'm attempting to incorporate a Java class that uses the following packages into an .ASP page
import java.security.*;
import java.io.*;
import java.net.URLDecoder;
import java.util.*;
import javax.crypto.*;
import com.sun.crypto.provider.SunJCE;
After compiling the file, registering with javareg.exe, and copying it to \winnt\trustlib\, I attempt to view the .ASP page and get the following:
Error Type:
Server object, ASP 0177 (0x80040111)
ClassFactory cannot supply requested class
I believe I need to reference various .JAR files, either when I use javareg.exe or within the .ASP.
Can anyone offer any insight into what the ClassFactory might be expecting?
Thanks,
Joel

I am repeatedly getting the following error:
Server object, ASP 0177 (0x80040111)
ClassFactory cannot supply requested class
I have checked my classpaths, and the paths do include the one that the class does reside on. In a reply posted by somebody earlier it was mentioned to check whether it was on the ASP classpath. What is this classpath?
Thanks for your help. This is very frustrating as it should be working!

Similar Messages

  • Can I create the object of an protected inner class of a Base class in to t

    Dear All,
    Can I create the object of an protected inner class of a Base class in to the subclass ?
    e.g.
    public class Base{
         protected class Inner {};
    Public class Sub extends Base{
         Public Inner amethod (){
              Return new Inner(); //here I get an exception as
                                //Inner has protected access
    }Regards,
    Ishan

    @Op. The code that you posted isn't close to compiling. Java is case sensitive. It should be public and not Public, and return instead of Return.
    Kaj

  • How can I create a object for a note?

    Hi experts,
        I need to apply the note 501905 but when I try in the SNOTE transacction I receive this error:
    Object REPS Z_MRM_DELETE_PP does not exist; create it
    Diagnosis
    The SAP Note that you want to implement contains changes to an object that does not yet exist in your system.
    SAP Notes contain only changes to objects that already exist. This means that the the system cannot automatically create new objects during the implementation of this SAP Note.
    Procedure
    1. Cancel the SAP Note implementationl.
    2. Create an empty object REPS Z_MRM_DELETE_PP with the corresponding object editor.
    3. Restart the SAP Note implementation.
    How can I create that Object??
    Thanks for the help!

    Hi Carlos,
    It says that you have to create a new program with a name Z_MRM_DELETE_PP.
    Once you create and activate the program you can execute the SAP Note.
    All this processure will be written in the SAP Note.
    Please Go through the Note using below:
    Step1: Use T.code SNOTE.
    Step2: Use menu GOTO --> NOTE BROWSER. Provide the Note no and EXECUTE.
    Step3: Double click on the displayed line.
    Here you will get the information to do before implementing the note.
    Go through all the documentation, and once you did all the development given in the note then you can implement the note.
    Regards,
    Sreekanth.

  • Run-time error '429':Active X component can not create an object

    Hi Folks,
    I am using some VBA code to run logic in BPC for Excel. When i try to click on VBA button, It's giving the below error.However when i am trying to execute same from server it is working fine. Accessing from BPC client only we are facing this problem.
    Code have no issues. Is there any specific thing need to mentioned in client when we use VBA programming? Basically we used the VBA program to create the id's in BPC for Excel. So that it will automatically created on fly. Testing was fine interms of working in Server.
    " Run-time error '429':Active X component can not create an object ."

    Hi,
    Are you trying to add a member into the dimension from excel? As you said that this has been already tested in the server and is working fine, I believe, you have taken care of everything.
    Now, coming to the point, when you are adding a member in the membersheet, you need to process the dimension. This requires the admin rights. So, please check the task profile of the user ID, with which you are trying from your system. This user ID should be the primary admin.
    Hope this helps.
    Additionally, can you please elaborate on the steps on what you followed for adding a member from the excel directly?

  • Can't create Java VM [Code :- 3 ] with JNI_CreateJavaVM()

    hello all,
    I am trying to create an inctance of JVM from C/CPP ( iam using VC++ editor) on windows. My code to create JVM is :
    res = JNI_CreateJavaVM(&jvm, (void **)&env, &vm_args);
    as a reasult of this call, -3 is returned to res.
    please help me to create a JVM and/or call a java class from C/CPP
    Thanks in advance,
    Soujanya.R

    I tried to run it this way :-
    #include <jni.h>
    #include <windows.h>
    #define JNI_EVERSION (-3) /* JNI version error */
    #define PATH_SEPARATOR ';'
    #define USER_CLASSPATH "." /* where Prog.class is */
    void main() {
              JNIEnv *env;
              JavaVM jvm = (JavaVM )0;
              jint res;
              jclass cls;
              jmethodID mid;
              jstring jstr;
              jobjectArray args;
              HINSTANCE hVM = NULL;
              JavaVMInitArgs vm_args;
              JavaVMOption options[4];
              printf("\noptions");
              options[1].optionString = "-Djava.class.path=C:/j2sdk1.4.1_07/jre/lib/rt.jar;E:/test/c/Debug/"; /* user classes */
              options[2].optionString = "-Djava.library.path=lib"; /* set native library path */
              options[0].optionString = "-Djava.compiler=NONE";
              //options[1].optionString = "-Djava.class.path=c:\\My Folder"; /* user classes */
              //options[2].optionString = "-Djava.library.path=C:\\j2sdk1.4.2_04\\include";
              options[3].optionString = "-verbose:jni";
              printf("\nversion info");
              vm_args.version = JNI_VERSION_1_2;
              vm_args.options = options;
              vm_args.nOptions = 4;
              vm_args.ignoreUnrecognized = TRUE;
              printf("\ncreate");
              hVM = LoadLibrary("C:/j2sdk1.4.1_07/jre/bin/client/jvm.dll");
              if (hVM == NULL)
                   printf("hVM is null ");
              res = JNI_CreateJavaVM(&jvm, (void **)&env, &vm_args);
              if (res < 0) {
                   fprintf(stderr, "Can't create Java VM \n",res);
                   exit(1);
              cls = env->FindClass("HelloWorld");
              //cls = env.FindClass(env,"helloWorldClass");
              if (cls == 0) {
                   fprintf(stderr, "Can't find Prog class\n");
                   exit(1);
              mid = env->GetStaticMethodID(cls, "main", "([Ljava/lang/String;)V");
              if (mid == 0) {
                   fprintf(stderr, "Can't find Prog.main\n");
                   exit(1);
              jstr = env->NewStringUTF(" from C!");
              if (jstr == 0) {
                   fprintf(stderr, "Out of memory\n");
                   exit(1);
              args = env->NewObjectArray(1, (*env).FindClass("java/lang/String"), jstr);
              if (args == 0) {
                   fprintf(stderr, "Out of memory\n");
                   exit(1);
              env->CallStaticVoidMethod(cls, mid, args);
              jvm->DestroyJavaVM();
    I could run the program.
    You need to have the C:\j2sdk1.4.1_07\lib\jvm.lib entries in Project->Settings->Link Tab
    When you open the Settings dialog box you will see Win32Debug in the
    drop down . You need to provide the entries for that page .
    Then change the drop down to Win32 Release and make an entry similarly there too.
    You should be able to run your code.
    Vishal                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Can't create Java VM ?

    Hi,
    I tried to invoke JavaVM in C. And use the example from http://java.sun.com/docs/books/tutorial/native1.1/invoking/invo.html.
    But when runed it after compiled it in Win32 with VC6.
    It just can't create the VM. The following is the source:
    ========================================
    #include <jni.h>
    #ifdef _WIN32
    #define PATH_SEPARATOR ';'
    #else /* UNIX */
    #define PATH_SEPARATOR ':'
    #endif
    #define USER_CLASSPATH "." /* where Prog.class is */
    main() {
         JNIEnv *env;
         JavaVM *jvm;
         jint res;
         jclass cls;
         jmethodID mid;
         jstring jstr;
         jobjectArray args;
         char classpath[1024];
         JavaVMInitArgs vm_args;
         JavaVMOption options[4];
         options[0].optionString = "-Djava.compiler=NONE"; /* disable JIT */
         options[1].optionString = "-Djava.class.path=.";                     /* user classes */
         options[2].optionString = "-Djava.library.path=.";                /* set native library path */
         options[3].optionString = "-verbose:jni"; /* print JNI-related messages */
         vm_args.version = JNI_VERSION_1_2;
         vm_args.options = options;
         vm_args.nOptions = 4;
         vm_args.ignoreUnrecognized = 1;
    JNI_GetDefaultJavaVMInitArgs(&vm_args);
    /* Append USER_CLASSPATH to the end of default system class path */
    //sprintf(classpath, "%ls%c%s", vm_args.classpath, PATH_SEPARATOR, USER_CLASSPATH);
    //vm_args.classpath = casspath;
    /* Create the Java VM */
    res = JNI_CreateJavaVM(&jvm, &env, &vm_args);
    if (res < 0) {
    fprintf(stderr, "Can't create Java VM\n");
    exit(1);
    cls = (*env)->FindClass(env, "Prog");
    if (cls == 0) {
    fprintf(stderr, "Can't find Prog class\n");
    exit(1);
    mid = (*env)->GetStaticMethodID(env, cls, "main", "([Ljava/lang/String;)V");
    //mid = (*env)->GetMethodID(cls, "Yup","(I)Ljava/lang/String;"); /* Search the Method of class*/
    if (mid == 0) {
    fprintf(stderr, "Can't find Prog.main\n");
    exit(1);
    jstr = (*env)->NewStringUTF(env, " from C!");
    if (jstr == 0) {
    fprintf(stderr, "Out of memory\n");
    exit(1);
    args = (*env)->NewObjectArray(env, 1, (*env)->FindClass(env, "java/lang/String"), jstr);
    if (args == 0) {
    fprintf(stderr, "Out of memory\n");
    exit(1);
    (*env)->CallStaticVoidMethod(env, cls, mid, args);
    (*jvm)->DestroyJavaVM(jvm);
    ========================================
    Would you please to tell me why it failed and please show me a simple example ?
    Best regards,
    Eric

    I have the same problem,
    /* Create the Java VM */
    res = JNI_CreateJavaVM(&jvm, (void **)&env,
    nv, &vm_args);
    if (res < 0) {
    fprintf(stderr, "Can't create Java VM: %d\n",
    %d\n", res);
    exit(1);
    res is -1...but I'm not using windows, I'm using Linux
    and Solaris...Hi there,
    I also have problem calling JNI_CreateJavaVM on Linux (returns -1). Have you been able to solve this in the meantime?

  • ActiveX can´t create the object xl reporter

    hola tengo SAP BO 2005
    con el xl reporter ahora que lo quiero correr me aparece el error de que el ActiveX can´t create the object
    probe reinstalando todo y nada, asi como cambiando el dll de los lenguajes
    alguna otra sugerencia
    gracias

    Estimado Salvador,
    Gracias por remitir su inquietud al soporte de SAP B1 en español.
    Inicialmente le pedimos verifique que esta utilizando una versión soportada de Microsoft Office. Tal y como se documenta en el Service Market Place:
    https://service.sap.com/smb/sbo/platforms                   
    Si cuenta con alguna de las versiones soportadas, verifique lo siguiente :                                                                               
    El mensaje de error podria estar relacionado a el DI API. Favor aplicar los siguientes pasos:
    1.  Ubicar el archivo '"temp" por medio de  Start -> Run , tipear  %temp%.    
    2.  Ubicar la carpeta  SM_OBS_DLL folder y borrarla.                  
    3.  Desde añadir/remover programas, desinstalar el DI API.                      
    4.  Reiniciar el PC.                                                      
    5.  Instalar el  DI API desde la carpeta del parche en uso (en la carpeta "packages")   
    Esperando lo anterior les permita solventar lo reportado.
    Queda a sus gratas ordenes,
    Juan Manuel Marrero
    SAP Business One Forums  Team

  • Error run-time 429 ActiveX can't create the object Financial Reporting

    Hi everybody,
    I'm trying to run Financial Reporting 9.3.1 on my pc with Winodws Vista but as I launch the exe it shows me an error message:
    Error run-time 429 ActiveX can't create the object
    I know it works out with XP. Is there a problem with Vista? How can I fix it?
    Thanks in advance
    Giacomo

    I cannot say this IS your problem, but some oddities I ran into installing the report client on my laptop in my current environment ....
    #1 - Even though you type in your username and password in the Reports login box, it apparently uses the credentials of the logged on user.
    #2 - The machine MUST be on the domain that is used for authentication or it flat out won't work (see item #1)
    #3 - I ran into the ActiveX error once and apparently something did not register properly during the install. To fix it :
    Run the batch file : %HYPERION_HOME%\BIPlus\install\bin\HRRunAnt.cmd
    Where %HYPERION_HOME% is the main hyperion folder. (i.e. c:\hyperion )
    After the script executes, reboot your machine. You MUST reboot.
    Hope that helps.

  • Can we create a object for servlet

    and can we use constructor inside a servlet .If yes at what situations we can use

    Servlet is an object. Not sure what you need. You can create objects inside a Servlet, or any Java class...
    and can we use constructor inside a servlet.Sure, but most people don't because Servlets are container managed (i.e. you don't instantiate it)
    If yes
    at what situations we can useNot sure what you are asking here, but you can instantiate the servlet anywhere.

  • Tool to create Java Object classes using the Database Tables

    Hi,
    Is their any tools or utility available to create the Java Object Classes using the Database Tables as input.
    Lets Say I am having the Employee, Employee_Salary tables in the Database.The utility has to create the Java Object classes with the relation.
    Please Help...
    Thx..

    Hm, for generating regular Java classes I wouldn't know one from memory. But I suggest you start searching in for example the Eclipse marketspace for a third party plugin that can do it. If all fail, you could always use Hibernate Tools from the Jboss Tools Eclipse plugin set to generate Hibernate/JPA entities and then strip the annotations from them to turn them into regular POJO classes.
    How many tables are we talking about anyway? It might be less effort to just create the classes with properties and then use an IDE to generate getters and setters for them.

  • Can we create entity object based on a text file on the OS?

    I understand you can interface with files using webDAV. Can we just create a entity object with source to a text/xml file on the OS instead of a table?

    Have a look at the URL data source (under new->business tier->web services) - it allows you to create a data control based on an XML or csv file.
    http://technology.amis.nl/blog/?p=1592
    You can also create a data control based on a Java class that interact with a file.

  • Create java objects from xml

    I want to create a tree structure for java object. These java objects are populated after the parsing the xml. But what could be the logic for adding child to parent when there are
    many sub nodes? I wanted to use one recursive function which iterate through all the elements of the xml file. But I have not got the idea how to add one child object to parent object.
    following are my classes. Any help on this highly appreciated.
    public class TreeObject {
              private String name;
              private TreeParent parent;
              public TreeObject(String name) {
                   this.name = name;
              public String getName() {
                   return name;
              public void setParent(TreeParent parent) {
                   this.parent = parent;
              public TreeParent getParent() {
                   return parent;
              public String toString() {
                   return getName();
    import java.util.ArrayList;
    public class TreeParent extends TreeObject {
         private TreeObject treeObject ;
              private ArrayList children;
              public TreeParent(String name) {
                   super(name);
                   children = new ArrayList();
              public void addChild(TreeObject child) {
                   children.add(child);
                   child.setParent(this);
                   treeObject = child ;
              public void removeChild(TreeObject child) {
                   children.remove(child);
                   child.setParent(null);
              public TreeObject [] getChildren() {
                   return (TreeObject [])children.toArray(new TreeObject[children.size()]);
              public boolean hasChildren() {
                   return children.size()>0;
              public TreeObject getChild(){
                   return treeObject;
    private TreeParent getChilderen(Element rootNode){
         List list = rootNode.getChildren();
         String rootNodeName = rootNode.getName();
         TreeParent root = new TreeParent(rootNodeName);
         for (int i=0; i< list.size(); i++)
    Element node = (Element) list.get(i);
    if(node.getChildren().size() > 0){
         // TreeParent treeParent = new TreeParent(node.getText());
         TreeParent treesub = new TreeParent(node.getText());
         treesub.addChild(treesub);
         //TreeParent p = treeParent.getParent();
         // rootParent.addChild(treeParent);
    }else{
         TreeObject object = new TreeObject(node.getText());
         root.addChild(object);
    getChilderen(node);
         return root ;
    public TreeParent buildTree(String filePath) {
    SAXBuilder builder = new SAXBuilder();
    File xmlFile = new File(filePath);
    try{
    Document document = (Document) builder.build(xmlFile);
    Element rootNode = document.getRootElement();
    // List list = rootNode.getChildren("staff");
    TreeParent rootParent = getChilderen(rootNode);
    return rootParent ;
    }catch(IOException io){
    System.out.println(io.getMessage());
    }catch(JDOMException jdomex){
    System.out.println(jdomex.getMessage());
    return null;
    Edited by: 870611 on Jul 6, 2011 6:27 AM

    Hi
    I recommend you use the API JAXB. Is much simpler.
    here a link: http://www.oracle.com/technetwork/articles/javase/index-140168.html
    here a example: http://download.oracle.com/javaee/5/tutorial/doc/bnbay.html#bnbbc

  • Can we create custom objects in WebI 4.0 BICS connectivity in BI 4.0 ?

    Hi All,
    I am using BI 4.0 and would like to know if we can create custom objects(measures or dimensions) in WebI 4.0 using the BICS connectivity with SAP BW BEx Queries?
    Rohit

    Hi,
    No, I'm afraid that's not possible with the BICS 'transient universe' (because you cannot edit the BW OLAP business layer  in IDT)
    Sure - in XI3.1, SAP Integration Kit,   OLAP .unv universes,  it was possible to do custom objects  with  MDX and XML tags.
    Infact, the UDT is still available in BI 4.0
    Regards,
    Henry

  • Why can't created an object in the "public static void main(String args[])"

    Example:
    public Class Exp {
    public static void main(String args[])
    new Exp2();-------------> To Occur Error
    Class Exp2 {
    public Exp2()

    You can't create an inner class within main, because
    it is a static method. Inner classes can only be
    created by true class methods.This is not correct. You can create an inner class object in a static method. You just have to specify an outer class object that the inner class object should be created within:
    Exp2 exp2 = new Exp().new Exp2();

  • Can't create Zen objects with Zen 4.01B

    I removed my Zen 4.01B install from my server, deleted all the objects and
    directories on my Netware 5.1 sp7 server running Edir 8.7.3.7.
    I have reinstalled Zen from my 4.01B patch download, as a new install.
    I can create all my objects except for 3, at least so far.
    can't create the following, ZenInvService ZendmwolService
    ZenimagingService.
    It gives me "There is not a snap-in to create this type of object." error.
    I have downloaded the IR7 C1 snapin download and applied it to my local
    copy of Console1 running 1.3.6.e.
    Do I have to install from my original CD of 4.0.1 then apply the B patch,
    or is it something else?

    > You are not running E-Dir 8.8 on this box are you?
    > This does not support ZEN before ZFD7SP1.
    >
    > While I dont think they are supported on NW6.x, I believe folks have
    > gotten them working.
    >
    > Sorry nobody has a good answer yet.
    >
    > [email protected] wrote:
    > >> I removed my Zen 4.01B install from my server, deleted all the
    objects
    > > and
    > >> directories on my Netware 5.1 sp7 server running Edir 8.7.3.7.
    > >> I have reinstalled Zen from my 4.01B patch download, as a new install.
    > >> I can create all my objects except for 3, at least so far.
    > >> can't create the following, ZenInvService ZendmwolService
    > >> ZenimagingService.
    > >> It gives me "There is not a snap-in to create this type of object."
    > > error.
    > >> I have downloaded the IR7 C1 snapin download and applied it to my
    local
    > >> copy of Console1 running 1.3.6.e.
    > >>
    > >> Do I have to install from my original CD of 4.0.1 then apply the B
    > > patch,
    > >> or is it something else?
    > >>
    > > May have answered my own question. I am actually installing Zen 4.01B
    on a
    > > different server this time, it is running Netware 6.5 Sp5. As I recall
    > > Inventory and the Import service do not work on Zen 4.01B when you
    install
    > > it on Netware 6.5.
    > > Would you agree?
    > >
    > >
    >
    >
    > --
    > Craig Wilson
    > Novell Product Support Forum Sysop
    > Master CNE, MCSE 2003, CCN
    Well, for whatever reason we reinstalled our Novell licensed download and
    reinstalled Zen and our licenses and everything works.

Maybe you are looking for