Direct Update not working in Worklight 6.2 - ibm-mobilefirst

When i try to update the build for iphone in Worklight 6.2, It is giving the below Exception. App is working fine for android even Direct Update is happening as expected. But, For iPhone it works fine when a new ipa is built and installed. Whenever the build is updated,it throws below exception(only for iOS).
[11/6/15 17:12:04:816 SGT] 00000095 com.worklight.core.auth.impl.LoginContext E FWLSE0059E: Login into realm 'WLDirectUpdateNullLoginModule' failed. Failed to delete original file 'C:\Program Files\IBM\WebSphere\Liberty\usr\servers\wlserver\workarea\org.eclipse.osgi\bundles\75\data\temp\default_node\SMF_WebContainer\abcApp\abcApp\widget-resources\abc-iphone-1.0-7ff817131d192dbb7139e9b4937811096e67a866\direct-update\abc-iphone-1.0-default.zip_temp.base64' after copy to 'C:\Program Files\IBM\WebSphere\Liberty\usr\servers\wlserver\workarea\org.eclipse.osgi\bundles\75\data\temp\default_node\SMF_WebContainer\abcApp\abcApp\widget-resources\abc-iphone-1.0-7ff817131d192dbb7139e9b4937811096e67a866\direct-update\abc-iphone-1.0-default.zip.base64'. [project abcApp]
com.worklight.gadgets.GadgetRuntimeException: Failed to create base64 encoded file for for abc#iphone#v1.0 for skin: default
at com.worklight.core.auth.ext.DirectUpdateAuthenticator.getUpdateZipLength(DirectUpdateAuthenticator.java:345)
at com.worklight.core.auth.ext.DirectUpdateAuthenticator.testSkin(DirectUpdateAuthenticator.java:245)
at com.worklight.core.auth.ext.DirectUpdateAuthenticator.processRequest(DirectUpdateAuthenticator.java:130)
at com.worklight.core.auth.impl.LoginContext.processRequest(LoginContext.java:200)
at com.worklight.core.auth.impl.AuthenticationContext.checkAuthentication(AuthenticationContext.java:557)
at com.worklight.core.auth.impl.AuthenticationContext.processRealms(AuthenticationContext.java:457)
at com.worklight.core.auth.impl.AuthenticationContext.pushCurrentResource(AuthenticationContext.java:431)
at com.worklight.core.auth.impl.AuthenticationServiceBean.accessResource(AuthenticationServiceBean.java:75)
at com.worklight.core.auth.impl.AuthenticationFilter.doFilter(AuthenticationFilter.java:230)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:194)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:85)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:949)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1029)
at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:78)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:885)
at com.ibm.ws.webcontainer.osgi.DynamicVirtualHost$2.run(DynamicVirtualHost.java:252)
at com.ibm.ws.http.dispatcher.internal.channel.HttpDispatcherLink$TaskWrapper.run(HttpDispatcherLink.java:584)
at com.ibm.ws.threading.internal.Worker.executeWork(Worker.java:439)
at com.ibm.ws.threading.internal.Worker.run(Worker.java:421)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: Failed to delete original file 'C:\Program Files\IBM\WebSphere\Liberty\usr\servers\wlserver\workarea\org.eclipse.osgi\bundles\75\data\temp\default_node\SMF_WebContainer\abcApp\abcApp\widget-resources\abc-iphone-1.0-7ff817131d192dbb7139e9b4937811096e67a866\direct-update\abc-iphone-1.0-default.zip_temp.base64' after copy to 'C:\Program Files\IBM\WebSphere\Liberty\usr\servers\wlserver\workarea\org.eclipse.osgi\bundles\75\data\temp\default_node\SMF_WebContainer\abcApp\abcApp\widget-resources\abc-iphone-1.0-7ff817131d192dbb7139e9b4937811096e67a866\direct-update\abc-iphone-1.0-default.zip.base64'
at org.apache.commons.io.FileUtils.moveFile(FileUtils.java:2109)
at com.worklight.gadgets.serving.handler.GetApplicationUpdatesHandler.getBase64EncodedFile(GetApplicationUpdatesHandler.java:418)
at com.worklight.core.auth.ext.DirectUpdateAuthenticator.getUpdateZipLength(DirectUpdateAuthenticator.java:343)
... 19 more
[11/6/15 17:12:04:816 SGT] 00000095 com.worklight.core.auth.impl.LoginContext E FWLSE0117E: Error code: 4, error description: AUTHENTICATION_ERROR, error message: An error occurred while performing authentication using loginModule WLDirectUpdateNullLoginModule, User Identity Not available. [project abcApp] [project abcApp]
[11/6/15 17:12:05:565 SGT] 00000095 com.worklight.core.auth.impl.LoginContext E FWLSE0059E: Login into realm 'WLDirectUpdateNullLoginModule' failed. Failed to delete original file 'C:\Program Files\IBM\WebSphere\Liberty\usr\servers\wlserver\workarea\org.eclipse.osgi\bundles\75\data\temp\default_node\SMF_WebContainer\abcApp\abcApp\widget-resources\abc-iphone-1.0-7ff817131d192dbb7139e9b4937811096e67a866\direct-update\abc-iphone-1.0-default.zip_temp.base64' after copy to 'C:\Program Files\IBM\WebSphere\Liberty\usr\servers\wlserver\workarea\org.eclipse.osgi\bundles\75\data\temp\default_node\SMF_WebContainer\abcApp\abcApp\widget-resources\abc-iphone-1.0-7ff817131d192dbb7139e9b4937811096e67a866\direct-update\abc-iphone-1.0-default.zip.base64'. [project abcApp]
com.worklight.gadgets.GadgetRuntimeException: Failed to create base64 encoded file for for abc#iphone#v1.0 for skin: default
at com.worklight.core.auth.ext.DirectUpdateAuthenticator.getUpdateZipLength(DirectUpdateAuthenticator.java:345)
at com.worklight.core.auth.ext.DirectUpdateAuthenticator.testSkin(DirectUpdateAuthenticator.java:245)
at com.worklight.core.auth.ext.DirectUpdateAuthenticator.processRequest(DirectUpdateAuthenticator.java:130)
at com.worklight.core.auth.impl.LoginContext.processRequest(LoginContext.java:200)
at com.worklight.core.auth.impl.AuthenticationContext.checkAuthentication(AuthenticationContext.java:557)
at com.worklight.core.auth.impl.AuthenticationContext.processRealms(AuthenticationContext.java:457)
at com.worklight.core.auth.impl.AuthenticationContext.pushCurrentResource(AuthenticationContext.java:431)
at com.worklight.core.auth.impl.AuthenticationServiceBean.accessResource(AuthenticationServiceBean.java:75)
at com.worklight.core.auth.impl.AuthenticationFilter.doFilter(AuthenticationFilter.java:230)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:194)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:85)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:949)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1029)
at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:78)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:885)
at com.ibm.ws.webcontainer.osgi.DynamicVirtualHost$2.run(DynamicVirtualHost.java:252)
at com.ibm.ws.http.dispatcher.internal.channel.HttpDispatcherLink$TaskWrapper.run(HttpDispatcherLink.java:584)
at com.ibm.ws.threading.internal.Worker.executeWork(Worker.java:439)
at com.ibm.ws.threading.internal.Worker.run(Worker.java:421)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: Failed to delete original file 'C:\Program Files\IBM\WebSphere\Liberty\usr\servers\wlserver\workarea\org.eclipse.osgi\bundles\75\data\temp\default_node\SMF_WebContainer\abcApp\abcApp\widget-resources\abc-iphone-1.0-7ff817131d192dbb7139e9b4937811096e67a866\direct-update\abc-iphone-1.0-default.zip_temp.base64' after copy to 'C:\Program Files\IBM\WebSphere\Liberty\usr\servers\wlserver\workarea\org.eclipse.osgi\bundles\75\data\temp\default_node\SMF_WebContainer\abcApp\abcApp\widget-resources\abc-iphone-1.0-7ff817131d192dbb7139e9b4937811096e67a866\direct-update\abc-iphone-1.0-default.zip.base64'
at org.apache.commons.io.FileUtils.moveFile(FileUtils.java:2109)
at com.worklight.gadgets.serving.handler.GetApplicationUpdatesHandler.getBase64EncodedFile(GetApplicationUpdatesHandler.java:418)
at com.worklight.core.auth.ext.DirectUpdateAuthenticator.getUpdateZipLength(DirectUpdateAuthenticator.java:343)
... 19 more
[11/6/15 17:12:05:565 SGT] 00000095 com.worklight.core.auth.impl.LoginContext E FWLSE0117E: Error code: 4, error description: AUTHENTICATION_ERROR, error message: An error occurred while performing authentication using loginModule WLDirectUpdateNullLoginModule, User Identity Not available. [project abcApp] [project abcApp]

This is a recent regression in Worklight 6.2, that was fixed.
Please download and install the latest 6.2 iFix from IBM Fix Central (the fix is in the server component so make sure to install That).

Related

Hi, I had a maven project ,while trying to maven clean i am getting the following error,anyone help me

this is the error what i am getting ,war is generating but throwing error while trying to maven clean
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.4.1:clean (default-clean) on project ins-model: Failed to clean project: Failed to delete D:\VEMASVNINSURANCEWS\AIG\ins-parent\ins-model\target\surefire-reports -> [Help 1]
Failed to execute goal-clean-plugin:2.4.1:clean (default-clean) on project ins-model: Failed to clean project: Failed to delete ins-parent\ins-model\target\surefire-reports
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.plugin.MojoExecutionException: Failed to clean project: Failed to delete D:\VEMASVNINSURANCEWS\AIG\ins-parent\ins-model\target\surefire-reports
at org.apache.maven.plugin.clean.CleanMojo.execute(CleanMojo.java:188)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
... 19 more
Caused by: java.io.IOException: Failed to delete
[ERROR]
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] <goals> :ins-model
this is the error what i am getting ,war is generating but throwing error while trying to maven clean
You are on Windows and you cannot delete the target folder (that's basically what mvn cleandoes) if any program is currently having a lock on something inside target.
According to your logs, that's the folder surefeire-report which is locked so: either your previous build is not finished and you have a Java thread still locking that folder or your have it opened in a console/browser.
Some other process is using (parts of) the directory affected by clean (target). Some of the possible offenders:
An application launched from the IDE earlier and still running.
A directory nested within the parent directory (target) is opened in a file manager, it may lock parts of the content to be cleaned.

MobileFirst8.0- Unable to delete Adapters and Applications form Application Console

I am unable to delete adapters/applications from the console, it is continuously showing:
RuntimeException: Synchronization failure
Screenshot attached
Messages.log
[10/26/16 17:59:34:790 IST] 00000021 com.mfp.adapter.SecurityAdapterApplication I Adapter initialized!
[10/26/16 17:59:34:797 IST] 00000021 rnal.connectivity.synchronization.RuntimeSynchronizationBean E FWLSE0324: Runtime synchronization failed. Caused by: java.lang.RuntimeException: No resource classes found for adapter 'SecurityAdapter'
com.ibm.mfp.server.core.shared.deployment.DeploymentException: java.lang.RuntimeException: No resource classes found for adapter 'SecurityAdapter'
at com.ibm.mfp.server.java.adapter.internal.deploy.JaxRsSandboxDeploymentHandler.deploy(JaxRsSandboxDeploymentHandler.java:131)
at com.ibm.mfp.server.java.adapter.internal.deploy.JaxRsSandboxDeploymentHandler.deploy(JaxRsSandboxDeploymentHandler.java:47)
at com.ibm.mfp.server.core.internal.deployment.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:187)
at com.ibm.mfp.server.core.internal.deployment.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:484)
at com.ibm.mfp.server.core.internal.deployment.DeploymentManagerImpl.changeDeploymentState(DeploymentManagerImpl.java:360)
at com.ibm.mfp.server.mgmt.internal.connectivity.synchronization.RuntimeSynchronizationBean.sync(RuntimeSynchronizationBean.java:207)
at com.ibm.mfp.server.mgmt.internal.connectivity.synchronization.RuntimeMBeanExporterListener.mbeanRegistered(RuntimeMBeanExporterListener.java:71)
at org.springframework.jmx.export.MBeanExporter.notifyListenersOfRegistration(MBeanExporter.java:1055)
at org.springframework.jmx.export.MBeanExporter.onRegister(MBeanExporter.java:1029)
at org.springframework.jmx.support.MBeanRegistrationSupport.onRegister(MBeanRegistrationSupport.java:301)
at org.springframework.jmx.support.MBeanRegistrationSupport.doRegister(MBeanRegistrationSupport.java:229)
at org.springframework.jmx.export.MBeanExporter.registerBeanInstance(MBeanExporter.java:670)
at org.springframework.jmx.export.MBeanExporter.registerBeanNameOrInstance(MBeanExporter.java:615)
at org.springframework.jmx.export.MBeanExporter.registerBeans(MBeanExporter.java:550)
at org.springframework.jmx.export.MBeanExporter.afterSingletonsInstantiated(MBeanExporter.java:432)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:775)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:757)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:480)
at org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:663)
at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:629)
at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:677)
at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:548)
at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:489)
at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:136)
at javax.servlet.GenericServlet.init(GenericServlet.java:244)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:332)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.loadOnStartupCheck(ServletWrapper.java:1423)
at com.ibm.ws.webcontainer.webapp.WebApp.doLoadOnStartupActions(WebApp.java:1180)
at com.ibm.ws.webcontainer.webapp.WebApp.commonInitializationFinally(WebApp.java:1148)
at com.ibm.ws.webcontainer.webapp.WebApp.initialize(WebApp.java:1054)
at com.ibm.ws.webcontainer.webapp.WebApp.initialize(WebApp.java:6448)
at com.ibm.ws.webcontainer.osgi.DynamicVirtualHost.startWebApp(DynamicVirtualHost.java:446)
at com.ibm.ws.webcontainer.osgi.DynamicVirtualHost.startWebApplication(DynamicVirtualHost.java:441)
at com.ibm.ws.webcontainer.osgi.WebContainer.startWebApplication(WebContainer.java:981)
at com.ibm.ws.webcontainer.osgi.WebContainer.startModule(WebContainer.java:805)
at com.ibm.ws.app.manager.web.internal.WebModuleHandlerImpl.deployModule(WebModuleHandlerImpl.java:102)
at com.ibm.ws.app.manager.module.internal.DeployedAppInfoBase.deployModule(DeployedAppInfoBase.java:870)
at com.ibm.ws.app.manager.module.internal.DeployedAppInfoBase.deployModules(DeployedAppInfoBase.java:830)
at com.ibm.ws.app.manager.module.internal.DeployedAppInfoBase.deployApp(DeployedAppInfoBase.java:817)
at com.ibm.ws.app.manager.war.internal.WARApplicationHandlerImpl.install(WARApplicationHandlerImpl.java:66)
at com.ibm.ws.app.manager.internal.statemachine.StartAction.execute(StartAction.java:139)
at com.ibm.ws.app.manager.internal.statemachine.ApplicationStateMachineImpl.enterState(ApplicationStateMachineImpl.java:1168)
at com.ibm.ws.app.manager.internal.statemachine.ApplicationStateMachineImpl.run(ApplicationStateMachineImpl.java:781)
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: java.lang.RuntimeException: No resource classes found for adapter 'SecurityAdapter'
at com.ibm.mfp.server.java.adapter.shared.JAXRSSandbox.produceSwaggerDoc(JAXRSSandbox.java:241)
at com.ibm.mfp.server.java.adapter.shared.JAXRSSandbox.init(JAXRSSandbox.java:165)
at com.ibm.mfp.server.java.adapter.internal.deploy.JaxRsSandboxDeploymentHandler.deploy(JaxRsSandboxDeploymentHandler.java:119)
... 45 more
[10/26/16 17:59:34:802 IST] 00000021 connectivity.synchronization.AdminSynchronizationInterceptor I Runtime service is blocked, current state: synchronization required
[10/26/16 17:59:34:804 IST] 00000067 com.mfp.datamatics.IntegrationAdapterStubApplication I Adapter destroyed!
It's unclear how you managed to get to this error:
FWLSE0324: Runtime synchronization failed. Caused by: java.lang.RuntimeException: No resource classes found for adapter 'SecurityAdapter'
On the surface, this error likely means that you deleted the resource .java file from your adapter, but kept the JAXRSApplicationClass definition of the resource in the adapter.xml file.
To better understand the problem, please upload your .adapter file somewhere so it could be debugged.
As for what you can do in the meanwhile to clear the database, I tried various ways but looks like only a re-install of the devkit currently works...

"mfp push" throws NullPointerException while deploying adapter (MobileFirst Platform 7.1)

using MobileFirst Platform CLI version 7.1.0.00.20151227-1730 I have suddenly the following error when trying to push an update I made to an adapter:
Preparing for push...
Verifying Server Configuration...
Runtime 'localMFP' will be used to push the project into.
[Error:
BUILD FAILED
/Applications/IBM/MobileFirst-CLI/mobilefirst-cli/node_modules/generator-worklight-server/lib/build.xml:497: com.worklight.upgrader.UpgradeEngineException: java.lang.NullPointerException
at com.worklight.upgrader.WLUpgradeEngine.<init>(WLUpgradeEngine.java:142)
at com.worklight.upgrader.WLUpgradeEngine.<init>(WLUpgradeEngine.java:147)
at com.worklight.upgrader.ant.UpgraderTask.execute(UpgraderTask.java:100)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:435)
at org.apache.tools.ant.Target.performTasks(Target.java:456)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
at org.apache.tools.ant.Project.executeTarget(Project.java:1364)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1248)
at org.apache.tools.ant.Main.runBuild(Main.java:851)
at org.apache.tools.ant.Main.startAnt(Main.java:235)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
Caused by: java.lang.NullPointerException
at java.text.MessageFormat.applyPattern(MessageFormat.java:436)
at java.text.MessageFormat.<init>(MessageFormat.java:362)
at java.text.MessageFormat.format(MessageFormat.java:840)
at com.worklight.upgrader.WLUpgradeEngine.findProjectVersion(WLUpgradeEngine.java:602)
at com.worklight.upgrader.WLUpgradeEngine.<init>(WLUpgradeEngine.java:133)
... 18 more
Total time: 3 seconds
]
Error: Sorry an error has occurred. Please check the stack above for details.
I have tried to cleanup the project, remove what was already deployed, revert my changes to what I had when I succeeded to deploy, re-install mfp cli, but I still have the issue.
Any hint on what I could do to get rid of the exception?
Thanks!
The failure is coming from the upgrader code path, as if something is missing in the adapter files.
My suggestion is to create a new adapter and see that it gets deployed. Then, start adding back code. Maybe you will find the failing part.

Can not deploy adapters due to missing files

I am trying to deploy worklight adapters in a MobileFirst 6.3 project and I am getting errors in the console: It is throwing
Adapter deployment failed: HTTP 500 - Internal Server Error
When I try to build the project it is building and the server is starting. But when I try to deploy the adapter it is throwing an Error with the following stacktrace:
[ERROR ] /Users/915655/Documents/Projects/R2O/New%20Workspace/MobileFirstServerConfig/servers/worklight/workarea/org.eclipse.osgi/bundles/73/data/cache/com.ibm.ws.app.manager_93/.cache/WEB-INF/lib/ibm_web20_wink_no_abdera_no_jackson-1.1.0.0-20110422.jar (No such file or directory)
/Users/915655/Documents/Projects/R2O/New%20Workspace/MobileFirstServerConfig/servers/worklight/workarea/org.eclipse.osgi/bundles/73/data/cache/com.ibm.ws.app.manager_93/.cache/WEB-INF/lib/ibm_web20_wink_no_abdera_no_jackson-1.1.0.0-20110422.jar (No such file or directory)
[ERROR ] /Users/915655/Documents/Projects/R2O/New%20Workspace/MobileFirstServerConfig/servers/worklight/workarea/org.eclipse.osgi/bundles/73/data/cache/com.ibm.ws.app.manager_93/.cache/WEB-INF/lib/ibm_web20_wink_no_abdera_no_jackson-1.1.0.0-20110422.jar (No such file or directory)
/Users/915655/Documents/Projects/R2O/New%20Workspace/MobileFirstServerConfig/servers/worklight/workarea/org.eclipse.osgi/bundles/73/data/cache/com.ibm.ws.app.manager_93/.cache/WEB-INF/lib/ibm_web20_wink_no_abdera_no_jackson-1.1.0.0-20110422.jar (No such file or directory)
[ERROR ] Uncaught.init.exception.thrown.by.servlet
ManagementServlet
WorklightServices
java.lang.NoClassDefFoundError: Could not initialize class org.apache.wink.common.internal.i18n.Messages
at org.apache.wink.server.internal.DeploymentConfiguration.initAlternateShortcutMap(DeploymentConfiguration.java:386)
at org.apache.wink.server.internal.DeploymentConfiguration.init(DeploymentConfiguration.java:167)
at org.apache.wink.server.internal.servlet.RestServlet.getDeploymentConfiguration(RestServlet.java:202)
at org.apache.wink.server.internal.servlet.RestServlet.createRequestProcessor(RestServlet.java:138)
at org.apache.wink.server.internal.servlet.RestServlet.init(RestServlet.java:103)
at javax.servlet.GenericServlet.init(GenericServlet.java:161)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:325)
at [internal classes]
at com.ibm.worklight.admin.common.filter.HSTSFilter.doFilter(HSTSFilter.java:110)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:194)
at [internal classes]
The problem is that it cannot find a file:
ibm_web20_wink_no_abdera_no_jackson-1.1.0.0-20110422.jar (No such file
or directory)
Make sure you're using a Supported version of Eclipse, which must be Eclipse Java EE Kepler or Luna.
Verify that the problem is not the spaces that you have in the workspace name ("new workspace").
Try with a new Eclipse installation

when i deploy the web application in glassfish server then glassfish server is displaying the following error

When i deploy the web aplication in glassfish server then glassfish server is displaying the following error :
C:\Program Files\glassfish-3.1.2\glassfish\bin>asadmin start-domain domain1
java.nio.file.AccessDeniedException: C:\Program Files\glassfish-3.1.2\glassfish\
domains\domain1\logs\server.log.lck
at sun.nio.fs.WindowsException.translateToIOException(Unknown Source)
at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source)
at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source)
at sun.nio.fs.WindowsFileSystemProvider.newFileChannel(Unknown Source)
at java.nio.channels.FileChannel.open(Unknown Source)
at java.nio.channels.FileChannel.open(Unknown Source)
at java.util.logging.FileHandler.openFiles(Unknown Source)
at java.util.logging.FileHandler.<init>(Unknown Source)
at com.sun.enterprise.admin.launcher.GFLauncherLogger.addLogFileHandler(
GFLauncherLogger.java:100)
at com.sun.enterprise.admin.launcher.GFLauncher.setup(GFLauncher.java:18
9)
at com.sun.enterprise.admin.cli.StartDomainCommand.createLauncher(StartD
omainCommand.java:209)
at com.sun.enterprise.admin.cli.StartDomainCommand.executeCommand(StartD
omainCommand.java:107)
at com.sun.enterprise.admin.cli.CLICommand.execute(CLICommand.java:264)
at com.sun.enterprise.admin.cli.AsadminMain.executeCommand(AsadminMain.j
ava:306)
at com.sun.enterprise.admin.cli.AsadminMain.main(AsadminMain.java:238)
Waiting for domain1 to start .Error starting domain domain1.
The server exited prematurely with exit code 1.
Before it died, it produced the following output:
Launching GlassFish on Felix platform
ERROR: Error parsing system bundle export statement: org.osgi.framework;
version
=1.6.0, org.osgi.framework.launch;
version=1.0.0,
org.osgi.framework.wiring; ver
sion=1.0.0, org.osgi.framework.startlevel;
version=1.0.0,
org.osgi.framework.hoo
ks.bundle; version=1.0.0,
org.osgi.framework.hooks.resolver;
version=1.0.0, org.
osgi.framework.hooks.service; version=1.1.0,
org.osgi.framework.hooks.weaving; version=1.0.0,
org.osgi.service.packageadmin; version=1.2.0, org.osgi.service.sta
rtlevel; version=1.1.0, org.osgi.service.url; version=1.0.0,
org.osgi.util.track
er; version=1.5.0, ,
org.glassfish.embeddable;org.glassfish.embeddable.spi;versi
on=3.1.1 (org.osgi.framework.BundleException: Exported package names
cannot be z
ero length.)
ERROR: Unable to create cache directory: C:\Program Files\glassfish- 3.1.2
\glassf
ish\domains\domain1\osgi-cache\felix
ERROR: Error creating bundle cache. (java.lang.RuntimeException:
Unable to create cache directory.)
org.osgi.framework.BundleException: Exported package names cannot be
zero length
.
at
org.apache.felix.framework.util.manifestparser.ManifestParser.normali
zeExportClauses(ManifestParser.java:729)
at
org.apache.felix.framework.util.manifestparser.ManifestParser.<init>(
ManifestParser.java:191)
at org.apache.felix.framework.ExtensionManager.<init>
(ExtensionManager.j
ava:220)
at org.apache.felix.framework.Felix.<init>(Felix.java:374)
at org.apache.felix.framework.FrameworkFactory.newFramework
(FrameworkFac
tory.java:28)
at
com.sun.enterprise.glassfish.bootstrap.osgi.OSGiFrameworkLauncher.lau
nchOSGiFrameWork(OSGiFrameworkLauncher.java:77)
at
com.sun.enterprise.glassfish.bootstrap.osgi.OSGiGlassFishRuntimeBuild
er.build(OSGiGlassFishRuntimeBuilder.java:128)
at org.glassfish.embeddable.GlassFishRuntime._bootstrap
(GlassFishRuntime
.java:157)
at org.glassfish.embeddable.GlassFishRuntime.bootstrap
(GlassFishRuntime.
java:110)
at
com.sun.enterprise.glassfish.bootstrap.GlassFishMain$Launcher.launch(
GlassFishMain.java:112)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.sun.enterprise.glassfish.bootstrap.GlassFishMain.main
(GlassFishMa
in.java:97)
at com.sun.enterprise.glassfish.bootstrap.ASMain.main(ASMain.java:55)
java.lang.RuntimeException: Unable to create cache directory.
at org.apache.felix.framework.cache.BundleCache.<init>
(BundleCache.java:
131)
at org.apache.felix.framework.Felix.init(Felix.java:629)
at
com.sun.enterprise.glassfish.bootstrap.osgi.OSGiFrameworkLauncher$1.r
un(OSGiFrameworkLauncher.java:88)
Exception in thread "Thread-1" java.lang.RuntimeException:
org.osgi.framework.Bu
ndleException: Error creating bundle cache.
at
com.sun.enterprise.glassfish.bootstrap.osgi.OSGiFrameworkLauncher$1.r
un(OSGiFrameworkLauncher.java:90)
Caused by: org.osgi.framework.BundleException: Error creating bundle
cache.
at org.apache.felix.framework.Felix.init(Felix.java:634)
at
com.sun.enterprise.glassfish.bootstrap.osgi.OSGiFrameworkLauncher$1.r
un(OSGiFrameworkLauncher.java:88)
Caused by: java.lang.RuntimeException: Unable to create cache directory.
at org.apache.felix.framework.cache.BundleCache.<init>
(BundleCache.java:
131)
at org.apache.felix.framework.Felix.init(Felix.java:629)
... 1 more
Exception in thread "main" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.sun.enterprise.glassfish.bootstrap.GlassFishMain.main
(GlassFishMa
in.java:97)
at com.sun.enterprise.glassfish.bootstrap.ASMain.main(ASMain.java:55)
Caused by: org.glassfish.embeddable.GlassFishException:
java.lang.NullPointerExc
eption
at
com.sun.enterprise.glassfish.bootstrap.osgi.OSGiGlassFishRuntimeBuild
er.build(OSGiGlassFishRuntimeBuilder.java:164)
at org.glassfish.embeddable.GlassFishRuntime._bootstrap
(GlassFishRuntime
.java:157)
at org.glassfish.embeddable.GlassFishRuntime.bootstrap
(GlassFishRuntime.
java:110)
at
com.sun.enterprise.glassfish.bootstrap.GlassFishMain$Launcher.launch(
GlassFishMain.java:112)
... 6 more
Caused by: java.lang.NullPointerException
at
com.sun.enterprise.glassfish.bootstrap.osgi.OSGiGlassFishRuntimeBuild
er.newFramework(OSGiGlassFishRuntimeBuilder.java:230)
at
com.sun.enterprise.glassfish.bootstrap.osgi.OSGiGlassFishRuntimeBuild
er.build(OSGiGlassFishRuntimeBuilder.java:133)
... 9 more
Error stopping framework: java.lang.NullPointerException
java.lang.NullPointerException
at
com.sun.enterprise.glassfish.bootstrap.GlassFishMain$Launcher$1.run(G
lassFishMain.java:203)
Java HotSpot(TM) Client VM warning: ignoring option
MaxPermSize=192m;
support was removed in 8.0
Java Hotot(TM) Client VM warning: ignoring option PermSize=64m;
support was re
moved in 8.0
Command start-domain failed.
C:\Program Files\glassfish-3.1.2\glassfish\bin>
I'm not a glassfish expert, but normally you read stack traces from bottom to top. The topmost error message is therefore the most detailed one. The topmost error message in this stack trace is:
file.AccessDeniedException`
on the file
C:\Program Files\glassfish-3.1.2\glassfish\ domains\domain1\logs\server.log.lck`
I also see in the second part of the log:
ERROR: Unable to create cache directory: C:\Program Files\glassfish- 3.1.2\glassfish\domains\domain1\osgi-cache\felix`
It looks to me like a file permissions problem, or a directory that is expected to be there that isn't.
You have use command line as administrator for connecting to server. You should get the next:
command-1:
cd C:\Program Files\glassfish4.1\glassfish\bin //Here your glassfish bin directory
command-2:
asadmin start-domain