HotswapProjects / HotswapAgent

Java unlimited redefinition of classes at runtime.
GNU General Public License v2.0
2.36k stars 493 forks source link

(JDWP Transport Listener: dt_socket) HOTSWAP AGENT: 9:46:23.516 ERROR (org.hotswap.agent.plugin.weld.WeldPlugin) - classReload() exception #100

Open AlivKhen opened 9 years ago

AlivKhen commented 9 years ago

Hello guys,

Sometimes when i save the file a modal in eclipse appears with options: Restart All Modules, Continue and Terminate. When i press restart all modules this error appears in many controllers like:

(JDWP Transport Listener: dt_socket) HOTSWAP AGENT: 9:46:23.516 ERROR (org.hotswap.agent.plugin.weld.WeldPlugin) - classReload() exception br.gov.kda.view.CreateUserController$$$view1251.

org.hotswap.agent.plugin.weld.WeldPlugin) - CDI/Weld plugin initialized in JBossAS." is printed in logs.

Why this error happen?When this error appears sometimes the changes saved in the class doesnt work.

Other thing when i inject a class or when i add a @EJB tag and try to call it it always cause NullPointer Exception. Its strange because when i add an attribute/method or make changes in method it works fine but when i Inject something it causes NullPointerException

Iam using wildfly 9.0.1 final, and using multi modules maven project

Do you guys knows how to fix it?Can someone help please?

Sorry for the bad english

skybber commented 9 years ago

$$$ in error output means that Proxy class was changed. Proxy reloading is not still implemented - it is current limit of HotswapAgent's WeldPlugin , therefore please be aware of that.

skybber commented 8 years ago

I've added proxy support into HA, it is available in repository. Just now it is restricted only on bean redefinition, new proxied bean class is not supported and probably fails.

AlivKhen commented 8 years ago

Thank you now hotswap gonna help alot

AlivKhen commented 8 years ago

@skybber i did tested it and still doesnt work. Now on debug mode it says that is registering proxy for the bean but the same error "(JDWP Transport Listener: dt_socket) HOTSWAP AGENT: 9:46:23.516 ERROR (org.hotswap.agent.plugin.weld.WeldPlugin) - classReload() exception br.gov.kda.view.CreateUserController$$$view1251. " Happens.

Is it possible for you to send me the version you tested? Thank you

skybber commented 8 years ago

I've used the HEAD from repository, you can get it by git clone. If the problem persists than the best thing would be to create an example project.