ace-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Karl Pauls (JIRA)" <>
Subject [jira] [Commented] (ACE-149) Upload of two bundles with same bsn & version, but different jar name, breaks artifact column
Date Tue, 07 Jun 2011 20:35:58 GMT


Karl Pauls commented on ACE-149:

After looking into this a bit more I don't think there is an easy fix for it. We seem to have
failed to find a well working unique identity schema that we apply consistently across our
handling of artifacts. Unfortunately, this adds up to the problem we see. In a nutshell, the
ui uses the name of the artifact as id, the artifact repo uses the url, the helpers some combinations
out of symbolic name, version, and url, and the obr does use a combination out of the file
name and the symbolic name and version. On top, this obviously only applies to bundles and
other artifacts are handled differently. So what happens is that while a duplicated bundle
gets added to the obr, you can't see it afterwords in the repository.xml and worth, the ui
will get it from the artifact repo but as the name is the same it gets back a null from the
table lookup -- hence, the exception.

I assigned the issue to me for now and will try to come-up with a better way to handle the
identities and implement it. However, its going to take me while. For now, there is a workaround
namely, delete one of the jars from the "store" folder that the obr uses to put the bundles
in. That should make things work again (again, i'll try to get back to this asap).

> Upload of two bundles with same bsn & version, but different jar name, breaks artifact
> ---------------------------------------------------------------------------------------------
>                 Key: ACE-149
>                 URL:
>             Project: Ace
>          Issue Type: Bug
>          Components: Web UI
>    Affects Versions: 0.8.0
>            Reporter: Angelo van der Sijpt
>            Assignee: Karl Pauls
> Scenario:
> - upload a bundle,
> - click 'store',
> - upload the same bundle, but with a different jar name,
> - click 'store', click 'retrieve'
> This 'breaks' the artifact column in such a way that no new bundles can be added anymore.
> com.vaadin.event.ListenerMethod$MethodException
> Cause: java.lang.NullPointerException
> 	at com.vaadin.event.ListenerMethod.receiveEvent(
> 	at com.vaadin.event.EventRouter.fireEvent(
> 	at com.vaadin.ui.AbstractComponent.fireEvent(
> 	at com.vaadin.ui.Button.fireClick(
> 	at com.vaadin.ui.Button.changeVariables(
> 	at com.vaadin.terminal.gwt.server.AbstractCommunicationManager.handleVariableBurst(
> 	at com.vaadin.terminal.gwt.server.AbstractCommunicationManager.handleVariables(
> 	at com.vaadin.terminal.gwt.server.AbstractCommunicationManager.doHandleUidlRequest(
> 	at com.vaadin.terminal.gwt.server.CommunicationManager.handleUidlRequest(
> 	at com.vaadin.terminal.gwt.server.AbstractApplicationServlet.service(
> 	at javax.servlet.http.HttpServlet.service(
> 	at org.mortbay.jetty.servlet.ServletHolder.handle(
> 	at org.mortbay.jetty.servlet.ServletHandler.handle(
> 	at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.handle(
> 	at org.mortbay.jetty.servlet.SessionHandler.handle(
> 	at org.mortbay.jetty.handler.ContextHandler.handle(
> 	at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.handle(
> 	at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(
> 	at org.mortbay.jetty.handler.HandlerWrapper.handle(
> 	at org.mortbay.jetty.Server.handle(
> 	at org.mortbay.jetty.HttpConnection.handleRequest(
> 	at org.mortbay.jetty.HttpConnection$RequestHandler.content(
> 	at org.mortbay.jetty.HttpParser.parseNext(
> 	at org.mortbay.jetty.HttpParser.parseAvailable(
> 	at org.mortbay.jetty.HttpConnection.handle(
> 	at
> 	at org.mortbay.thread.QueuedThreadPool$
> Caused by: java.lang.NullPointerException
> 	at org.apache.ace.webui.vaadin.VaadinClient$12.add(
> 	at org.apache.ace.webui.vaadin.VaadinClient$12.populate(
> 	at org.apache.ace.webui.vaadin.VaadinClient.updateTableData(
> 	at org.apache.ace.webui.vaadin.VaadinClient.access$1500(
> 	at org.apache.ace.webui.vaadin.VaadinClient$9.buttonClick(
> 	at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> 	at java.lang.reflect.Method.invoke(Unknown Source)
> 	at com.vaadin.event.ListenerMethod.receiveEvent(
> 	... 26 more

This message is automatically generated by JIRA.
For more information on JIRA, see:

View raw message