GithubHelp home page GithubHelp logo

Comments (4)

hvisage avatar hvisage commented on August 30, 2024

(1) What is the Java errors?
(2) you did make sure they are on different ports or IPs?

from m2ee-tools.

dungnt1989 avatar dungnt1989 commented on August 30, 2024

#(1) this is the error log:

on Centos 7

m2ee(mxappr): start
INFO: Trying to start the MxRuntime...
Exception in thread "main" java.lang.NullPointerException
at java.base/java.lang.reflect.Array.getLength(Native Method)
at scala.collection.ArrayOps$.foreach$extension(ArrayOps.scala:1320)
at com.mendix.container.deployment.internal.Interpreters$ClassLoaders$.com$mendix$container$deployment$internal$Interpreters$ClassLoaders$$delete$1(Interpreters.scala:78)
at com.mendix.container.deployment.internal.Interpreters$ClassLoaders$$anon$1.$anonfun$config$3(Interpreters.scala:91)
at com.mendix.container.deployment.internal.Interpreters$ClassLoaders$$anon$1.$anonfun$config$3$adapted(Interpreters.scala:91)
at scala.collection.ArrayOps$.foreach$extension(ArrayOps.scala:1323)
at com.mendix.container.deployment.internal.Interpreters$ClassLoaders$$anon$1.(Interpreters.scala:91)
at com.mendix.container.deployment.internal.Interpreters$ClassLoaders$.createClassloader(Interpreters.scala:83)
at com.mendix.container.deployment.internal.Interpreters$ClassLoaders$.$anonfun$newDependency$1(Interpreters.scala:145)
at cats.data.StateFunctions.$anonfun$modify$4(IndexedStateT.scala:363)
at cats.data.StateFunctions.$anonfun$apply$2(IndexedStateT.scala:348)
at scala.Function1.$anonfun$andThen$1(Function1.scala:85)
at scala.Function1.$anonfun$andThen$1(Function1.scala:85)
at cats.data.AndThen.loop$1(AndThen.scala:107)
at cats.data.AndThen.runLoop(AndThen.scala:116)
at cats.data.AndThen.apply(AndThen.scala:68)
at cats.data.IndexedStateT.$anonfun$run$1(IndexedStateT.scala:64)
at cats.Eval$.loop$1(Eval.scala:358)
at cats.Eval$.cats$Eval$$evaluate(Eval.scala:363)
at cats.Eval$FlatMap.value(Eval.scala:284)
at com.mendix.container.deployment.Runners$.runClassloadersHierarchyBuilder(Runners.scala:111)
at com.mendix.container.componentregistry.internal.ClassloaderComponentReader$.buildHierarchy(ClassloaderComponentReader.scala:214)
at com.mendix.container.componentregistry.internal.ClassloaderComponentReader$.read(ClassloaderComponentReader.scala:22)
at com.mendix.container.componentregistry.ComponentRegistry$.run(ComponentRegistry.scala:16)
at com.mendix.container.boot.Container$.doStart(Container.scala:110)
at com.mendix.container.boot.Container$.doStart(Container.scala:93)
at com.mendix.container.boot.Container$.$anonfun$startAndWaitForever$2(Container.scala:70)
at scala.util.Either.flatMap(Either.scala:352)
at com.mendix.container.boot.Container$.$anonfun$startAndWaitForever$1(Container.scala:69)
at com.mendix.container.boot.Container$.time(Container.scala:157)
at com.mendix.container.boot.Container$.startAndWaitForever(Container.scala:69)
at com.mendix.container.boot.Main$.$anonfun$new$2(Main.scala:14)
at scala.util.Either.flatMap(Either.scala:352)
at com.mendix.container.boot.Main$.delayedEndpoint$com$mendix$container$boot$Main$1(Main.scala:13)
at com.mendix.container.boot.Main$delayedInit$body.apply(Main.scala:10)
at scala.Function0.apply$mcV$sp(Function0.scala:39)
at scala.Function0.apply$mcV$sp$(Function0.scala:39)
at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:17)
at scala.App.$anonfun$main$1(App.scala:76)
at scala.App.$anonfun$main$1$adapted(App.scala:76)
at scala.collection.IterableOnceOps.foreach(IterableOnce.scala:563)
at scala.collection.IterableOnceOps.foreach$(IterableOnce.scala:561)
at scala.collection.AbstractIterable.foreach(Iterable.scala:919)
at scala.App.main(App.scala:76)
at scala.App.main$(App.scala:74)
at com.mendix.container.boot.Main$.main(Main.scala:10)
at com.mendix.container.boot.Main.main(Main.scala)
ERROR: JVM process terminated without reason., errno: 0xa, subprocess output available

On debian:

m2ee(mxhc): start
INFO: Trying to start the MxRuntime...
OpenJDK 64-Bit Server VM warning: Ignoring option MaxPermSize; support was removed in 8.0
ERROR: JVM process terminated without reason., errno: 0xa, subprocess output available

#(2)I'm sure 2 apps run on different ports.

from m2ee-tools.

hvisage avatar hvisage commented on August 30, 2024

hmmm... double check the adminports are also different

from m2ee-tools.

evertsc avatar evertsc commented on August 30, 2024
  • Make sure all ports are different (runtime and admin)
  • Configure each app with a different *nix user with their own directory structure for the app and m2ee.yaml
  • When you run apps that need different java versions (mx7 uses java8, mx8+ uses java11), make sure to set the "javabin" correctly in your yaml

from m2ee-tools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.