title: javaparser Symbol solver: I can resolve inherited classes of a class but cannot resolve anything else
body: <p>I have setup the JavaSymbolSolver like below:</p>
  
  <p>Instance Variables:</p>
  
  <pre><code>private CombinedTypeSolver combinedTypeSolver = new CombinedTypeSolver();
  private JavaSymbolSolver symbolSolver;
  private ParserConfiguration parserConfiguration = new 
  ParserConfiguration();
  private JavaParser parser;
  private CompilationUnit compilationUnit = null;
  private ParseResult&lt;CompilationUnit&gt; parseResultcompilationUnit = null;
  </code></pre>
  
  <p>from constructor:</p>
  
  <pre><code>this.combinedTypeSolver.add(new ReflectionTypeSolver());
  this.combinedTypeSolver.add((new JavaParserTypeSolver("C:\\Users\\nfountou\\git\\TestingJavaParser\\rsc")));
  this.combinedTypeSolver.add((new JavaParserTypeSolver("C:\\Users\\nfountou\\git\\TestingJavaParser")));
  this.symbolSolver = new JavaSymbolSolver(this.combinedTypeSolver);
  
  this.parserConfiguration.setSymbolResolver(this.symbolSolver);
  this.parser = new JavaParser(parserConfiguration);
  
  FileInputStream in = new FileInputStream(filepath);
  
  this.parseResultcompilationUnit = this.parser.parse(in);
  
  this.compilationUnit = parseResultcompilationUnit.getResult().get();
  </code></pre>
  
  <hr>
  
  <p>The test code seems to work fine and I am being able to resolve e.g. class B
  of class A as can be seen below:</p>
  
  <pre><code>public class A extends B{
  
  }
  </code></pre>
  
  <p>the problem is that it seems that I cannot resolve anything else and whatever I tried I receive the message below:</p>
  
  <p>Exception in thread "main" java.lang.IllegalStateException: No data of this type found. Use containsData to check for this first.</p>
  
  <p>For example the source code that I am running for resolving e.g an AssignExpr:</p>
  
  <pre><code>ResolvedType declaringType = ((AssignExpr) value).calculateResolvedType();
  </code></pre>
  
  <p>(where value is an object that holds an AssignExpr node)</p>
  
  <p>Resolving a superclass works fine and returns the right values:</p>
  
  <pre><code>ResolvedClassDeclaration declaringType = ((ClassOrInterfaceType) value).resolve().getTypeDeclaration().asClass();
  </code></pre>
  
  <p>Any ideas what am I doing wrong?</p>