xolvo / play-sentry-plugin Goto Github PK
View Code? Open in Web Editor NEWPlugin for Play! Framework to log exceptions and other events to Sentry
Plugin for Play! Framework to log exceptions and other events to Sentry
ERROR ~ id to load is required for loading
java.lang.IllegalArgumentException: id to load is required for loading
at org.hibernate.event.LoadEvent.(LoadEvent.java:89)
at org.hibernate.event.LoadEvent.(LoadEvent.java:61)
at org.hibernate.impl.SessionImpl.get(SessionImpl.java:1002)
at org.hibernate.impl.SessionImpl.get(SessionImpl.java:998)
at org.hibernate.ejb.AbstractEntityManagerImpl.find(AbstractEntityManagerImpl.java:781)
at org.hibernate.ejb.AbstractEntityManagerImpl.find(AbstractEntityManagerImpl.java:756)
at play.db.jpa.JPQL.findById(JPQL.java:36)
at models.TypeOfSale.findById(TypeOfSale.java)
at controllers.api.Users.getUserOrders(Users.java:486)
at play.mvc.ActionInvoker.invokeWithContinuation(ActionInvoker.java:557)
at play.mvc.ActionInvoker.invoke(ActionInvoker.java:508)
at play.mvc.ActionInvoker.invokeControllerMethod(ActionInvoker.java:484)
at play.mvc.ActionInvoker.invokeControllerMethod(ActionInvoker.java:479)
at play.mvc.ActionInvoker.invoke(ActionInvoker.java:161)
at Invocation.HTTP Request(Play!)
ERROR ~ An exception occurred while sending the event to Sentry.
java.lang.NullPointerException
at net.kencochrane.raven.marshaller.json.JsonMarshaller.writeExtras(JsonMarshaller.java:152)
at net.kencochrane.raven.marshaller.json.JsonMarshaller.writeContent(JsonMarshaller.java:125)
at net.kencochrane.raven.marshaller.json.JsonMarshaller.marshall(JsonMarshaller.java:100)
at net.kencochrane.raven.connection.HttpConnection.doSend(HttpConnection.java:104)
at net.kencochrane.raven.connection.AbstractConnection.send(AbstractConnection.java:78)
at net.kencochrane.raven.connection.AsyncConnection$EventSubmitter.run(AsyncConnection.java:148)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:724)
11:20:03,968 ERROR ~
Если в логер передавать UserModel и она null, то при отправке события в Sentry выбрасывается NullPointerException и событие до Sentry не доходит.
Нужно сделать так, чтобы значения куков и заголовков из класса play.mvc.Http.Request
приходили в Sentry как JSON Object где ключ - это название куки или заголовка, а значение - это value из куки или заголовка, разделенное запятой (если есть множественные значения для одного заголовка или куки).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.