Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error message when browsing to the detail view of a ticket #453

Closed
gitblit opened this issue Aug 12, 2015 · 11 comments
Closed

Error message when browsing to the detail view of a ticket #453

gitblit opened this issue Aug 12, 2015 · 11 comments

Comments

@gitblit
Copy link
Collaborator

gitblit commented Aug 12, 2015

Originally reported on Google Code with ID 157

What steps will reproduce the problem?
1.Go to the tickets page of a project
2.Click on the title of one ticket

What is the expected output? What do you see instead?
An error page is shown.
The expected behavior was to see the details of a ticket

What version of the product are you using? On what operating system?
1.1.0



Reported by carlosomar2 on 2012-10-31 17:11:40


- _Attachment: [_tickets view.JPG](https://storage.googleapis.com/google-code-attachments/gitblit/issue-157/comment-0/_tickets view.JPG)_ - _Attachment: [tickets view.JPG](https://storage.googleapis.com/google-code-attachments/gitblit/issue-157/comment-0/tickets view.JPG)_
@gitblit
Copy link
Collaborator Author

gitblit commented Aug 12, 2015

I think this has already been fixed on master.  The stacktrace from the console would
be helpful, though.

Reported by James.Moger on 2012-10-31 17:42:09

@gitblit
Copy link
Collaborator Author

gitblit commented Aug 12, 2015

I attach the stack trace 



ERROR Failed to get ticket null
java.lang.NullPointerException
        at com.gitblit.models.TicketModel.<init>(TicketModel.java:52)
        at com.gitblit.utils.TicgitUtils.getTicket(TicgitUtils.java:96)
        at com.gitblit.wicket.pages.TicketPage.<init>(TicketPage.java:40)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

        at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)

        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Sou
rce)
        at java.lang.reflect.Constructor.newInstance(Unknown Source)
        at org.apache.wicket.session.DefaultPageFactory.createPage(DefaultPageFa
ctory.java:188)
        at org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFacto
ry.java:89)
        at org.apache.wicket.request.target.component.BookmarkablePageRequestTar
get.newPage(BookmarkablePageRequestTarget.java:305)
        at org.apache.wicket.request.target.component.BookmarkablePageRequestTar
get.getPage(BookmarkablePageRequestTarget.java:320)
        at org.apache.wicket.request.target.component.BookmarkablePageRequestTar
get.processEvents(BookmarkablePageRequestTarget.java:234)
        at org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents
(AbstractRequestCycleProcessor.java:92)
        at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.j
ava:1279)
        at org.apache.wicket.RequestCycle.step(RequestCycle.java:1358)
        at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1465)
        at org.apache.wicket.RequestCycle.request(RequestCycle.java:545)
        at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:
486)
        at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.ja
va:319)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1323)
        at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java
:476)
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.j
ava:119)
        at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.jav
a:517)
        at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandl
er.java:225)
        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandl
er.java:937)
        at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:
406)
        at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandle
r.java:183)
        at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandle
r.java:871)
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.j
ava:117)
        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper
.java:110)
        at org.eclipse.jetty.server.Server.handle(Server.java:346)
        at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.
java:589)
        at org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete
(HttpConnection.java:1048)
        at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:601)
        at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:214)

        at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:41
1)
        at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEn
dPoint.java:535)
        at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEnd
Point.java:40)
        at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool
.java:529)
        at java.lang.Thread.run(Unknown Source)
ERROR Can't instantiate page using constructor public com.gitblit.wicket.pages.T
icketPage(org.apache.wicket.PageParameters) and argument r = "VisualBasicApp.git
" h = "1351638944_change-the-background-color-to-lightblue_493"
org.apache.wicket.WicketRuntimeException: Can't instantiate page using construct
or public com.gitblit.wicket.pages.TicketPage(org.apache.wicket.PageParameters)
and argument r = "VisualBasicApp.git" h = "1351638944_change-the-background-colo
r-to-lightblue_493"
        at org.apache.wicket.session.DefaultPageFactory.createPage(DefaultPageFa
ctory.java:212)
        at org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFacto
ry.java:89)
        at org.apache.wicket.request.target.component.BookmarkablePageRequestTar
get.newPage(BookmarkablePageRequestTarget.java:305)
        at org.apache.wicket.request.target.component.BookmarkablePageRequestTar
get.getPage(BookmarkablePageRequestTarget.java:320)
        at org.apache.wicket.request.target.component.BookmarkablePageRequestTar
get.processEvents(BookmarkablePageRequestTarget.java:234)
        at org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents
(AbstractRequestCycleProcessor.java:92)
        at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.j
ava:1279)
        at org.apache.wicket.RequestCycle.step(RequestCycle.java:1358)
        at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1465)
        at org.apache.wicket.RequestCycle.request(RequestCycle.java:545)
        at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:
486)
        at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.ja
va:319)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1323)
        at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java
:476)
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.j
ava:119)
        at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.jav
a:517)
        at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandl
er.java:225)
        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandl
er.java:937)
        at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:
406)
        at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandle
r.java:183)
        at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandle
r.java:871)
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.j
ava:117)
        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper
.java:110)
        at org.eclipse.jetty.server.Server.handle(Server.java:346)
        at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.
java:589)
        at org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete
(HttpConnection.java:1048)
        at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:601)
        at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:214)

        at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:41
1)
        at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEn
dPoint.java:535)
        at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEnd
Point.java:40)
        at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool
.java:529)
        at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

        at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)

        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Sou
rce)
        at java.lang.reflect.Constructor.newInstance(Unknown Source)
        at org.apache.wicket.session.DefaultPageFactory.createPage(DefaultPageFa
ctory.java:188)
        ... 32 more
Caused by: java.lang.NullPointerException
        at com.gitblit.wicket.pages.TicketPage.<init>(TicketPage.java:42)
        ... 37 more

Reported by carlosomar2 on 2012-10-31 19:05:05

@gitblit
Copy link
Collaborator Author

gitblit commented Aug 12, 2015

Huh.  Looks like I noticed the break, but forgot to fix it.  At the moment you are out
of luck unless you want to live dangerously and build from master - once I commit the
fix.  :(

And honestly, the future availability of ticgit integration is not promising.

Reported by James.Moger on 2012-10-31 19:28:04

  • Status changed: Accepted
  • Labels added: Milestone-1.2.0

@gitblit
Copy link
Collaborator Author

gitblit commented Aug 12, 2015

I think I will keep using GitBlit as it is. I was looking at the ticgit project and
it looks they have issues maintaining it. Also, it doesn't support milestones as of
now and that's usually a big requirement. I also saw a branch in your repo that has
some code for ticketing. I wonder how stable that is.

Reported by carlosomar2 on 2012-10-31 19:30:41

@gitblit
Copy link
Collaborator Author

gitblit commented Aug 12, 2015

That branch was integrated into master last Feb.  It has, IMO, a superior distributed
mechanism compared to ticgit for handling tickets and attachments - but it is inflexible
at the moment (can't define status, milestones, etc) and has no UI.

I'd like Gitblit to be a little more like Fossil but I just haven't gotten there yet.

Reported by James.Moger on 2012-10-31 19:39:41

@gitblit
Copy link
Collaborator Author

gitblit commented Aug 12, 2015

I was reviewing fossil since I didn't know it and it looks quite interesting. Too bad
is not that well known as Git. Having the repo, documentation and tickets is pretty
much what most of the devs -I believe- need. I like that idea. Great work with GitBlit

Reported by carlosomar2 on 2012-10-31 21:17:09

@gitblit
Copy link
Collaborator Author

gitblit commented Aug 12, 2015

Fossil is pretty cool.  But very much not mainstream.  Another interesting one is Veracity.

I fixed your ticgit bug on master, FWIW.

Reported by James.Moger on 2012-11-01 03:19:41

  • Status changed: Queued

@gitblit
Copy link
Collaborator Author

gitblit commented Aug 12, 2015

Would your new system be stored in the Git repo itself or would it be yet another system?
What I like about GitBlit so far is that its just GitBlit + Git, nothing else... that's
its strength as far as I'm concerned.

Reported by martijn.niji on 2012-11-13 15:06:38

@gitblit
Copy link
Collaborator Author

gitblit commented Aug 12, 2015

It is based on an orphan branch design like TicGit, Ditz, etc.  So yes, it is just Git.
 :)  Of course there are many challenges once you go that route, but nothing that is
insurmountable.

Reported by James.Moger on 2012-11-13 15:25:17

@gitblit
Copy link
Collaborator Author

gitblit commented Aug 12, 2015

Glad to hear it.

By the way: I *LOVE* GitBlit. :) Its my kinda application (K.I.S.S.)

Reported by martijn.niji on 2012-11-13 16:14:07

@gitblit
Copy link
Collaborator Author

gitblit commented Aug 12, 2015

v1.2.0 has been deployed.

Reported by James.Moger on 2013-01-01 01:06:26

  • Status changed: Fixed

@gitblit gitblit closed this as completed Aug 12, 2015
@flaix flaix modified the milestone: 1.2.0 Dec 13, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants