Spring mvc template missing from STS 3.5.1 - spring-tool-suite

I downloaded STS 3.5.1 and when I go File >> New >> Spring Project I could only see "Simple Java", "Simple Spring Maven" and "Simple Spring Web Maven".
see images on this url https://lh3.googleusercontent.com/-iPROr9ozpRw/U7dzLG6CQrI/AAAAAAAAAN0/KGWXbml_OgI/w346-h500/sts+template.PNG
I have clicked refresh button.
Updated
when i see logs in Error Log, there is a error like this
eclipse.buildId=3.5.1.201405030657-RELEASE-e43 java.version=1.7.0_09
java.vendor=Oracle Corporation BootLoader constants: OS=win32,
ARCH=x86_64, WS=win32, NL=en_US Framework arguments: -product
org.springsource.sts.ide Command-line arguments: -os win32 -ws win32
-arch x86_64 -product org.springsource.sts.ide
Warning Sat Jul 05 10:56:44 ICT 2014 Connection to
https://raw.github.com/SpringSource/spring-data-gemfire-sts-templates/master/builds/descriptor.xml
failed on Connection reset. Retry attempt 0 started
java.net.SocketException: Connection reset at
java.net.SocketInputStream.read(SocketInputStream.java:189) at
java.net.SocketInputStream.read(SocketInputStream.java:121) at
sun.security.ssl.InputRecord.readFully(InputRecord.java:312) at
sun.security.ssl.InputRecord.read(InputRecord.java:350) at
sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:927) at
sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1328)
at sun.security.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:702)
at sun.security.ssl.AppOutputStream.write(AppOutputStream.java:122)
at
org.apache.http.impl.io.AbstractSessionOutputBuffer.flushBuffer(AbstractSessionOutputBuffer.java:131)
at
org.apache.http.impl.io.AbstractSessionOutputBuffer.flush(AbstractSessionOutputBuffer.java:138)
at
org.apache.http.impl.AbstractHttpClientConnection.doFlush(AbstractHttpClientConnection.java:271)
at
org.apache.http.impl.AbstractHttpClientConnection.flush(AbstractHttpClientConnection.java:276)
at
org.apache.http.impl.conn.AbstractClientConnAdapter.flush(AbstractClientConnAdapter.java:194)
at
org.apache.http.protocol.HttpRequestExecutor.doSendRequest(HttpRequestExecutor.java:258)
at
org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:123)
at
org.apache.http.impl.client.DefaultRequestDirector.tryExecute(DefaultRequestDirector.java:647)
at
org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:464)
at
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:820)
at
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:754)
at
org.eclipse.ecf.provider.filetransfer.httpclient4.HttpClientRetrieveFileTransfer.performConnect(HttpClientRetrieveFileTransfer.java:1074)
at
org.eclipse.ecf.provider.filetransfer.httpclient4.HttpClientRetrieveFileTransfer.openStreams(HttpClientRetrieveFileTransfer.java:621)
at
org.eclipse.ecf.provider.filetransfer.retrieve.AbstractRetrieveFileTransfer.sendRetrieveRequest(AbstractRetrieveFileTransfer.java:879)
at
org.eclipse.ecf.provider.filetransfer.retrieve.AbstractRetrieveFileTransfer.sendRetrieveRequest(AbstractRetrieveFileTransfer.java:570)
at
org.eclipse.ecf.provider.filetransfer.retrieve.MultiProtocolRetrieveAdapter.sendRetrieveRequest(MultiProtocolRetrieveAdapter.java:106)
at
org.eclipse.equinox.internal.p2.transport.ecf.FileReader.sendRetrieveRequest(FileReader.java:422)
at
org.eclipse.equinox.internal.p2.transport.ecf.FileReader.read(FileReader.java:273)
at
org.eclipse.equinox.internal.p2.transport.ecf.RepositoryTransport.stream(RepositoryTransport.java:172)
at sun.reflect.GeneratedMethodAccessor88.invoke(Unknown Source) at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601) at
org.springsource.ide.eclipse.commons.internal.core.net.P2TransportService.stream(P2TransportService.java:139)
at
org.springsource.ide.eclipse.commons.core.HttpUtil.stream(HttpUtil.java:165)
at
org.springsource.ide.eclipse.commons.content.core.ContentManager.readFromUrl(ContentManager.java:326)
at
org.springsource.ide.eclipse.commons.content.core.ContentManager.refresh(ContentManager.java:387)
at
org.springframework.ide.eclipse.wizard.template.DownloadDescriptorJob.run(DownloadDescriptorJob.java:42)
at
org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
this is strange, because i can access that url using eclipse browse.
Help on this is highly appreciated

I can access the URL using a browser as well and it works inside of STS, too. Are you behind a firewall or proxy server maybe? And in that case, it is configured in Eclipse/STS network preferences correctly? You could also try to run Eclipse/STS using a more recent version of the JDK (1.7.0_09 seems to be outdated, maybe try 1.7.0_60).

Related

Can't export deployable features in Luna

I am trying to export a couple of deployable features in Luna, but I always get the error message below. I have two plug-in projects, a corresponding feature project for each and a category definition. With this set up Kepler exported the deployable features into a folder flawlessly, but with Luna there is always this message.
How can this be solved? Is there any other relevant information I can post?
Message:
An internal error occurred during: "Export Features".
Exception Stack Trace:
java.lang.NullPointerException
at org.eclipse.osgi.internal.resolver.NativeCodeSpecificationImpl.isSatisfiedBy(NativeCodeSpecificationImpl.java:88)
at org.eclipse.osgi.internal.module.ResolverImpl.isResolvable(ResolverImpl.java:285)
at org.eclipse.osgi.internal.module.ResolverImpl.resolveBundles(ResolverImpl.java:639)
at org.eclipse.osgi.internal.module.ResolverImpl.resolve(ResolverImpl.java:477)
at org.eclipse.osgi.internal.resolver.StateImpl.resolve(StateImpl.java:545)
at org.eclipse.osgi.internal.resolver.StateImpl.resolve(StateImpl.java:605)
at org.eclipse.pde.internal.build.site.BuildTimeSite.getRegistry(BuildTimeSite.java:186)
at org.eclipse.pde.internal.build.BuildScriptGenerator.generateFeatures(BuildScriptGenerator.java:276)
at org.eclipse.pde.internal.build.BuildScriptGenerator.generate(BuildScriptGenerator.java:127)
at org.eclipse.pde.internal.core.exports.FeatureExportOperation.doExport(FeatureExportOperation.java:257)
at org.eclipse.pde.internal.core.exports.FeatureExportOperation.doExport(FeatureExportOperation.java:224)
at org.eclipse.pde.internal.core.exports.FeatureExportOperation.run(FeatureExportOperation.java:108)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Session Data:
eclipse.buildId=4.4.0.I20140606-1215
java.version=1.8.0_11
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_GB
Framework arguments: -product org.eclipse.epp.package.standard.product
Command-line arguments: -data /media/lads/Data/users/lads/Trabalho/Eclipse/Luna/Workspace.Acceleo -os linux -ws gtk -arch x86_64 -product org.eclipse.epp.package.standard.product
This is a known issue with release 4.4.0 reported in Bug 438652. A fix was shipped with release 4.4.1, thus an update to Eclipse gets this functionality working again.

Error while importing POM.xml as Mule project in Anypoint Studio 3.5

I am getting the following error when trying to import a maven project using pom.xml into Anypoint studio 3.5
eclipse.buildId=unknown
java.version=1.7.0_60
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Command-line arguments: -os win32 -ws win32 -arch x86_64 -clean
Error
Fri Jun 27 18:41:21 EDT 2014
Error While Importing
java.lang.RuntimeException: java.lang.NullPointerException
at org.mule.tooling.core.StudioDesignContextRunner.runWithMuleProjectThrowingCoreException(StudioDesignContextRunner.java:89)
at org.mule.tooling.core.packageManager.ImportPackageManager.callMuleProjectRunner(ImportPackageManager.java:298)
at org.mule.tooling.core.packageManager.ImportPackageManager.doImportWithoutCopyToWorkspace(ImportPackageManager.java:273)
at org.mule.tooling.core.packageManager.ImportPackageManager.run(ImportPackageManager.java:85)
at org.mule.tooling.ui.wizards.MuleProjectImportJob.runInWorkspace(MuleProjectImportJob.java:45)
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.lang.NullPointerException
at org.mule.tooling.core.utils.CoreUtils.generateFlowsFromConfigs(CoreUtils.java:457)
at org.mule.tooling.core.packageManager.ImportPackageManager$2.call(ImportPackageManager.java:267)`enter code here`
at org.mule.tooling.core.packageManager.ImportPackageManager$2.call(ImportPackageManager.java:1)
at org.mule.tooling.core.StudioDesignContextRunner.runWithMuleProjectThrowingCoreException(StudioDesignContextRunner.java:85)
... 6 more
I faced similar issue and by deleting .projects and .classpath file from project directory it works.
.projects and .class path will contain information/dependency associated with any other IDE that is used before. Removing and importing the project will create it without any issue.

Eclipse and Hadoop 2.2 Location Status Updater Error

I'm using Linux Mint 16 and have installed Eclipse (Kepler) and Hadoop 2.2.0. I have set Eclipse to use the Map/Reduce perspective and I have created a new Hadoop location. When I created the location, I went into the Advanced tab and set the path for:
dfs.datanode.data.dir
dfs.namenode.name.dir
dfs.data.dir
dfs.name.dir
When I click the + sign next to the location name, I get the following error:
'Map/Reduce location status updater' has encountered a problem. An internal error occurred during "Map/Reduce location status updater".
When I click on Details, I get the following:
An internal error occurred during "Map/Reduce location status updater". java.land.NullPointerException
I have seen a few items on stackoverflow regarding Hadoop versions prior to 2.2 and they haven't solved this error for me. Any suggestions?
I`ve just got the same problem!!
detail:
eclipse.buildId=4.4.0.I20140606-1215
java.version=1.7.0_55
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Framework arguments: -product org.eclipse.epp.package.standard.product
Command-line arguments: -os linux -ws gtk -arch x86_64 -product org.eclipse.epp.package.standard.product
org.eclipse.core.jobs
Error
Wed Jul 02 18:46:23 CST 2014
An internal error occurred during: "Map/Reduce location status updater".
java.lang.NullPointerException
at org.apache.hadoop.mapred.JobClient.getAllJobs(JobClient.java:814)
at org.apache.hadoop.mapred.JobClient.jobsToComplete(JobClient.java:790)
at org.apache.hadoop.eclipse.server.HadoopServer$LocationStatusUpdater.run(HadoopServer.java:119)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

Programmatically installing plugins from Eclipse plugin: error processing mirrors URL

In our project (an Eclipse plugin), we're trying to install a couple of plugins programmatically (no worries, the user first has to accept all their licenses). Everything works fine, the plugins get installed, except that a certain error keeps popping up:
eclipse.buildId=M20120208-0800
java.version=1.6.0_43
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=nl_BE
Framework arguments: -product org.eclipse.epp.package.rcp.product
command-line arguments: -os win32 -ws win32 -arch x86_64 -product
org.eclipse.epp.package.rcp.product
Error
Thu Nov 07 12:32:22 CET 2013
Error processing mirrors URL:
http://www.eclipse.org/modeling/updates/countryCode=be&timeZone=1&format=xml
java.io.FileNotFoundException:
http://www.eclipse.org/modeling/updates/countryCode=be&timeZone=1&format=xml
at org.eclipse.equinox.internal.p2.transport.ecf.RepositoryStatusHelper.checkFileNotFound(RepositoryStatusHelper.java:297)
at org.eclipse.equinox.internal.p2.transport.ecf.FileReader.checkException(FileReader.java:384)
at org.eclipse.equinox.internal.p2.transport.ecf.FileReader.sendRetrieveRequest(FileReader.java:358)
at org.eclipse.equinox.internal.p2.transport.ecf.FileReader.read(FileReader.java:213)
at org.eclipse.equinox.internal.p2.transport.ecf.RepositoryTransport.stream(RepositoryTransport.java:153)
at org.eclipse.equinox.internal.p2.artifact.repository.MirrorSelector.computeMirrors(MirrorSelector.java:274)
at org.eclipse.equinox.internal.p2.artifact.repository.MirrorSelector.initMirrors(MirrorSelector.java:336)
at org.eclipse.equinox.internal.p2.artifact.repository.MirrorSelector.selectMirror(MirrorSelector.java:406)
at org.eclipse.equinox.internal.p2.artifact.repository.MirrorSelector.getMirrorLocation(MirrorSelector.java:314)
at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.getMirror(SimpleArtifactRepository.java:651)
at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.downloadArtifact(SimpleArtifactRepository.java:568)
at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.getArtifact(SimpleArtifactRepository.java:680)
at org.eclipse.equinox.internal.p2.artifact.repository.MirrorRequest.getArtifact(MirrorRequest.java:260)
at org.eclipse.equinox.internal.p2.artifact.repository.MirrorRequest.transferSingle(MirrorRequest.java:235)
at org.eclipse.equinox.internal.p2.artifact.repository.MirrorRequest.transfer(MirrorRequest.java:191)
at org.eclipse.equinox.internal.p2.artifact.repository.MirrorRequest.perform(MirrorRequest.java:122)
at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.getArtifact(SimpleArtifactRepository.java:664)
at org.eclipse.equinox.internal.p2.artifact.repository.simple.DownloadJob.run(DownloadJob.java:63)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
We've tried a couple of things, like setting in the pom.xml for tycho that we don't want to use mirrors, or giving it as a JVM argument, or simply setting the System property to not use mirrors. However, as far as I understood, this will only cancel out non-eclipse.org sites and this is an eclipse.org site...
The updatesite to install from is: http://download.eclipse.org/modeling/emf/teneo/updates/2.0.0/interim/ (for Teneo).
What can I do to prevent this error from happening? To be clear: this doesn't prevent the code from running as it should. Teneo gets installed. I just don't want this kind of errors popping up in the Error Log.
Thanks for any tips.

Unexpacting error in eclipse on startup: "Unable to acquire application service"

Here is what I got from the Eclipse log when trying to start Eclipse on Ubuntu 10.10:
My exact Eclipse version is: to be filled by the OP
My JDK version used to launched Eclipse is: to be filled by the OP
The log:
!SESSION 2011-07-11 11:25:12.125 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_24
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
Framework arguments: -product org.eclipse.epp.package.java.product
Command-line arguments: -os linux -ws gtk -arch x86 -product org.eclipse.epp.package.java.product
!ENTRY org.eclipse.osgi 4 0 2011-07-11 11:25:14.306
!MESSAGE Application error
!STACK 1
java.lang.IllegalStateException: Unable to acquire application service. Ensure that the org.eclipse.core.runtime bundle is resolved and started (see config.ini).
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:74)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
Do you have seen that error before, and how would you troubleshoot it?
If this is like bug 223756, it could be related to where Eclipse has been installed.
May be your crash relate to read-only installation? (bug 216066, bug 225257)
Yes, that sounds reasonable. My eclipse installation resides in /opt/eclipse,
where a 'normal' user doesn't have write access..