You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@griffin.apache.org by Secfree Teng <se...@gmail.com> on 2019/04/25 02:27:27 UTC

Use the latest "service" version caused "This application has no explicit mapping for /error"

Hi all,

I replaced the “service.jar” in the docker container from the image
“apachegriffin/griffin_spark2:0.3.0”. The new “service.jar” is from the
source code of master/griffin-0.5.0 branch. After restarting the service,
access the Griffin host “http://griffin:port/“ returns

Whitelabel Error Page
This application has no explicit mapping for /error, so you are seeing
this as a fallback.

Thu Apr 25 02:11:33 UTC 2019
There was an unexpected error (type=Not Found, status=404).
No message available

But access the APIs under “/api/v1/“ is OK.

Does the latest version support UI? Or I’ve done something wrong.

Thank you.

Re: Use the latest "service" version caused "This application has no explicit mapping for /error"

Posted by Secfree Teng <se...@gmail.com>.
Hi Kevin,

Thank you so much.
Previously I was using *mvn clean package -DskipTests*, change to *mvn
clean install -DskipTests* fixed the problem.


On Thu, 25 Apr 2019 at 18:45, Kevin Yao <ah...@gmail.com> wrote:

> Hi Secfree,
>
> Oh I know.
> Perhaps the way you build service.jar is wrong. You should build
> service.jar using *mvn clean install -DskipTests* in griffin directory
> not in service directory. Just I try to build and deploy and curl
> http://localhost:8080/. Everything goes well. You can refer to this link
> https://github.com/apache/griffin/blob/0636440e072c3ca1fc26d707a8db360f1d35adb7/griffin-doc/dev/dev-env-build.md#deploy-on-docker-container
> .
>
> Thanks,
> Kevin
>
> On Thu, Apr 25, 2019 at 6:19 PM Secfree Teng <se...@gmail.com>
> wrote:
>
>> Append the output of visiting "/api/v1/version"
>>
>> [image: image.png]
>>
>> On Thu, 25 Apr 2019 at 18:09, Secfree Teng <se...@gmail.com>
>> wrote:
>>
>>> Hi Kevin,
>>>
>>> Understand that.
>>> Actually, I am visiting Griffin with my IP address and port.
>>> So what I mean is access “http://$griffin_hostname:$port/“ does not
>>> return the UI page but some error information.
>>>
>>> The following response is the output of executing “curl
>>> http://localhost:8080/“ from the docker container
>>>
>>> {"timestamp":1556186732194,"status":404,"error":"Not Found","message":"No message available","path":"/"}
>>>
>>> I want to confirm that if the latest Griffin version supports UI or just
>>> REST API?
>>> Thank you.
>>>
>>>
>>> On Thu, 25 Apr 2019 at 18:04, Kevin Yao <ah...@gmail.com> wrote:
>>>
>>>> Hi Secfree,
>>>>
>>>> As far as I know, Griffin does not support this link
>>>> http://griffin:port/. Its homepage is http://localhost:8080/.
>>>>
>>>> Thanks,
>>>> Kevin
>>>>
>>>> On Thu, Apr 25, 2019 at 5:59 PM Secfree Teng <se...@gmail.com>
>>>> wrote:
>>>>
>>>>> Hi Kevin,
>>>>>
>>>>> Just as I said
>>>>>
>>>>> But access the APIs under “/api/v1/“ is OK.
>>>>>
>>>>> Access “/api/v1/version” returns successfully.
>>>>>
>>>>> Thank you for your reply.
>>>>>
>>>>> On Thu, 25 Apr 2019 at 17:46, Kevin Yao <ah...@gmail.com>
>>>>> wrote:
>>>>>
>>>>>> Hi Secfree,
>>>>>>
>>>>>> Could you try to access  *http://localhost:8080/api/v1/version
>>>>>> <http://localhost:8080/api/v1/version> *access in your local browser
>>>>>> or *http://localhost:38080/api/v1/version
>>>>>> <http://localhost:38080/api/v1/version>  *in docker? If they're all
>>>>>> unavailable, you'd better check whether service.jar runs using *ps
>>>>>> -ef | grep service* in your docker.
>>>>>>
>>>>>> Thanks,
>>>>>> Kevin
>>>>>>
>>>>>> On Thu, Apr 25, 2019 at 10:27 AM Secfree Teng <se...@gmail.com>
>>>>>> wrote:
>>>>>>
>>>>>>> Hi all,
>>>>>>>
>>>>>>> I replaced the “service.jar” in the docker container from the image
>>>>>>> “apachegriffin/griffin_spark2:0.3.0”. The new “service.jar” is from the
>>>>>>> source code of master/griffin-0.5.0 branch. After restarting the service,
>>>>>>> access the Griffin host “http://griffin:port/“ returns
>>>>>>>
>>>>>>> Whitelabel Error Page
>>>>>>> This application has no explicit mapping for /error, so you are seeing this as a fallback.
>>>>>>>
>>>>>>> Thu Apr 25 02:11:33 UTC 2019
>>>>>>> There was an unexpected error (type=Not Found, status=404).
>>>>>>> No message available
>>>>>>>
>>>>>>> But access the APIs under “/api/v1/“ is OK.
>>>>>>>
>>>>>>> Does the latest version support UI? Or I’ve done something wrong.
>>>>>>>
>>>>>>> Thank you.
>>>>>>>
>>>>>>

Re: Use the latest "service" version caused "This application has no explicit mapping for /error"

Posted by Kevin Yao <ah...@gmail.com>.
Hi Secfree,

Oh I know.
Perhaps the way you build service.jar is wrong. You should build
service.jar using *mvn clean install -DskipTests* in griffin directory not
in service directory. Just I try to build and deploy and curl
http://localhost:8080/. Everything goes well. You can refer to this link
https://github.com/apache/griffin/blob/0636440e072c3ca1fc26d707a8db360f1d35adb7/griffin-doc/dev/dev-env-build.md#deploy-on-docker-container
.

Thanks,
Kevin

On Thu, Apr 25, 2019 at 6:19 PM Secfree Teng <se...@gmail.com> wrote:

> Append the output of visiting "/api/v1/version"
>
> [image: image.png]
>
> On Thu, 25 Apr 2019 at 18:09, Secfree Teng <se...@gmail.com> wrote:
>
>> Hi Kevin,
>>
>> Understand that.
>> Actually, I am visiting Griffin with my IP address and port.
>> So what I mean is access “http://$griffin_hostname:$port/“ does not
>> return the UI page but some error information.
>>
>> The following response is the output of executing “curl
>> http://localhost:8080/“ from the docker container
>>
>> {"timestamp":1556186732194,"status":404,"error":"Not Found","message":"No message available","path":"/"}
>>
>> I want to confirm that if the latest Griffin version supports UI or just
>> REST API?
>> Thank you.
>>
>>
>> On Thu, 25 Apr 2019 at 18:04, Kevin Yao <ah...@gmail.com> wrote:
>>
>>> Hi Secfree,
>>>
>>> As far as I know, Griffin does not support this link
>>> http://griffin:port/. Its homepage is http://localhost:8080/.
>>>
>>> Thanks,
>>> Kevin
>>>
>>> On Thu, Apr 25, 2019 at 5:59 PM Secfree Teng <se...@gmail.com>
>>> wrote:
>>>
>>>> Hi Kevin,
>>>>
>>>> Just as I said
>>>>
>>>> But access the APIs under “/api/v1/“ is OK.
>>>>
>>>> Access “/api/v1/version” returns successfully.
>>>>
>>>> Thank you for your reply.
>>>>
>>>> On Thu, 25 Apr 2019 at 17:46, Kevin Yao <ah...@gmail.com> wrote:
>>>>
>>>>> Hi Secfree,
>>>>>
>>>>> Could you try to access  *http://localhost:8080/api/v1/version
>>>>> <http://localhost:8080/api/v1/version> *access in your local browser
>>>>> or *http://localhost:38080/api/v1/version
>>>>> <http://localhost:38080/api/v1/version>  *in docker? If they're all
>>>>> unavailable, you'd better check whether service.jar runs using *ps
>>>>> -ef | grep service* in your docker.
>>>>>
>>>>> Thanks,
>>>>> Kevin
>>>>>
>>>>> On Thu, Apr 25, 2019 at 10:27 AM Secfree Teng <se...@gmail.com>
>>>>> wrote:
>>>>>
>>>>>> Hi all,
>>>>>>
>>>>>> I replaced the “service.jar” in the docker container from the image
>>>>>> “apachegriffin/griffin_spark2:0.3.0”. The new “service.jar” is from the
>>>>>> source code of master/griffin-0.5.0 branch. After restarting the service,
>>>>>> access the Griffin host “http://griffin:port/“ returns
>>>>>>
>>>>>> Whitelabel Error Page
>>>>>> This application has no explicit mapping for /error, so you are seeing this as a fallback.
>>>>>>
>>>>>> Thu Apr 25 02:11:33 UTC 2019
>>>>>> There was an unexpected error (type=Not Found, status=404).
>>>>>> No message available
>>>>>>
>>>>>> But access the APIs under “/api/v1/“ is OK.
>>>>>>
>>>>>> Does the latest version support UI? Or I’ve done something wrong.
>>>>>>
>>>>>> Thank you.
>>>>>>
>>>>>

Re: Use the latest "service" version caused "This application has no explicit mapping for /error"

Posted by Secfree Teng <se...@gmail.com>.
Append the output of visiting "/api/v1/version"

[image: image.png]

On Thu, 25 Apr 2019 at 18:09, Secfree Teng <se...@gmail.com> wrote:

> Hi Kevin,
>
> Understand that.
> Actually, I am visiting Griffin with my IP address and port.
> So what I mean is access “http://$griffin_hostname:$port/“ does not
> return the UI page but some error information.
>
> The following response is the output of executing “curl
> http://localhost:8080/“ from the docker container
>
> {"timestamp":1556186732194,"status":404,"error":"Not Found","message":"No message available","path":"/"}
>
> I want to confirm that if the latest Griffin version supports UI or just
> REST API?
> Thank you.
>
>
> On Thu, 25 Apr 2019 at 18:04, Kevin Yao <ah...@gmail.com> wrote:
>
>> Hi Secfree,
>>
>> As far as I know, Griffin does not support this link http://griffin:port/.
>> Its homepage is http://localhost:8080/.
>>
>> Thanks,
>> Kevin
>>
>> On Thu, Apr 25, 2019 at 5:59 PM Secfree Teng <se...@gmail.com>
>> wrote:
>>
>>> Hi Kevin,
>>>
>>> Just as I said
>>>
>>> But access the APIs under “/api/v1/“ is OK.
>>>
>>> Access “/api/v1/version” returns successfully.
>>>
>>> Thank you for your reply.
>>>
>>> On Thu, 25 Apr 2019 at 17:46, Kevin Yao <ah...@gmail.com> wrote:
>>>
>>>> Hi Secfree,
>>>>
>>>> Could you try to access  *http://localhost:8080/api/v1/version
>>>> <http://localhost:8080/api/v1/version> *access in your local browser
>>>> or *http://localhost:38080/api/v1/version
>>>> <http://localhost:38080/api/v1/version>  *in docker? If they're all
>>>> unavailable, you'd better check whether service.jar runs using *ps -ef
>>>> | grep service* in your docker.
>>>>
>>>> Thanks,
>>>> Kevin
>>>>
>>>> On Thu, Apr 25, 2019 at 10:27 AM Secfree Teng <se...@gmail.com>
>>>> wrote:
>>>>
>>>>> Hi all,
>>>>>
>>>>> I replaced the “service.jar” in the docker container from the image
>>>>> “apachegriffin/griffin_spark2:0.3.0”. The new “service.jar” is from the
>>>>> source code of master/griffin-0.5.0 branch. After restarting the service,
>>>>> access the Griffin host “http://griffin:port/“ returns
>>>>>
>>>>> Whitelabel Error Page
>>>>> This application has no explicit mapping for /error, so you are seeing this as a fallback.
>>>>>
>>>>> Thu Apr 25 02:11:33 UTC 2019
>>>>> There was an unexpected error (type=Not Found, status=404).
>>>>> No message available
>>>>>
>>>>> But access the APIs under “/api/v1/“ is OK.
>>>>>
>>>>> Does the latest version support UI? Or I’ve done something wrong.
>>>>>
>>>>> Thank you.
>>>>>
>>>>

Re: Use the latest "service" version caused "This application has no explicit mapping for /error"

Posted by Secfree Teng <se...@gmail.com>.
Hi Kevin,

Understand that.
Actually, I am visiting Griffin with my IP address and port.
So what I mean is access “http://$griffin_hostname:$port/“ does not return
the UI page but some error information.

The following response is the output of executing “curl
http://localhost:8080/“ from the docker container

{"timestamp":1556186732194,"status":404,"error":"Not
Found","message":"No message available","path":"/"}

I want to confirm that if the latest Griffin version supports UI or just
REST API?
Thank you.


On Thu, 25 Apr 2019 at 18:04, Kevin Yao <ah...@gmail.com> wrote:

> Hi Secfree,
>
> As far as I know, Griffin does not support this link http://griffin:port/.
> Its homepage is http://localhost:8080/.
>
> Thanks,
> Kevin
>
> On Thu, Apr 25, 2019 at 5:59 PM Secfree Teng <se...@gmail.com>
> wrote:
>
>> Hi Kevin,
>>
>> Just as I said
>>
>> But access the APIs under “/api/v1/“ is OK.
>>
>> Access “/api/v1/version” returns successfully.
>>
>> Thank you for your reply.
>>
>> On Thu, 25 Apr 2019 at 17:46, Kevin Yao <ah...@gmail.com> wrote:
>>
>>> Hi Secfree,
>>>
>>> Could you try to access  *http://localhost:8080/api/v1/version
>>> <http://localhost:8080/api/v1/version> *access in your local browser or *http://localhost:38080/api/v1/version
>>> <http://localhost:38080/api/v1/version>  *in docker? If they're all
>>> unavailable, you'd better check whether service.jar runs using *ps -ef
>>> | grep service* in your docker.
>>>
>>> Thanks,
>>> Kevin
>>>
>>> On Thu, Apr 25, 2019 at 10:27 AM Secfree Teng <se...@gmail.com>
>>> wrote:
>>>
>>>> Hi all,
>>>>
>>>> I replaced the “service.jar” in the docker container from the image
>>>> “apachegriffin/griffin_spark2:0.3.0”. The new “service.jar” is from the
>>>> source code of master/griffin-0.5.0 branch. After restarting the service,
>>>> access the Griffin host “http://griffin:port/“ returns
>>>>
>>>> Whitelabel Error Page
>>>> This application has no explicit mapping for /error, so you are seeing this as a fallback.
>>>>
>>>> Thu Apr 25 02:11:33 UTC 2019
>>>> There was an unexpected error (type=Not Found, status=404).
>>>> No message available
>>>>
>>>> But access the APIs under “/api/v1/“ is OK.
>>>>
>>>> Does the latest version support UI? Or I’ve done something wrong.
>>>>
>>>> Thank you.
>>>>
>>>

Re: Use the latest "service" version caused "This application has no explicit mapping for /error"

Posted by Kevin Yao <ah...@gmail.com>.
Hi Secfree,

As far as I know, Griffin does not support this link http://griffin:port/.
Its homepage is http://localhost:8080/.

Thanks,
Kevin

On Thu, Apr 25, 2019 at 5:59 PM Secfree Teng <se...@gmail.com> wrote:

> Hi Kevin,
>
> Just as I said
>
> But access the APIs under “/api/v1/“ is OK.
>
> Access “/api/v1/version” returns successfully.
>
> Thank you for your reply.
>
> On Thu, 25 Apr 2019 at 17:46, Kevin Yao <ah...@gmail.com> wrote:
>
>> Hi Secfree,
>>
>> Could you try to access  *http://localhost:8080/api/v1/version
>> <http://localhost:8080/api/v1/version> *access in your local browser or *http://localhost:38080/api/v1/version
>> <http://localhost:38080/api/v1/version>  *in docker? If they're all
>> unavailable, you'd better check whether service.jar runs using *ps -ef |
>> grep service* in your docker.
>>
>> Thanks,
>> Kevin
>>
>> On Thu, Apr 25, 2019 at 10:27 AM Secfree Teng <se...@gmail.com>
>> wrote:
>>
>>> Hi all,
>>>
>>> I replaced the “service.jar” in the docker container from the image
>>> “apachegriffin/griffin_spark2:0.3.0”. The new “service.jar” is from the
>>> source code of master/griffin-0.5.0 branch. After restarting the service,
>>> access the Griffin host “http://griffin:port/“ returns
>>>
>>> Whitelabel Error Page
>>> This application has no explicit mapping for /error, so you are seeing this as a fallback.
>>>
>>> Thu Apr 25 02:11:33 UTC 2019
>>> There was an unexpected error (type=Not Found, status=404).
>>> No message available
>>>
>>> But access the APIs under “/api/v1/“ is OK.
>>>
>>> Does the latest version support UI? Or I’ve done something wrong.
>>>
>>> Thank you.
>>>
>>

Re: Use the latest "service" version caused "This application has no explicit mapping for /error"

Posted by Secfree Teng <se...@gmail.com>.
Hi Kevin,

Just as I said

But access the APIs under “/api/v1/“ is OK.

Access “/api/v1/version” returns successfully.

Thank you for your reply.

On Thu, 25 Apr 2019 at 17:46, Kevin Yao <ah...@gmail.com> wrote:

> Hi Secfree,
>
> Could you try to access  *http://localhost:8080/api/v1/version
> <http://localhost:8080/api/v1/version> *access in your local browser or *http://localhost:38080/api/v1/version
> <http://localhost:38080/api/v1/version>  *in docker? If they're all
> unavailable, you'd better check whether service.jar runs using *ps -ef |
> grep service* in your docker.
>
> Thanks,
> Kevin
>
> On Thu, Apr 25, 2019 at 10:27 AM Secfree Teng <se...@gmail.com>
> wrote:
>
>> Hi all,
>>
>> I replaced the “service.jar” in the docker container from the image
>> “apachegriffin/griffin_spark2:0.3.0”. The new “service.jar” is from the
>> source code of master/griffin-0.5.0 branch. After restarting the service,
>> access the Griffin host “http://griffin:port/“ returns
>>
>> Whitelabel Error Page
>> This application has no explicit mapping for /error, so you are seeing this as a fallback.
>>
>> Thu Apr 25 02:11:33 UTC 2019
>> There was an unexpected error (type=Not Found, status=404).
>> No message available
>>
>> But access the APIs under “/api/v1/“ is OK.
>>
>> Does the latest version support UI? Or I’ve done something wrong.
>>
>> Thank you.
>>
>

Re: Use the latest "service" version caused "This application has no explicit mapping for /error"

Posted by Kevin Yao <ah...@gmail.com>.
Hi Secfree,

Could you try to access  *http://localhost:8080/api/v1/version
<http://localhost:8080/api/v1/version> *access in your local browser
or *http://localhost:38080/api/v1/version
<http://localhost:38080/api/v1/version>  *in docker? If they're all
unavailable, you'd better check whether service.jar runs using *ps -ef |
grep service* in your docker.

Thanks,
Kevin

On Thu, Apr 25, 2019 at 10:27 AM Secfree Teng <se...@gmail.com>
wrote:

> Hi all,
>
> I replaced the “service.jar” in the docker container from the image
> “apachegriffin/griffin_spark2:0.3.0”. The new “service.jar” is from the
> source code of master/griffin-0.5.0 branch. After restarting the service,
> access the Griffin host “http://griffin:port/“ returns
>
> Whitelabel Error Page
> This application has no explicit mapping for /error, so you are seeing this as a fallback.
>
> Thu Apr 25 02:11:33 UTC 2019
> There was an unexpected error (type=Not Found, status=404).
> No message available
>
> But access the APIs under “/api/v1/“ is OK.
>
> Does the latest version support UI? Or I’ve done something wrong.
>
> Thank you.
>