avatservice returns nullpointer exception in JIRA 6.4 - jira-plugin

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.

Related

From where i can get AuthenticationFault Exception jar?

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.

Glassfish Bean Validation weird error

I am using bean validation in my application. When there is no constraint validation errors everything works nicely. Every time there is a validation error, Glassfish throws the following exception:
Caused by: java.lang.ClassNotFoundException: javax.validation.groups.Default: java.net.MalformedURLException: Unknown protocol: osgi
at com.sun.corba.ee.impl.util.JDKBridge.loadClassM(JDKBridge.java:325)
at com.sun.corba.ee.impl.util.JDKBridge.loadClass(JDKBridge.java:228)
at com.sun.corba.ee.impl.javax.rmi.CORBA.Util.loadClass(Util.java:640)
at com.sun.corba.ee.impl.util.RepositoryId.getClassFromType(RepositoryId.java:628)
at com.sun.corba.ee.impl.orbutil.RepIdDelegator.getClassFromType(RepIdDelegator.java:169)
at com.sun.corba.ee.impl.encoding.CDRInputStream_1_0.readClass(CDRInputStream_1_0.java:1439)
The bean-validation.jar is present in glassfish/modules folder. The startup doesn't throw any exceptions regarding validation.
PS. Note that we are using remote beans with CORBA.
Reproducable on GlassFish 3.1.2.2 and 3.1.1.
I traced this problem to serialization of the ConstraintValidationException through CORBA. Somehow the bean-validation module is not loaded properly with osgi and the javax.validation.groups.Default class is missing. I made a quick workaround so that the ConstraintValidationException is intercepted and never sent through CORBA. Instead the validation error information is gathered in a custom Exception class that can be actually serialized through the services.

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

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

SEVERE: java.lang.NullPointerException

When i try to run my index.jsp page which calls WebClient.jsp page, where i define my InitialContext() method, and implement my Bean in class AccountBean.java shows ..
SEVERE: java.lang.NullPointerException........
I use Glassfish v3, jdk1.6, eclipse Helios.
I can't give too specific an answer, but my recommendation for this issue is to make sure that every object you are trying to use is guaranteed to be pointing to an instance of the object.