Giter Site home page Giter Site logo

izou-pf4j's Introduction

Plugin Framework for Java (PF4J) - Version for Izou

See PF4J for the original Version! Thank you for your hard work! :)

License for the original PF4J:

Copyright 2012 Decebal Suiu

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this work except in compliance with the License. You may obtain a copy of the License in the LICENSE file, or at:

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

izou-pf4j's People

Contributors

decebals avatar leanderk avatar jundl77 avatar gitblit avatar ggsjyoon avatar

Stargazers

rultor.com avatar

Watchers

James Cloos avatar  avatar  avatar rultor.com avatar

Forkers

dbatowl

izou-pf4j's Issues

LinkageError Exception when calling on a ClockActivator method in IzouClock

When the update() method is called in ClockActivator.java in IzouClock, this happens:

Exception in thread "Thread-3" java.lang.LinkageError: jundl77/izou/izouclock/subclasses/AlarmActivator
at jundl77.izou.izouclock.ClockActivator.update(ClockActivator.java:123)
at intellimate.izou.system.FilePublisher.notifyFileSubcribers(FilePublisher.java:73)
at intellimate.izou.system.FileManager.checkAndProcessFileInfo(FileManager.java:194)
at intellimate.izou.system.FileManager.run(FileManager.java:227)
at java.lang.Thread.run(Thread.java:745)

Link to class: https://github.com/jundl77/IzouClock/blob/master/src/main/java/jundl77/izou/izouclock/ClockActivator.java

The issue is in the last method called update(), and the synchronized blocks do not affect the error (I tested) Also it seems like the main while loop is not running, as a break point at any time did not stop it, (even with the bug commented out).

Stackoverflow Link:
http://stackoverflow.com/questions/5941626/how-do-i-correct-a-java-linkageerror-exception

Bug with checkAccess

@LeanderK Try to start Izou with this new version of pf4j as a module dependency instead of the maven dependency. At least for me, Izou does not start because of this method, the LinkageError below is throw for the ro.fortsoft.pf4j.Plugin class.

Do you also have this problem?

Here is the method in the IzouPluginClassLoader class.

/**
 * checks whether the Addon is allowed to access the class
 * @param parentResult the resulting class
 * @return the Class or an Exception
 */
private Class<?> checkAccess(Class<?> parentResult, String classname) throws LinkageError {
    if (parentResult.isAnnotationPresent(AddonAccessible.class) && parentResult.isInterface()) {
        return parentResult;
    } else {
        throw new LinkageError("Requested class: " + classname + " is not accessible for addons");
    }
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.