我们目前正在评估 XTRF 作为我们公司的一个选项。我正在尝试通过沙盒 REST API 智能项目创建端点创建一个新项目,v2/projects
并且我认为我正在向它传递正文中的正确参数:
{
"name": "My Test API Project",
"clientId": 7,
"serviceId": 5
}
但我得到了一个内部服务器错误。
<html>
<head>
<title>Error</title>
</head>
<body>Internal Server Error</body>
</html>
查看我们沙盒帐户的日志,我看到:
10:00:00,185 Job MANDATORY_SYSTEM_CONFIGURATION.Expired Availability Requests Cleaner threw an unhandled Exception: com.radzisz.xtrf.exceptions.XtrfException: could not execute action in hibernate
at com.radzisz.xtrf.utils.HibernateUtils.doInHibernate(HibernateUtils.java:103)
at com.radzisz.xtrf.utils.asynchaction.LongHibernateSessionManagement.execute(LongHibernateSessionManagement.java:26)
at com.radzisz.xtrf.periodicJob.core.PeriodicJobQuartzImpl.executeInHibernate(PeriodicJobQuartzImpl.java:73)
at com.radzisz.xtrf.periodicJob.core.PeriodicJobQuartzImpl.execute(PeriodicJobQuartzImpl.java:65)
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: com.radzisz.xtrf.service.periodicJob.exceptions.GeneralPeriodicJobException: no periodic job: Expired Availability Requests Cleaner could be found
at com.radzisz.xtrf.periodicJob.util.PeriodicJobValidator.isFalse(PeriodicJobValidator.java:19)
at com.radzisz.xtrf.periodicJob.util.PeriodicJobValidator.notNull(PeriodicJobValidator.java:33)
at com.radzisz.xtrf.periodicJob.core.PeriodicJobServiceImpl.getByName(PeriodicJobServiceImpl.java:313)
at com.radzisz.xtrf.periodicJob.core.PeriodicJobServiceImpl.getByName(PeriodicJobServiceImpl.java:41)
at sun.reflect.GeneratedMethodAccessor496.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:333)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)
at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:282)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:213)
at com.sun.proxy.$Proxy236.getByName(Unknown Source)
at com.radzisz.xtrf.periodicJob.core.PeriodicJobQuartzImpl.doExecute(PeriodicJobQuartzImpl.java:123)
at com.radzisz.xtrf.periodicJob.core.PeriodicJobQuartzImpl.access$100(PeriodicJobQuartzImpl.java:46)
at com.radzisz.xtrf.periodicJob.core.PeriodicJobQuartzImpl$2.doWork(PeriodicJobQuartzImpl.java:88)
at com.radzisz.xtrf.periodicJob.core.PeriodicJobQuartzImpl$2.doWork(PeriodicJobQuartzImpl.java:85)
at com.radzisz.xtrf.utils.XtrfContext.runAs(XtrfContext.java:305)
at com.radzisz.xtrf.periodicJob.core.PeriodicJobQuartzImpl.executeAsAdministrator(PeriodicJobQuartzImpl.java:85)
at com.radzisz.xtrf.periodicJob.core.PeriodicJobQuartzImpl.access$000(PeriodicJobQuartzImpl.java:46)
at com.radzisz.xtrf.periodicJob.core.PeriodicJobQuartzImpl$1.run(PeriodicJobQuartzImpl.java:79)
at com.radzisz.xtrf.utils.asynchaction.LongHibernateSessionManagement$1.doInHibernate(LongHibernateSessionManagement.java:30)
at com.radzisz.xtrf.utils.asynchaction.LongHibernateSessionManagement$1.doInHibernate(LongHibernateSessionManagement.java:26)
at com.radzisz.xtrf.utils.HibernateUtils.doInHibernate(HibernateUtils.java:99)
... 7 more
这对于找出问题所在不是很有帮助。谁能指出我正确的方向?