java.lang.NullPointerException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • h3. Problem After changing a non-Service Desk type project to Service Desk type, the Customer Portal and some administrative functionalities like email requests page will not load !helpcenter.PNG|thumbnail! h3. Steps to Reproduce # Select a Software project. # Go to {{Project administration > Summary}}. # Click on the *Actions* button and select *Change project type*. # Change the project type to _Service Desk_. # Click on some administrative functionalities like *Email requests*. h3. Expected Result User will be able to see the email request image, the description of what Email requests is and a link to *Add an email address* h3. Actual Result * There is a spinner showing the page is loading but the page will not be loaded * In the log or the Network tab from the browser console, the error below can be found: {code:java} java.lang.NullPointerException at com.atlassian.servicedesk.internal.feature.customer.request.requesttype.RequestTypeFieldQStore.getRequestTypeFields(RequestTypeFieldQStore.java:100) at com.atlassian.servicedesk.internal.feature.customer.request.requesttype.RequestTypeFieldQStore.access$000(RequestTypeFieldQStore.java:26) at com.atlassian.servicedesk.internal.feature.customer.request.requesttype.RequestTypeFieldQStore$1.apply(RequestTypeFieldQStore.java:42) at com.atlassian.servicedesk.internal.feature.customer.request.requesttype.RequestTypeFieldQStore$1.apply(RequestTypeFieldQStore.java:35) at com.atlassian.pocketknife.internal.querydsl.QueryFactoryImpl.fetch(QueryFactoryImpl.java:75) at com.atlassian.servicedesk.internal.feature.customer.request.requesttype.RequestTypeFieldQStore.getAllRequestTypeFieldsForPortalWithoutFieldValues(RequestTypeFieldQStore.java:35) at com.atlassian.servicedesk.internal.feature.customer.request.requesttype.field.RequestTypeFieldManager.getAllRequestTypeFieldsForPortalWithoutFieldValues(RequestTypeFieldManager.scala:59) at com.atlassian.servicedesk.internal.feature.emailchannel.emailplatform.EmailPlatformChannelUtils.getFirstSuitableRequestType(EmailPlatformChannelUtils.scala:122) at com.atlassian.servicedesk.internal.feature.emailchannel.emailplatform.EmailPlatformChannelManagerImpl.getFirstSuitableRequestType(EmailPlatformChannelManagerImpl.scala:147) at com.atlassian.servicedesk.internal.feature.emailchannel.EmailChannelManagerDelegator.getFirstSuitableRequestType(EmailChannelManagerDelegator.scala:59) at com.atlassian.servicedesk.internal.feature.emailchannel.EmailChannelManagerImpl.hasSuitableRequestTypeForEmail(EmailChannelManagerImpl.java:57) ... {code} h3. Workaround (!) Always back up your data before performing any modifications to the database. If possible, test any insert, update, or delete SQL commands on a staging server first. # Identify any fields without field order using SQL query below. There should be at least one result returns. {{select * from <schema name>."AO_54307E_VIEWPORTFIELD" where "FIELD_ORDER" is null;}} # Update the field order using SQL query below: {{update <schema name>."AO_54307E_VIEWPORTFIELD" SET "FIELD_ORDER" = "ID" where "FIELD_ORDER" is null;}} # Restart JIRA.
    via by Michelle Chin [Atlassian],
    • java.lang.NullPointerException at com.atlassian.servicedesk.internal.feature.customer.request.requesttype.RequestTypeFieldQStore.getRequestTypeFields(RequestTypeFieldQStore.java:100) at com.atlassian.servicedesk.internal.feature.customer.request.requesttype.RequestTypeFieldQStore.access$000(RequestTypeFieldQStore.java:26) at com.atlassian.servicedesk.internal.feature.customer.request.requesttype.RequestTypeFieldQStore$1.apply(RequestTypeFieldQStore.java:42) at com.atlassian.servicedesk.internal.feature.customer.request.requesttype.RequestTypeFieldQStore$1.apply(RequestTypeFieldQStore.java:35) at com.atlassian.pocketknife.internal.querydsl.QueryFactoryImpl.fetch(QueryFactoryImpl.java:75) at com.atlassian.servicedesk.internal.feature.customer.request.requesttype.RequestTypeFieldQStore.getAllRequestTypeFieldsForPortalWithoutFieldValues(RequestTypeFieldQStore.java:35) at com.atlassian.servicedesk.internal.feature.customer.request.requesttype.field.RequestTypeFieldManager.getAllRequestTypeFieldsForPortalWithoutFieldValues(RequestTypeFieldManager.scala:59) at com.atlassian.servicedesk.internal.feature.emailchannel.emailplatform.EmailPlatformChannelUtils.getFirstSuitableRequestType(EmailPlatformChannelUtils.scala:122) at com.atlassian.servicedesk.internal.feature.emailchannel.emailplatform.EmailPlatformChannelManagerImpl.getFirstSuitableRequestType(EmailPlatformChannelManagerImpl.scala:147) at com.atlassian.servicedesk.internal.feature.emailchannel.EmailChannelManagerDelegator.getFirstSuitableRequestType(EmailChannelManagerDelegator.scala:59) at com.atlassian.servicedesk.internal.feature.emailchannel.EmailChannelManagerImpl.hasSuitableRequestTypeForEmail(EmailChannelManagerImpl.java:57)
    No Bugmate found.