Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

Network error EREENTERED means?

What is the exact scenario where you are getting this error?
Stating from API reference....................
This problem will occur if your app attempt to re-enter ISHELL_Notify(). If a call to ISHELL_Notify() is made from within a current notification (for ex, calling ISHELL_Notify() from within the EVT_NOTIFY event handler of the app).

What is the exact scenario where you are getting this error?
Stating from API reference....................
This problem will occur if your app attempt to re-enter ISHELL_Notify(). If a call to ISHELL_Notify() is made from within a current notification (for ex, calling ISHELL_Notify() from within the EVT_NOTIFY event handler of the app).

When I start the application request is send to server.Using Poxy setting given by the client
Poxy setting is this.
awo[i].nId = WEBOPT_PROXYSPEC;
awo[i].pVal = (void *)"http:///http://proxy.mymts.in:4128";
and url xyz.
Response is Error Code 23= EREENTERED getting.

When I start the application request is send to server.Using Poxy setting given by the client
Poxy setting is this.
awo[i].nId = WEBOPT_PROXYSPEC;
awo[i].pVal = (void *)"http:///http://proxy.mymts.in:4128";
and url xyz.
Response is Error Code 23= EREENTERED getting.

I couldn't get anything out of it...Is it possible for you to share/attach the code? This error typically occurs if app already holds the resource like lock/notification and tries to gain it again.

I couldn't get anything out of it...Is it possible for you to share/attach the code? This error typically occurs if app already holds the resource like lock/notification and tries to gain it again.

Plz check the code Sending Requet to server using following code
WebCleanup();
if(SUCCESS!=(iRet=WebAllocations(pszURL)))
{
return iRet;
}
if(SUCCESS != ISHELL_CreateInstance(m_pIShell,AEECLSID_WEB, (void**)(&m_pIWeb)))
{
return iRet = ERRORMEMORY;
}
//#ifdef AEE_SIMULATOR
// Initialize the IWeb with a few options
//{
int i = 0;
WebOpt awo[4];
awo[i].nId = WEBOPT_PROXYSPEC;
awo[i].pVal = (void *)"http:///http://proxy.mymts.in:4128";
i++;
awo[i].nId = WEBOPT_USERAGENT;
awo[i].pVal = (void*)"FOO_HEADERS_536_OR_SO_PAD";
i++;
// Marks the end of the array of WebOpts
awo[i].nId = WEBOPT_END;
IWEB_AddOpt(m_pIWeb,awo);
// }
//#else //for device
// Initialize the IWeb with a few options
//#endif
#ifdef _DEBUG
MakeLog("Proxy URL");
MakeLog((char*)awo[0].pVal);
MakeLog("\n");
#endif
int nContentLength=0;
if (POST==iWebOptMethod && NULL!=pszPostData)
{
ISourceUtil *pisu = NULL;
if(SUCCESS != ISHELL_CreateInstance(m_pIShell,AEECLSID_SOURCEUTIL,(void **)&pisu))
{
WebCleanup();
return ENOMEMORY;
}
nContentLength=STRLEN(pszPostData);
m_pszPostData = (char*)STRDUP(pszPostData);
ISOURCEUTIL_PeekFromMemory(pisu, m_pszPostData ,nContentLength,0,0, &m_pipPostData);
ISOURCEUTIL_Release(pisu);
}
//Initialise the Callback
CALLBACK_Init(&m_Callback,(PFNNOTIFY)WebResponse,this);
//Start Connection Timeout Timer
//int iConnTimeout = 60;//default
//m_pListener->GetTimeOut(&iConnTimeout);
//ISHELL_SetTimer (m_pIShell,CONNECTION_TIMEOUT,(PFNNOTIFY)WebStatusTimerEnds,(void *)this);
ISHELL_SetTimer (m_pIShell,WEB_CONNECTION_TIMEOUT,(PFNNOTIFY)WebStatusTimerEnds,(void *)this);
//////////////////
if (POST==iWebOptMethod && (IPeek *)0 != m_pipPostData)
{//POST Request
IWEB_GetResponse(m_pIWeb,
(m_pIWeb, &m_pIWebResp, &m_Callback, m_pszURL,
WEBOPT_USERAGENT,FOO_HEADERS_536_OR_SO_PAD,
WEBOPT_HANDLERDATA, this,
WEBOPT_HEADER,"Content-Type:text/plain\r\n",
WEBOPT_HEADERHANDLER, NULL,//WebAction_Header,
WEBOPT_STATUSHANDLER, NULL,//WebAction_Status,
WEBOPT_METHOD, "POST",
WEBOPT_BODY, m_pipPostData,
WEBOPT_CONTENTLENGTH, nContentLength,
WEBOPT_END));
}
else
{//GET Request
IWEB_GetResponse(m_pIWeb,
(m_pIWeb, &m_pIWebResp, &m_Callback, m_pszURL,
WEBOPT_USERAGENT,FOO_HEADERS_536_OR_SO_PAD,
WEBOPT_HANDLERDATA, this,
WEBOPT_HEADER, "X-Method: GET\r\n",
//WEBOPT_HEADERHANDLER, NULL,//WebAction_Header,
WEBOPT_HEADERHANDLER,(PFNWEBHEADER) ResponseHeaderNotifiy,
//WEBOPT_STATUSHANDLER, NULL,//WebAction_Status,
//WEBOPT_METHOD, "GET",
WEBOPT_END));
}
m_iConnState = CONN_LIVE;
Error code 23=EREENTERED get in responce

Plz check the code Sending Requet to server using following code
WebCleanup();
if(SUCCESS!=(iRet=WebAllocations(pszURL)))
{
return iRet;
}
if(SUCCESS != ISHELL_CreateInstance(m_pIShell,AEECLSID_WEB, (void**)(&m_pIWeb)))
{
return iRet = ERRORMEMORY;
}
//#ifdef AEE_SIMULATOR
// Initialize the IWeb with a few options
//{
int i = 0;
WebOpt awo[4];
awo[i].nId = WEBOPT_PROXYSPEC;
awo[i].pVal = (void *)"http:///http://proxy.mymts.in:4128";
i++;
awo[i].nId = WEBOPT_USERAGENT;
awo[i].pVal = (void*)"FOO_HEADERS_536_OR_SO_PAD";
i++;
// Marks the end of the array of WebOpts
awo[i].nId = WEBOPT_END;
IWEB_AddOpt(m_pIWeb,awo);
// }
//#else //for device
// Initialize the IWeb with a few options
//#endif
#ifdef _DEBUG
MakeLog("Proxy URL");
MakeLog((char*)awo[0].pVal);
MakeLog("\n");
#endif
int nContentLength=0;
if (POST==iWebOptMethod && NULL!=pszPostData)
{
ISourceUtil *pisu = NULL;
if(SUCCESS != ISHELL_CreateInstance(m_pIShell,AEECLSID_SOURCEUTIL,(void **)&pisu))
{
WebCleanup();
return ENOMEMORY;
}
nContentLength=STRLEN(pszPostData);
m_pszPostData = (char*)STRDUP(pszPostData);
ISOURCEUTIL_PeekFromMemory(pisu, m_pszPostData ,nContentLength,0,0, &m_pipPostData);
ISOURCEUTIL_Release(pisu);
}
//Initialise the Callback
CALLBACK_Init(&m_Callback,(PFNNOTIFY)WebResponse,this);
//Start Connection Timeout Timer
//int iConnTimeout = 60;//default
//m_pListener->GetTimeOut(&iConnTimeout);
//ISHELL_SetTimer (m_pIShell,CONNECTION_TIMEOUT,(PFNNOTIFY)WebStatusTimerEnds,(void *)this);
ISHELL_SetTimer (m_pIShell,WEB_CONNECTION_TIMEOUT,(PFNNOTIFY)WebStatusTimerEnds,(void *)this);
//////////////////
if (POST==iWebOptMethod && (IPeek *)0 != m_pipPostData)
{//POST Request
IWEB_GetResponse(m_pIWeb,
(m_pIWeb, &m_pIWebResp, &m_Callback, m_pszURL,
WEBOPT_USERAGENT,FOO_HEADERS_536_OR_SO_PAD,
WEBOPT_HANDLERDATA, this,
WEBOPT_HEADER,"Content-Type:text/plain\r\n",
WEBOPT_HEADERHANDLER, NULL,//WebAction_Header,
WEBOPT_STATUSHANDLER, NULL,//WebAction_Status,
WEBOPT_METHOD, "POST",
WEBOPT_BODY, m_pipPostData,
WEBOPT_CONTENTLENGTH, nContentLength,
WEBOPT_END));
}
else
{//GET Request
IWEB_GetResponse(m_pIWeb,
(m_pIWeb, &m_pIWebResp, &m_Callback, m_pszURL,
WEBOPT_USERAGENT,FOO_HEADERS_536_OR_SO_PAD,
WEBOPT_HANDLERDATA, this,
WEBOPT_HEADER, "X-Method: GET\r\n",
//WEBOPT_HEADERHANDLER, NULL,//WebAction_Header,
WEBOPT_HEADERHANDLER,(PFNWEBHEADER) ResponseHeaderNotifiy,
//WEBOPT_STATUSHANDLER, NULL,//WebAction_Status,
//WEBOPT_METHOD, "GET",
WEBOPT_END));
}
m_iConnState = CONN_LIVE;
Error code 23=EREENTERED get in responce

I guess timer is doing something wrong. What you are doing in WebStatusTimerEnds? Try removing timer. What is purpose of timer?

I guess timer is doing something wrong. What you are doing in WebStatusTimerEnds? Try removing timer. What is purpose of timer?

Callback function for Timer set on web status screen so as to take appropriate
action when the response is not received till the specified time.

Callback function for Timer set on web status screen so as to take appropriate
action when the response is not received till the specified time.

I think port "4128" is wrong .. check that..

I think port "4128" is wrong .. check that..

other application is working fine.

other application is working fine.

Just compare both the files(running vs this one), you will get the difference.
But I guess check the port details. It should be "3128". check and update..

Just compare both the files(running vs this one), you will get the difference.
But I guess check the port details. It should be "3128". check and update..

yes i used 3128 port only. there was mistake in posting here. But i am not getting request on my server using the code. Other apps are working fine. pls help

yes i used 3128 port only. there was mistake in posting here. But i am not getting request on my server using the code. Other apps are working fine. pls help

thanks for help. Application is working fine ..
some changes do on IWEB_GetResponse method pass
IWEB_GetResponse method
// WEBOPT_METHOD, "GET", comment this option and
WEBOPT_HEADERHANDLER,(PFNWEBHEADER) ResponseHeaderNotifiy
pass this.

thanks for help. Application is working fine ..
some changes do on IWEB_GetResponse method pass
IWEB_GetResponse method
// WEBOPT_METHOD, "GET", comment this option and
WEBOPT_HEADERHANDLER,(PFNWEBHEADER) ResponseHeaderNotifiy
pass this.