Creating the class on the fly.

Hi all,
I want to create a class not an instance on runtime. Is there any way to create a class on runtime and then get its intance?
Rana.

As I see it you'll need to create and compile a .java file it in runtime. Getting an instance can be then done through reflection.
The class java.lang.Compiler may prove useful.
You can use the sun's javac for getting started but you can't distribute it. IBM has an open source java compiler: http://oss.software.ibm.com/developerworks/opensource/jikes/
Creating a new instance of a class: Class.forName("full.class.Name").newInstance() (assuming you have a no-arg constructor)

Similar Messages

  • Import the classes in the package java.util

    I haven't taken a class in two years so I have ideas but am unsure of myself, and I most likely am way off base, but is this how you import the classes in the package java.util
    import java.util.*;
    I would appreciate anyone's help. I have a lot of questions.
    Thanks,
    rp

    My assignment is below so that you will know exactly what I am asking. I am being asked to create an instance of LinkedList. I know that this is a part of the java.util. So when you create an instance of LinkedList would that be similar to instance variables? or am I misunderstanding something. I have several ideas, so I will start with the first one.
    LinkList();
    I really appreciate your taking the time to answer my questions to help me to rebuild my confidence in doing this.
    Thanks,
    // 2. import the classes in the package java.util
    public class MyProgram
         public static void main(String [] args)
              // 3. Create an instance of LinkedList
              // 4. add 5 entries to the list so that it contains
              //     Ann, Bart, Carl, Dirk, Zak
              // 5. display the list on one line using a loop and ADT list methods
              System.out.println("\n\n3. ");
              // 6. display the list using one println
              System.out.println("\n\n4. ");
              // 7. create a ListIterator object for the list
              // 8. display the list on one line using the iterator
              System.out.println("\n\n6. ");
              // 9. restore the iterator to the first item in the list
              // 10. retrieve and display the first item in the iteration,
              //      then advance the iterator to the next item
              System.out.println("\n\n8. ");
              // 11. advance the iterator to the end of the list without displaying anything;
              //      do not use the length of the list
              // 12. display the last item in the list
              System.out.println("\n\n10. ");
              // 13. move back to the beginning of the list without displaying anything;
              //      do not use the length of the list
              // 14. display the first item in the list
              System.out.println("\n\n12. ");
              // 15. advance the iterator to the end of the list without displaying anything;
              // 16. advance the iterator - what happens?
              System.out.println("\n\n14. ");
              // 17. advance the iterator within a try block; catch the exception, display a message,,
              //      and set the iterator back to the beginning of the list.
              System.out.println("\n\n15. ");
              // 18. what does nextIndex and previousIndex return?
              System.out.println("\n\n16. ");
              // 19. move the iterator to the third item in the list; if you were to
              //      execute next(), the third item would be returned and the iterator
              //      would advance to the 4th item.
              System.out.println("\n\n17. ");
              // 20. add the string "New" to the list; where is it inserted relative to
              //      the current item in the iteration?
              System.out.println("\n\n18. ");
              // 21. remove the current item; what happens?
              System.out.println("\n\n19. ");
              // 22. display the current item in the list without advancing the iteration
              //      in 2 ways, as follows:
              // 22A - using only iterator methods
              System.out.println("\n\n20A. ");
              // 22B using an iterator method and list methods
              System.out.println("\n\n20B. ");
              // 23. advance the iterator and remove the current item; which one is removed?
              System.out.println("\n\n21. ");
              // 24. move the iterator back and remove the current item; which one is removed?
              System.out.println("\n\n22. ");
              // 25. move the iterator to the first item in the list and change it to "First"
              System.out.println("\n\n23. ");
         } // end main
    } // end MyProgram

  • The class of the deferred-methods return type "{0}" can not be found.

    I am developing a multilingual portal application.
    I have the method that changes the locale based on user's choice in the bean and the method is being referred to as below.
    <af:selectOneChoice label="Select Language" autoSubmit="true"
    value="#{localeBean.locale}"
    valueChangeListener="localeBean.changeLocale">
    <af:selectItem label="English" value="en" id="si1"/>
    <af:selectItem label="French" value="fr" id="si2"/>
    <af:selectItem label="Dutch" value="nl" id="si3"/>
    </af:selectOneChoice>
    when i try to run the application, i am getting compile time errors as below,
    The class of the deferred-methods return type "{0}" can not be found.
    No property editor found for the bean "javax.el.MethodExpression".
    After going through the discussion forums i learned that the compilation errors can be resolved by setting the <jsp:directive.page deferredSyntaxAllowedAsLiteral="false> at the starting of the page.
    Even after that i am getting the compilation error.
    Any solutions, suggestions or possible approaches would be helpful as i am new to Webcenter Portal development.
    Thanks,

    The error you get points to a problem on the page (somewhere). Switch to source mode and check the right margin if you see orange or red marks. These are pointing to problems (not all are show stoppers, but they give you hints that something is not according to the standard for jsf, jsff, jsp or jspx pages.
    Have you checked that the bean is correctly defined and that it's reachable?
    Start a fresh page and isolate the problem, e.g. build a selectOneChoiuce on the new page (don't copy it as you might copy the error too) and make it work on the new page. Once you have it running you can compare the solution to your not running page.
    Timo

  • How to convert the class in the one package to same class in the other pack

    How to convert the class in the one package to same class in the other package
    example:
    BeanDTO.java
    package cho3.hello.bean;
    public class BeanDTO {
    private String name;
    private int age;
    * @return
    public int getAge() {
         return age;
    * @return
    public String getName() {
         return name;
    * @param i
    public void setAge(int i) {
         age = i;
    * @param string
    public void setName(String string) {
         name = string;
    BeanDTO.java in other package
    package ch03.hello;
    public class BeanDTO {
    private String name;
    private int age;
    * @return
    public int getAge() {
         return age;
    * @return
    public String getName() {
         return name;
    * @param i
    public void setAge(int i) {
         age = i;
    * @param string
    public void setName(String string) {
         name = string;
    My converter lass lokks like
    public class BeanUtilTest {
         public static void main(String[] args) {
              try
                   ch03.hello.BeanDTO bean=new ch03.hello.BeanDTO();
              bean.setAge(10);
              bean.setName("mahesh");
              cho3.hello.bean.BeanDTO beanDto=new cho3.hello.bean.BeanDTO();
              ClassConverter classconv=new ClassConverter();
              //classconv.
              System.out.println("hi "+beanDto.getClass().toString());
              System.out.println("hi helli "+bean.toString()+" "+bean.getAge()+" "+bean.getName()+" "+bean.getClass());
              Object b=classconv.convert(beanDto.getClass(),(Object)bean);
              System.out.println(b.toString());
              beanDto= (cho3.hello.bean.BeanDTO)b;
              System.out.println(" "+beanDto.getAge()+" "+beanDto.getName() );
              }catch(Exception e)
                   e.printStackTrace();
    But its giving class cast exception. Please help on this..

    Do you mean "two different layers" as in separate JVMs or "two different layers" as in functional areas running within the same JVM.
    In either case, if the first class is actually semantically and functionally the same as the second (and they are always intended to be the same) then import and and use the first class in place of the second. That's beyond any question of how to get the data of the first into the second if and when you need to.
    Once you make the breakthrough and use one class instead of two I'd guess that almost solves your problem. But if you want to describe your architecture a little that would help others pin down want you're trying to do.

  • Who know how to use the class in the "oracle.cabo.data.jbo.ui.data.bind"

    I think the class in the packet will be useful.
    But I don't konw how to use it.
    Do you get me a example.
    Thanks.

    Hi,
    Issue has been resolved. I used the value of the element to determine to display it or not.
    Regards,
    Swapnil K.

  • Compile and call the class during the runtime

    Hi guys,
    I am struggling with a project, which allow user to modify the behavior of the program.
    To do this, my Java code must be able to compile the Java code (*.java) and call the class from the code during the runtime.
    Here are my code:
    com.sun.tools.javac.Main javac = new com.sun.tools.javac.Main();
    String[] options = new String[] {"d:\\javaExternal\\RunTimeCompilation.java"};
    System.out.println(Main.compile(options));This allows me to compile the .java file into .class file. However, I can't find the way to access/use the .class file.
    Do you guys have solution for this?
    Thanks a lot.

    You will also need to investigate class unloading and proxies since presumably they can modify the file and compile it again.
    Might note that in general this seldom works for business solutions. It seems like allowing the users to add their own functionality would be a good idea so the programmers don't have to keep doing it. But the reality is that then the users must become programmers. And often must be pretty good at it as well since they must not only know the programming language but also the framework too. The second problem is that it also becomes a maintenance nightmare for the real developers to upgrade the existing system.

  • Error : the class does not match the class of the persisted object

    Hi I am new to Java.. I got an exception "the class does not match the class of the persisted object for cl = java.util.Vector : __SUID = -2767605614048989439, getSUID(cl) = 1".. What it implies? I got Serialized stream and Object from Web Server.. How to resolve this Exception? I nead to Deserialize this stream...

    ArulPrabhu wrote:
    Friend... I agree with u... Every thing Ok... I am not having the option to make change on the server side... I call a webrequest for the URI - "http://www.nseindia.com/chartdata?mkttype=N&series=EQ&symbol=RPOWER&charttype=ONLINE_STOCK".. From that i got response as Serialized Object Stream... Which is the data made available to all through their applet "Chart".. But i need it for my Custom Project.. I know the Structure of class they have serialized... Is their any chance to parce Data from that Stream..
    Three words.
    You are doomed.
    Whatever you end up doing will not be serialization. It will be reverse engineering of a old (dead) format that could go all pear shaped on you when you least expect it. One of the worst problems in using a solution where you reverse engineer, try and guess hackery your way through a proprietary semi (or totally) undocumented format is that it is really impossible to test your code with any degree of certainty. Does your code actually work? Or does it only work because you haven't seen some totally unexpected (but legal for the format) format yet?
    Get the producer to produce XML instead of "serialized" data. This is a much better route for you to go down.
    If you decide to keep on your path then grab a DataInputStream and go somewhere else because you'll have to figure out the format of another languages serialized data on a place that isn't this site.

  • How to "include" the class into the calling main()

    I posted yesterday and cant find the thread so apologize if its already answered. Question is, if you make a class, say Class QA, then if you call it from a file while has the main() in it, what do you include or add in this calling file that will tell it that there is a class A defined . (Main uses class A). I cant find this anuywhere- though I dont have many resources yet.
    Thanks,
    ns

    I have the class in the same folder but it says on compile"
    C:\java>java GUIFrameTest
    Exception in thread "main" java.lang.NoClassDefFoundError: GUIFrameTest
    C:\java>here is my dir:
    C:\java>dir
    Volume in drive C has no label.
    Volume Serial Number is 07D1-0702
    Directory of C:\java
    09/29/2002 09:26a <DIR> .
    09/29/2002 09:26a <DIR> ..
    09/29/2002 10:02a 825 GUIFrame.java
    09/29/2002 10:02a 1,370 GUIFrame.class
    09/30/2002 05:50a 176 GUIFrameTest.java
    7 File(s) 3,036 bytes
    2 Dir(s) 8,337,620,992 bytes free
    C:\java>and the test class is:
    public class GUIFrameTest{
    public static void main(String args[]){
    GUIFrame frame = new GUIFrame("GUIFrame Test");
    frame.setSize(400,300);
    frame.setVisible(true);
    Help!

  • How can i change the class in the Class Library project to be static or public so i can use it from the windows application project ?

    First i know that when i make any changes to the class library project i need to rebuild the project then to remove the Capture.dll from the TestScreenshot project and then to add again the updated Capture.dll
    The problem for example in this case i'm trying to use a public static variable i add in the DXHookD3D9.
    In the DXHookD3D9 i added this public static variable:
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    //using SlimDX.Direct3D9;
    using EasyHook;
    using System.Runtime.InteropServices;
    using System.IO;
    using System.Threading;
    using System.Drawing;
    using Capture.Interface;
    using SharpDX.Direct3D9;
    namespace Capture.Hook
    internal class DXHookD3D9: BaseDXHook
    public DXHookD3D9(CaptureInterface ssInterface)
    : base(ssInterface)
    LocalHook Direct3DDevice_EndSceneHook = null;
    LocalHook Direct3DDevice_ResetHook = null;
    LocalHook Direct3DDevice_PresentHook = null;
    LocalHook Direct3DDeviceEx_PresentExHook = null;
    object _lockRenderTarget = new object();
    Surface _renderTarget;
    public static decimal framesperhourtodisplay = 0;
    protected override string HookName
    get
    return "DXHookD3D9";
    List<IntPtr> id3dDeviceFunctionAddresses = new List<IntPtr>(
    framesperhourtodisplay
    The problem is i can't even get to the Capture.Hook namespace and not to the DXHookD3D9 from the TestScreenshot application window project.
    This is a screenshot:
    For example fro the FramesPerSecond class i can use it get to it from the windows forms application.
    namespace Capture.Hook
    /// <summary>
    /// Used to determine the FPS
    /// </summary>
    public class FramesPerSecond
    int _frames = 0;
    int _lastTickCount = 0;
    float _lastFrameRate = 0;
    Since it's public i guess.
    But if i will change the DXHookD3D9 class from internal to public:
    public class DXHookD3D9: BaseDXHook
    I will get error on the DXHookD3D9: 
    Error 1
    Inconsistent accessibility: base class 'Capture.Hook.BaseDXHook' is less accessible than class 'Capture.Hook.DXHookD3D9'
    And the BaseDXHook class:
    namespace Capture.Hook
    internal abstract class BaseDXHook: IDXHook
    protected readonly ClientCaptureInterfaceEventProxy InterfaceEventProxy = new ClientCaptureInterfaceEventProxy();
    public BaseDXHook(CaptureInterface ssInterface)
    this.Interface = ssInterface;
    this.Timer = new Stopwatch();
    this.Timer.Start();
    this.FPS = new FramesPerSecond();
    Interface.ScreenshotRequested += InterfaceEventProxy.ScreenshotRequestedProxyHandler;
    Interface.DisplayText += InterfaceEventProxy.DisplayTextProxyHandler;
    InterfaceEventProxy.ScreenshotRequested += new ScreenshotRequestedEvent(InterfaceEventProxy_ScreenshotRequested);
    InterfaceEventProxy.DisplayText += new DisplayTextEvent(InterfaceEventProxy_DisplayText);
    ~BaseDXHook()
    Dispose(false);
    How can i solve it so i can use the variable framesperhourtodisplay in the DXHookD3D9 class with the TestScreenshot windows forms application ?

    Hi,
    I dont know if it will work here, since I dont know the complete structure, but the base call must be public, if the derived class is public, so the base class is at least as accessible as the derived class.
    Try make the base class public. (And maybe the base-class IDXHook of the base also...)
    Or use a different approach and make only the properties public that are needed to be public by adding an extra class...
    A structure could look like:(you need to create a class thats public in your dll and expose a property, and set this property in the internal class...)
    In the Accessing class (here Form1)
    public partial class Form1 : Form
    public Form1()
    InitializeComponent();
    private void Form1_Load(object sender, EventArgs e)
    C c = new C();
    MessageBox.Show(B.F.ToString());
    and in the class Lib:
    internal class A
    public A()
    B.F = DateTime.Now.Millisecond;
    public class B
    public static int F { get; set; }
    public class C
    public C()
    A a = new A();
    (add a referenc to the class lib from the accessing project)
    Regards,
      Thorsten

  • FindClass() not able to find the class in the same path

    Hi,
    I have a c prototype which calls a java function which push a message in JMS. i'm using jdk1.6. i have set JavaVMInitArgs vm_args.version = JNI_VERSION_1_6 when i compile the c code as gcc -g -lgcj -I $JAVA_HOME/include -I $JAVA_HOME/include/linux CallJMS.c the JNI_CreateJavaVM(&jvm, (void*)&env, &vm_args)* returns JNI_ERR. After changing version to 1.4 JavaVMInitArgs vm_args.version = JNI_VERSION_1_4 finally it gives me an executable which calls the java function (how ever the required functionality is not got)
    To get the required functionality i had to use jdk1.6 so i changed the version property to JNI_VERSION_1_6 and the compiling command as gcc -g CallJMS.c -I $JAVA_HOME/include -I $JAVA_HOME/include/linux -L $JAVA_HOME/jre/lib/i386/server -ljvm .This gave me an executable, but when i execute it is not able to find the java class file. I have kept both the java and c file in the same path and also set the CLASSPATH. Please help.

    Hi jschell,
    I got solution to this problem. As you said it is due to wrong CLASSPATH set .
    Before:
    JavaVMInitArgs vm_args;
    JavaVMOption options[3];
    options[0].optionString = "-Djava.class.path=.:/home/programs/JbossMetro/jboss-5.1.0.GA/server/default/deploy/JMSforCNew.war/WEB-INF/classes";
    options[1].optionString="-Djava.library.path=.:/home/program/jdk1.6.0_23/jre/lib/i386/server";
    options[2].optionString="-verbose:jni";
    vm_args.version = JNI_VERSION_1_6; //JDK version. This indicates version 1.6
    vm_args.nOptions = 3;
    vm_args.options = options;
    vm_args.ignoreUnrecognized = 0;
    int ret = JNI_CreateJavaVM(&jvm, (void**)&env, &vm_args);
    if(ret < 0)
    printf("\nUnable to Launch JVM\n");
    else
    printf("\nLaunched JVM\n");
    I was setting the CLASSPATH to the Path where my java class files were kept. When the JVM instance is created only this path (where my java class is residing) is identified and the JMS and other paths which was already set in the CLASSPATH environment variable is lost. Thus when i call the java class from the c program it is not able to find the dependent class files and it was aborting.
    After:
    Before setting the path where my class files are residing to CLASSPATH, get the path's in the CLASSPATH to a variable, append the path where my class files are kept to this variable and then set the CLASSPATH . Similarly do for the LD_LIBRARY_PATH. This works fine.
    char cpathBuff[100000];
    char ldpathBuff[4096];
    JNIEnv *env;
    JavaVMInitArgs vm_args;
    JavaVMOption options[3];
    cpath = (char*) getenv("CLASSPATH");
    sprintf(cpathBuff,"%s%s:%s","-Djava.class.path=",cpath,"/home/programs/JbossMetro/jboss-5.1.0.GA/server/default/deploy/JMSforCNew.war/WEB-INF/classes");
    options[0].optionString = cpathBuff;
    ldpath = (char *)getenv("LD_LIBRARY_PATH");
    sprintf(ldpathBuff,"%s%s:%s","-Djava.library.path=",ldpath,"/home/program/jdk1.6.0_23/jre/lib/i386/server");
    options[1].optionString = ldpathBuff;
    vm_args.version = JNI_VERSION_1_6; //JDK version. This indicates version 1.6
    vm_args.nOptions = 2;
    vm_args.options = options;
    vm_args.ignoreUnrecognized = 0;
    int ret = JNI_CreateJavaVM(&jvm, (void**)&env, &vm_args);
    if(ret < 0)
    printf("\nUnable to Launch JVM\n");
    else
    printf("\nLaunched JVM\n");
    Thanks for your support Peter and JSchell.
    Edited by: 844094 on Mar 15, 2011 2:37 AM

  • Inheriting the class in the public section.

    Hi all ,
    i want to call the methods of  class "cl_hrrcf_application_dovr_ctrl". in my on of the other class.
    what i have seen is this method is inherited to the class CL_HRRCF_PINST_MNT_PINSTLIST.
    As follows.
    class zcl_hrrcf_pinst_pbl_new_a definition
      public
      inheriting from cl_hrrcf_application_dovr_ctrl
      final
      create public .
    Now i want to inherit the class cl_hrrcf_application_dovr_ctrl into my ZCL_HRRCF_PINST_MNT_PINSTLIST .
    so that i can have access to the methods of this class in class ZCL_HRRCF_PINST_MNT_PINSTLIST .
    is there any way that i can call this methods into my class ZCL_HRRCF_PINST_MNT_PINSTLIST .
    Waiting for your response.
    Regards,
    Nilesh.

    Hi all ,
    i want to call the methods of  class "cl_hrrcf_application_dovr_ctrl". in my on of the other class.
    what i have seen is this method is inherited to the class CL_HRRCF_PINST_MNT_PINSTLIST.
    As follows.
    class zcl_hrrcf_pinst_pbl_new_a definition
      public
      inheriting from cl_hrrcf_application_dovr_ctrl
      final
      create public .
    Now i want to inherit the class cl_hrrcf_application_dovr_ctrl into my ZCL_HRRCF_PINST_MNT_PINSTLIST .
    so that i can have access to the methods of this class in class ZCL_HRRCF_PINST_MNT_PINSTLIST .
    is there any way that i can call this methods into my class ZCL_HRRCF_PINST_MNT_PINSTLIST .
    Waiting for your response.
    Regards,
    Nilesh.

  • How to Pass the data from the class to the BSP application(ie. .html page)

    hi
    i had created one .html page. This page is getting opened after clicking on one of the buttton of the toolbar(say Bank Data).
    Now the problem is , to show the data of the bank which user had entered in the PCUI application on the .html page.
    Please help me to solve the problem

    Thanks for your answer, I tried the solution 2, I create "Submit" button, and ser the mapping scope to  be "All data rows", it only works when I select at least one row, otherwise the data would not be passed.
    Another question is I have serveral imported table parameter, for each table I have one "submit" event, I want these tables to be submitted at the same time, but if I click the submit button in one table toolbar, I can only submit the table data which has a submit button clicked, for other tables, the data is not passed, how can I achieve it?
    Thanks.

  • How to refer to the class in the regular function module

    Hi ABAP guru's
    I wish to get details of GET_REQUID parameter of method IF_RSBK_REQUEST_GENERAL that is available in
    class CL_RSBK_REQUEST.
    I am writing a ABAP function module and I wish to use this class in that function
    module. Can someone help to write this code on how to read value of GET_REQUID in my function module?
    Here is ny sample code  which is not working--
            l_r_request_main = cl_rsbk_request->N_REQUID
           l_r_request = IF_RSBK_REQUEST_GENERAL->GET_REQUID( ).
         catch cx_rs_not_found.
           continue.
        call method l_r_request->get_tstate
          exporting
            i_check_if_active = rs_c_true
          receiving
            r_tstate          = l_tstate.
    Thanks for your help in advance
    Ag

    Hi anjali,
                   Tables are like multi line containers ,which can act as both import and export parameters .
                   means,the data in the table can be used by the function module during  its execution and the                same table can be populated with result after the fm execution .
      you can also refer :http://help.sap.com/saphelp_erp60_sp/helpdata/en/d1/801ece454211d189710000e8322d00/content.htm 
    Regards,
    Krishna.

  • How to find the class name, the location from where it invoked a method

    Hi,
    I have a class A. The caller calls A.someMethod(), whenever this method is invoked, I want to find out the caller info, which class invoked this method, from where this class was loaded (may be the jar file name). Any help will be appreciated.
    Thanks.

    However since version 1.4 there is an easier way to extract that information from the Throwable:
    java.lang.Throwable
    public StackTraceElement[] getStackTrace()
    Provides programmatic access to the stack trace information printed by printStackTrace(). Returns an array of stack trace elements, each representing one stack frame.

  • Applet is not looking for the classes in the jar

    I have an applet that uses 2 jar files (Jasplet.jar and WinLS.jar). They are downloaded fine, but then java look for the classes in a URL instead of using the jar:
    network: Cache entry found [url: http://localhost:8000/reportes/Jasplet.jar, version: null]
    network: Connecting http://localhost:8000/reportes/Jasplet.jar with proxy=DIRECT
    network: Connecting http://localhost:8000/reportes/Jasplet.jar with cookie "JSESSIONID=573b1fbfcd200059b8bbbfa92b95"
    network: ResponseCode for http://localhost:8000/reportes/Jasplet.jar : 304
    network: Encoding for http://localhost:8000/reportes/Jasplet.jar : null
    network: Disconnect connection to http://localhost:8000/reportes/Jasplet.jar
    security: Loading Root CA certificates from /usr/lib/jvm/java-6-sun-1.6.0.07/jre/lib/security/cacerts
    security: Loaded Root CA certificates from /usr/lib/jvm/java-6-sun-1.6.0.07/jre/lib/security/cacerts
    security: Loading Deployment certificates from /home/santiago/.java/deployment/security/trusted.certs
    security: Loaded Deployment certificates from /home/santiago/.java/deployment/security/trusted.certs
    security: Loading certificates from Deployment session certificate store
    security: Loaded certificates from Deployment session certificate store
    security: Validate the certificate chain using CertPath API
    security: Obtain certificate collection in Root CA certificate store
    security: Obtain certificate collection in Root CA certificate store
    security: The CRL support is disabled
    security: The OCSP support is disabled
    security: No timestamping info available
    security: Checking if certificate is in Deployment denied certificate store
    security: Checking if certificate is in Deployment permanent certificate store
    network: Cache entry found [url: http://localhost:8000/reportes/lib/WinLS.jar, version: null]
    network: Connecting http://localhost:8000/reportes/lib/WinLS.jar with proxy=DIRECT
    network: Connecting http://localhost:8000/reportes/lib/WinLS.jar with cookie "JSESSIONID=573b1fbfcd200059b8bbbfa92b95"
    network: ResponseCode for http://localhost:8000/reportes/lib/WinLS.jar : 304
    network: Encoding for http://localhost:8000/reportes/lib/WinLS.jar : null
    network: Disconnect connection to http://localhost:8000/reportes/lib/WinLS.jar
    security: Loading certificates from Deployment session certificate store
    security: Loaded certificates from Deployment session certificate store
    security: Validate the certificate chain using CertPath API
    security: Obtain certificate collection in Root CA certificate store
    security: Obtain certificate collection in Root CA certificate store
    security: The CRL support is disabled
    security: The OCSP support is disabled
    security: No timestamping info available
    security: Checking if certificate is in Deployment denied certificate store
    security: Checking if certificate is in Deployment permanent certificate store
    network: Cache entry not found [url: http://localhost:8000/reportes/winls/resource/engine.class, version: null]
    network: Connecting http://localhost:8000/reportes/winls/resource/engine.class with proxy=DIRECT
    network: Connecting http://localhost:8000/reportes/winls/resource/engine.class with cookie "JSESSIONID=573b1fbfcd200059b8bbbfa92b95"
    network: Cache entry not found [url: http://localhost:8000/reportes/winls/resource/engine_en.class, version: null]
    network: Connecting http://localhost:8000/reportes/winls/resource/engine_en.class with proxy=DIRECT
    network: Connecting http://localhost:8000/reportes/winls/resource/engine_en.class with cookie "JSESSIONID=573b1fbfcd200059b8bbbfa92b95"
    network: Cache entry not found [url: http://localhost:8000/reportes/winls/resource/engine_en.properties, version: null]
    network: Connecting http://localhost:8000/reportes/winls/resource/engine_en.properties with proxy=DIRECT
    network: Connecting http://localhost:8000/reportes/winls/resource/engine_en.properties with cookie "JSESSIONID=573b1fbfcd200059b8bbbfa92b95"
    network: Cache entry not found [url: http://localhost:8000/reportes/winls/resource/engine_en_US.class, version: null]
    network: Connecting http://localhost:8000/reportes/winls/resource/engine_en_US.class with proxy=DIRECT
    network: Connecting http://localhost:8000/reportes/winls/resource/engine_en_US.class with cookie "JSESSIONID=573b1fbfcd200059b8bbbfa92b95"
    network: Connecting socket://localhost:5432 with proxy=DIRECT
    select relname,attname,typname,atttypmod-4 as length from pg_class c , pg_attribute a ,pg_type t where c.oid=a.attrelid and a.atttypid=t.oid and (typname='varchar' or typname='bpchar') and relkind='r' and substring(relname from 1 for 4)!='sql_' and substring(relname from 1 for 3)!='pg_'
    network: Connecting socket://localhost:5432 with proxy=DIRECT
    Oct 22, 2008 11:52:20 AM winls.dbdata.DataEmployee getEmployee():505
    INFO: Connected to:jdbc:postgresql://localhost:5432/wmc
    Oct 22, 2008 11:52:20 AM winls.dbdata.DataEmployee getEmployee():505
    INFO: Connected to:jdbc:postgresql://localhost:5432/wmc
    select * from employees where empusername = 'jw1' and emppassword = 'YW5jeA=='
    network: Cache entry not found [url: http://localhost:8000/reportes/winls/resource/resource.class, version: null]
    network: Connecting http://localhost:8000/reportes/winls/resource/resource.class with proxy=DIRECT
    network: Connecting http://localhost:8000/reportes/winls/resource/resource.class with cookie "JSESSIONID=573b1fbfcd200059b8bbbfa92b95"
    network: Cache entry not found [url: http://localhost:8000/reportes/winls/resource/resource_en.class, version: null]
    network: Connecting http://localhost:8000/reportes/winls/resource/resource_en.class with proxy=DIRECT
    network: Connecting http://localhost:8000/reportes/winls/resource/resource_en.class with cookie "JSESSIONID=573b1fbfcd200059b8bbbfa92b95"
    network: Cache entry not found [url: http://localhost:8000/reportes/winls/resource/resource_en.properties, version: null]
    network: Connecting http://localhost:8000/reportes/winls/resource/resource_en.properties with proxy=DIRECT
    network: Connecting http://localhost:8000/reportes/winls/resource/resource_en.properties with cookie "JSESSIONID=573b1fbfcd200059b8bbbfa92b95"
    network: Cache entry not found [url: http://localhost:8000/reportes/winls/resource/resource_en_US.class, version: null]
    network: Connecting http://localhost:8000/reportes/winls/resource/resource_en_US.class with proxy=DIRECT
    network: Connecting http://localhost:8000/reportes/winls/resource/resource_en_US.class with cookie "JSESSIONID=573b1fbfcd200059b8bbbfa92b95"
    network: Connecting socket://localhost:5432 with proxy=DIRECT
    LISTEN companyPostDate
    network: Cache entry not found [url: http://localhost:8000/reportes/org/postgresql/errors.class, version: null]
    java.lang.NullPointerException
         at winls.gui.WinLSFrame.loadCompany(WinLSFrame.java:365)
         at winls.gui.WinLSFrame.<init>(WinLSFrame.java:250)
         at winls.gui.WinLSDesktop$2.run(WinLSDesktop.java:141)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at spin.Invocation.evaluate(Invocation.java:122)
         at spin.off.OffInvocation.spin(OffInvocation.java:78)
         at spin.Invocation.start(Invocation.java:100)
         at spin.Interceptor.intercept(Interceptor.java:52)
         at spin.Spin$AbstractInvocationHandler.invoke(Spin.java:411)
         at $Proxy1.run(Unknown Source)
         at winls.gui.WinLSDesktop.<init>(WinLSDesktop.java:137)
         at jasplet.Main.init(Main.java:38)
         at sun.applet.AppletPanel.run(AppletPanel.java:425)
         at java.lang.Thread.run(Thread.java:619)
    basic: Exception: java.lang.NullPointerException
    network: Connecting http://localhost:8000/reportes/org/postgresql/errors.class with proxy=DIRECT
    network: Connecting http://localhost:8000/reportes/org/postgresql/errors.class with cookie "JSESSIONID=573b1fbfcd200059b8bbbfa92b95"
    network: Cache entry not found [url: http://localhost:8000/reportes/org/postgresql/errors_en.class, version: null]
    network: Connecting http://localhost:8000/reportes/org/postgresql/errors_en.class with proxy=DIRECT
    network: Connecting http://localhost:8000/reportes/org/postgresql/errors_en.class with cookie "JSESSIONID=573b1fbfcd200059b8bbbfa92b95"
    network: Cache entry not found [url: http://localhost:8000/reportes/org/postgresql/errors_en.properties, version: null]
    network: Connecting http://localhost:8000/reportes/org/postgresql/errors_en.properties with proxy=DIRECT
    network: Connecting http://localhost:8000/reportes/org/postgresql/errors_en.properties with cookie "JSESSIONID=573b1fbfcd200059b8bbbfa92b95"
    network: Cache entry not found [url: http://localhost:8000/reportes/org/postgresql/errors_en_US.class, version: null]
    network: Connecting http://localhost:8000/reportes/org/postgresql/errors_en_US.class with proxy=DIRECT
    network: Connecting http://localhost:8000/reportes/org/postgresql/errors_en_US.class with cookie "JSESSIONID=573b1fbfcd200059b8bbbfa92b95"
    network: Cache entry not found [url: http://localhost:8000/reportes/org/postgresql/errors_en_US.properties, version: null]
    network: Connecting http://localhost:8000/reportes/org/postgresql/errors_en_US.properties with proxy=DIRECT
    network: Connecting http://localhost:8000/reportes/org/postgresql/errors_en_US.properties with cookie "JSESSIONID=573b1fbfcd200059b8bbbfa92b95"
    network: Connecting socket://localhost:5432 with proxy=DIRECTThe lines like network: Cache entry not found [url: http://localhost:8000/reportes/winls/resource/engine.class, version: null] are the ones that seems to cause the problem.
    I have tried to clear the cache. I even deleted mi ~/.java/deployment directory. Any idea of what could be the problem?

    Your applet appears to be asking for https:// protocol security.
    Is there a certificate should be in your localhost server and https enabled and supported
    (the applet continually asks for "https protocol" types of information and your using standard http)?
    Other protocols for such use are ssl:// and tls://
    Dependent the server configuration you may or may not require the port number on the end of the domain
    e.g. something like.
    ssl://mydomain.com:443 or https://mydomain.com:8080 or tls://mydomain.com:989
    And be sure there program if its an extra such as ssl:// has its service started.
    Edited by: nicephotog on Oct 28, 2008 4:09 AM

Maybe you are looking for

  • Configurable article in sap retail?

    Hello Experts, Can we have configurable articles in sap retail? Please tell me your opinions.. Thanks

  • 100% cpu when scrolling over 2 pages

    When I scroll down or up in a PDF document and that two pages appears at the same time ( the bottom of page 1 and the top of page 2 ), the scrolling become very slow, and the cpu pop to 100%. I noticed that on all computers. If you want to see an ext

  • How do i restore my new tab page?

    When I open a new tab, a web page in unknown language opens. I've tried changing the settings in about:config page, but when I restart my PC the problem persists. I've also tried installing the search reset addon, it solved my problem for an instant

  • How do you make a zip file?

    I want to send a set of photo's from Iphoto to a friend, but don't want to use Icloud.  Just want to email them to her. What's the best way to do this?

  • I have updated my iPad and lost everything can you please help me?

    I have updated my iPad and lost everything because my only option on iTunes was to update and restore. The update was very strange because I pressed install, I had enough space for the update and I agreed to the terms and conditions. My iPad turned t