Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7994973
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T14:16:18+00:00 2026-06-04T14:16:18+00:00

I have created a series of plugins for imageJ using the interface PluginFilter. Many

  • 0

I have created a series of plugins for imageJ using the interface PluginFilter. Many of these plugins share some common tasks and I would also like to instantiate them outside of imageJ so I created an abstract Analysis.java that contains a constructor

public Analysis(ImagePlus imp){
populateDBValues(imp);
}

but no default constructor. Other plugins extend Analysis. I previously had repeated code in each of the plugins and this worked fine. When the constructor was added I got an error in ImageJ showing the message “Unable to load plugins”.

I tracked this through the source code to the point

catch (InstantiationException e) {log("Unable to load plugin (ins)");}

Why does the addition of the constructor cause this error?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T14:16:19+00:00Added an answer on June 4, 2026 at 2:16 pm

    From Default constructors and inheritance in Java
    “Java provides automatically for you a default constructor (one without parameters), which initializes all instance variables of the class (if there are any) with some default values (0, null, or false). If you write a constructor, however, with some parameters, and you don’t write any default constructor, then Java does not provide a default constructor.”

    Before creating the constructor with parameters ImageJ could use the default constructor when the Plugin is loaded. After creating the constructor with parameters the default constructor is no longer present so ImageJ cannot instantiate the plugins and hence throw the error.

    Adding default constructors to the classes will solve the issue.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Right now I have a series of objects that are created using C extensions,
I have been using Rapidminer and created a series of processes which preform a
Using the JQuery plugin JScrollPane I have created a series of scrollable divs styled
I've created a series of rounded tabs using CSS3. I've then rotated these tabs,
I have created an application that records a series of longitude and latitude values
I have created a basic site using ASP.NET routing according to Mike Ormond's example
I have created one table using the below command: create table Table1( Id int
I am playing around with AJAX functionality using ASP.NET MVC. I have created a
I have a back office page i am developing. I have created a series
I have created a series of views that operate on a fairly large table.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.