You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@ace.apache.org by Bulu <bu...@romandie.com> on 2014/11/03 17:21:11 UTC

Unable to log in on server-allinone

Hi all

I try to run a server-allinone on my server.
I'm binding to an alternative port (9090) and starting as user tomcat6.
My start command is
   sudo -u tomcat6 /opt/oracle/java/jre1.8.0_25/bin/java 
-Dorg.apache.ace.server.port=9090 -Dorg.osgi.service.http.port=9090 -jar 
server-allinone.jar

It starts correctly and the login dialog shows. When I enter the 
defaults (user:d, pass:f), the following happens:
- the login dialog shows "Invalid username or password"
- in the greyed background, the ACE UI with the 4 columns etc loads, but 
cannot be accessed as the modal login dialog is in front.

If I enter the credentials again, the UI gets duplicated (now has twice 
all buttons and twice the 4 columns) and I also get the following exception


[Warn ] [059]org.osgi.service.event.EventHandler: EventAdmin: Exception 
during event dispatch [org.osgi.service.event.Event 
[topic=org/apache/ace/client/repository/public/RepositoryAdmin/LOGIN] | 
[org.osgi.service.event.EventHandler] | 
Bundle(org.apache.ace.webui.vaadin [59])]
java.lang.IllegalStateException: This operation requires a user to be 
logged in.
     at 
org.apache.ace.client.repository.impl.RepositoryAdminImpl.ensureLogin(RepositoryAdminImpl.java:466)
     at 
org.apache.ace.client.repository.impl.RepositoryAdminImpl.isModified(RepositoryAdminImpl.java:354)
     at 
org.apache.ace.webui.vaadin.component.MainActionToolbar.handleEvent(MainActionToolbar.java:299)
     at 
org.apache.felix.eventadmin.impl.tasks.HandlerTaskImpl.execute(HandlerTaskImpl.java:88)
     at 
org.apache.felix.eventadmin.impl.tasks.SyncDeliverTasks.execute(SyncDeliverTasks.java:221)
     at 
org.apache.felix.eventadmin.impl.tasks.AsyncDeliverTasks$TaskExecuter.run(AsyncDeliverTasks.java:110)
     at 
EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown Source)
     at java.lang.Thread.run(Thread.java:745)


What am I doing wrong?

Thanks & regards
    Philipp

Re: Kick ACE agent

Posted by Jan Willem Janssen <ja...@luminis.eu>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Philipp,

On 20/11/14 09:48, Bulu wrote:
> Is it possible to kick the ACE agent to perform a sync/update when
> one wants (eg. through gogo shell). This would allow me to keep the
> auto sync time long, but still manually trigger an update when I
> know it is needed.

Sounds like a very legitimate use case, and perfectly feasible with
Apache ACE. The easiest way to solve this is to create a custom Gogo
command that uses the DeploymentHandler from ACE's AgentControl
service to do the upgrade. To get an idea of how the implementation
might look like, take a look at the `checkForUpdate` method in [1]
(which takes an alternative approach by using a custom AgentController).

> Is it possible to associate a description with a target ID. My IDs
> are basically serial numbers, which are not much help to identify
> the target in the Vaadin GUI. A user chosen description would much
> help.

At the moment this is not implemented, simply because we didn't have
any requirements for that. Without any changes in the code, the only
thing you could do is add more information through the tag-editor, but
this still requires you to open up all targets to see what information
is in there. I agree that this might be helpful in case of
non-informative target IDs, so you are welcome to create a JIRA issue
to request this functionality.


1.
http://svn.apache.org/repos/asf/ace/trunk/org.apache.ace.agent.controller.itest/src/org/apache/ace/agent/itest/CustomStandaloneAgentControllerTest.java

- -- 
Met vriendelijke groeten | Kind regards

Jan Willem Janssen | Software Architect
+31 631 765 814

/My world is revolving around INAETICS and Amdatu/

Luminis Technologies B.V.
Churchillplein 1
7314 BZ   Apeldoorn
+31 88 586 46 00

http://www.luminis-technologies.com
http://www.luminis.eu

KvK (CoC) 09 16 28 93
BTW (VAT) NL8169.78.566.B.01
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.22 (Darwin)
Comment: GPGTools - http://gpgtools.org

iQIcBAEBAgAGBQJUbcYRAAoJEKF/mP2eHDc4kMgQAMsD/UkoY+vbh5qxZnrYwIhA
bD8PWWSmy7rKGY/sXpzpNN6naETD5KhLmWKbzE6e+fvp7wn6Rr6zi2t9IHh+4Grg
XFk9VEOIUO9DrJ1rEQdTliDZlYSnltHcGZS5Eh/qtKJ85bhm54OJWUe1fpeNAKbX
Cc2O8EUODaErQ1jeuyKqZ1t2shAFZloz9z34TzxvXmXcbuM32iOgkXxJGuE0zSAW
cKFC0FYwTI+Bq/FG2rgpNvIfjhpKVVYeEFVNQzYbD90/QrU9HyUYfYhTpo4o/eEH
izI/0Ea0KyM053ovq8WmJG55prm+0bewNLMnMIL/EPuHWnVfRsTXn1lqq7ZtTCGn
aOMaHg7gpBK9ZTAFN/3Ty6FdY2WIIa4WFN3ESS6Te7l4lAUJNNyFmxDLMb0XuZJs
c/CyZQOwUU4x1/g9Mno6r78OqeG8WXfTQACHXWxEUhHAhxyGZZnrWBrvxefwfI7O
xeNdIc/2Lm1fcEIBcewD45UqszLUC+0EMfaqwz8QdLfzjRpvneIG7J00qRo2sPti
MAsbOr3U7PBmYY6jhmd6ywTHRLycQJ00vtVxoL6HBtPwiaC4oU6fnAiK2c3lqFQH
mumMNQQ2OKVfcBzMrHqHeY0kR44XNv3PmODSxBSTVM+OtdSbyRf2P/xGpmVytpsM
DDBXzvcahyYMwodeD/kH
=M1tE
-----END PGP SIGNATURE-----

ACE: What ports to open to upload artifacts from BndTools?

Posted by Bulu <bu...@romandie.com>.
Hello

I use the AceObrRepository 1.0.0 plugin to access my ACE repository from 
BndTools.

Lately, I can no longer upload artifacts through this way. The request 
takes long and eventually fails with error

Failed to install one or more bundles
   Failed to add JAR to repository: /path/to/my.jar
   Error importing resource: Unexpected server response: No data 
received from server or forwarder

Using the ACE web interface, I can still drag&drop artifacts and they 
get uploaded successfully.
The upload from BndTools used to work. I'm not sure what I changed, but 
possibly firewall settings.

The config line of the repository plugin is:
org.apache.ace.bnd.repository.AceObrRepository; name=my.test; 
locations=http://test.example.com:9090/obr/repository.xml

Reading from the repository seems to work fine.

What could cause the manual upload to work, while the plugin fails? How 
can I debug this?
In the config above, does everything work over port 9090? TCP only?

Thanks & regards Philipp

Kick ACE agent

Posted by Bulu <bu...@romandie.com>.
Hello ACE users

Is it possible to kick the ACE agent to perform a sync/update when one 
wants (eg. through gogo shell).
This would allow me to keep the auto sync time long, but still manually 
trigger an update when I know it is needed.

Is it possible to associate a description with a target ID. My IDs are 
basically serial numbers, which are not much help to identify the target 
in the Vaadin GUI. A user chosen description would much help.

Thanks Philipp

Re: Unable to log in on server-allinone

Posted by Bulu <bu...@romandie.com>.
Obviously you also need to specify the server with the port:

sudo -u tomcat6 /opt/oracle/java/jre1.8.0_25/bin/java \
-Dorg.apache.ace.server.port=9090 \
-Dorg.osgi.service.http.port=9090 \
-Dorg.apache.ace.server=www.example.com:9090 \
-Dorg.apache.ace.obr=www.example.com:9090 \
-jar server-allinone.jar

Regards Philipp


On 03.11.2014 17:21, Bulu wrote:
> Hi all
>
> I try to run a server-allinone on my server.
> I'm binding to an alternative port (9090) and starting as user tomcat6.
> My start command is
>   sudo -u tomcat6 /opt/oracle/java/jre1.8.0_25/bin/java 
> -Dorg.apache.ace.server.port=9090 -Dorg.osgi.service.http.port=9090 
> -jar server-allinone.jar
>
> It starts correctly and the login dialog shows. When I enter the 
> defaults (user:d, pass:f), the following happens:
> - the login dialog shows "Invalid username or password"
> - in the greyed background, the ACE UI with the 4 columns etc loads, 
> but cannot be accessed as the modal login dialog is in front.
>
> If I enter the credentials again, the UI gets duplicated (now has 
> twice all buttons and twice the 4 columns) and I also get the 
> following exception
>
>
> [Warn ] [059]org.osgi.service.event.EventHandler: EventAdmin: 
> Exception during event dispatch [org.osgi.service.event.Event 
> [topic=org/apache/ace/client/repository/public/RepositoryAdmin/LOGIN] 
> | [org.osgi.service.event.EventHandler] | 
> Bundle(org.apache.ace.webui.vaadin [59])]
> java.lang.IllegalStateException: This operation requires a user to be 
> logged in.
>     at 
> org.apache.ace.client.repository.impl.RepositoryAdminImpl.ensureLogin(RepositoryAdminImpl.java:466)
>     at 
> org.apache.ace.client.repository.impl.RepositoryAdminImpl.isModified(RepositoryAdminImpl.java:354)
>     at 
> org.apache.ace.webui.vaadin.component.MainActionToolbar.handleEvent(MainActionToolbar.java:299)
>     at 
> org.apache.felix.eventadmin.impl.tasks.HandlerTaskImpl.execute(HandlerTaskImpl.java:88)
>     at 
> org.apache.felix.eventadmin.impl.tasks.SyncDeliverTasks.execute(SyncDeliverTasks.java:221)
>     at 
> org.apache.felix.eventadmin.impl.tasks.AsyncDeliverTasks$TaskExecuter.run(AsyncDeliverTasks.java:110)
>     at 
> EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown 
> Source)
>     at java.lang.Thread.run(Thread.java:745)
>
>
> What am I doing wrong?
>
> Thanks & regards
>    Philipp