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 3286594
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T20:23:52+00:00 2026-05-17T20:23:52+00:00

In my code, I have a nestted class that holds an object and an

  • 0

In my code, I have a nestted class that holds an object and an integer. This is to mark the beginning and end locations for a sublist method.

The code executes to the point that the object and integer have established values. I’ve verified this in the debugger.

The next line then calls ListLoc<E> startNode= new ListLoc<E>(start, startElement); and that is what trips the exception.

The class is already defined as

 private class ListLoc<E>{
    public Chunk<E> node;
    public int index;

    /* This object is created to hold a chunk and index location.  Two
     * objects will be created for the start and end locations for 
     * creating a sublist
     */
    public ListLoc(Chunk<E> node, int index){
        this.node= node;
        this.index= index;
    }
}

The strange thing is this portion of the code was executing fine before I replaced the local startNode with a global variable. That idea didn’t work out, so I changed the variable back, and this exception cropped up.

I have made no changes to the class path or executions. The only time this crops up is in the debugger

EDIT: added stack trace

ClassNotFoundException(Throwable).(String, Throwable) line: 217
ClassNotFoundException(Exception).(String, Throwable) line: not available
ClassNotFoundException.(String) line: not available
URLClassLoader$1.run() line: not available
AccessController.doPrivileged(PrivilegedExceptionAction, AccessControlContext) line: not available [native method]
Launcher$ExtClassLoader(URLClassLoader).findClass(String) line: not available
Launcher$ExtClassLoader.findClass(String) line: not available
Launcher$ExtClassLoader(ClassLoader).loadClass(String, boolean) line: not available
Launcher$AppClassLoader(ClassLoader).loadClass(String, boolean) line: not available
Launcher$AppClassLoader.loadClass(String, boolean) line: not available
Launcher$AppClassLoader(ClassLoader).loadClass(String) line: not available

From what it looks to me, its the classLoader that triggers the exception.

  • 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-17T20:23:53+00:00Added an answer on May 17, 2026 at 8:23 pm

    It would help if you could clarify what the exception is, however, I am guessing that you are getting a ClassNotFound for E.

    It looks like your professor has not clarified the concept of Generics yet. I would recommend looking over what a generic data structure is. THe advice I would give is to look for why E is not defined and why you are trying to create a list of them.

    I think that the following link might help to clarify the syntax and the concepts behind them:
    http://download.oracle.com/javase/tutorial/extra/generics/index.html

    Particularly the following section: http://download.oracle.com/javase/tutorial/extra/generics/simple.html

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

Sidebar

Related Questions

I have a python code like this. File named mymodule.py class MyBase(object): pass File
I have 2 master pages that are nested.this is main master page code for
this is function.php of a wordpress theme that NOD32 says this code have a
I have a base class that has an abstract getType() method. I want subclasses
I have a saving/loading framework that is supposed to save arbitrary object graphs. This
I'm struggling with the following code. Basically, I have a class Foo and nested
If I have code with nested objects like this do I need to use
I have code in Java that has an outer loop and several nested loops.
I have a nested oredered list which i m animating using this code... var
I have code that generates a List<string[]> variable but can't quite figure out how

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.