java.lang.NullPointerException

Atlassian JIRA | Michelle Chin [Atlassian] | 4 months ago
  1. 0

    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.

    Atlassian JIRA | 4 months ago | Michelle Chin [Atlassian]
    java.lang.NullPointerException
  2. 0

    Android: Saving Map State in Google map

    Stack Overflow | 11 months ago | Junie Negentien
    java.lang.RuntimeException: Unable to resume activity {com.ourThesis.junieNegentien2015/com.ourThesis.junieNegentien2015.MainActivity}: java.lang.NullPointerException
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at com.atlassian.servicedesk.internal.feature.customer.request.requesttype.RequestTypeFieldQStore.getRequestTypeFields()
    2. com.atlassian.servicedesk
      RequestTypeFieldQStore$1.apply
      1. com.atlassian.servicedesk.internal.feature.customer.request.requesttype.RequestTypeFieldQStore.getRequestTypeFields(RequestTypeFieldQStore.java:100)
      2. com.atlassian.servicedesk.internal.feature.customer.request.requesttype.RequestTypeFieldQStore.access$000(RequestTypeFieldQStore.java:26)
      3. com.atlassian.servicedesk.internal.feature.customer.request.requesttype.RequestTypeFieldQStore$1.apply(RequestTypeFieldQStore.java:42)
      4. com.atlassian.servicedesk.internal.feature.customer.request.requesttype.RequestTypeFieldQStore$1.apply(RequestTypeFieldQStore.java:35)
      4 frames
    3. com.atlassian.pocketknife
      QueryFactoryImpl.fetch
      1. com.atlassian.pocketknife.internal.querydsl.QueryFactoryImpl.fetch(QueryFactoryImpl.java:75)
      1 frame
    4. com.atlassian.servicedesk
      EmailChannelManagerImpl.hasSuitableRequestTypeForEmail
      1. com.atlassian.servicedesk.internal.feature.customer.request.requesttype.RequestTypeFieldQStore.getAllRequestTypeFieldsForPortalWithoutFieldValues(RequestTypeFieldQStore.java:35)
      2. com.atlassian.servicedesk.internal.feature.customer.request.requesttype.field.RequestTypeFieldManager.getAllRequestTypeFieldsForPortalWithoutFieldValues(RequestTypeFieldManager.scala:59)
      3. com.atlassian.servicedesk.internal.feature.emailchannel.emailplatform.EmailPlatformChannelUtils.getFirstSuitableRequestType(EmailPlatformChannelUtils.scala:122)
      4. com.atlassian.servicedesk.internal.feature.emailchannel.emailplatform.EmailPlatformChannelManagerImpl.getFirstSuitableRequestType(EmailPlatformChannelManagerImpl.scala:147)
      5. com.atlassian.servicedesk.internal.feature.emailchannel.EmailChannelManagerDelegator.getFirstSuitableRequestType(EmailChannelManagerDelegator.scala:59)
      6. com.atlassian.servicedesk.internal.feature.emailchannel.EmailChannelManagerImpl.hasSuitableRequestTypeForEmail(EmailChannelManagerImpl.java:57)
      6 frames