Questions tagged [msf4j]

WSO2 Microservices Framework for Java (MSF4J) is a lightweight high performance framework for developing & running microservices.

WSO2 Microservices Framework for Java

Links

43 questions
0
votes
1 answer

How to use exception mapper for exceptions thrown from interceptors in MSF4J

I added a authorisation module in interceptor, and tried to use exception mapper to throw 401 status code, but even if it is scanning my exception mapper, it is not using it in runtime. @Component public class ExceptionMapper implements…
krmanish007
  • 6,749
  • 16
  • 58
  • 100
0
votes
2 answers

spring custom scan in msf4j

I have an msf4j application in package com.a.sample1 and I want to scan some component in com.a.sample2. Is there a way to do it in msf4j? I am using: public static void main(String[] args) { MSF4JSpringApplication …
krmanish007
  • 6,749
  • 16
  • 58
  • 100
0
votes
0 answers

msf4j spring retrieve token through rest template

I am trying to retrieve token from WSO2 identity server, based upon the username and password received from UI. I am able to do it from the below curl command: curl -v -k -X POST --basic -u zbvliQjZK2aVpWV_EE2Q6PWYDUIa:xBGfoppV1DsDGoMNHDPsF5uWLKga…
krmanish007
  • 6,749
  • 16
  • 58
  • 100
0
votes
0 answers

msf4j oauth2-security is throwing null pointer exception

When I am trying to validate the token, oauth2-security msf4j returns null pointer exception, without giving any more detail. On debugging it appears that getValidatedTokenResponse is returning empty and so NPE is coming: I verified the token and…
krmanish007
  • 6,749
  • 16
  • 58
  • 100
0
votes
1 answer

Securing WSO2 microservices with JWT using WSO2 Identity Server

I found this: WSO2 Identity Server JWT Access token but it doesn't seem to be answered. What I want to do is this: 1 - call some URL on the WSO2 Identity Server to authenticate, sending a username and password, and have it send me back a Json Web…
Jason Carreira
  • 449
  • 6
  • 16
0
votes
1 answer

msf4j chunked encoding and multipart/form-data

I've been running some of the examples for MSF4J. Im looking into creating a service that allows uploading of files, but they are send using multipart/form-data. Our front sends the data with chunked encoding. So, the FileServer example shows how to…
0
votes
0 answers

crash of msf4j microservice

I have 1 microservice developed based on wso2 msf4j(on java) This microservice runs very well when there is small amount of requests. But after increasing the amount of requests, I saw it became crashed. I can't see anything in logs(the log4j mode…
Hoang Doanh
  • 99
  • 2
  • 11
0
votes
0 answers

wso2 msf4j microservice is timeout

I am using wso2 msf4j to implement micro services in my project. I have the following issue, Microservice is sometimes timeout. Microservice is sometimes turned off. I didn’t see anything in logging despite the logging mode is debug, and I…
Hoang Doanh
  • 99
  • 2
  • 11
0
votes
1 answer

MSF4J micoservice trying to communicate with a SOAP service

I am trying to develop a microservice using MSF4J. The service gets the header details of the input request and try to communicate with a SOAP service for further operations. This logic when written as a normal application works fine but when…
Meeran Mohideen
  • 169
  • 1
  • 3
  • 14
0
votes
1 answer

MSF4J: Serving static content

Can MSF4J application serve static content without using the Mustache template engine. I have developed a REST service which will be consumed by an already developed angular web app. Now I need to package the same angular app with the micro service…
DinushaNT
  • 1,137
  • 6
  • 17
0
votes
1 answer

Wso2 Microservices (MSF4j) : handling logging

Assume I have 5 MSF4j micro services and if those services are interconnected what will be the best mechanism to do logging? My main concerns are? 1) Should logging has to be another separate micro service ? 2) If not we have to add logging…
lsc
  • 681
  • 3
  • 8
  • 26
0
votes
1 answer

Wso2 Microservices (MSF4j) and Data Analysis Server (DAS) integration issue

I was trying to run sample https://github.com/wso2/msf4j/tree/master/samples/metrics-httpmon/metrics-httpmon-fatjar with DAS. My environment is Windows so, I just copied carbon apps and module zips to appropriate directories as explained…
lsc
  • 681
  • 3
  • 8
  • 26
0
votes
1 answer

wso2 mss 1.0 alpha there is no clear port defined

I am trying to have a test on wso2 mss 1.0. After following sample of https://docs.wso2.com/display/MSS100/Running+a+Basic+Microservice, the url curl localhost:8080/hello/Microservices cannot be accessed. Also there is no port configured in…
richard
  • 1,845
  • 1
  • 20
  • 30
1 2
3