While migrating 6.2.0.1 project to 7.0 following error is shown and project remains closed:
Starting to migrate the <project_name> project from version 6.2.0.01.20141027-1531 to version 7.0.0.00.20150312-0731
Unexpected error during upgrade: java.lang.Error: java.io.FileNotFoundException: <path>/iphone/native/ExternalLibrary/iBeacon/NetworkServices.embeddedframework/NetworkServices.framework/Headers
(No such file or directory) at com.worklight.upgrader.WLUpgradeEngine.performUpgrade(WLUpgradeEngine.java:326) at com.worklight.upgrader.WLUpgradeEngine.upgradeProject(WLUpgradeEngine.java:188)
at com.worklight.studio.plugin.upgrader.WLUpgraderWorkspaceJob.runInWorkspace(Unknown Source) at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) Caused by: java.io.FileNotFoundException: <path>/iphone/native/ExternalLibrary/iBeacon/NetworkServices.embeddedframework/NetworkServices.framework/Headers
(No such file or directory) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(FileInputStream.java:146)
at com.worklight.upgrader.internal.Zipper.addFileContentToZip(Zipper.java:145) at com.worklight.upgrader.internal.Zipper.addFolderToZip(Zipper.java:205)
at com.worklight.upgrader.internal.Zipper.addFolderToZip(Zipper.java:202) at com.worklight.upgrader.internal.Zipper.addFolderToZip(Zipper.java:202)
at com.worklight.upgrader.internal.Zipper.addFolderToZip(Zipper.java:202) at com.worklight.upgrader.internal.Zipper.addFolderToZip(Zipper.java:202)
at com.worklight.upgrader.internal.Zipper.addFolderToZip(Zipper.java:202) at com.worklight.upgrader.internal.Zipper.addFolderToZip(Zipper.java:202)
at com.worklight.upgrader.internal.Zipper.addFolderToZip(Zipper.java:202) at com.worklight.upgrader.internal.Zipper.addFolder(Zipper.java:106)
at com.worklight.upgrader.internal.Zipper.addFolder(Zipper.java:91) at com.worklight.upgrader.WLUpgradeEngine.backupCurrentProject(WLUpgradeEngine.java:645)
at com.worklight.upgrader.WLUpgradeEngine.performUpgrade(WLUpgradeEngine.java:294) ... 4 more
[2015-03-31 10:31:58] java.lang.Error: java.io.FileNotFoundException: <path>/iphone/native/ExternalLibrary/iBeacon/NetworkServices.embeddedframework/NetworkServices.framework/Headers (No such file or directory)
Anyone has idea on possible cause and solution?
That looks like an external folder and not part of the project.
Can you project step-by-step for reproducing and debugging the error?
A solution would probably be to put the ExternalLibrary/iBeacon folder outside of the project, import the project into MFP 7.0 Studio and then place the mentioned folder back into it and see if it works.
I suspect that unfamiliar folder confuses the upgrader.
Related
I recently updated to ActiveJDBC 2.1 in order to use activejdbc.properties for the purpose of externalizing out the database property so we didn't have to check in the database username/password into SVN.
Putting the "activejdbc.property" file in src/main/resources for the main code works perfect. Now the goal is to replace the "database.property" file in the test directory src/test/resources with an "activejdbc.property" so it can point to the same database config file out on the file system.
After making this change in the test directory, we receive an error when performing the gradle build (gradle clean build). This is the exception we see:
`"org.javalite.activejdbc.InitException: java.io.FileNotFoundException: \database.properties (The system cannot find the file specified)"
Any ideas why this works for main directory but not for the tests?
Stacktrace:
es/main/com/brookdale/model/UnitOfMeasure.class
**************************** END INSTRUMENTATION ****************************
...
:assemble
:compileTestJava
:processTestResources
:testClasses
:test
com.brookdale.model.ActualChargeTest > unitQuantityMustBeGreaterThanZero FAILED
org.javalite.activejdbc.InitException: java.io.FileNotFoundException: \database.properties (The system cannot find the file specified)
Caused by:
java.io.FileNotFoundException: \database.properties (The system cannot find the file specified)
... more tests ...
com.brookdale.service.RelationshipServiceTest > updateContactRel_GivenValidInfo_
RecordIsInserted FAILED
org.javalite.activejdbc.InitException: java.io.FileNotFoundException: \datab
ase.properties (The system cannot find the file specified)
Caused by:
java.io.FileNotFoundException: \database.properties (The system cannot f
ind the file specified)
49 tests completed, 25 failed, 7 skipped
:test FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':test'.
BUILD FAILED`
It seems you did not name the file correctly: the name of the file is not activejdbc.property, it is activejdbc.properties.
Additionally, Java class loaders do not guarantee which file they will load first if it finds multiples on the classpath. If you want different JDBC properties in your test environment, please follow docs here: http://javalite.io/database_connection_management#multiple-environments-property-file-method
Here is a sample project with this implementation: https://github.com/javalite/simple-example/
I have a Java web application I am developing in IntelliJ and deploying using Apache Tomcat. I have some run configurations defined that are shared between everyone on the team. These run configurations are defined to deploy an exploded war artifact into a local tomcat. Other team members are able to deploy and run just fine, but I get the following error:
Artifact Gradle : project : project.war (exploded): Error during artifact deployment. See server log for details.
Artifact Gradle : project : project.war (exploded): com.intellij.javaee.oss.admin.jmx.JmxAdminException: com.intellij.execution.ExecutionException: /IdeaProjects/project/build/libs/exploded/project.war not found for the web module.
It seems that IntelliJ doesn't want to create the exploded/project.war directories. If I create those directories manually I don't get that error message, but none of the WAR contents get placed into the directory.
I thought that it could be a permission error so I even tried giving my project directory 777 just to try to eliminate possible problems.
Has anyone ever run into this problem?
I am running MacOS 10.12, and have been able to deploy in the past, but this problem just started.
Thanks
Update
The IntelliJ log doesn't really show any additional errors, just the full StackTrace for the errors above.
2017-11-02 11:20:52,896 [3777157] INFO - erver.JavaeeServerInstanceImpl - com.intellij.execution.ExecutionException: <redacted>/build/libs/exploded/myproject.war not found for the web module.
com.intellij.javaee.oss.admin.jmx.JmxAdminException: com.intellij.execution.ExecutionException: <redacted>/build/libs/exploded/myproject.war not found for the web module.
at org.jetbrains.idea.tomcat.admin.TomcatAdminLocalServerImpl$DeployStep.perform(TomcatAdminLocalServerImpl.java:277)
at org.jetbrains.idea.tomcat.admin.TomcatAdminLocalServerImpl.doDeploy(TomcatAdminLocalServerImpl.java:125)
at com.intellij.javaee.oss.admin.jmx.JavaeeJmxAdminServerBase$4.doPerform(JavaeeJmxAdminServerBase.java:120)
at com.intellij.javaee.oss.admin.jmx.JavaeeJmxAdminServerBase$JmxOperation.perform(JavaeeJmxAdminServerBase.java:243)
at com.intellij.javaee.oss.admin.jmx.JavaeeJmxAdminServerBase.doStartDeploy(JavaeeJmxAdminServerBase.java:135)
at com.intellij.javaee.oss.admin.jmx.JavaeeJmxAdminServerBase$2.setDeploymentStatus(JavaeeJmxAdminServerBase.java:90)
at com.intellij.javaee.oss.admin.jmx.JavaeeJmxAdminServerBase$DeploymentModelOperation.doSetDeploymentStatus(JavaeeJmxAdminServerBase.java:270)
at com.intellij.javaee.oss.admin.jmx.JavaeeJmxAdminServerBase$3.doPerform(JavaeeJmxAdminServerBase.java:100)
at com.intellij.javaee.oss.admin.jmx.JavaeeJmxAdminServerBase$JmxOperation.perform(JavaeeJmxAdminServerBase.java:243)
at com.intellij.javaee.oss.admin.jmx.JavaeeJmxAdminServerBase.doStartDeployWithUndeploy(JavaeeJmxAdminServerBase.java:107)
at com.intellij.javaee.oss.admin.jmx.JavaeeJmxAdminServerBase.startDeploy(JavaeeJmxAdminServerBase.java:74)
at org.jetbrains.idea.tomcat.admin.TomcatAdminServerBase.startDeploy(TomcatAdminServerBase.java:115)
at org.jetbrains.idea.tomcat.admin.TomcatAdminLocalServerImpl.startDeploy(TomcatAdminLocalServerImpl.java:95)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.intellij.remoteServer.agent.impl.ThreadInvocationHandler.a(ThreadInvocationHandler.java:56)
at com.intellij.remoteServer.agent.impl.ThreadInvocationHandler.a(ThreadInvocationHandler.java:100)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at com.intellij.util.concurrency.BoundedTaskExecutor$2.run(BoundedTaskExecutor.java:212)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: com.intellij.execution.ExecutionException: <redacted>/build/libs/exploded/myproject.war not found for the web module.
at org.jetbrains.idea.tomcat.admin.TomcatAdminLocalServerImpl.addApplicationContext(TomcatAdminLocalServerImpl.java:217)
at org.jetbrains.idea.tomcat.admin.TomcatAdminLocalServerImpl$4.doPerform(TomcatAdminLocalServerImpl.java:121)
at org.jetbrains.idea.tomcat.admin.TomcatAdminLocalServerImpl$DeployStep.perform(TomcatAdminLocalServerImpl.java:274)
... 24 more
Before Intellij 2019.2 :
Under Gradle Settings, you have to make sure you don't have checked 'Delegate IDE build/run actions to gradle'
Since Intellij 2019.2 :
Settings is now under 'Build, Execution, Deployment > Build Tools > Gradle'.
You have to select Build and run using : Intellij IDEA
An issue has been opened on jetbrains bug tracker.
I am installing Mule Server (Version 3.6.1) on Windows Server R2. I have already set the JAVA_HOME to proper location.
On running startup.bat, it encounter following error:
File not found - MULE-ENTERPRISE-3.6.1\LOGS\MULE_EE.LOG
Any help?
Update 1
Could not find the main class: org.codehaus.groovy.tools.GroovyStarter. Program
will exit.
Could Not Find C:\mule\mmc-distribution-mule-console-bundle-3.6.1\mule-enterpris
e-3.6.1\logs\mule_ee.log
MULE_HOME is set to C:\mule\mmc-distribution-mule-console-bundle-3.6.1\mule-ente
rprise-3.6.1
Exception in thread "main" java.lang.UnsupportedClassVersionError: org/codehaus/
groovy/tools/GroovyStarter : Unsupported major.minor version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:14
1)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
Could not find the main class: org.codehaus.groovy.tools.GroovyStarter. Program
will exit.
File not found - MULE-ENTERPRISE-3.6.1\LOGS\MULE_EE.LOG
File not found - MULE-ENTERPRISE-3.6.1\LOGS\MULE_EE.LOG
File not found - MULE-ENTERPRISE-3.6.1\LOGS\MULE_EE.LOG
File not found - MULE-ENTERPRISE-3.6.1\LOGS\MULE_EE.LOG
File not found - MULE-ENTERPRISE-3.6.1\LOGS\MULE_EE.LOG
You need to upgrade your JRE version to minimum 1.7.0_60 (or above); as this is what is required for Groovy.
Please upgrade to the latest supported version and then try again.
Close the mule_ee.log file if opened or ctrl-c if you are running "tail -f" on this file. This has resolved the issue for me.
The JRE mismatch issue is also observed in your logs, which is not directly related to File not found - MULE-ENTERPRISE-3.6.1\LOGS\MULE_EE.LOG
What is not clear is this issue doesn't always happen when the file is opened or tailed. Maybe it has something to do with when the file being rolled over during the startup.
My environments are failing to build after restart, cleaning, exiting the eclipse, deleting native folders, also I am looking for a reason and perfect fix of this below error as any developer wont be deleting every time when this issue arises, please help
error log
windowsphone build failed: com.worklight.builder.exception.WorklightBuildRuntimeException: Resource Manager - Error while reading XML file: /Users/Desktop/16th July/30thJuly-Map/test_Login/apps/test/windowsphone/native/Properties/WMAppManifest.xml (No such file or directory) Nested exception: /Users/test/Desktop/16th July/30thJuly-Map/test_Login/apps/test/windowsphone/native/Properties/WMAppManifest.xml (No such file or directory)
[2013-07-30 17:39:20] FWLST1040E: ipad build failed: com.worklight.builder.exception.WorklightBuildRuntimeException: Resource Manager - Problem reading info.plist file /Users/test/Desktop/16th July/30thJuly-Map/test_Login/apps/test/ipad/native/testLogintestIpad-Info.plist (No such file or directory) Nested exception: /Users/test/Desktop/16th July/30thJuly-Map/test_Login/apps/test/ipad/native/testLogintestIpad-Info.plist (No such file or directory)
[2013-07-30 17:39:21] FWLST1040E: iphone build failed: com.worklight.builder.exception.WorklightBuildRuntimeException: Resource Manager - Problem reading info.plist file /Users/test/Desktop/16th July/30thJuly-Map/test_Login/apps/test/iphone/native/testLogintestIphone-Info.plist (No such file or directory) Nested exception: /Users/test/Desktop/16th July/30thJuly-Map/test_Login/apps/test/iphone/native/testLogintestIphone-Info.plist (No such file or directory)
[2013-07-30 17:39:21] FWLST1040E: windows8 build failed: com.worklight.builder.exception.WorklightBuildRuntimeException: Resource Manager - Error while reading XML file: /Users/test/Desktop/16th July/30thJuly-Map/test_Login/apps/test/windows8/native/package.appxmanifest (No such file or directory) Nested exception: /Users/test/Desktop/16th July/30thJuly-Map/test_Login/apps/test/windows8/native/package.appxmanifest (No such file or directory)
[2013-07-30 17:39:23] FWLST1040E: android build failed: com.worklight.builder.exception.WorklightBuildRuntimeException: Resource Manager - Error while reading XML file: /Users/test/Desktop/16th July/30thJuly-Map/test_Login/apps/test/android/native/AndroidManifest.xml (No such file or directory) Nested exception: /Users/test/Desktop/16th July/30thJuly-Map/test_Login/apps/test/android/native/AndroidManifest.xml (No such file or directory)
[2013-07-30 17:39:24] A core eclipse exception has occurred: Failed to read project description file from location '/Users/test/Desktop/16th July/30thJuly-Map/test_Login/apps/test/android/native/.project'.
Thanks
djrecker
I got the same error in my eclipse after changing the project name by using Refactor->Rename
The below fix is for iPhone environment. You can try the same for other environment also.
The error says it cant find the info.plist file.Try to move to that location in your computer and see wether the file is there or not.
in your case ESILoginESIIphone-Info.plist
if you cant find the file. just see the ***-Info.plist in the same path and note down the ****
worklight will always append your porject name twice in info.plist file ( dont know why). For example if you have project name as ESI then your plist file name would be ESIESI-Info.plist.
i guess in your project file you have changed the name to ESILogin
Try to rename the project with **** which you found in above step.
Thats all.
Happy Building.
Please look in the Error Log view in Eclipse; there should be an exception trace there which could help us in identifying the root cause.
Can you reproduce this? Does it happen only when you create a new project and add all Mobile environments at once, or even when you add only one Mobile environment?
What is your Worklight version?
Delete the bin folder contents in your project and restart the server.
Deploy all the adapters and application again
The jar file generated from my local maven (2.0.8) is different from the jar file generated from the enterprise central build (maven 2.0.8). All the source code and pom files are the same, as well as the repository link. But when I ran a job using the jar from central build, here is the error message:
Exception in thread "main" java.lang.ExceptionInInitializerError
at sun.misc.Unsafe.ensureClassInitialized(Native Method)
at sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(UnsafeFieldAccessorFactory.java:25)
at sun.reflect.ReflectionFactory.newFieldAccessor(ReflectionFactory.java:122)
at java.lang.reflect.Field.acquireFieldAccessor(Field.java:918)
at java.lang.reflect.Field.getFieldAccessor(Field.java:899)
at java.lang.reflect.Field.get(Field.java:358)
at org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(XmlBeans.java:770)
(deleted....)
... 15 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:501)
... 17 more
Caused by: org.apache.xmlbeans.SchemaTypeLoaderException: XML-BEANS compiled schema: Incompatible minor version - expecting up to 23, got 24 (schemaorg_apache_xmlbeans.system.s4260D8D66C8BD97BA7A1A374DB7D9EB0.index) - code 3
at org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl$XsbReader.<init>(SchemaTypeSystemImpl.java:1522)
at org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl.initFromHeader(SchemaTypeSystemImpl.java:260)
at org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl.<init>(SchemaTypeSystemImpl.java:183)
... 21 more
But the job ran successfully using the jar file generated from my local maven.
Can you give me any suggestions that what I should look into in order to solve this problem?
First i would suggest to update your Maven installation at least to Maven 2.0.11 (which is the newest for 2.0 line) but better to Maven 3...
I would check if you are using the same java compiler for both areas