Process 'null' has no default start activity (e.g. none start event), hence you cannot use

Hi guys I have this issue cant understand where the problem is. I deleted all processes because I wanted to clean the dashboard and then when started again spring boot app I saw this message
hubStart.bpmn (17.8 KB)

@SpringBootApplication
@EnableProcessApplication
@Configuration
public class HubApiApplication extends SpringBootServletInitializer {

    @Autowired
    private RuntimeService runtimeService;

    public static void main(String[] args) throws Exception {
        SpringApplication.run(HubApiApplication.class, args);
        Path rootPath = Paths.get(".").normalize().toAbsolutePath();
        FileWatch.fileWatcher(rootPath.toString());
    }

    @EventListener
    public void processPostDeploy(PostDeployEvent event) {
//        event.getProcessEngine().getRuntimeService().startProcessInstanceByKey("hubStart");
        runtimeService.startProcessInstanceByKey("hubStart");
    }

java.lang.RuntimeException: org.camunda.bpm.engine.ProcessEngineException: ENGINE-08043 Exception while performing 'Deployment of Process Application hubApiApplication' => 'Invoking @PostDeploy': Process 'null' has no default start activity (e.g. none start event), hence you cannot use 'startProcessInstanceBy...' but have to start it using one of the modeled start events (e.g. message start events): initial is null
	at org.camunda.bpm.engine.spring.application.SpringProcessApplication.onApplicationEvent(SpringProcessApplication.java:105) ~[camunda-engine-spring-7.14.0.jar:7.14.0]
	at org.camunda.bpm.engine.spring.application.SpringProcessApplication.onApplicationEvent(SpringProcessApplication.java:52) ~[camunda-engine-spring-7.14.0.jar:7.14.0]
	at org.camunda.bpm.spring.boot.starter.SpringBootProcessApplication$$EnhancerBySpringCGLIB$$2fe2b24a.onApplicationEvent(<generated>) ~[camunda-bpm-spring-boot-starter-7.14.0-ee.jar:7.14.0-ee]
	at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172) ~[spring-context-5.2.9.RELEASE.jar:5.2.9.RELEASE]
	at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165) ~[spring-context-5.2.9.RELEASE.jar:5.2.9.RELEASE]
	at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139) ~[spring-context-5.2.9.RELEASE.jar:5.2.9.RELEASE]
	at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:404) ~[spring-context-5.2.9.RELEASE.jar:5.2.9.RELEASE]
	at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:361) ~[spring-context-5.2.9.RELEASE.jar:5.2.9.RELEASE]
	at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:898) ~[spring-context-5.2.9.RELEASE.jar:5.2.9.RELEASE]
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:554) ~[spring-context-5.2.9.RELEASE.jar:5.2.9.RELEASE]
	at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:143) ~[spring-boot-2.3.4.RELEASE.jar:2.3.4.RELEASE]
	at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:758) ~[spring-boot-2.3.4.RELEASE.jar:2.3.4.RELEASE]
	at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:750) ~[spring-boot-2.3.4.RELEASE.jar:2.3.4.RELEASE]
	at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397) ~[spring-boot-2.3.4.RELEASE.jar:2.3.4.RELEASE]
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:315) ~[spring-boot-2.3.4.RELEASE.jar:2.3.4.RELEASE]
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1237) ~[spring-boot-2.3.4.RELEASE.jar:2.3.4.RELEASE]
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1226) ~[spring-boot-2.3.4.RELEASE.jar:2.3.4.RELEASE]
	at com.hub.business.HubApiApplication.main(HubApiApplication.java:29) ~[classes/:na]
Caused by: org.camunda.bpm.engine.ProcessEngineException: ENGINE-08043 Exception while performing 'Deployment of Process Application hubApiApplication' => 'Invoking @PostDeploy': Process 'null' has no default start activity (e.g. none start event), hence you cannot use 'startProcessInstanceBy...' but have to start it using one of the modeled start events (e.g. message start events): initial is null
	at org.camunda.bpm.container.impl.ContainerIntegrationLogger.exceptionWhilePerformingOperationStep(ContainerIntegrationLogger.java:316) ~[camunda-engine-7.14.0-ee.jar:7.14.0-ee]
	at org.camunda.bpm.container.impl.spi.DeploymentOperation.execute(DeploymentOperation.java:136) ~[camunda-engine-7.14.0-ee.jar:7.14.0-ee]
	at org.camunda.bpm.container.impl.jmx.MBeanServiceContainer.executeDeploymentOperation(MBeanServiceContainer.java:160) ~[camunda-engine-7.14.0-ee.jar:7.14.0-ee][hubStart.bpmn|attachment]

Can you give more details about your setup, your camunda distribution, version, database and details of your deployments.

What do you mean by details of my deployments?

this is the version: <camunda.version>7.14.0-ee</camunda.version>
H2 Database is used: pom.xml (8.2 KB)
Here is my yaml:
camunda.bpm:
admin-user:
id: demo
password: demo
firstName: Demo
filter:
create: All tasks

camunda:
  bpm:
    database:
      type: h2

swagger:
  host:
    url: http://localhost:8080

spring:
  h2:
    console:
      enabled: true
  datasource:
    driver-class-name: org.h2.Driver
    url: jdbc:h2:file:./camunda-h2-database
  jpa:
    database-platform: org.hibernate.dialect.H2Dialect
    hibernate:
      ddl-auto: update
    show-sql: true
    properties:
      hibernate:
        format_sql: true
        generate_statistics: true

feign:
  client:
    config:
      remoteRuntimeService:
        url: "http://localhost:8083/engine-rest/"
      remoteRepositoryService:
        url: "http://localhost:8083/engine-rest/"
      remoteExternalTaskService:
        url: "http://localhost:8083/engine-rest/"

logging:
  level:
    org:
      camunda:
        bpm:
          extension:
            rest:
              client:
                RuntimeServiceClient: DEBUG
                RepositoryServiceClient: DEBUG
      hibernate:
        type: trace
        stat: debug

what do you think? Do I need to add something in the process.xml? because mine is empty.

Hi @Asparuh_Petrov,

in spring boot it’s fine to have an empty processes.xml.

Maybe you have hidden another (broken) version of your bpmn file somewhere in your spring boot project?

Hope this helps, Ingo

No, I dont have any other model in my project. I managed it to start but somehow does not work properly the EE version as before I checked my Licence they are still valid but it tells me that I need to provide valid license key… which was already there and already working… the behaviour is a bit strange.

Hi @Asparuh_Petrov,

just a guess: Maybe there is something wrong with your database setup?

The license is saved there until you delete it.

Hope this helps, Ingo

Hallo man, yes that was true, I added in the yaml file this # process-engine-name: “hubStart” after deleting it now it works… thanks
camunda.bpm:
admin-user:
id: demo
password: demo
firstName: Demo
filter:
create: All tasks

process-engine-name: “hubStart”