every request gets thrown twice

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
13 messages Options
Reply | Threaded
Open this post in threaded view
|

every request gets thrown twice

sashash77
Hello,I added new simple application (under /applications) to search for parties.Everything works fine except the fact that every request gets thrown twice.Could you help to figure out why this happening (wrong controller.xml? or something else?)Thank you,Alex
_________________________________________________________________
Explore the seven wonders of the world
http://search.msn.com/results.aspx?q=7+wonders+world&mkt=en-US&form=QBRE
Reply | Threaded
Open this post in threaded view
|

Re: every request gets thrown twice

cjhowe
You may want to give a little more detail about your problem...What
request...what's the request-uri definition...are you clicking the link
twice...etc
--- Alex Shevchuk <[hidden email]> wrote:

> Hello,I added new simple application (under /applications) to search
> for parties.Everything works fine except the fact that every request
> gets thrown twice.Could you help to figure out why this happening
> (wrong controller.xml? or something else?)Thank you,Alex
> _________________________________________________________________
> Explore the seven wonders of the world
>
http://search.msn.com/results.aspx?q=7+wonders+world&mkt=en-US&form=QBRE

Reply | Threaded
Open this post in threaded view
|

Re: every request gets thrown twice

Jacques Le Roux
Administrator
In reply to this post by sashash77
Alex,

In order to help you need to give use more informations, snippets of the
log regarding your problem for instance

Jacques

Hello,I added new simple application (under /applications) to search for
parties.Everything works fine except the fact that every request gets
thrown twice.Could you help to figure out why this happening (wrong
controller.xml? or something else?)Thank you,Alex

Reply | Threaded
Open this post in threaded view
|

RE: every request gets thrown twice

Tim McGuire-2
I was experiencing this exact same thing.  It turned out to be triggered
by blank values for IMG SRC="" tags in my .ftl page.  ofbiz was trying
to load the same page again as a result of this blank attribute

Once I removed all the src="", the problem went away.  There might be
similar behavior in other tags with blank resource attributes.

Tim McGuire
Integral Business Solutions
phone: (651) 259-1008  

> -----Original Message-----
> From: Jacques Le Roux [mailto:[hidden email]]
> Sent: Monday, April 30, 2007 1:16 AM
> To: [hidden email]
> Subject: Re: every request gets thrown twice
>
> Alex,
>
> In order to help you need to give use more informations,
> snippets of the log regarding your problem for instance
>
> Jacques
>
> Hello,I added new simple application (under /applications) to
> search for parties.Everything works fine except the fact that
> every request gets thrown twice.Could you help to figure out
> why this happening (wrong controller.xml? or something
> else?)Thank you,Alex
>
>
Reply | Threaded
Open this post in threaded view
|

RE: every request gets thrown twice

sashash77
In reply to this post by sashash77
Here're steps i did:- copied the whole ecommerce application, put it under /applications/test,so web.xml, controller.xml are the same (except mount point/dispatcher name)- added new screen, wired  request-view in controller.xml, like     <request-map uri="test">        <security https="false" auth="false"/>        <response name="success" type="view" value="test"/>        <response name="error" type="view" value="error"/>    </request-map>    <view-map name="test" type="screen" page="component://test/widget/CommonScreens.xml#test"/>- when i click any link on screen once, 2 threads (Processor9/10) are working on the same request:384342 (http-0.0.0.0-8081-Processor10) [     ControlServlet.java:98 :INFO ] 384342 (http-0.0.0.0-8081-Processor10) [     ControlServlet.java:134:DEBUG] [[[test] Servlet Starting, doing setup- total:0.0,since last(Begin):0.0]]384342 (http-0.0.0.0-8081-Processor10) [     ControlServlet.java:183:DEBUG] [[[test] Setup done, doing Event(s) and View(s)- total:0.0,since last([ctg] Servlet Sta...):0.0]]384342 (http-0.0.0.0-8081-Processor10) [     RequestHandler.java:212:INFO ] [Processing Request]: test384561 (http-0.0.0.0-8081-Processor10) [     RequestHandler.java:395:INFO ] [RequestHandler.doRequest]: Response is a view.384561 (http-0.0.0.0-8081-Processor10) [     RequestHandler.java:547:INFO ] servletName=control, view=test..385702 (http-0.0.0.0-8081-Processor10) [     ControlServlet.java:258:DEBUG] [[[test] Done rendering page, Servlet Finished- total:1.36,since last([test] Setup done,...):1.36]]385842 (http-0.0.0.0-8081-Processor9) [     ControlServlet.java:98 :INFO ] 385842 (http-0.0.0.0-8081-Processor9) [     ControlServlet.java:134:DEBUG] [[[test] Servlet Starting, doing setup- total:0.0,since last(Begin):0.0]]385842 (http-0.0.0.0-8081-Processor9) [     ControlServlet.java:183:DEBUG] [[[test] Setup done, doing Event(s) and View(s)- total:0.0,since last([ctg] Servlet Sta...):0.0]]385842 (http-0.0.0.0-8081-Processor9) [     RequestHandler.java:212:INFO ] [Processing Request]: ctg385842 (http-0.0.0.0-8081-Processor9) [     RequestHandler.java:395:INFO ] [RequestHandler.doRequest]: Response is a view.385858 (http-0.0.0.0-8081-Processor9) [     RequestHandler.java:547:INFO ] servletName=control, view=test..386046 (http-0.0.0.0-8081-Processor9) [     ControlServlet.java:258:DEBUG] [[[test] Done rendering page, Servlet Finished- total:0.204,since last([test] Setup done,...):0.204]]Thanks,Alex> Date: Mon, 30 Apr 2007 08:16:04 +0200> From: [hidden email]> Subject: Re: every request gets thrown twice> To: [hidden email]> > Alex,> > In order to help you need to give use more informations, snippets of the> log regarding your problem for instance> > Jacques> > Hello,I added new simple application (under /applications) to search for> parties.Everything works fine except the fact that every request gets> thrown twice.Could you help to figure out why this happening (wrong> controller.xml? or something else?)Thank you,Alex>
_________________________________________________________________
News, entertainment and everything you care about at Live.com. Get it now!
http://www.live.com/getstarted.aspx
Reply | Threaded
Open this post in threaded view
|

RE: every request gets thrown twice

sashash77
In reply to this post by sashash77
Tim, thank you for solution.I have img src="" within js file, so fixing path solved the issue.Alex> Subject: RE: every request gets thrown twice> Date: Mon, 30 Apr 2007 11:33:47 -0500> From: [hidden email]> To: [hidden email]; [hidden email]> > I was experiencing this exact same thing.  It turned out to be triggered> by blank values for IMG SRC="" tags in my .ftl page.  ofbiz was trying> to load the same page again as a result of this blank attribute> > Once I removed all the src="", the problem went away.  There might be> similar behavior in other tags with blank resource attributes.> > Tim McGuire> Integral Business Solutions> phone: (651) 259-1008  > > > -----Original Message-----> > From: Jacques Le Roux [mailto:[hidden email]] > > Sent: Monday, April 30, 2007 1:16 AM> > To: [hidden email]> > Subject: Re: every request gets thrown twice> > > > Alex,> > > > In order to help you need to give use more informations, > > snippets of the log regarding your problem for instance> > > > Jacques> > > > Hello,I added new simple application (under /applications) to > > search for parties.Everything works fine except the fact that > > every request gets thrown twice.Could you help to figure out > > why this happening (wrong controller.xml? or something > > else?)Thank you,Alex> > > >
_________________________________________________________________
Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy!
http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us
Reply | Threaded
Open this post in threaded view
|

Re: every request gets thrown twice

Jacques Le Roux
Administrator
In reply to this post by sashash77
Alex,

Did you try Tim McGuire's tip ?

BTW your msg is hardly readable :(

Jacques


----- Message d'origine -----
De : "Alex Shevchuk" <[hidden email]>
À : <[hidden email]>
Envoyé : lundi 30 avril 2007 19:22
Objet : RE: every request gets thrown twice


Here're steps i did:- copied the whole ecommerce application, put it
under /applications/test,so web.xml, controller.xml are the same (except
mount point/dispatcher name)- added new screen, wired  request-view in
controller.xml, like     <request-map uri="test">        <security
https="false" auth="false"/>        <response name="success" type="view"
value="test"/>        <response name="error" type="view" value="error"/>
</request-map>    <view-map name="test" type="screen"
page="component://test/widget/CommonScreens.xml#test"/>- when i click
any link on screen once, 2 threads (Processor9/10) are working on the
same request:384342 (http-0.0.0.0-8081-Processor10) [
ControlServlet.java:98 :INFO ] 384342 (http-0.0.0.0-8081-Processor10)
[     ControlServlet.java:134:DEBUG] [[[test] Servlet Starting, doing
setup- total:0.0,since last(Begin):0.0]]384342
(http-0.0.0.0-8081-Processor10) [     ControlServlet.java:183:DEBUG]
[[[test] Setup done, doing Event(s) and View(s)- total:0.0,since
last([ctg] Servlet Sta...):0.0]]384342 (http-0.0.0.0-8081-Processor10)
[     RequestHandler.java:212:INFO ] [Processing Request]: test384561
(http-0.0.0.0-8081-Processor10) [     RequestHandler.java:395:INFO ]
[RequestHandler.doRequest]: Response is a view.384561
(http-0.0.0.0-8081-Processor10) [     RequestHandler.java:547:INFO ]
servletName=control, view=test..385702 (http-0.0.0.0-8081-Processor10)
[     ControlServlet.java:258:DEBUG] [[[test] Done rendering page,
Servlet Finished- total:1.36,since last([test] Setup
done,...):1.36]]385842 (http-0.0.0.0-8081-Processor9) [
ControlServlet.java:98 :INFO ] 385842 (http-0.0.0.0-8081-Processor9)
[     ControlServlet.java:134:DEBUG] [[[test] Servlet Starting, doing
setup- total:0.0,since last(Begin):0.0]]385842
(http-0.0.0.0-8081-Processor9) [     ControlServlet.java:183:DEBUG]
[[[test] Setup done, doing Event(s) and View(s)- total:0.0,since
last([ctg] Servlet Sta...):0.0]]385842 (http-0.0.0.0-8081-Processor9)
[     RequestHandler.java:212:INFO ] [Processing Request]: ctg385842
(http-0.0.0.0-8081-Processor9) [     RequestHandler.java:395:INFO ]
[RequestHandler.doRequest]: Response is a view.385858
(http-0.0.0.0-8081-Processor9) [     RequestHandler.java:547:INFO ]
servletName=control, view=test..386046 (http-0.0.0.0-8081-Processor9)
[     ControlServlet.java:258:DEBUG] [[[test] Done rendering page,
Servlet Finished- total:0.204,since last([test] Setup
done,...):0.204]]Thanks,Alex> Date: Mon, 30 Apr 2007 08:16:04 +0200>
From: [hidden email]> Subject: Re: every request gets
thrown twice> To: [hidden email]> > Alex,> > In order to help you
need to give use more informations, snippets of the> log regarding your
problem for instance> > Jacques> > Hello,I added new simple application
(under /applications) to search for> parties.Everything works fine
except the fact that every request gets> thrown twice.Could you help to
figure out why this happening (wrong> controller.xml? or something
else?)Thank you,Alex>
_________________________________________________________________
News, entertainment and everything you care about at Live.com. Get it
now!
http://www.live.com/getstarted.aspx

Reply | Threaded
Open this post in threaded view
|

RE: every request gets thrown twice

sashash77
In reply to this post by sashash77
Thank you guys for solution.Tim McGuire's tip worked very well.I have img src="" within js file. so fixing path solved the issue.Thanks, Alex> Date: Tue, 1 May 2007 09:58:03 +0200> From: [hidden email]> Subject: Re: every request gets thrown twice> To: [hidden email]> > Alex,> > Did you try Tim McGuire's tip ?> > BTW your msg is hardly readable :(> > Jacques> > > ----- Message d'origine ----- > De : "Alex Shevchuk" <[hidden email]>> À : <[hidden email]>> Envoyé : lundi 30 avril 2007 19:22> Objet : RE: every request gets thrown twice> > > Here're steps i did:- copied the whole ecommerce application, put it> under /applications/test,so web.xml, controller.xml are the same (except> mount point/dispatcher name)- added new screen, wired  request-view in> controller.xml, like     <request-map uri="test">        <security> https="false" auth="false"/>        <response name="success" type="view"> value="test"/>        <response name="error" type="view" value="error"/>> </request-map>    <view-map name="test" type="screen"> page="component://test/widget/CommonScreens.xml#test"/>- when i click> any link on screen once, 2 threads (Processor9/10) are working on the> same request:384342 (http-0.0.0.0-8081-Processor10) [> ControlServlet.java:98 :INFO ] 384342 (http-0.0.0.0-8081-Processor10)> [     ControlServlet.java:134:DEBUG] [[[test] Servlet Starting, doing> setup- total:0.0,since last(Begin):0.0]]384342> (http-0.0.0.0-8081-Processor10) [     ControlServlet.java:183:DEBUG]> [[[test] Setup done, doing Event(s) and View(s)- total:0.0,since> last([ctg] Servlet Sta...):0.0]]384342 (http-0.0.0.0-8081-Processor10)> [     RequestHandler.java:212:INFO ] [Processing Request]: test384561> (http-0.0.0.0-8081-Processor10) [     RequestHandler.java:395:INFO ]> [RequestHandler.doRequest]: Response is a view.384561> (http-0.0.0.0-8081-Processor10) [     RequestHandler.java:547:INFO ]> servletName=control, view=test..385702 (http-0.0.0.0-8081-Processor10)> [     ControlServlet.java:258:DEBUG] [[[test] Done rendering page,> Servlet Finished- total:1.36,since last([test] Setup> done,...):1.36]]385842 (http-0.0.0.0-8081-Processor9) [> ControlServlet.java:98 :INFO ] 385842 (http-0.0.0.0-8081-Processor9)> [     ControlServlet.java:134:DEBUG] [[[test] Servlet Starting, doing> setup- total:0.0,since last(Begin):0.0]]385842> (http-0.0.0.0-8081-Processor9) [     ControlServlet.java:183:DEBUG]> [[[test] Setup done, doing Event(s) and View(s)- total:0.0,since> last([ctg] Servlet Sta...):0.0]]385842 (http-0.0.0.0-8081-Processor9)> [     RequestHandler.java:212:INFO ] [Processing Request]: ctg385842> (http-0.0.0.0-8081-Processor9) [     RequestHandler.java:395:INFO ]> [RequestHandler.doRequest]: Response is a view.385858> (http-0.0.0.0-8081-Processor9) [     RequestHandler.java:547:INFO ]> servletName=control, view=test..386046 (http-0.0.0.0-8081-Processor9)> [     ControlServlet.java:258:DEBUG] [[[test] Done rendering page,> Servlet Finished- total:0.204,since last([test] Setup> done,...):0.204]]Thanks,Alex> Date: Mon, 30 Apr 2007 08:16:04 +0200>> From: [hidden email]> Subject: Re: every request gets> thrown twice> To: [hidden email]> > Alex,> > In order to help you> need to give use more informations, snippets of the> log regarding your> problem for instance> > Jacques> > Hello,I added new simple application> (under /applications) to search for> parties.Everything works fine> except the fact that every request gets> thrown twice.Could you help to> figure out why this happening (wrong> controller.xml? or something> else?)Thank you,Alex>> _________________________________________________________________> News, entertainment and everything you care about at Live.com. Get it> now!> http://www.live.com/getstarted.aspx>
_________________________________________________________________
Explore the seven wonders of the world
http://search.msn.com/results.aspx?q=7+wonders+world&mkt=en-US&form=QBRE
Reply | Threaded
Open this post in threaded view
|

OT: Re: every request gets thrown twice NOW: broken emailer

Walter Vaughan
In reply to this post by Jacques Le Roux
Jacques Le Roux wrote:

> Alex,
> BTW your msg is hardly readable :(

It's coming in as Content-Type: multipart/alternative; without any alternative
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
inside the boundary, thus qualifying as the most broken mailer in the planet.

Perhaps this is the Gates way of hijacking RFC's. "What you can't read my email?
   It reads fine in Outlook."

Some mailing lists I am on automatically reject html formatted email, and I
don't think it's bad policy.

--
Walter
Reply | Threaded
Open this post in threaded view
|

problem stopping ofbiz server

peter-230
Hi,


Has anyone ever had a problem stopping the ofbiz.server before...this is the
error message.
 

meranda:/usr/local/opentaps/pilot# ./stopofbiz.sh
Set OFBIZ_HOME to - /usr/local/opentaps/pilot
Exception in thread "main" java.net.ConnectException: Connection refused
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
        at
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
        at java.net.Socket.connect(Socket.java:452)
        at java.net.Socket.connect(Socket.java:402)
        at java.net.Socket.<init>(Socket.java:309)
        at java.net.Socket.<init>(Socket.java:153)
        at org.ofbiz.base.start.Start.sendSocketCommand(Start.java:363)
        at org.ofbiz.base.start.Start.shutdown(Start.java:347)
        at org.ofbiz.base.start.Start.main(Start.java:409)


 
Thanks & Regards,

Peter



Reply | Threaded
Open this post in threaded view
|

Re: problem stopping ofbiz server

BJ Freeman
have your made any changes to the config or sh files


[hidden email] sent the following on 5/1/2007 1:57 PM:

> Hi,
>
>
> Has anyone ever had a problem stopping the ofbiz.server before...this is the
> error message.
>  
>
> meranda:/usr/local/opentaps/pilot# ./stopofbiz.sh
> Set OFBIZ_HOME to - /usr/local/opentaps/pilot
> Exception in thread "main" java.net.ConnectException: Connection refused
>         at java.net.PlainSocketImpl.socketConnect(Native Method)
>         at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
>         at
> java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
>         at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
>         at java.net.Socket.connect(Socket.java:452)
>         at java.net.Socket.connect(Socket.java:402)
>         at java.net.Socket.<init>(Socket.java:309)
>         at java.net.Socket.<init>(Socket.java:153)
>         at org.ofbiz.base.start.Start.sendSocketCommand(Start.java:363)
>         at org.ofbiz.base.start.Start.shutdown(Start.java:347)
>         at org.ofbiz.base.start.Start.main(Start.java:409)
>
>
>  
> Thanks & Regards,
>
> Peter
>
>
>
>
>
>
Reply | Threaded
Open this post in threaded view
|

RE: problem stopping ofbiz server

peter-230
Hi,

 
I think I will just power cycle the server, this will restore things I
suppose.
 

Thanks & Regards,
 
Peter


-----Original Message-----
From: BJ Freeman [mailto:[hidden email]]
Sent: 02 May 2007 00:13
To: [hidden email]
Subject: Re: problem stopping ofbiz server

have your made any changes to the config or sh files


[hidden email] sent the following on 5/1/2007 1:57 PM:
> Hi,
>
>
> Has anyone ever had a problem stopping the ofbiz.server before...this is
the

> error message.
>  
>
> meranda:/usr/local/opentaps/pilot# ./stopofbiz.sh
> Set OFBIZ_HOME to - /usr/local/opentaps/pilot
> Exception in thread "main" java.net.ConnectException: Connection refused
>         at java.net.PlainSocketImpl.socketConnect(Native Method)
>         at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
>         at
> java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
>         at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
>         at java.net.Socket.connect(Socket.java:452)
>         at java.net.Socket.connect(Socket.java:402)
>         at java.net.Socket.<init>(Socket.java:309)
>         at java.net.Socket.<init>(Socket.java:153)
>         at org.ofbiz.base.start.Start.sendSocketCommand(Start.java:363)
>         at org.ofbiz.base.start.Start.shutdown(Start.java:347)
>         at org.ofbiz.base.start.Start.main(Start.java:409)
>
>
>  
> Thanks & Regards,
>
> Peter
>
>
>
>
>
>

Reply | Threaded
Open this post in threaded view
|

Re: problem stopping ofbiz server

G.Venkata Phanindra
Hi,
I believe the stopping port u r using is being already in use,generally
OFBiz uses port 8009 for stopping the server ... The other way it could be
is OFBiz got stopped but you r trying to stop it again.
Do check the configred values in stopofbiz.sh file

Regards
Phani



On 5/2/07, [hidden email] <[hidden email]> wrote:

>
> Hi,
>
>
> I think I will just power cycle the server, this will restore things I
> suppose.
>
>
> Thanks & Regards,
>
> Peter
>
>
> -----Original Message-----
> From: BJ Freeman [mailto:[hidden email]]
> Sent: 02 May 2007 00:13
> To: [hidden email]
> Subject: Re: problem stopping ofbiz server
>
> have your made any changes to the config or sh files
>
>
> [hidden email] sent the following on 5/1/2007 1:57 PM:
> > Hi,
> >
> >
> > Has anyone ever had a problem stopping the ofbiz.server before...this is
> the
> > error message.
> >
> >
> > meranda:/usr/local/opentaps/pilot# ./stopofbiz.sh
> > Set OFBIZ_HOME to - /usr/local/opentaps/pilot
> > Exception in thread "main" java.net.ConnectException: Connection refused
> >         at java.net.PlainSocketImpl.socketConnect(Native Method)
> >         at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
> >         at
> > java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
> >         at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
> >         at java.net.Socket.connect(Socket.java:452)
> >         at java.net.Socket.connect(Socket.java:402)
> >         at java.net.Socket.<init>(Socket.java:309)
> >         at java.net.Socket.<init>(Socket.java:153)
> >         at org.ofbiz.base.start.Start.sendSocketCommand(Start.java:363)
> >         at org.ofbiz.base.start.Start.shutdown(Start.java:347)
> >         at org.ofbiz.base.start.Start.main(Start.java:409)
> >
> >
> >
> > Thanks & Regards,
> >
> > Peter
> >
> >
> >
> >
> >
> >
>
>


--
G.Venkata Phanindra
Mob:: 9849852989