First8 staat voor vakmanschap. Al onze collega’s zijn een groot aanhanger van Open Source en in het bijzonder het Java-platform. Wij zijn gespecialiseerd in het pragmatisch ontwikkelen van bedrijfskritische Java toepassingen waarbij integratie van systemen, hoge eisen aan beveiliging en veel transacties een belangrijke rol spelen. Op deze pagina vind je onze blogs.

How to solve Eclipse error cannot install breakpoint due to missing line number attributes

Momentarily I’m working on a project in which I had some problems with the debugger. Every time I tried to install a breakpoint I got the error message ‘cannot install breakpoint, due to missing line numbers’ from Eclipse.

Eclipse cannot install breakpoint error

Somehow the breakpoint was installed however, so I could debug as usual but the error message kept popping up. At first I had taken a look at the settings of Eclipse, the project and the JVM. All looked good.

At this point it might be good to know that the project I’m working on is quite a mess (doesn’t follow conventions, tight coupling and low cohesion to give some examples). The project was already a mess when we started working on it.

One of the classes is a Service with a Spring @Service annotation, but the Service didn’t have an Interface.

After a colleague told me that Spring was generating the missing interface without line numbers I’ve added an interface to the Service and that did indeed solve the problem.