Unable to build mule 3.5.0 source code - mule

I am attempting to build the Mule ESB 3.5.0 Community Runtime found at https://github.com/mulesoft/mule/releases/tag/mule-3.5.0
If I build using maven and skip the tests everything is fine.
However if I leave the tests enabled a few fail and the rest are skipped.
I have tried building each maven module individually in the order they are listed in the parent POM using the setups listed below:
Please could someone advise to any additional steps or environment setup required in order to successfully build the source?
Setup #1
Ubuntu 14.04 LTS Desktop (64bit)
java-7-oracle JDK (64bit)
Maven 3.0.5
The results are as follows:
buildtools - ALL TESTS PASS
core - ALL TESTS PASS
distributions - ALL TESTS PASS
examples - ALL TESTS PASS
modules - failed on Management Extensions:
testDefaultJmxAgent(org.mule.management.JmxAgentEmptyConfigurationTestCase)
testDefaultJmxAgent(org.mule.management.JmxAgentDefaultConfigurationWithRMITestCase)
patterns - ALL TESTS PASS
tools - ALL TESTS PASS
transports - failed on HTTP Transport:
createHttpServerConnectionWithHttpConnectorProperties(org.mule.transport.http.HttpServerConnectionTestCase)
tests -failed on Integration Tests:
testOutboundInMiddleOfFlow(org.mule.test.construct.FlowOutboundInMiddleOfFlowTestCase)
validatesDbConnectorGenericMySqlOverriddenTemplateResolution(org.mule.spring.config.NewDatabaseMuleArtifactTestCase)
verifiesDerby(org.mule.spring.config.DatabaseMuleArtifactTestCase)
Setup #2
Windows 7 Pro (64bit)
Oracle Jave JDK 1.6.0_31 (64bit)
Maven 3.2.1
The results are as follows:
buildtools - ALL TESTS PASS
core - Failed
testFullStackTraceWithoutMessage(org.mule.util.ExceptionUtilsTestCase)
dateTimeIsAfter[0](org.mule.el.context.ServerContextTestCase)
testIsSupportedJdkVersion(org.mule.util.JdkVersionUtilsTestCase)
testRecommendedJdkVersion(org.mule.util.JdkVersionUtilsTestCase)
testValidateJdk5(org.mule.util.JdkVersionUtilsTestCase)
Setup #3
Windows 7 Pro (64bit)
Oracle Jave JDK 1.7.0_51 (64bit)
Maven 3.2.1
The results are as follows:
buildtools - ALL TESTS PASS
core - Failed
testFullStackTraceWithoutMessage(org.mule.util.ExceptionUtilsTestCase)
dateTimeIsAfter[0](org.mule.el.context.ServerContextTestCase)
testIsSupportedJdkVersion(org.mule.util.JdkVersionUtilsTestCase)
testRecommendedJdkVersion(org.mule.util.JdkVersionUtilsTestCase)
testValidateJdk5(org.mule.util.JdkVersionUtilsTestCase)
Regards
Kumaran

Mule 3.5 has to be compiled against Java6.
Theoretically it can be compiled on windows but I would rather try with Linux/Mac.
Make sure you allocate enough ram export MAVEN_OPTS="-Xmx4000m"
Read carefully the BUILD instructions.

Related

Error: EMFILE: too many open files, open - serverless framework

I'm trying to deploy my lambda functions using serverless framework.
I'm pretty sure it worked in the past, now I get the error below when calling sls deploy.
The lambda runtime is in python. Here my last version of serverless.yaml
I'm running the deploy from macOS big sur but I get the same error from centos.
Any clue?
Error ---------------------------------------------------
Error: EMFILE: too many open files, open '/Users/antoniodalessio/personal/dynamoplus-project/dynamoplus/serverless/.serverless/get.zip'
For debugging logs, run again after setting the "SLS_DEBUG=*" environment variable.
Get Support --------------------------------------------
Docs: docs.serverless.com
Bugs: github.com/serverless/serverless/issues
Issues: forum.serverless.com
Your Environment Information ---------------------------
Operating System: darwin
Node Version: 17.3.0
Framework Version: 2.69.1 (local)
Plugin Version: 5.5.1
SDK Version: 4.3.0
Components Version: 3.18.1

Gradle sync fails when creating a new Kotlin project with default settings in freshly installed IntelliJ IDEA

I wanted to learn some Kotlin so I installed IntelliJ IDEA, created a new Kotlin project with the default settings and then the IDE tells me that Gradle sync has failed. Here's the error message:
Could not open init generic class cache for initialization script 'C:\Users\<my_name>\AppData\Local\Temp\wrapper_init.gradle' (C:\Users\<my_name>\.gradle\caches\6.8\scripts\344chmz69zyndatc9zp4rwux5).
> BUG! exception in phase 'semantic analysis' in source unit '_BuildScript_' Unsupported class file major version 60
I googled the error and got a suggestion to try a different JDK version. Tried a few different versions but that didn't help. Then I installed the IDE on my laptop to see if that works and there I don't get any errors. As far as I can tell, the project settings were exactly the same on both machines but obviously something is messed up on my desktop computer. Both have Windows 10.
I'm also not at all familiar with the Java/Kotlin ecosystem or the build tools or whatever so I honestly have no idea how I could even begin fixing some Gradle errors. I don't really even know what Gradle is or what it does. So can you help me?
First, check the version which the project uses: File > Project Structure. Or, during project creation (https://i.stack.imgur.com/SXIzQ.png / example with SDK 1.8)
It has to be the same as JDK / SDK installed on your computer.
To verify java version installed in your terminal:
java -version
openjdk version "1.8.0_252"
OpenJDK Runtime Environment (build 1.8.0_252-8u252-b09-1~19.10-b09)
OpenJDK 64-Bit Server VM (build 25.252-b09, mixed mode)

Installing Glassfish tools in eclipse luna

Im trying to install Glassfish tools in eclise Luna but I keep getting this error message:
Cannot complete the install because one or more required items could not be found.
Software being installed: GlassFish Tools 7.3.3.201412231459 (oracle.eclipse.tools.glassfish.feature.group 7.3.3.201412231459)
Missing requirement: GlassFish Tools 7.3.3.201412231459 (oracle.eclipse.tools.glassfish.feature.group 7.3.3.201412231459) requires 'org.eclipse.sapphire.feature.group [8.1.0,8.2.0)' but it could not be found
What should I do? Thanks.
It looks like they somehow messed up the plugin dependencies while packaging the plugin version which is currently referenced by the .
To fix it you have to install an slightly older version of the Glassfish Tools manually. To do this in Eclipse click on Help -> Install new software and put the following URL in the upper input field:
http://download.oracle.com/otn_software/oepe/12.1.3.1/luna/repository
Then click enter, after it has fetched the installable packages, choose the Glassfish Tools package and the Oracle Java EE Tools package (both should be version 7.2.0.xxx) and install. The installation can take a while because the oracle repository site is often slow.
See also:
How to configure Glassfish Server in Eclipse Luna manually
Define a New Server choosing GlassFish 3.1 gives Internal Error - Eclipse Luna
see on eclipse marketplace the minimum version of Java required to run GlassFish Tools.
Mars - Java 8
Luna - Java 8
Kepler - Java 7
Juno - Java 6
See more at:
https://marketplace.eclipse.org/content/glassfish-tools
Go with Eclipse Luna + RedHat JBoss WildFly 8.2, which is working just fine.

How to check apache maven version 3.1.1 or newer is installed in a machine?

I am absolutely new to Java Enterprise Edition and can someone help me by providing the steps needed to check whether Apache maven version 3.1.1 or newer is installed in a machine?
You can check it by executing mvn -version.
if the command is not found, no version is installed correctly else there is an output of the maven version.
If you want to check it programatically you can write an java application which executes the mvn -version command and reads the result of the process.
(Search for java Runtime.getRuntime().exec )

Timeout while trying to contact RemoteTestNG in Selenium on Mac

I have a TestNG setup running on Eclipse Indigo 20120216-1857 and TestNG for Eclipse v2.0. Dev environment is Mac OSX 10.8.2. Target is a web server running on Ubuntu 12.04.
Error: 'Couldn't contact the RemoteTestNG client. Make sure you don't have an older version of testng.jar on your class path.'
This error only happens when i'm running selenium scripts. not on my other api oriented test cases. I have selenium-server-standalone-2.25.0.jar running.
This same setup is working on my windows 7 dev environment.
This is a brand new eclipse setup and workspace on the mac.
I had met same question. I hope my resolved method can help you.
Method:
Please open Eclipse->Preferences->Then click TestNG->Restore Defaults
root reason: I had use ReportNG instead of testng default report,but after that I forgot to restore config. So when I make a new project,run as TestNG,but not add ReportNG jars, it report error.