Instructables

Draft instructable really messed up

Someone else noticed it first and so I tried it also. I have 2 pending instructables under the draft tab. They show up there just like they should but when I click on them this is what happens:

Please excuse me, that was very impolite! - javax.servlet.ServletException: javax.servlet.jsp.JspException: ServletException in '/common/layout_bootstraped.jspx': ServletException in '/pages/explore/type/instructable_content.jsp': java.lang.reflect.InvocationTargetException

Exception

javax.servlet.jsp.JspException: ServletException in '/common/layout_bootstraped.jspx': ServletException in '/pages/explore/type/instructable_content.jsp': java.lang.reflect.InvocationTargetException
	at org.apache.tiles.taglib.InsertTag$InsertHandler.doEndTag(InsertTag.java:923)
	at org.apache.tiles.taglib.InsertTag.doEndTag(InsertTag.java:457)
	at _jsp._pages._explore._type._instructable__jsp._jspService(_instructable__jsp.java:461)
	at com.caucho.jsp.JavaPage.service(JavaPage.java:60)
	at com.caucho.jsp.Page.pageservice(Page.java:570)
	at com.caucho.server.dispatch.PageFilterChain.doFilter(PageFilterChain.java:179)
	at com.caucho.server.webapp.DispatchFilterChain.doFilter(DispatchFilterChain.java:115)
	at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:229)
	at com.caucho.server.webapp.RequestDispatcherImpl.include(RequestDispatcherImpl.java:485)
	at com.caucho.server.webapp.RequestDispatcherImpl.include(RequestDispatcherImpl.java:350)
	at com.instructables.servlet.ActionServlet.sendToJspPage(ActionServlet.java:331)
	at com.instructables.servlet.ActionServlet.handleResult(ActionServlet.java:248)
	at com.instructables.servlet.ActionServlet.prepare(ActionServlet.java:206)
	at com.instructables.servlet.ActionServlet.doGet(ActionServlet.java:91)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:115)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:92)
	at com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChain.java:106)
	at com.caucho.filters.GzipFilter.doFilter(GzipFilter.java:208)
	at com.instructables.filter.FilterWrapperFilter.doFilter(FilterWrapperFilter.java:47)
	at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:70)
	at com.instructables.filter.HibernateSessionRequestFilter.doFilter(HibernateSessionRequestFilter.java:48)
	at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:70)
	at com.instructables.filter.TemporaryProFilter.doFilter(TemporaryProFilter.java:78)
	at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:70)
	at com.instructables.filter.TemporaryPasswordFilter.doFilter(TemporaryPasswordFilter.java:46)
	at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:70)
	at com.instructables.filter.SecurityFilter.doFilter(SecurityFilter.java:122)
	at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:70)
	at com.instructables.filter.SetupFilter.doFilter(SetupFilter.java:71)
	at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:70)
	at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:173)
	at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:229)
	at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:274)
	at com.caucho.server.port.TcpConnection.run(TcpConnection.java:514)
	at com.caucho.util.ThreadPool.runTasks(ThreadPool.java:527)
	at com.caucho.util.ThreadPool.run(ThreadPool.java:449)
	at java.lang.Thread.run(Thread.java:595)
Caused by: javax.servlet.ServletException: javax.servlet.jsp.JspException: ServletException in '/pages/explore/type/instructable_content.jsp': java.lang.reflect.InvocationTargetException
	at com.caucho.jsp.PageContextImpl.handlePageException(PageContextImpl.java:1120)
	at _jsp._common._layout_0bootstraped__jspx._jspService(_layout_0bootstraped__jspx.java:252)
	at com.caucho.jsp.JavaPage.service(JavaPage.java:60)
	at com.caucho.jsp.Page.pageservice(Page.java:570)
	at com.caucho.server.dispatch.PageFilterChain.doFilter(PageFilterChain.java:179)
	at com.caucho.server.webapp.DispatchFilterChain.doFilter(DispatchFilterChain.java:115)
	at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:229)
	at com.caucho.server.webapp.RequestDispatcherImpl.include(RequestDispatcherImpl.java:485)
	at com.caucho.server.webapp.RequestDispatcherImpl.include(RequestDispatcherImpl.java:350)
	at com.caucho.jsp.PageContextImpl.include(PageContextImpl.java:933)
	at com.caucho.jsp.PageContextImpl.include(PageContextImpl.java:870)
	at org.apache.tiles.TilesUtilImpl.doInclude(TilesUtilImpl.java:143)
	at org.apache.tiles.TilesUtil.doInclude(TilesUtil.java:149)
	at org.apache.tiles.taglib.InsertTag.doInclude(InsertTag.java:760)
	at org.apache.tiles.taglib.InsertTag$InsertHandler.doEndTag(InsertTag.java:892)
	... 36 more
Caused by: javax.servlet.jsp.JspException: ServletException in '/pages/explore/type/instructable_content.jsp': java.lang.reflect.InvocationTargetException
	at org.apache.tiles.taglib.InsertTag$InsertHandler.doEndTag(InsertTag.java:923)
	at org.apache.tiles.taglib.InsertTag.doEndTag(InsertTag.java:457)
	at _jsp._common._layout_0bootstraped__jspx._jspService(_layout_0bootstraped__jspx.java:210)
	... 49 more
Caused by: javax.servlet.ServletException: javax.servlet.jsp.el.ELException: java.lang.reflect.InvocationTargetException
	at com.caucho.jsp.PageContextImpl.handlePageException(PageContextImpl.java:1120)
	at _jsp._pages._explore._type._instructable_0body_0instructable_0bootstrapped__jsp._jspService(_instructable_0body_0instructable_0bootstrapped__jsp.java:199)
	at com.caucho.jsp.JavaPage.service(JavaPage.java:60)
	at com.caucho.jsp.Page.pageservice(Page.java:570)
	at com.caucho.server.dispatch.PageFilterChain.doFilter(PageFilterChain.java:179)
	at com.caucho.server.webapp.DispatchFilterChain.doFilter(DispatchFilterChain.java:115)
	at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:229)
	at com.caucho.server.webapp.RequestDispatcherImpl.include(RequestDispatcherImpl.java:485)
	at com.caucho.server.webapp.RequestDispatcherImpl.include(RequestDispatcherImpl.java:350)
	at com.caucho.jsp.PageContextImpl.include(PageContextImpl.java:933)
	at _jsp._pages._explore._type._instructable_0body_0bootstrapped__jsp._jspService(_instructable_0body_0bootstrapped__jsp.java:43)
	at com.caucho.jsp.JavaPage.service(JavaPage.java:60)
	at com.caucho.jsp.Page.pageservice(Page.java:570)
	at com.caucho.server.dispatch.PageFilterChain.doFilter(PageFilterChain.java:179)
	at com.caucho.server.webapp.DispatchFilterChain.doFilter(DispatchFilterChain.java:115)
	at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:229)
	at com.caucho.server.webapp.RequestDispatcherImpl.include(RequestDispatcherImpl.java:485)
	at com.caucho.server.webapp.RequestDispatcherImpl.include(RequestDispatcherImpl.java:350)
	at com.caucho.jsp.PageContextImpl.include(PageContextImpl.java:933)
	at _jsp._pages._explore._type._instructable_0content__jsp._jspService(_instructable_0content__jsp.java:32)
	at com.caucho.jsp.JavaPage.service(JavaPage.java:60)
	at com.caucho.jsp.Page.pageservice(Page.java:570)
	at com.caucho.server.dispatch.PageFilterChain.doFilter(PageFilterChain.java:179)
	at com.caucho.server.webapp.DispatchFilterChain.doFilter(DispatchFilterChain.java:115)
	at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:229)
	at com.caucho.server.webapp.RequestDispatcherImpl.include(RequestDispatcherImpl.java:485)
	at com.caucho.server.webapp.RequestDispatcherImpl.include(RequestDispatcherImpl.java:350)
	at com.caucho.jsp.PageContextImpl.include(PageContextImpl.java:933)
	at com.caucho.jsp.PageContextImpl.include(PageContextImpl.java:870)
	at org.apache.tiles.TilesUtilImpl.doInclude(TilesUtilImpl.java:143)
	at org.apache.tiles.TilesUtil.doInclude(TilesUtil.java:149)
	at org.apache.tiles.taglib.InsertTag.doInclude(InsertTag.java:760)
	at org.apache.tiles.taglib.InsertTag$InsertHandler.doEndTag(InsertTag.java:892)
	... 51 more
Caused by: javax.servlet.jsp.el.ELException: java.lang.reflect.InvocationTargetException
	at com.caucho.el.StaticMethodExpr.evalMethod(StaticMethodExpr.java:142)
	at com.caucho.el.FunctionExpr.evalObject(FunctionExpr.java:71)
	at _jsp._pages._explore._type._instructable_0body_0instructable_0bootstrapped__jsp._jspService(_instructable_0body_0instructable_0bootstrapped__jsp.java:48)
	... 82 more
Caused by: java.lang.reflect.InvocationTargetException
	at sun.reflect.GeneratedMethodAccessor903.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:592)
	at com.caucho.el.StaticMethodExpr.evalMethod(StaticMethodExpr.java:133)
	... 84 more
Caused by: java.lang.NullPointerException






So either my draft instructables are now gone or you need to fix something with the Java stuff so I can continue to work on them. 

iceng1 year ago
OWwww .... so a great deal of my work and effort on two drafts is now goon
and cut off by an almost invisible image of see the first and
darkened in this pic.

I do have my images and will restart in a year or two
when the will to do returns :-(
default.TINY.pngdefault.TINY2.PNG
Have you checked your draft(s)? They pushed out an update (addressing many things), and my drafts are all working again. Yay! :-)

Thank you Dev Team!!!! :-)
Vyger (author)  canucksgirl1 year ago
I just checked and yes it is fixed now as you said.

Hmmm, there is no button to say "fixed" like there is for "answered".

Vyger (author)  Vyger1 year ago
I see they added back in the pages on the bottom of the answers page. I was beginning to wonder if it was going to be limited to just the first page.
LOL... I see we have a LOT of orange text now too.... :-P
iceng1 year ago
Sorry to hear.

Now I fear to open and and destroy the ones I have worked on for months.

Tell me when it's over.

Please
frenzy iceng1 year ago
test
Nicholas871 year ago
I have the same problem.
I have got two drafts, one opens up fine but the full preview of the second one gives me that. problem is I cannot even make new ones, they all end up like that
Clear your browser cookies and refresh the page, then access your Drafts. I cannot replicate this issue.
See my comment left here

(I'm assuming you are logged in to fb which is why you are avoiding the redirect to the error page).
@canucksgirl
I am not logged in to facebook (I'm not even part of it). On Chrome, FF, and IE I can access my Drafts (and view the drill press project you referenced). But, that doesn't mean that's not the problem! I did notice that in IE I was unable to open my Drafts in a new tab or window. Something starts, but then the tab terminates. Clicking directly on editing a Draft works fine though.

I've already brought this up with our bug squashers when this topic was first started, but will forward your sleuthing along. Thanks for staying on top of it! 
I noticed afterwards that FB didn't make a difference (I thought it might because of the coding). The only thing I'm sure of is the URL in the JS file I referenced. 

I didn't spend more than a few minutes snooping around, but I suspect the initial IF statements are sending most people in the right direction, but for those getting the error, we fall in the ELSE category and are redirected to the error URL (versus the correct URL).

In all cases (ibles, or drafts) the JS coding is exactly the same (with the exception of the URL it redirects to).  
just replicated this now, Cleared Cookies, closed browser (Chrome Version 23.0.1271.64 m, Window 7), opened browser, logged in, went to drafts, clicked on Edit link and got attached error (well select files does not work here either so here is the text) Error says There's been a problem updating your Instructable parsererror SyntaxError: Unexpected token f. When you close that popup you get the stack trace shown above
drmpf drmpf1 year ago
Actually after this pop, webpage shows updating for a looooooong time 5mins and still waiting, to get the stack trace just click on the draft title link
Nicholas871 year ago
Has anybody tried to publish the ibles without watching the preview?
I'm having the same problem. I'm currently using FireFox 16.0.1 on ArchLinux. The same problem also happens on Chromium It also happens on my other computer when using FireFox 16.0.2 on Gentoo Linux.
Michael_oz1 year ago
Same issue.
"
Please excuse me, that was very impolite! - javax.servlet.ServletException: javax.servlet.jsp.JspException: ServletException in '/common/layout_bootstraped.jspx': ServletException in '/pages/explore/type/instructable_content.jsp': java.lang.reflect.InvocationTargetException
Exception

javax.servlet.jsp.JspException: ServletException in '/common/layout_bootstraped.jspx': ServletException in '/pages/explore/type/instructable_content.jsp': java.lang.reflect.InvocationTargetException
at org.apache.tiles.taglib.InsertTag$InsertHandler.doEndTag(InsertTag.java:923)
at org.apache.tiles.taglib.InsertTag.doEndTag(InsertTag.java:457)
at _jsp._pages._explore._type._instructable__jsp._jspService(_instructable__jsp.java:461)
...
... 82 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.GeneratedMethodAccessor588.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:592)
at com.caucho.el.StaticMethodExpr.evalMethod(StaticMethodExpr.java:133)
... 84 more
Caused by: java.lang.NullPointerException
"

New Draft 'ible, basically just a title. Edit is OK, but just clicking on it is not.
Also happens on another one, same, just a title.
W7-Ultimate/64, FF 16.0.2.
me also see detailed reply further down
I tried and cannot replicate this. You may have been trying to access your unpublished projects during a small update, we've been patching up the site since our last release.

Clear your browser's cookies, then refresh the page and try again.
Vyger (author)  mikeasaurus1 year ago
I tried opening them with the edit button as cannucksgirl did and they do open into the edit form. I then did a save, dropped back to the drafts tab and just clicked on the title and the apology opens up again with the same error.
If it makes a difference I have tried 3 different browsers and its the same with all 3.
I just tried using a different computer, my notebook with Win 7 , and it gives me the same error if I click the name but opens if I click the edit button. Tried another browser on that and its the same. Click on the draft's name and you get the error. Click on edit and it opens to the edit screen.
2 different computers, Win XP and Win 7 and 3 browsers and i get the same result on both.
@Vyger, I cannot replicate this. I have tried on different browsers and different approaches to opening a Draft Instructable. Can you create a new Instructable and copy the text over? When you save this new Instructable does it create the same error?
I also tried different browsers and I also cleared cookies and everything.
but the real problem is that I cannot start any new one even if I noticed it happens only with step by step instructables.
If it helps, I had some drafts that I was using to take screenshots and help members in using the site; and of the 2 I have now, one opens fine, but the other gives me the same error (see image). I have cleared the cache, history and do not have any add-ons that would prevent it from opening like it did before. (To clarify, the error appears when opening the draft as an ible, there doesn't seem to be a problem opening it in Edit Mode).

Feel free to do whatever you need to with my 2 drafts. Neither of them need to be saved.

BTW, I still cannot upload images from the comment box (but I can from my YOU page). I sent a bug report the other day about this.
test-broken.jpg
Kiteman1 year ago
The bug-killers will need to know what software you are using (operating system & browser), and the time you tried may also be a factor, if an update was being pushed through at the time.
WWC1 year ago
I just checked mine and they all opened up fine.