Error while installing Activiti BPM Engine on Ubuntu - MySql - ubuntu-14.04

I am trying to install activiti engine in ubuntu 14 LTS and Tomcat & MySql. I haven't alterterd any settings so far it is the default war which I deployed in tomcat. How ever when I am trying to access activiti-explorer I am getting below error. It works perfectly fine in the local landscape with same configuration but when I try to deploy it in client landscape this is the error I am getting. Can any one please help with this?
org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'explorerApp': Scope 'session' is not active for the current thread;
consider defining a scoped proxy for this bean if you intend to refer to it from a singleton; nested exception is java.lang.IllegalStateException:
No thread-bound request found: Are you referring to request attributes outside of an actual web request, or processing a request outside of the originally receiving thread?
If you are actually operating within a web request and still receive this message, your code is probably running outside of DispatcherServlet/DispatcherPortlet:
In this case, use RequestContextListener or RequestContextFilter to expose the current request.
com.vaadin.terminal.gwt.server.AbstractApplicationServlet.handleServiceException(AbstractApplicationServlet.java:1010)

If anybody out looking there for answer, I got it resolved by replacing the Tomee Server to tomcat. It seems there are some version conflict with activiti latest version and Tomee Server latest version. It works properly with Tomcat 8.

Related

Angular Universal with GRPC

Im having issues with setting up GRPC inside Angular Universal App.
Basically, it throws an error:
ERROR Error: This environment's XHR implementation cannot support binary transfer.
This error is breaking the application on production (hosting it on ubuntu and nginx), but, in local envioroment it works.
If I switch Angular to not use SSR, then it works fine.
My assumption is that in the Node Express server I need to add support for GRPC, but im not sure how to achieve that.
Did someone had the same problem?
Thanks!
If no grpc library is defined, adding improbable-eng should solve the issue. The mentioned error message occurs when the transport protocol is not NodeHttpTransport.

Unable to run the angular application. Getting error No such file exists robots933456.txt

I am running the angular application in Microsoft Teams and deploying it on Azure.
But it's not running up as it is looking for the robots933456.txt route.
It wasn’t the case before today.
Please guide me on how to proceed further.
On running the app the logs shows:
The error was natively on my side nothing to do with the above but pretty much seen and raised by people so thought of sharing below:
After doing some research figured out I can safely ignore this message. /robots933456.txt is a dummy URL
the path that App Service uses to check if the container is capable of serving
requests. A 404 response simply indicates that the path doesn't exist, but
it lets App Service know that the container is healthy and ready to respond
to requests.
https://github.com/MicrosoftDocs/azure-docs/issues/32472

Capture error GRPC 14 UNAVAILABLE service unavaible NestJS

I am developing una app web con Nest and microservice by grpc.
At the first moment, I don´t have a server grpc, only a client, and get error 14 UNAVAILABLE. Ok, I want to control this error.
I don´t want to send the error 500 Internal Server.
How could I do it, with my own exception?
I have tried to create exceptions at the controller level, which inherit from GrpcExceptionFilter and do not work, since it does not capture the error.
I have also created a filter that captures the HttpStatus.SERVICE_UNAVAILABLE exception and does not work either
I need to be able to control the error that occurs when the microservice is not available

Loopback required the Node Cluster module, which is incompatible with Passenger

I am trying to deploy my loopback service. But I am encountering a problem where i am unable to access it.
When trying to access I get the following error message:
Trace: You required the Node Cluster module, which is incompatible with Passenger, a non-functional shim was returned and your app may still work. However, please remove the related code as soon as possible.
Now I am not 100% sure this is the reason why I am unable to access it but it is not throwing any other messages.
I've already looked into the problem however I haven't found a solution. It seems that loopback uses something called shirtId which is a node module that uses a cluster function.
Removing this node module will result in my application not being able to start.
Has anyone else had this problem and maybe know of a fix?

Randomly "502 bad gateway" on production, but it's ok on dev machine (express js)

I've got a node js script (Express js framework). I have a problem with this server only on production - on developer machine everything is good.
On developer machine an on production this server is running in Docker container. Container if from the same image of course.
The problematic scenario:
Start server
Make a request:
2.1. upload file to server and save in on hard disc drive
2.2. send a POST request via curl to microservice. This request is send to micorservice the file from 2.1 point. It's POST request. We use node-libcurl library
2.3. After long time (few minutes) microservice returns a response.
2.4. This response is saved on server.
2.5. Print a template.
On developer machine this request works totally correctly: from point 2.1 to 2.5.
But on production machine this request works correctly do all points except 2.5. I know it works good on 2.1-2.4 because server logs this information.
Production is on https://www.linode.com/.
Have you any idea what's wrong?
EDIT:
I forgot to mention, but server on production returns "502 bad gateway" error randomly for the same file and microservice response. Sometimes this requests is ok
I dont know how you start the application within the container, but I would suggest you'll use forever (https://www.npmjs.com/package/forever) to make sure it does not go inactive.
I've had 502 errors because of that in other systems when there were no activity for a few minutes.
Hope this helps a little

Resources