Spring Tool Suite 3.6.3 - Spring Explorer only has Beans - Application - sts-springsourcetoolsuite

My Spring Explorer only shows Beans -> Application and nothing else. When I was just running Eclipse and had added in the STS plugin, I was able to see more Spring information, including Configuration files, Controllers, and RequestMappings.
I've even tried with a fresh install and with a Spring getting started guide instead of my own project, but I get the same result:
1) I've downloaded and installed a fresh copy of STS 3.6.3.
2) Then from the dashboard I clicked Manage: IDE Extensions and installed Gradle Support and restarted STS.
3) I went to File - Import - Spring Getting Started Content
4) I selected Rest Service and selected the Build Type of Gradle.
5) Now in Spring Explorer I see: gs-rest-service-complete - Beans - Application (and gs-rest-service-initial is empty)
For this example, I expect to see the GreetingController (a #RestController) and its #RequestMapping. How can I get it to show me the tree with all the other Spring elements?
(Note that there was a bug fix for 3.6.3 that should show RequestMappings for RestController - https://issuetracker.springsource.com/browse/STS-3751 so perhaps this is a regression issue instead of me doing something wrong)
If I go to Properties - Spring - Beans Support - the default is to have "Auto detection for Spring Boot configuration files" checked. I get the same results for unchecking that and instead checking "Auto detection for annotated Java Spring configuration files". The Config Sets panel is empty. The Config Files panel lists Application. Neither of the two checkboxes below are checked now - neither changed anything when I tried them. Clicking Scan... just loads an empty and disabled panel with the error note "No entries available."

I tried it (with maven instead of Gradle, but it shouldn't make a difference). I get the same behavior as you describe but... the expected elements (RestController with request mappings) do show up after I clean/build the project.
So I think that:
the STS-3751 bug is indeed fixed
there is a model-cache refreshing bug still lingering
Probably this is the bug in question:
https://issuetracker.springsource.com/browse/STS-3541
It is shown as still 'unresolved' at the moment.

Related

Intent Extension for Siri Shortcuts works in Sample App not in existing project

I am trying to use Intents Extension in my existing Obj-C project for conversational shortcuts in iOS 13. I have followed all the steps and the procedures work fine in a sample app.
But when I try it out in my existing application the intents fail to launch and it is automatically redirected to my parent app.
The console error is as follows
[Intents] -[INCache cacheableObjectForIdentifier:] Unable to find cacheable object with identifier intents-remote-image-proxy:?proxyIdentifier=2A439A9B-6D95-BFB2-FCE4-31408D1E677F.png&storageServiceIdentifier=com.apple.Intents.INImageServiceConnection in cache.
Has anyone faced such an issue with intents? Please share your thoughts on this.
Additional Info:
The intent is registered. Have implemented the 'handle' 'resolve' methods and have also declared them in the interface.
Have the extension's min deployment target same as the parent (which created an issue that I had missed previously).
The issue was created due to setting up 'Copy only when installing' boolean as 'true' in 'Embed App Extensions' under 'Build Phases'. It was resolved once the check was made 'false'.

Clearing Site Data Breaks Mapping - IndexedDB isn't handling a closed connection

Repro Steps:
Load a Map
In Chrome dev tools, visit the Application tab and click "Clear site data"
Return to your map and scroll or pan
Exception thrown and map becomes unresponsive to input
Failed to execute 'transaction' on 'IDBDatabase'...
Looks like the team isn't catching errors in IndexedDB. As a consumer of the library, we can't reliably catch this error either because JavaScript global error handlers don't get error information for scripts loaded from another domain.
Please use Maps API for JavaScript 3.1 instead of 3.0. The new version 3.1 doesn't have this flaw.
See please on Migration to 3.1 and Examples

spring based bundle in apache felix osgi

I am working one POC where I want to create plugin based web application. Main application will have all the spring mvc context. Plugins can write spring controllers but they cannot have their own spring context file. What I want is when plugin is installed all its controller is scanned (plugins controller need to be in specific package so for that package component scan will be defined in parent context) and ready to use. I am able achieve the installation part however when I am trying to access bundle/plugin controller end point through rest call I get no mapping found error.
Has anyone tried something like this? It will be great if I can get reference to some example.
Thanks!!!
If you remove the spring part, I've already done this with
a) Apache Wicket and Pax Wicket
b) Vaadin
For a) you might want to look at the Apache Karaf WebConsole.
For b) take a look at this rather "old" showcase of mine.
Both of those showcases use either standard OSGi services or Blueprint for the services (http-services) and the discovery of new "web-components" or views.

Trouble using Epplus and Service.svc

I have a Web Site with an Service.svc file, i created this using the Add New Item -> AJAX-enabled WCF Service, for weeks, everything works fine.
Today, i imported the EPplus.dll to generate some excel files. When i try to compile i get this error
Error 1 Reference.svcmap:
Failed to generate code for the service reference 'QUAY.Tractebel.COP.Servicos'.
Cannot import wsdl:portType Detail: An exception was thrown while running a WSDL import extension:
System.ServiceModel.Description.DataContractSerializerMessageContractImporter
Error: Type 'OfficeOpenXml.ExcelRangeBase' is a recursive collection data contract which is not supported.
Consider modifying the definition of collection 'OfficeOpenXml.ExcelRangeBase' to remove references to itself.
XPath to Error Source: //wsdl:definitions[#targetNamespace='']/wsdl:portType[#name='Servicos'] App_WebReferences/QUAY/Tractebel/COP/Servicos/
I have no idea how to solve it, someone can help me?
Just had the same problem while referencing a custom wcf class i use.
The strange problem is that on my old development pc (windows vista 32bit, visual studio 2010) i haven't got this problem, it only pops up in my new system (windows 8 64bit).
Bah.
However, i bypassed the problem opening App_WebReferences --> "your service name" --> Right click on depending Refrence icon --> "Configure service reference"
In this screen move the option button from "Reuse types in all referenced assembiles" to "Reuse types in specified assemblies" and check all the depending libraries EXCEPT EPPlus
Compile and ... voila
If someon has also a logic explanation, i'll gladly listen

404 Error using Flash Builder 4 BlazeDS wizard

My issue this time around is trying to use the new DCD BlazeDS wizard in Flash Builder 4. If I set my project up as a combined Java/Flex app I am unable to connect to the RDS servlet using the wizard. I get a 404 error every time.
I'm certain the service is set up correctly since my app can access the exposed java classes and BlazeMonster can see the exposed services.
Is anyone else having this issue and if so has anyone found a work-around? I'd very much like to use the code generation features of the wizard for my project.
Thanks as always,
Codeflayer
You also need to make sure you have the RDSDispatchServlet setup in the web.xml config file.

Resources