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.

statusInfo must not be null!

See original GitHub issue

spring boot admin version 1.5.2

java.lang.IllegalArgumentException: statusInfo must not be null!
	at org.springframework.util.Assert.notNull(Assert.java:134)
	at de.codecentric.boot.admin.model.Application.<init>(Application.java:61)
	at de.codecentric.boot.admin.model.Application$Builder.build(Application.java:159)
	at de.codecentric.boot.admin.registry.web.RegistryController.register(RegistryController.java:59)
	at sun.reflect.GeneratedMethodAccessor116.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205)
	at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:133)
	at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:116)
	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:827)
	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:738)
	at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)
	at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:963)
	at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:897)
	at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970)
	at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:872)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
joshistecommented, Jul 18, 2017

Afaik the messageconverter should be configured using a WebConfigurer

0reactions
junegodcommented, Jul 18, 2017

Get it !

@EnableDiscoveryClient
@EnableAdminServer
@EnableHystrixDashboard
@EnableConfigServer
@EnableEurekaServer
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
public class AlphaRegistryApp extends WebMvcConfigurerAdapter implements ApplicationContextAware {

    private ApplicationContext applicationContext;

    @Override
    public void setApplicationContext(ApplicationContext applicationContext) {
        this.applicationContext = applicationContext;
    }

    @Bean
    public AbstractGenericHttpMessageConverter mappingJackson2HttpMessageConverter() {
        ObjectMapper objectMapper = Jackson2ObjectMapperBuilder.json()
                .applicationContext(this.applicationContext).build();
        return new MappingJackson2HttpMessageConverter(objectMapper);
    }

    @Override
    public void configureMessageConverters(List<HttpMessageConverter<?>> converters) {
        super.configureMessageConverters(converters);
        converters.add(mappingJackson2HttpMessageConverter());
    }

    public static void main(String[] args) {
        new SpringApplicationBuilder(AlphaRegistryApp.class).web(true).run(args);
    }

}

Read more comments on GitHub >

github_iconTop Results From Across the Web

spring-boot-admin/StatusInfo.java at master - GitHub
private StatusInfo(String status, @Nullable Map<String, ?> details) {. Assert.hasText(status, "'status' must not be empty."); this.status = status.
Read more >
StatusInfo API Question | Roll20: Online virtual tabletop
I was recently using StatusInfo, but it is no longer supported. I was getting LOTS of errors in my API that I'd have...
Read more >
Orion SDK/Rest API failing toopleMetadata
Status = StatusInfo.StatusId and MemberEntityType = 'Orion.Groups'. This worked before but now fails: {. "Message": "Value cannot be null.
Read more >
org.eclipse.ditto.services.utils.health.StatusInfo.of java code ...
public static StatusInfo fromDetail(final StatusDetailMessage detail) { requireNonNull(detail, "The Detail must not be null!
Read more >
Jenkins slave cannot connect with master - Stack Overflow
The jenkins server is in AWS behind the NLB (443 > Ec2 TLS; 50000 > Ec2 TCP) and jenkins agent is a local...
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