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

  • Home
  • SEARCH
  • 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 6872029
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T03:52:36+00:00 2026-05-27T03:52:36+00:00

Working on a new project I’ve run into a major roadblock that has brought

  • 0

Working on a new project I’ve run into a major roadblock that has brought my progress to a crawl. A little about my project… it is an annotation processing tool much like AndroidAnnotations that scans for annotations and builds up Android specific code accordingly.

The error seems to be related to the Java6 annotation processing, Android API and Maven, and only appears when I have an instance of a type from the Android API declared in a processed class. Here’s the error I am running into when including my library:

...
[INFO] Compiling 5 source files to /mnt/hd1/home/john/dev/robotics-project/examples/simple/target/classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR : 
[INFO] -------------------------------------------------------------
error: cannot access sun.util.resources.OpenListResourceBundle

    at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:715)
    at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
    at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
    at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
    at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
    at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
    at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
    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 org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
    at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
    at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
    at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.CompilationFailureException: Compilation failure
error: cannot access sun.util.resources.OpenListResourceBundle

    at org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:656)
    at org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:128)
    at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
    at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
... 17 more
[INFO] 1 error
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Compilation failure
error: cannot access sun.util.resources.OpenListResourceBundle

Here is the repository for my code: https://github.com/johncarl81/robotics

To reproduce the error, replace TestController.java with the following:

public class TestController {

    @Inject
    private SubComponent subComponent;
    @Inject
    private Activity activity;
    public boolean validate() {
        return subComponent != null && activity != null;
    }

}

Then build the project from the root by running:

mvn clean install

sun.util.resources.OpenListResourceBundle is available on the classpath, as I am running java 1.6.0_26 in an Ubuntu environment. I have tried this on multiple ubuntu machines as well as windows with exactly the same problem.

Any help or ideas on what to try is appreciated.

  • 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-05-27T03:52:37+00:00Added an answer on May 27, 2026 at 3:52 am

    After asking this question I went back to the drawing board and looked at everything that was happening during the annotation processing phase. Turns out that the android.app.Activity class and all of its related classes (parameter types, etc) were being analyzed by my library. This seems to have caused the annotation processor to trigger some sort of review on those classes, which seems to include the rt.jar class mentioned. This then caused the error, because that class could not be accessed by the compiler.

    The solution was to trim the analysis of irrelevant classes during the annotation processing phase.

    Hope that helps anyone that may come across this problem in the future (although probably unlikely).

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

Sidebar

Related Questions

Hey I just began working on a new project that requires, tab navigation, and
I'm working on a new project which has some complex javascript. I can't post
I just started working on a new project that already contains a .svn folder
I'm about to start working on a new project at a somewhat new job,
I'm working on a brand new project for a state government agency that we
I'm working at the moment on a new project which has following requirement: Several
I'm working on a new project that needs a new virtualenv. When I do
I'm working on a new project, and it appears that both opera and IE
A friend and I are working on a new project that is using SQL
In near future I'll need to start working on a new project that consist

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.