-
Notifications
You must be signed in to change notification settings - Fork 134
Open
Labels
kind/bugSomething isn't workingSomething isn't working
Description
Description:
Apigee Emulator Versions 1.13.1+ return a 500 - Internal Server Error - when deploying a contract from archive. The same problem still exists in the most recent version (1.14.2 at the time of the creation of this ticket). Emulator 1.13.0 and earlier versions work just fine with the exact same archive.
The following stack trace can be seen in the emulator output
java.lang.UnsupportedOperationException
\tat com.apigee.emulator.mocks.CollectionServiceForEmulator.registerIngestorForProject(CollectionServiceForEmulator.java:55)
\tat com.apigee.messaging.configuration.MessageProcessorServiceImpl.loadContract(MessageProcessorServiceImpl.java:727)
\tat com.apigee.emulator.EmulatorServiceImpl.activateContract(EmulatorServiceImpl.java:206)
\tat com.apigee.emulator.EmulatorServiceImpl.deployContractFromSourceArchive(EmulatorServiceImpl.java:177)
\tat com.apigee.emulator.rest.EmulatorApi.deployZippedContract(EmulatorApi.java:62)
\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
\tat java.lang.reflect.Method.invoke(Method.java:498)
\tat com.apigee.communication.rest.HandlerDetails.process0(HandlerDetails.java:271)
\tat com.apigee.communication.rest.HandlerDetails.process(HandlerDetails.java:256)
\tat com.apigee.communication.rest.HandlerDetails.access$500(HandlerDetails.java:50)
\tat com.apigee.communication.rest.HandlerDetails$1.finished(HandlerDetails.java:213)
\tat com.apigee.protocol.http.io.BodyPipe.closeOutput(BodyPipe.java:273)
\tat com.apigee.protocol.http.io.BodyPipe.onWrite(BodyPipe.java:225)
\tat com.apigee.protocol.http.io.BodyPipe.start(BodyPipe.java:154)
\tat com.apigee.communication.rest.HandlerDetails.handleRequest(HandlerDetails.java:199)
\tat com.apigee.communication.RuntimeCommunicationServiceImpl.processRequest(RuntimeCommunicationServiceImpl.java:215)
\tat com.apigee.protocol.http.RequestHandler.doAction(RequestHandler.java:26)
\tat com.apigee.protocol.http.HTTPServer$Context.hasRequestHandler(HTTPServer.java:590)
\tat com.apigee.protocol.http.HTTPServer$Context.access$200(HTTPServer.java:486)
\tat com.apigee.protocol.http.HTTPServer$Context$1.onHeaders(HTTPServer.java:773)
\tat com.apigee.protocol.http.io.MessageReader.onRead(MessageReader.java:125)
\tat com.apigee.protocol.http.HTTPServer$Context.startReading(HTTPServer.java:868)
\tat com.apigee.communication.ManagementAPIListener.onStart(ManagementAPIListener.java:17)
\tat com.apigee.protocol.http.HTTPServer$Context$1.setBufferUnprocessed(HTTPServer.java:689)
\tat com.apigee.protocol.http.io.MessageReader.onRead(MessageReader.java:88)
\tat com.apigee.protocol.http.io.MessageReader.start(MessageReader.java:55)
\tat com.apigee.protocol.http.HTTPServer$Context.startSafeReading(HTTPServer.java:845)
\tat com.apigee.protocol.http.HTTPServer$Context.run(HTTPServer.java:579)
\tat com.apigee.protocol.http.HTTPServer.onAccept(HTTPServer.java:328)
\tat com.apigee.nio.handlers.NIOThread.accept(NIOThread.java:115)
\tat com.apigee.nio.handlers.NIOThread.run(NIOThread.java:141)
Repro step:
docker run -p 8080:8080 -p 8998:8998 gcr.io/apigee-release/hybrid/apigee-emulator:1.13.1
curl -v "http://localhost:8080/v1/emulator/deploy?environment=dev" -H 'Content-Type: zip' --data-binary "@archive.zip"
Sample archive: archive.zip
Metadata
Metadata
Assignees
Labels
kind/bugSomething isn't workingSomething isn't working