Access denied while loading jar files from client

I am creating a platform
that can be started by JWS
and then load plug-ins from client drive.
I've signed my platform (packaged as a jar file),
and set up the security tag in my jnlp,
so that it can access client files.
The plug-ins are packaged as jar files.
And in one of the plug-ins, there is a class that has a JFileChooser field.
While initializing this field, the AccessControlException is thrown.
I can't figure out what is wrong,
So I tried to sign the plug-in, but the problem stands still.
PS. I have made my own ClassLoader,
and this platform works well without JWS.
Please help me, thanks.
Below is the error message:
Java Web Start 1.4.2 主控台,已啟動 Fri Jul 02 01:31:17 CST 2004
Java 2 Runtime Environment:版本 1.4.2,作者:Sun Microsystems Inc.
/*my own log message*/
2004/7/2 上午 01:31:23 pluginmanager.Activater activate /*this is my own classloader*/
配置: activate jar=\Plugins\Common.jar /*load plug-in Common.jar*/
2004/7/2 上午 01:31:23 pluginmanager.Activater activate
細緻: collect resources /*collect other jar files needed by Common.jar*/
2004/7/2 上午 01:31:23 pluginmanager.Activater activate
細緻: load plugin=\Plugins\Common.jar
2004/7/2 上午 01:31:23 pluginmanager.Activater activate
細緻: activating class name=filemanager.FileManager /*instantiate plug-in component*/
java.security.AccessControlException: access denied (java.util.PropertyPermission user.dir read)
     at java.security.AccessControlContext.checkPermission(Unknown Source)
     at java.security.AccessController.checkPermission(Unknown Source)
     at java.lang.SecurityManager.checkPermission(Unknown Source)
     at java.lang.SecurityManager.checkPropertyAccess(Unknown Source)
     at java.lang.System.getProperty(Unknown Source)
     at java.io.Win32FileSystem.getUserPath(Unknown Source)
     ... /*cut*/
     at javax.swing.JFileChooser.<init>(Unknown Source)
     at filemanager.Open.<init>(Open.java:20)
     at filemanager.FileManager.<init>(FileManager.java:38)
     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
     ... /*cut*/
     at java.lang.Class.newInstance(Unknown Source)
     at pluginmanager.Activater.activate(Activater.java:120)
     at pluginmanager.PluginManager$ActivateAction.actionPerformed(PluginManager.java:53)

When running under Java Web Start, a security manager is installed.
Since you have created your own classloader, you are responsible for assigning permissions to the classes you load.
You can change you class loader to extend SecureClassLoader, then override getPermissions:
protected PermissionCollection getPermissions(CodeSource codesource) {
PermissionCollection perms = super.getPermissions(codesource);
/* add whatever permissions you want your code to hance*/
perms.add( ... );
/* or just add all-permissions */
perms.add(new AllPermission());
or - you can just remove the Security Manager:
System.setSecurityManager(null);
/Dietz

Similar Messages

  • How to load jar files from remote location

    Hi all,
    I am trying to load jar files from remote server, from a servlet which is running on OC4j.
    For doing this,First I am getting ClassLoader by using ClassLoader.getSystemClassLoader() and then type casting it to URLClassLoader.
    But by doing it I am getting ClassCastException,because oc4j returns oracle.classloader.PolicyClassLoader instead of java.net.ClassLoader.
    Appreciate if anyone can tell me how to load remote jar files using oracle.classloader.PolicyClassLoader .
    Thanks
    Harish

    Hi,
    I suppose you know about this, but just in case.
    I have used jnpl to load jar files from remote location.
    Rowan

  • Getting Exception in JWS while downloading jar files from server

    Hi All,
    I am running JWS on j2re1.4.2_10(build 03). while JWS is trying to download jar files from web server, I am getting the following Exception.
    All the jar files are signed. Any idea ?
    JNLPException[category: Download Error : Exception: null : LaunchDesc: null ]
         at com.sun.javaws.cache.DownloadProtocol.doDownload(Unknown Source)
         at com.sun.javaws.cache.DownloadProtocol.getDownloadSize(Unknown Source)
         at com.sun.javaws.LaunchDownload.downloadJarFiles(Unknown Source)
         at com.sun.javaws.LaunchDownload.downloadEagerorAll(Unknown Source)
         at com.sun.javaws.Launcher.downloadResources(Unknown Source)
         at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)
         at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)
         at com.sun.javaws.Launcher.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)

    Are you able to download your *.jar files directly from server
    For example say,
    http://127.0.0.1:8080/test/testme.jarIf yes,
    Then problem should be with your *.jnlp file. Check all your *.jar with respect to context location of your url from where you are downloading *.jnlp file

  • Network Load Balancing - "access denied" when loading configuration information from host2

    We have 2 Windows 2012 R2 servers, both are running on workgroup.
    We set up NLB cluster.  When we open NLB Manager on the server2, then message shows "loading configuration information. Access denied. Error connecting to server1". 
    There is no issue doing this on server1, NLB Manager is able to connect to both servers. We login using default administrator account, both account name and password are the same for 2 servers.
    When we check security event log on server1, there is this strange Audit Failure log using account "test_nlb" from server2 which related to "Access denied" error. Please let us know how to resolve this. Thanks in advance.
          Event ID: 4776
          The computer attempted to validate the credentials for an account.
          Authentication Package:   
    MICROSOFT_AUTHENTICATION_PACKAGE_V1_0
          Logon Account:   
    test_nlb
          Source Workstation:   
    WPAAP2
          Error Code:   
    0xc0000064           
          An account failed to log on.
    Event ID: 4625
    Subject:
        Security ID:       
    S-1-0-0
        Account Name:       
        Account Domain:       
        Logon ID:       
    0x0
    Logon Type:           
    3
    Account For Which Logon Failed:
        Security ID:       
    S-1-0-0
        Account Name:       
    test_nlb
       Account Domain:       
    WPAAP2
    Failure Information:
        Failure Reason:       
    Unknown user name or bad password.
        Status:           
    0xc000006d
        Sub Status:       
    0xc0000064
    Process Information:
        Caller Process ID:   
    0x0
        Caller Process Name:   
    Network Information:
        Workstation Name:   
    WPAAP2
        Source Network Address:   
    192.168.70.45
        Source Port:       
    55136
    Detailed Authentication Information:
        Logon Process:       
    NtLmSsp
        Authentication Package:   
    NTLM
        Transited Services:   
        Package Name (NTLM only):   
        Key Length:       
    0
    This event is generated when a logon request fails. It is generated on the computer where access was attempted.
    The Subject fields indicate the account on the local system which requested the logon. This is most commonly a service such as the Server service, or a local process such as Winlogon.exe or Services.exe.
    The Logon Type field indicates the kind of logon that was requested. The most common types are 2 (interactive) and 3 (network).
    The Process Information fields indicate which account and process on the system requested the logon.
    The Network Information fields indicate where a remote logon request originated. Workstation name is not always available and may be left blank in some cases.
    The authentication information fields provide detailed information about this specific logon request.
        - Transited services indicate which intermediate services have participated in this logon request.
        - Package name indicates which sub-protocol was used among the NTLM protocols.
        - Key length indicates the length of the generated session key. This will be 0 if no session key was requested.

    Hi Zhong Gang,
    When you are using Network Load Balancing (NLB) Manager, you must be a member of the Administrators group on the host that you are configuring, or you must have been delegated
    the appropriate authority. If you are configuring a cluster or host by running NLB Manager from a computer that is not part of the cluster, you do not have to be a member of the Administrators group on that computer. Please disable your nodes firewall and
    try again.
    The related KB:
    Add a Host to the Network Load Balancing Cluster
    http://technet.microsoft.com/en-us/library/cc753744.aspx
    I’m glad to be of help to you!
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Access denied when I move files from MacBook to desktop

    When move files from my MacBook Pro to my G5 desktop, I can't open them. I get an "access denied" message. I can fix the problem by going to "info" and changing the access, but how can I fix this so it doesn't happen at all? I don't want to have the hassle of resetting the access for each file every time I swap files back and forth between the laptop and desktop.

    Ask and you will receive:
    You can do the same thing in terminal using the chmod command, but it requires a bit more of a learning curve.
    Leo server has a Built in GUI that allows you to do the same thing as Sandbox, I really feel Apple should have included something similar in the consumer version of Leo, since we are forced to deal with ACL's in Leo whether we want to or not. They are turned on by default and can only be turned off temporarily (fsaclctl command) as they will resume automatically at the next reboot.
    Of course you must master the basics before attempting
    ACL's from the command line.
    Here are some links to some Leo ACL and command line documents:
    http://www.afp548.com/filemgmt/index.php?id=40
    http://manuals.info.apple.com/enUS/Command_Line_Adminv10.5.pdf
    http://manuals.info.apple.com/enUS/File_Services_Adminv10.5.pdf
    http://developer.apple.com/documentation/Darwin/Reference/ManPages/man1/chmod.1. html
    These tools will guide you in your quest.
    And don't forget grasshopper: "wax on - wax off"
    Kj

  • Loading jar files at execution time via URLClassLoader

    Hello�All,
    I'm�making�a�Java�SQL�Client.�I�have�practicaly�all�basic�work�done,�now�I'm�trying�to�improve�it.
    One�thing�I�want�it�to�do�is�to�allow�the�user�to�specify�new�drivers�and�to�use�them�to�make�new�connections.�To�do�this�I�have�this�class:�
    public�class�DriverFinder�extends�URLClassLoader{
    ����private�JarFile�jarFile�=�null;
    ����
    ����private�Vector�drivers�=�new�Vector();
    ����
    ����public�DriverFinder(String�jarName)�throws�Exception{
    ��������super(new�URL[]{�new�URL("jar",�"",�"file:"�+�new�File(jarName).getAbsolutePath()�+"!/")�},�ClassLoader.getSystemClassLoader());
    ��������jarFile�=�new�JarFile(new�File(jarName));
    ��������
    ��������/*
    ��������System.out.println("-->"�+�System.getProperty("java.class.path"));
    ��������System.setProperty("java.class.path",�System.getProperty("java.class.path")+File.pathSeparator+jarName);
    ��������System.out.println("-->"�+�System.getProperty("java.class.path"));
    ��������*/
    ��������
    ��������Enumeration�enumeration�=�jarFile.entries();
    ��������while(enumeration.hasMoreElements()){
    ������������String�className�=�((ZipEntry)enumeration.nextElement()).getName();
    ������������if(className.endsWith(".class")){
    ����������������className�=�className.substring(0,�className.length()-6);
    ����������������if(className.indexOf("Driver")!=-1)System.out.println(className);
    ����������������
    ����������������try{
    ��������������������Class�classe�=�loadClass(className,�true);
    ��������������������Class[]�interfaces�=�classe.getInterfaces();
    ��������������������for(int�i=0;�i<interfaces.length;�i++){
    ������������������������if(interfaces.getName().equals("java.sql.Driver")){
    ����������������������������drivers.add(classe);
    ������������������������}
    ��������������������}
    ��������������������Class�superclasse�=�classe.getSuperclass();
    ��������������������interfaces�=�superclasse.getInterfaces();
    ��������������������for(int�i=0;�i<interfaces.length;�i++){
    ������������������������if(interfaces[i].getName().equals("java.sql.Driver")){
    ����������������������������drivers.add(classe);
    ������������������������}
    ��������������������}
    ����������������}catch(NoClassDefFoundError�e){
    ����������������}catch(Exception�e){}
    ������������}
    ��������}
    ����}
    ����
    ����public�Enumeration�getDrivers(){
    ��������return�drivers.elements();
    ����}
    ����
    ����public�String�getJarFileName(){
    ��������return�jarFile.getName();
    ����}
    ����
    ����public�static�void�main(String[]�args)�throws�Exception{
    ��������DriverFinder�df�=�new�DriverFinder("D:/Classes/db2java.zip");
    ��������System.out.println("jar:�"�+�df.getJarFileName());
    ��������Enumeration�enumeration�=�df.getDrivers();
    ��������while(enumeration.hasMoreElements()){
    ������������Class�classe�=�(Class)enumeration.nextElement();
    ������������System.out.println(classe.getName());
    ��������}
    ����}
    It�loads�a�jar�and�searches�it�looking�for�drivers�(classes�implementing�directly�or�indirectly�interface�java.sql.Driver)�At�the�end�of�the�execution�I�have�found�all�drivers�in�the�jar�file.
    The�main�application�loads�jar�files�from�an�XML�file�and�instantiates�one�DriverFinder�for�each�jar�file.�The�problem�is�at�execution�time,�it�finds�the�drivers�and�i�think�loads�it�by�issuing�this�statement�(Class�classe�=�loadClass(className,�true);),�but�what�i�think�is�not�what�is�happening...�the�execution�of�my�code�throws�this�exception
    java.lang.ClassNotFoundException:�com.ibm.as400.access.AS400JDBCDriver
    ��������at�java.net.URLClassLoader$1.run(URLClassLoader.java:198)
    ��������at�java.security.AccessController.doPrivileged(Native�Method)
    ��������at�java.net.URLClassLoader.findClass(URLClassLoader.java:186)
    ��������at�java.lang.ClassLoader.loadClass(ClassLoader.java:299)
    ��������at�sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)
    ��������at�java.lang.ClassLoader.loadClass(ClassLoader.java:255)
    ��������at�java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
    ��������at�java.lang.Class.forName0(Native�Method)
    ��������at�java.lang.Class.forName(Class.java:140)
    ��������at�com.marmots.database.DB.<init>(DB.java:44)
    ��������at�com.marmots.dbreplicator.DBReplicatorConfigHelper.carregaConfiguracio(DBReplicatorConfigHelper.java:296)
    ��������at�com.marmots.dbreplicator.DBReplicatorConfigHelper.<init>(DBReplicatorConfigHelper.java:74)
    ��������at�com.marmots.dbreplicator.DBReplicatorAdmin.<init>(DBReplicatorAdmin.java:115)
    ��������at�com.marmots.dbreplicator.DBReplicatorAdmin.main(DBReplicatorAdmin.java:93)
    Driver�file�is�not�in�the�classpath�!!!�
    I�have�tried�also�(as�you�can�see�in�comented�lines)�to�update�System�property�java.class.path�by�adding�the�path�to�the�jar�but�neither...
    I'm�sure�I'm�making�a/some�mistake/s...�can�you�help�me?
    Thanks�in�advice,
    (if�there�is�some�incorrect�word�or�expression�excuse�me)

    Sorry i have tried to format the code, but it has changed   to �... sorry read this one...
    Hello All,
    I'm making a Java SQL Client. I have practicaly all basic work done, now I'm trying to improve it.
    One thing I want it to do is to allow the user to specify new drivers and to use them to make new connections. To do this I have this class:
    public class DriverFinder extends URLClassLoader{
    private JarFile jarFile = null;
    private Vector drivers = new Vector();
    public DriverFinder(String jarName) throws Exception{
    super(new URL[]{ new URL("jar", "", "file:" + new File(jarName).getAbsolutePath() +"!/") }, ClassLoader.getSystemClassLoader());
    jarFile = new JarFile(new File(jarName));
    System.out.println("-->" + System.getProperty("java.class.path"));
    System.setProperty("java.class.path", System.getProperty("java.class.path")+File.pathSeparator+jarName);
    System.out.println("-->" + System.getProperty("java.class.path"));
    Enumeration enumeration = jarFile.entries();
    while(enumeration.hasMoreElements()){
    String className = ((ZipEntry)enumeration.nextElement()).getName();
    if(className.endsWith(".class")){
    className = className.substring(0, className.length()-6);
    if(className.indexOf("Driver")!=-1)System.out.println(className);
    try{
    Class classe = loadClass(className, true);
    Class[] interfaces = classe.getInterfaces();
    for(int i=0; i<interfaces.length; i++){
    if(interfaces.getName().equals("java.sql.Driver")){
    drivers.add(classe);
    Class superclasse = classe.getSuperclass();
    interfaces = superclasse.getInterfaces();
    for(int i=0; i<interfaces.length; i++){
    if(interfaces[i].getName().equals("java.sql.Driver")){
    drivers.add(classe);
    }catch(NoClassDefFoundError e){
    }catch(Exception e){}
    public Enumeration getDrivers(){
    return drivers.elements();
    public String getJarFileName(){
    return jarFile.getName();
    public static void main(String[] args) throws Exception{
    DriverFinder df = new DriverFinder("D:/Classes/db2java.zip");
    System.out.println("jar: " + df.getJarFileName());
    Enumeration enumeration = df.getDrivers();
    while(enumeration.hasMoreElements()){
    Class classe = (Class)enumeration.nextElement();
    System.out.println(classe.getName());
    It loads a jar and searches it looking for drivers (classes implementing directly or indirectly interface java.sql.Driver) At the end of the execution I have found all drivers in the jar file.
    The main application loads jar files from an XML file and instantiates one DriverFinder for each jar file. The problem is at execution time, it finds the drivers and i think loads it by issuing this statement (Class classe = loadClass(className, true);), but what i think is not what is happening... the execution of my code throws this exception
    java.lang.ClassNotFoundException: com.ibm.as400.access.AS400JDBCDriver
    at java.net.URLClassLoader$1.run(URLClassLoader.java:198)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:140)
    at com.marmots.database.DB.<init>(DB.java:44)
    at com.marmots.dbreplicator.DBReplicatorConfigHelper.carregaConfiguracio(DBReplicatorConfigHelper.java:296)
    at com.marmots.dbreplicator.DBReplicatorConfigHelper.<init>(DBReplicatorConfigHelper.java:74)
    at com.marmots.dbreplicator.DBReplicatorAdmin.<init>(DBReplicatorAdmin.java:115)
    at com.marmots.dbreplicator.DBReplicatorAdmin.main(DBReplicatorAdmin.java:93)
    Driver file is not in the classpath !!!
    I have tried also (as you can see in comented lines) to update System property java.class.path by adding the path to the jar but neither...
    I'm sure I'm making a/some mistake/s... can you help me?
    Thanks in advice,
    (if there is some incorrect word or expression excuse me)

  • Running a jar file from java code

    Hi!
    Im trying to run a jar file from my code.
    I've tried Classloader, but that doesnt work because it doesnt find the images (also embedded in the 2nd jar file).
    WHat I would like to do is actually RUN the 2nd jar file from the first jar file. There must be a way to do this right?
    any ideas?

    ok, I found some wonderful code (see below) that will try to start the jar. But it doesn't. What it does is produce the following error when my application runs...
    So it's not finding the images in the jar file that I am trying to run? Strange. I checked the URL that sending, but it seems ok....
    I think I will check the url again to make sure......
    any ideas?
    Uncaught error fetching image:
    java.lang.NullPointerException
         at sun.awt.image.URLImageSource.getConnection(Unknown Source)
         at sun.awt.image.URLImageSource.getDecoder(Unknown Source)
         at sun.awt.image.InputStreamImageSource.doFetch(Unknown Source)
         at sun.awt.image.ImageFetcher.fetchloop(Unknown Source)
         at sun.awt.image.ImageFetcher.run(Unknown Source)
    the code....
    /* From http://java.sun.com/docs/books/tutorial/index.html */
    import java.io.IOException;
    import java.lang.reflect.InvocationTargetException;
    import java.lang.reflect.Method;
    import java.lang.reflect.Modifier;
    import java.net.JarURLConnection;
    import java.net.MalformedURLException;
    import java.net.URL;
    import java.net.URLClassLoader;
    import java.util.jar.Attributes;
    * Runs a jar application from any url. Usage is 'java JarRunner url [args..]'
    * where url is the url of the jar file and args is optional arguments to be
    * passed to the application's main method.
    public class JarRunner {
      public static void main(String[] args) {
        URL url = null;
        try {
          url = new URL(args[0]);//"VideoTagger.jar");
        } catch (MalformedURLException e) {
          System.out.println("Invalid URL: ");
        // Create the class loader for the application jar file
        JarClassLoader cl = new JarClassLoader(url);
        // Get the application's main class name
        String name = null;
        try {
          name = cl.getMainClassName();
        } catch (IOException e) {
          System.err.println("I/O error while loading JAR file:");
          e.printStackTrace();
          System.exit(1);
        if (name == null) {
          fatal("Specified jar file does not contain a 'Main-Class'"
              + " manifest attribute");
        // Get arguments for the application
        String[] newArgs = new String[args.length - 1];
        System.arraycopy(args, 1, newArgs, 0, newArgs.length);
        // Invoke application's main class
        try {
          cl.invokeClass(name, newArgs);
        } catch (ClassNotFoundException e) {
          fatal("Class not found: " + name);
        } catch (NoSuchMethodException e) {
          fatal("Class does not define a 'main' method: " + name);
        } catch (InvocationTargetException e) {
          e.getTargetException().printStackTrace();
          System.exit(1);
      private static void fatal(String s) {
        System.err.println(s);
        System.exit(1);
    * A class loader for loading jar files, both local and remote.
    class JarClassLoader extends URLClassLoader {
      private URL url;
       * Creates a new JarClassLoader for the specified url.
       * @param url
       *            the url of the jar file
      public JarClassLoader(URL url) {
        super(new URL[] { url });
        this.url = url;
       * Returns the name of the jar file main class, or null if no "Main-Class"
       * manifest attributes was defined.
      public String getMainClassName() throws IOException {
        URL u = new URL("jar", "", url + "!/");
        JarURLConnection uc = (JarURLConnection) u.openConnection();
        Attributes attr = uc.getMainAttributes();
        return attr != null ? attr.getValue(Attributes.Name.MAIN_CLASS) : null;
       * Invokes the application in this jar file given the name of the main class
       * and an array of arguments. The class must define a static method "main"
       * which takes an array of String arguemtns and is of return type "void".
       * @param name
       *            the name of the main class
       * @param args
       *            the arguments for the application
       * @exception ClassNotFoundException
       *                if the specified class could not be found
       * @exception NoSuchMethodException
       *                if the specified class does not contain a "main" method
       * @exception InvocationTargetException
       *                if the application raised an exception
      public void invokeClass(String name, String[] args)
          throws ClassNotFoundException, NoSuchMethodException,
          InvocationTargetException {
        Class c = loadClass(name);
        Method m = c.getMethod("main", new Class[] { args.getClass() });
        m.setAccessible(true);
        int mods = m.getModifiers();
        if (m.getReturnType() != void.class || !Modifier.isStatic(mods)
            || !Modifier.isPublic(mods)) {
          throw new NoSuchMethodException("main");
        try {
          m.invoke(null, new Object[] { args });
        } catch (IllegalAccessException e) {
          // This should not happen, as we have disabled access checks
    }

  • Access jar file from in-memory classes...

    I have some classes that I compile to memory and everything works fine until one class that must access some external jar files. I have been unable to access those jar files from disk after trying every suggestion using URLClassLoader. I even tried someone's example to hack the SystemClassLoader which properly adds the jar file paths, but still they can't be seen. The only way it works is if I put the files in the jdk/jre/lib/ext directory. Then everything works fine. There must be a way to load the jar files in memory as well as the class files so they can be accessible. Has anyone done anything like this? Is it possible? Even though the class files are in memory, why would the jar files not be seen even when they are added to the same URLClassLoader's URL's. Thanks.

    Sorry that wasn't clear. What I mean is that the classes are compiled to byte code directly to memory and no physical .class file is created. Yes, I'm using my own ClassLoader that extends URLClassLoader and I'm setting the parent to ClassLoader.getSystemClassLoader(). I also should mention that I'm doing this inside a Netbeans module that is part of a Netbeans Platform application. I don't know why that should matter though, since I'm trying to do everything in memory without creating the physical files. Thanks.

  • Error while loading the data from text file

    Hi,
    I got an error " Data Value Encountered before all Dimensions selected" while loading the data from the text file.
    Can any one please suggest me the solution.

    Possible Solutions
    Make sure that the data source is valid.
    Is a member from each dimension specified correctly in the data source or rules file?
    Is the numeric data field at the end of the record? If not, move the numeric data field in the data source or move the numeric data field in the rules file.
    Are all members that might contain numbers (such as "100") enclosed in quotation marks in the data source?
    If you are using a header, is the header set up correctly? Remember that you can add missing dimension names to the header.
    Does the data source contain extra spaces or tabs?
    Has the updated outline been saved?

  • Can't run JavaFX app as a jar file from command line

    I'm trying to build a JavaFX app from scratch (that is, by including the jar file from the JavaFX SDK rather than by using the special JavaFX project type from NetBeans). It runs fine in NetBeans. However, when I try to launch it as a jar file from the command line (using "java -jar dist\TestApp") I get the following. Has anybody seen this before, and if so how can I fix it?:
    *** Fallback to Prism SW pipeline
    Exception in thread "main" java.lang.RuntimeException: java.lang.UnsatisfiedLink
    Error: Can't load library: C:\dev\TestApp\dist\bin\mat.dll
    at com.sun.javafx.tk.quantum.QuantumToolkit.startup(QuantumToolkit.java:
    289)
    at com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:68)
    at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherIm
    pl.java:145)
    at com.sun.javafx.application.LauncherImpl.access$000(LauncherImpl.java:
    27)
    at com.sun.javafx.application.LauncherImpl$1.run(LauncherImpl.java:97)
    at java.lang.Thread.run(Unknown Source)
    Caused by: java.lang.UnsatisfiedLinkError: Can't load library: C:\dev\RedactionT
    oolPrototype\RedactionToolPrototype.Core\dist\bin\mat.dll
    at java.lang.ClassLoader.loadLibrary(Unknown Source)
    at java.lang.Runtime.load0(Unknown Source)
    at java.lang.System.load(Unknown Source)
    at com.sun.glass.utils.NativeLibLoader.loadLibraryFullPath(NativeLibLoad
    er.java:155)
    at com.sun.glass.utils.NativeLibLoader.loadLibraryInternal(NativeLibLoad
    er.java:85)
    at com.sun.glass.utils.NativeLibLoader.loadLibrary(NativeLibLoader.java:
    30)
    at com.sun.glass.ui.Application$1.run(Application.java:28)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.glass.ui.Application.loadNativeLibrary(Application.java:26)
    at com.sun.glass.ui.win.WinApplication.<clinit>(WinApplication.java:33)
    at com.sun.glass.ui.win.WinPlatformFactory.createApplication(WinPlatform
    Factory.java:20)
    at com.sun.glass.ui.win.WinPlatformFactory.createApplication(WinPlatform
    Factory.java:17)
    at com.sun.glass.ui.Application.Run(Application.java:51)
    at com.sun.javafx.tk.quantum.QuantumToolkit.startup(QuantumToolkit.java:
    279)
    ... 5 more

    Unsatisfied link means that Java is trying to access a native library, but it cannot be found. As to why this error is being thrown, here is my guess:
    If you open up one of the sample jars with a zip viewer, you will see that the Manifest file has the following entries:
    >
    Manifest-Version: 1.0
    JavaFX-Version: 2.0
    implementation-vendor: Oracle
    implementation-title: BrickBreaker
    implementation-version: 1.0
    JavaFX-Application-Class: brickbreaker.Main
    Created-By: JavaFX Packager
    Main-Class: com/javafx/main/Main
    >
    In other words, a JavaFX project works a bit differently than a normal Java project. com/javafx/main/Main is used as the Main class and your "Main" class is called later.
    If you are trying to build this from a normal Java project, then com/javafx/main/Main will not be created and it will call your Main class right away. Thus, whatever setup is needed to run JavaFX will not occur.

  • Multiple jar files from different locations

    Hello,
    I am having an applet that access code from two different jar files. Of them one is a common jar file for many applets. So I couldn't place it in the local dir as that of the applet's html. I am not using any web server.
         Just to give you a feel of it :
         <PARAM NAME = archive VALUE = "DVApplet.jar,DVVP.jar" > are the jar files my applet is dependant on. But DVVP.jar has to be accessed from a dir different from local dir.
         Will be glad if someone can throw some light on accessing different jar files from different dirs.
         Thanks for your time.
    Regards,
    Anantha

    [url=
    http://forum.java.sun.com/thread.jsp?forum=421&thread=425724&tstart=0&trange=100
    ]This question is a bit similar
    You can use a class loader to do such things.

  • How to dynamically load jar files - limiting scope to that thread

    Dynamically loading jar files has been discussed a lot. I have read a quite a few posts, articles, and demo code for doing just that. However, I have yet to find a solution to my problem. Most people modify their system class loader and are happy. I have done that and was happy for a time. Occasionally, you will see reference to an application server or tomcat or some other large project that have successfully been able to load and unload jar files, allow for dynamic deployment of code, etc. However, I have not been able to achieve similar success; And my problem is much less complicated.
    I have an application that executes a thread to send a given file/message to a standard JMS Server Queue. Depending on the parameters selected by the user, this thread may need to communicate with one of a number of JMS Servers, ie. JBoss, WebLogic, EAServer, Glassfish, etc. All of which can be done with the same code, but each needs to load their own flavor of JMS Client Jar files. In this instance, spawning a separate JVM for each communication would work from a classloader perspective. However, I need to keep it in the family and run under the same JVM, albeit each JMS Server Connection will be created and maintained in separate Threads.
    I am close, I am doing the following...
    1. Creating a new URLClassLoader in the run() method of each thread.
    2. Set this threads contextClassLoader to the new URLClassLoader.
    3. Load the javax.jms.JMSException class with the URLClassLoader.loadClass() method.
    4. Create an initialContext object within this thread.
    Note: I read that the initialContext and subsequent conext lookup calls would use the Thread�s
    contextClassLoader for finding/loading classes.
    5. Perform context.lookup calls for a connectionFactory and Queue name.
    6. Create JMS Connection, etc. Send Message.
    Most of this seems to work. However, I am still getting a NoClassDefFoundError exception for the javax.jms.JMSException class ( Note step #3 - tried to cure unsuccessfully).
    If I include one of the JMS Client jar files ( ie wljmsclient.jar for weblogic ) in the classpath then it works for all the different JMS Servers, but I do not have confidence that each of the providers implemented these classes that now resolve the same way. It may work for now, but, I believe I am just lucky.
    Can anyone shine some light on this for me and all the others who have wanted to dynamically load classes/jar files on a per Thread basis?

    Thanks to everyone - I got it working!
    First, BenSchulz' s dumpClassLoader() method helped me to visualize the classLoader hierarchy. I am still not completely sure I understand why my initial class was always found by the systemClassLoader, but knowning that - was the step I needed to find the solution.
    Second, kdgregory suggested that I use a "glue class". I thought that I already was using a "glue class" because I did not have any JMSClient specific classes exposed to the rest of the application. They were all handled by my QueueAdmin class. However...
    The real problem turned out to be that my two isolating classes (the parent "MessageSender", and the child "QueueAdmin") were contained within the same jar file that was included in the classpath. This meant that no matter what I did the classes were loaded by the systemClassLoader. Isolating them in classes was just the first step. I had to remove them from my jar file and create another jar file just for those JMSClient specific classes. Then this jar file was only included int custom classLoader that I created when I wanted to instantiate a JMSClient session.
    I had to create an interface in the primary jar file that could be loaded by the systemClassLoader to provide the stubs for the individual methods that I needed to call in the MessageSender/QueueAdmin Classes. These JMSClient specific classes had to implement the interface so as to provide a relationship between the systemClassLoader classes and the custom classLoader classes.
    Finally, when I loaded and instantiated the JMSClient specific classes with the custom classLoader I had to cast them to the interface class in order to make the method calls necessary to send the messages to the individual JMS Servers.
    psuedu code/concept ....
    Primary Jar File   -  Included in ClassPath                                                      
    Class<?> cls = ClassLoader.loadClass( "JMSClient.MessageSender" )
    JMSClientInterface jmsClient = (JMSClientInterface) cls.newInstance()                            
    jmsClient.sendMessage()                                                                      
    JMSClient Jar File  -  Loaded by Custom ClassLoader Only
    MessageSender impliments Primary.JMSClientInterface{
        sendMessage() {
            Class<?> cls=ClassLoader.loadClass( "JMSClient.QueueAdmin" )
            QueueAdmin queueAdmin=(QueueAdmin) cls.newInstance()
            queueAdmin.JMSClientSpecificMethod()
        }

  • Risk factors while loading flat files

    HI,
    CAn anybody tell me what are risk factors while loading
    flat files....
    Thanks in advance,
    regards,
    Rags

    Risks:
    1) If flat-file is created manually
       - users may forget columns, specifically UNIT and
         CURRENCY.
       - Keyfigures my be presented in thousands one time
         and in single dollars the other time.
       - Flat-file may be delivered too late.
       - Automatic scheduling is difficult if flat-file
         comes from client station. You even can't do it
         with a process chain.
       - Naming conventions (capitals, leading zeroes,
         trailing spaces, special characters)
       - Master data conversion
    2) If flat-file is created automatically (from legacy
       system):
       - Data may arrive too late
       - Data file (if loaded from server) requires a
         connection to the external disk - security risk.
       - (Master) Data conversion
    Note: In the past I had trouble with uploading flat-files from a network-drive. It sometimes happened that the flatfile was only partly imported and that no errors where reported. When loading data from my local C-drive I never had this problem.
    My advise is to upload a flat-file into an ODS before using the data further in BW. In the ODS you can add a date to mark the loading data. If the loading to an ODS is ok then there is a much bigger change that you will not get problems further in the data-stream. Make sure that the key-user validates the data in the ODS before using it any further. It pays off to create one or two special queries on this ODS to enable testing of the data.

  • WUSA error 5 0x80070005 Access Denied while installing KB2992611 & KB3003743 on Win 7

    I'm having a well known problem while patching Windows 7 SP1 x86 systems, but none of the common fixes have worked. I'll use KB2992611 for examples throughout, but the exact same behavior is being seen with KB3003743.
    Logged in as an admin and running an elevated command prompt, I try to install the patch as follows:
    wusa.exe C:\Temp\Windows6.1-KB2992611-x86.msu /quiet /norestart
    The event log shows a 0x80070005, Access Denied from WindowsUpdateClient, but nothing else interesting. If I remove the
    /quiet switch or just double-click the .msu, the graphical installer gets through the "Initializing" phase, but then says "The following updates were not installed:" and lists the patch.
    The CBS log (C:\Windows\Logs\CBS\CBS.log) suggests permission issues with stuff under C:\windows\SoftwareDistribution...
    Info DPX Started DPX phase: Apply Deltas Provided In File
    Info DPX MoveFileExW failed, source: \\?\C:\windows\SoftwareDistribution\Download\fa848827d1bd908340ba44c76a28e7e8\inst\$dpx$.tmp\f3e1d3177d3c4d4597f9494ac7b982ea.tmp, destination: \\?\C:\windows\SoftwareDistribution\Download\fa848827d1bd908340ba44c76a28e7e8\inst\x86_microsoft-windows-lsa_31bf3856ad364e35_6.1.7601.18606_none_a85eb04bbb037ec6\lsass.exe, hr 0x80070005
    Info DPX DpxMoveFileExW failed, source: \\?\C:\windows\SoftwareDistribution\Download\fa848827d1bd908340ba44c76a28e7e8\inst\$dpx$.tmp\f3e1d3177d3c4d4597f9494ac7b982ea.tmp, destination: \\?\C:\windows\SoftwareDistribution\Download\fa848827d1bd908340ba44c76a28e7e8\inst\x86_microsoft-windows-lsa_31bf3856ad364e35_6.1.7601.18606_none_a85eb04bbb037ec6\lsass.exe, hr 0x80070005
    Info DPX MoveFileExW failed, source: \\?\C:\windows\SoftwareDistribution\Download\fa848827d1bd908340ba44c76a28e7e8\inst\$dpx$.tmp\847db368c3d8b44092e372d302e831d8.tmp, destination: \\?\C:\windows\SoftwareDistribution\Download\fa848827d1bd908340ba44c76a28e7e8\inst\x86_microsoft-windows-lsa_31bf3856ad364e35_6.1.7601.22814_none_a8db7e7cd42b04fa\lsass.exe, hr 0x80070005
    Info DPX DpxMoveFileExW failed, source: \\?\C:\windows\SoftwareDistribution\Download\fa848827d1bd908340ba44c76a28e7e8\inst\$dpx$.tmp\847db368c3d8b44092e372d302e831d8.tmp, destination: \\?\C:\windows\SoftwareDistribution\Download\fa848827d1bd908340ba44c76a28e7e8\inst\x86_microsoft-windows-lsa_31bf3856ad364e35_6.1.7601.22814_none_a8db7e7cd42b04fa\lsass.exe, hr 0x80070005
    Info DPX File could not be expanded, Source=x86_microsoft-windows-lsa_31bf3856ad364e35_6.1.7601.18606_none_a85eb04bbb037ec6\lsass.exe, Target=(null), status=0x80070005
    Info DPX ProvideRequestedDataByFile failed, Response file Name: \\?\C:\windows\SoftwareDistribution\Download\fa848827d1bd908340ba44c76a28e7e8\Windows6.1-KB2992611-x86.cab
    Info DPX Ended DPX phase: Apply Deltas Provided In File
    (timestamps removed for readability)
    ...but other .msu files install without issue. I browse to C:\windows\SoftwareDistribution\Download\{string} and see that the Windows6.1-KB2992611-x86.cab file has been copied there. 
    The Windows Update log (C:\Windows\WindowsUpdate.log) has similarly unhelpful messages referencing error 80070005.
    Intelligently interpreting procmon output may be above my pay grade, but the only ACCESS DENIED event that I see from TrustedInstaller.exe is while attempting a
    SetRenameInformationFile on C:\windows\SoftwareDistribution\Download\{string}
    I have tried the fix that involves using the subinacl utility to make sure that Administrators and SYSTEM have proper permissions in the registry (e.g., see support.microsoft.com/kb968003). I have also tried the fix that Kim proposes at the link below,
    using subinacl to make sure that NT SERVICE\TRUSTEDINSTALLER has permissions where it needs...
    answers.Microsoft.com/en-us/windows/forum/windows_7-windows_update/windows-update-error-0x80070005-need-a-fix-click/e4cb8700-f215-4f1a-8bd4-6457ac619c19. I get the same errors after running their scripts as directed.
    I am having this issue on multiple (near-) identically configured hardware from Dell & Fujitsu, so it is not just one flakey device. The systems are locked down via local GPO and run custom applications, so there is a chance that something wonky and
    specific to my environment is causing this, but I'm out of things to check and try, so any ideas would be appreciated. Additional info available upon request.
    Thanks

    Hi,
    I recommend you to follow these steps to have a fix.
    1.Rename the SoftwareDistribution folder.
         Open an administrative Command Prompt window.
         Run the following commands, and press Enter after each command:
         Net stop wuauserv
         cd %systemroot%
         Ren SoftwareDistribution SoftwareDistribution.old
         Net start wuauserv
         Try to install updates again.
    2.Run this Troubleshoot tool to have a check.
    To run the tool:
    Control Panel\All Control Panel Items\Troubleshooting\System and Security\Windows Update
    3.When you are installing the update, please log in the machine as an administrator. Meanwhile please turn off the antivirus software temporarily to install the update.
    Best regards 

  • Access denied while opening any PDF the second time / Zugriff verweigert beim zweiten Öffnen eines beliebigen PDF

    Reader produces "Access denied" while opening any PDF the second time. A LogOut/LogIn or restart is necessary to open a PDF again successfully. User works with a PC (Win7). The file is located on the desktop in a Windows 2008/2012 AD, user profile on networkshare. The same procedure with a file located on any other networkshare or locally on harddisk works without error. Analysis with processmonitor indicates that the file seems to load and then is cancelled for some unknown reason. The problem is somehow growing, beginning with 1 PC and exists now also in our Citrix environment (2 users). Access rights seem to ok and the same on all tested shares (full Access or Change rights).
    Der Reader bringt den Fehler "Zugriff verweigert", wenn man das zweite mal ein PDF öffnen will. Dabei ist der Fehler völlig unabhängig davon, ob man das gleiche oder ein anderes PDF öffnen will. Um wieder erfolgreich ein PDF zu öffnen, ist ein Ab- und Anmelden bzw. ein Neustart des PCs (Win7) nötig. Umgebung ist eine Windows 2008/2012 AD, Profil liegt im Netz. Der Fehler tritt nur bei PDFs auf, die auf dem User-Desktop liegen. Sind die Dateien irgendwo anders im Netz oder lokal auf der Festplatte, kommt der Fehler nicht. Eine Analyse mit dem Prozessmonitor zeigt, dass das Laden des PDFs irgendwann gecancelt wird, warum auch immer. Das Problem scheint sich auch langsam auszuweiten. Es hat mit einem PC begonnen und tritt nun auch in unserer Citrix Umgebung bei bis jetzt 2 Usern auf. Die Berechtigungen scheinen überall ok und gleich zu sein (Volluzgriff oder Ändern).

    ls -l /var/run/lighttpd/
    And how are you spawning the php instances? I don't see that in the daemons array anywhere.
    EDIT: It looks like the info in that page is no longer using pre-spawned instances, but lighttpd adaptive-spawn. The documentation has been made inconsistent it looks like.
    You will note that with pre-spawned information, the config looks different[1].
    You need to do one or the other, not both (eg. choose adaptive-spawn, or pre-spawn..not both).
    [1]: http://wiki.archlinux.org/index.php?tit … oldid=8051 "change"

Maybe you are looking for

  • Image does not load in application

    Hi: I read about the following in a loading image tutorial: "The getImage methods return immediately, without checking whether the image data exists. The actual loading of image data normally doesn't start until the first time the program tries to pa

  • Creating Context Sensitive Webhelp Using Robohelp 9

    I want to create a Context sensitive Webhelp - one help topic for one page/function for web application. I'm using Robohelp 9 with Team Foundation Server 2012. I also have MSSCCI provider installed. I will be using unique ID (Map ID) or unique window

  • How to change Host and domain name on APS 10g R2

    Hi, I have installed oracle application server 10g rel.2 I want to change the host and domain of the system, what should I do, Plz help. Thanks and Regards. Khawar

  • Question for BDC about tcode VK12

    Hi, everyone, i encounter a problem when i use BDC to transfer data about vk12. when i usd BDC to transfer value to the field F001,F002, F003 and F004-LOW then click run, the detail record are be chosed and displayed, then i must chose them and click

  • Business agreement - Edit payment conditions in Customizing

    Hi Guys, I am getting below error when i am trying to create business agreement from CRM IC. Error - Edit payment conditions in Customizing I have completed all the required setting in CRM as well as in ISU for business agreement creation as well as