From where i can get AuthenticationFault Exception jar? - authentication

Hi I am authenticating alfresco using WebServiceFactory.setEndpointAddress but i am getting following error:
No exception of type AuthenticationFault can be thrown; an exception type must be a subclass of Throwable
Anyone can help me with this?

It's part of the org.alfresco.webservice.authentication package within the alfresco-web-service-client-3.2.jar.
As to why your authentication is failing, make sure you put the webserviceclient.properties file in the alfresco folder. Alfresco reads this property repository.location=http://localhost:8080/alfresco/api.
Check their SDK for more elaborated sample codes.

Related

avatservice returns nullpointer exception in JIRA 6.4

For our project tab panel plugin, we are using AvatarService to show avatar of the assigned user for an issue. Until 6.3.9 it was working fine, but now after upgrading to 6.4.1 it seems to break and throws null pointer exception.
I'm obtaining AvatarService from TabPanel class's constructor and passing it to velocity in params.
But when the tab panel is loaded I get this error in the page's source:
org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getAvatarUrlNoPermCheck' in class com.atlassian.jira.avatar.AvatarServiceImpl threw exception java.lang.NullPointerException at shared/Panel.vm.
What could be wrong? Please help
Take a look it may be the same root cause:
The Base URL has been improperly specified.
Confirm that the Base URL in Configuring JIRA Options is the exact
same URL that you use to access the JIRA instance.

Maven GAE Plugin using Google Cloud SQL

Good morning,
I am trying to local test my web application, which makes use of:
Spring (core + MVC)
Google AppEngine
Google Cloud SQL
Hibernate
In this page https://developers.google.com/cloud-sql/docs/developers_guide_java Google explains how to make the hello world run, and that's right.
I deploy to AppEngine with no problems.
The next need is testing on the local system, with a local standard mysql instance and that document goes ahead in the explanation. You can give your local access credentials by command-line or by Google Eclipse Plugin.
But I am using the Maven GAE Plugin http://www.kindleit.net/maven_gae_plugin/ and simple mvn gae:run ends up with this error:
Cannot resolve reference to bean 'mySessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mySessionFactory' defined in ServletContext resource [/WEB-INF/spring/root-context.xml]: Invocation of init method failed; nested exception is java.lang.IllegalStateException: System property rdbms.driver must be set.:
java.lang.IllegalStateException: System property rdbms.driver must be set.
at com.google.appengine.api.rdbms.dev.LocalRdbmsServiceLocalDriver.registerDriver(LocalRdbmsServiceLocalDriver.java:80)
That's a pretty descriptive error, so I desperately tried:
mvn gae:run -Drdbms.server=local -Drdbms.driver=com.mysql.jdbc.Driver -Drdbms.url=jdbc:mysql://localhost:3306/prova?user=root&password=pass
... with no result! :-(
Help! O.O
Solved using plugin's jvmFlags

Magento Soap Interface, Invalid WSDL

I am having a problem where the soap interface to Magento (http://172.16.0.119/index.php/api/v2_soap?wsdl) is generating invalid wsdl. When I try to generate a proxy using visual studio I get an error that there are several elements declared more than once in the document for example
Source: Line: 44 Column: 4 Validation Error: The global element
'http://schemas.xmlsoap.org/soap/encoding/:Array' has already been
declared
I thought that perhaps I had something corrupted in my magento install as I have several plugins and such running, so I done a fresh install of magneto 1.6.1 with no plugins or anything. I still receive this error. Has anybody else had this problem? How did you resolve it?
Thanks in advance.
There is a setting within the admin module that allows you to set the WS-I (http://en.wikipedia.org/wiki/Web_Services_Interoperability) Compliance flag to True. I was receiving a number of issues with VS2010 and the Magento API until I changed this flag.
It can be found in System -> Configuration -> Services -> Magento Core API
Hope this helps.

Mondrian Can't find Schema in VFS when used in a Webapp

I have a webapp that I'm trying to use Mondrian within. And I'm getting the following exception when I try to open a connection:
Caused by: mondrian.olap.MondrianException: Mondrian Error:Internal error: Virtual file is not readable: /WEB-INF/olap/mycube.xml
I have tested this cube using a plain J2SE program from the command line, and it works fine. However, when I tried to execute the same cube in my web application I get the error above. My connect string is the following:
jdbc:mondrian:Jdbc=jdbc:mysql://${server.db.host}/HRWarehouse?user=${server.db.username}&password=${server.db.password};Catalog=/WEB-INF/olap/mycube.xml;
This is very similar to what I've found in the Mondrian web application. However, somehow that application has installed the ServletContext in the VFS, but there is exactly zero documentation out there that I can find through google about any sort of special configuration for mondrian in a web application.
I have worked around the issue by setting the path to the schema to be absolute reference instead of relative to webapp context. While this has allowed me to continue testing it is not a suitable solution to the problem. I'm looking for a answer on how to that fix the exception that allows a webapp context relative URL.
I think you need to specify the work file in the Catalog,
`jdbc:mondrian:Jdbc=jdbc:mysql://${server.db.host}/HRWarehouse?user=${server.db.username}&password=${server.db.password};Catalog=file:/path/to/schema.xml;`
I cant recall if it was absolute path or not, try both again.
I would also double check the connection string just to make sure it's written properly. Also, here is a link that might end up helpful if you don't have it already.
Update
Try to add jndi:/ at the beggining of your path:
jndi:/localhost/path/to/file.xml

how to solve Error #2044: Unhandled IOErrorEvent:. text=Error #2035: URL Not Found?

I have created application, it showing this error message during initialization (Error #2044: Unhandled IOErrorEvent:. text=Error #2035: URL Not Found.),how to fix it?
thank's in advance.....
Without more information I cannot provide a definitive answer - but it's more than likely the path for some resources needed for your Flex application are incorrect. Can you provide any more details? Double check all of your paths.