Core Exchange should not be installed. The SDK Install.bat uses (or attempts to use) Core Exchange to the FFCore Workflow. You can look to see if the application (under Xerox) is installed -- it should not be.
One more thing, I have installed SDK on remote computer without disabling Core Exchange, how can I uninstall it?
I thought I was using this option, It is working now, Thanks for help.
Try changing the Content-Type to:
application/vnd.cip4-jmf+xml
OK, but what about posting files by powershell or ssh? For example when I type in powershell:
Invoke-WebRequest "http://192.168.1.198:7751" -Method Post -ContentType "text/xml" -InFile "C:\FreeFlow Core v5_1_0_3 SDK\JMF Samples\02 - Job Submission\01.1 - SubmitQueueEntry.jmf"
I get error 500 as I pasted in preview post.
When I go to site http://192.168.1.198:7751/
I see this:
You should be able to use ALCES to submit from a remote computer. The FFCore SDK needs to be installed on the remote computer. The install.bat should be edited so that Core Exchange is not used.
The last lines in the install.bat should look as follows (the second line is commented out to avoid use of Core Exchange):
rem Importing workflows...
rem "%FF_CORE_HOME%\CoreExchange.exe" /i "%cd%\Resources\Simple Workflow.ffc" /o
Hello,
im trying to make POST with JMF file to Core server. Im getting error 500.
It works when Im testing by Alces, but I can connect only on PC that Core is intsalled, when i try on a different PC connected by LAN I get connection error in Alces.
Error when trying to connect by poweshell, the same with curl command by linux.
PS C:\> Invoke-WebRequest "http://192.168.1.198:7751" -Method Post -ContentType "text/xml" -InFile "C:\FreeFlow Core v5_1_0_3 SDK\JMF Samples\02 - Job Submission\01.1 - SubmitQueueEntry.jmf"
Invoke-WebRequest : HTTP Status 500 – Internal Server Error
Type Exception Report
Description The server encountered an unexpected condition that prevented it from fulfilling the request.
Exception
java.lang.NullPointerException
com.xerox.gateways.jdfjmf.common.JmfGatewayListener.newMessage(Unknown Source)
com.xerox.jdftoolkit.RequestProcessor.processData(Unknown Source)
com.xerox.jdftoolkit.BaseServlet.doPost(Unknown Source)
javax.servlet.http.HttpServlet.service(HttpServlet.java:661)
javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
com.xerox.gateways.jdfjmf.servlet.JMFFilter.doFilter(Unknown Source)
Note The full stack trace of the root cause is available in the server logs.
Apache Tomcat/8.5.31
At line:1 char:1
+ Invoke-WebRequest "http://192.168.1.198:7751" -Method Post -ContentTy ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebExc
eption
+ FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand