question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error "Property xxx not found in class yyy" on many properties, where the property exists in the class

See original GitHub issue

For instance, these properties were al marked with error:

  <resultMap id="programCall" type="nl.mediacenter.xref.dal.ProgramCall">
    <result property="calledProgram"      column="CALLED_PROGRAM"      jdbcType="CHAR"/>
    <result property="calledProgramType"  column="CALLED_PROGRAMTYPE"  jdbcType="CHAR"/>
    <result property="calledProgramText"  column="CALLED_PROGRAMTEXT"  jdbcType="CHAR"/>
    <result property="callingProgram"     column="CALLING_PROGRAM"     jdbcType="CHAR"/>
    <result property="callingProgramType" column="CALLING_PROGRAMTYPE" jdbcType="CHAR"/>
    <result property="callingProgramText" column="CALLING_PROGRAMTEXT" jdbcType="CHAR"/>
  </resultMap>

And this is part of the class in question

package nl.mediacenter.xref.dal;

public class ProgramCall
{
public String calledProgram;
private String calledProgramType;
private String calledProgramText;
private String callingProgram;
private String callingProgramType;
private String callingProgramText;
public String getCalledProgram()
{
	return calledProgram;
}
public String getCalledProgramType()
{
	return calledProgramType;
}
public String getCalledProgramText()
{
	return calledProgramText;
}

As you can see, all the properties are there. The errors went away after I uninstalled MyBatipse.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:17 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
purbanuscommented, Dec 4, 2021

Sure, there you go

package pu.heavymetal.bo;

public class JaarDocument
{
private final int jaar;
private final long issues;
public JaarDocument( Integer aJaar, Long aIssues )
{
	super();
	jaar = aJaar;
	issues = aIssues;
}
public int getJaar()
{
	return jaar;
}
public long getIssues()
{
	return issues;
}

}

Oh, now I see: it’s the final in the member definitions. If I remove that the errors go away!

0reactions
harawatacommented, Dec 4, 2021

Thank you for taking the time to report the issue! 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

Could not find a property named 'xxx.yyy' in FormView (two ...
The problem is that when you will change your domain for example to add a field: public class Person { public int Id...
Read more >
Security.Applications - InterSystems IRIS Data Platform 2022.2
This class defines the applications for a system. ... Depending on the type of application defined (Type property), properties may or may not...
Read more >
Reference - OGM Library - Neo4j
A @Properties annotation tells Neo4j-OGM to map values of a Map field in a node or relationship entity to properties of a node...
Read more >
highcharts-angular - npm
Property XXX does not exist on type YYY. It is happening when you are trying to use non-existing property or one of our...
Read more >
the infamous 'jaxb.properties file not found' problem
I am still running into the problem of not being able to find the jaxb.properties file, ... The class files are in Com.xxx.yyy.Pids.Inq...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found