Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What could cause "Unable to install breakpoint" issue running a webapplication with mvn tomcat7:run-war?

Starting to lose my sanity, I'm going to pull myself together to write a proper question here ..

I have no idea why or what I've done since I haven't changed anything that should affect this but all of sudden I am getting this:

Unable to install breakpoint in com.company.whatever.MyObjectService$$EnhancerBySpringCGLIB$$e3b7e123 due to missing line number attributes.

or as a screenshot:

enter image description here

Yes, I've checked that already under Prefences and followed the suggestions from here.

I don't know why but I'm getting haunted by errors like this lately - holding me off from actual work I need to get done..

This is my maven command:

mvn tomcat7:run-war -am -pl mz-web-server -Dpackage-mode=dev -Denv=dev  -DskipTests

What on earth could be the reason?

Yes, I have

  • mvn clean install
  • Open/close Eclipse
  • Refresh project explorer
  • Looked into Prefences --> Java --> Compiler --> Classfile Generation
  • ... also: unset, apply, set again, apply for Line Number Information option
  • Using JDK instead of JRE
  • Talked to god and even thought about changing my profession

but nothing helped!

like image 963
Stefan Falk Avatar asked Nov 08 '22 12:11

Stefan Falk


1 Answers

You state you use maven, so your options within the IDE are unlikely to help a lot here. Instead you should most likely focus on maven or more specifically the build plugin.

Ensure you have debug mode enabled and with the correct level

for example:

<build>
    <plugins>
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-compiler-plugin</artifactId>
            <configuration>
                <source>1.8</source>
                <target>1.8</target>
                <debug>true</debug>
                <debuglevel>lines,vars,source</debuglevel>
            </configuration>
        </plugin>
    </plugins>
</build>
like image 177
user254948 Avatar answered Nov 14 '22 22:11

user254948