java.lang.IllegalStateException: You can not update a project with an invalid validation result. @400000004b97c4ad087ca15c at com.atlassian.jira.bc.project.DefaultProjectService.updateProject(DefaultProjectService.java:212) @400000004b97c4ad087ca544 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) @400000004b97c4ad087cf364 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) @400000004b97c4ad087cf74c at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) @400000004b97c4ad087cfb34 at java.lang.reflect.Method.invoke(Method.java:592) @400000004b97c4ad087cff1c at com.atlassian.jira.ProxyAdapter$ProxiedComponentInvocationHandler.invoke(ProxyAdapter.java:167) @400000004b97c4ad087d1a74 at $Proxy263.updateProject(Unknown Source) @400000004b97c4ad087d1e5c at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) @400000004b97c4ad087d2244 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) @400000004b97c4ad087d262c at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

Atlassian JIRA | James Roper [Atlassian] | 6 years ago
  1. 0

    In the {{doValidation()}} method of the {{AddProject}} action, it validates the creating of the project and the updating of the project schemes, but does not validate the updating of the project to update the avatar id. When it goes to the execute method, the following code is called: {code:java} final ProjectService.UpdateProjectValidationResult updateProjectValidationResult = projectService.validateUpdateProject(getRemoteUser(), getName(), getKey(), getDescription(), getLead(), getUrl(), getAssigneeType(), getAvatarId()); projectService.updateProject(updateProjectValidationResult); {code} But that validation result, which was not checked in the {{doValidation()}} method (obviously because its a project update, you can't validate the project update before the project has been created), is never checked. If validation failed, the {{projectService.updateProject()}} call will throw an exception. I don't know what would cause the validation to fail, what I do know is that two months ago a Studio customer had just that happen to them, according to the logs: {noformat} @400000004b97c4ad087c9d74 java.lang.IllegalStateException: You can not update a project with an invalid validation result. @400000004b97c4ad087ca15c at com.atlassian.jira.bc.project.DefaultProjectService.updateProject(DefaultProjectService.java:212) @400000004b97c4ad087ca544 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) @400000004b97c4ad087cf364 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) @400000004b97c4ad087cf74c at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) @400000004b97c4ad087cfb34 at java.lang.reflect.Method.invoke(Method.java:592) @400000004b97c4ad087cff1c at com.atlassian.jira.ProxyAdapter$ProxiedComponentInvocationHandler.invoke(ProxyAdapter.java:167) @400000004b97c4ad087d1a74 at $Proxy263.updateProject(Unknown Source) @400000004b97c4ad087d1e5c at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) @400000004b97c4ad087d2244 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) @400000004b97c4ad087d262c at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) @400000004b97c4ad087d4d3c at java.lang.reflect.Method.invoke(Method.java:592) @400000004b97c4ad087d4d3c at com.atlassian.plugin.osgi.hostcomponents.impl.DefaultComponentRegistrar$ContextClassLoaderSettingInvocationHandler.invoke(DefaultComponentRegistrar.java:129) @400000004b97c4ad087d550c at $Proxy263.updateProject(Unknown Source) @400000004b97c4ad087d58f4 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) @400000004b97c4ad087d7064 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) @400000004b97c4ad087d744c at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) @400000004b97c4ad087d7834 at java.lang.reflect.Method.invoke(Method.java:592) @400000004b97c4ad087d7c1c at com.atlassian.plugin.osgi.bridge.external.HostComponentFactoryBean$DynamicServiceInvocationHandler.invoke(HostComponentFactoryBean.java:150) @400000004b97c4ad087d938c at $Proxy263.updateProject(Unknown Source) @400000004b97c4ad087d9774 at com.atlassian.jira.web.action.project.AddProject.doExecute(AddProject.java:93) {noformat} It would appear to me that validation of the {{avatarId}} parameter is not being done when it should.

    Atlassian JIRA | 6 years ago | James Roper [Atlassian]
    java.lang.IllegalStateException: You can not update a project with an invalid validation result. @400000004b97c4ad087ca15c at com.atlassian.jira.bc.project.DefaultProjectService.updateProject(DefaultProjectService.java:212) @400000004b97c4ad087ca544 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) @400000004b97c4ad087cf364 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) @400000004b97c4ad087cf74c at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) @400000004b97c4ad087cfb34 at java.lang.reflect.Method.invoke(Method.java:592) @400000004b97c4ad087cff1c at com.atlassian.jira.ProxyAdapter$ProxiedComponentInvocationHandler.invoke(ProxyAdapter.java:167) @400000004b97c4ad087d1a74 at $Proxy263.updateProject(Unknown Source) @400000004b97c4ad087d1e5c at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) @400000004b97c4ad087d2244 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) @400000004b97c4ad087d262c at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  2. 0

    In the {{doValidation()}} method of the {{AddProject}} action, it validates the creating of the project and the updating of the project schemes, but does not validate the updating of the project to update the avatar id. When it goes to the execute method, the following code is called: {code:java} final ProjectService.UpdateProjectValidationResult updateProjectValidationResult = projectService.validateUpdateProject(getRemoteUser(), getName(), getKey(), getDescription(), getLead(), getUrl(), getAssigneeType(), getAvatarId()); projectService.updateProject(updateProjectValidationResult); {code} But that validation result, which was not checked in the {{doValidation()}} method (obviously because its a project update, you can't validate the project update before the project has been created), is never checked. If validation failed, the {{projectService.updateProject()}} call will throw an exception. I don't know what would cause the validation to fail, what I do know is that two months ago a Studio customer had just that happen to them, according to the logs: {noformat} @400000004b97c4ad087c9d74 java.lang.IllegalStateException: You can not update a project with an invalid validation result. @400000004b97c4ad087ca15c at com.atlassian.jira.bc.project.DefaultProjectService.updateProject(DefaultProjectService.java:212) @400000004b97c4ad087ca544 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) @400000004b97c4ad087cf364 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) @400000004b97c4ad087cf74c at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) @400000004b97c4ad087cfb34 at java.lang.reflect.Method.invoke(Method.java:592) @400000004b97c4ad087cff1c at com.atlassian.jira.ProxyAdapter$ProxiedComponentInvocationHandler.invoke(ProxyAdapter.java:167) @400000004b97c4ad087d1a74 at $Proxy263.updateProject(Unknown Source) @400000004b97c4ad087d1e5c at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) @400000004b97c4ad087d2244 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) @400000004b97c4ad087d262c at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) @400000004b97c4ad087d4d3c at java.lang.reflect.Method.invoke(Method.java:592) @400000004b97c4ad087d4d3c at com.atlassian.plugin.osgi.hostcomponents.impl.DefaultComponentRegistrar$ContextClassLoaderSettingInvocationHandler.invoke(DefaultComponentRegistrar.java:129) @400000004b97c4ad087d550c at $Proxy263.updateProject(Unknown Source) @400000004b97c4ad087d58f4 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) @400000004b97c4ad087d7064 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) @400000004b97c4ad087d744c at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) @400000004b97c4ad087d7834 at java.lang.reflect.Method.invoke(Method.java:592) @400000004b97c4ad087d7c1c at com.atlassian.plugin.osgi.bridge.external.HostComponentFactoryBean$DynamicServiceInvocationHandler.invoke(HostComponentFactoryBean.java:150) @400000004b97c4ad087d938c at $Proxy263.updateProject(Unknown Source) @400000004b97c4ad087d9774 at com.atlassian.jira.web.action.project.AddProject.doExecute(AddProject.java:93) {noformat} It would appear to me that validation of the {{avatarId}} parameter is not being done when it should.

    Atlassian JIRA | 6 years ago | James Roper [Atlassian]
    java.lang.IllegalStateException: You can not update a project with an invalid validation result. @400000004b97c4ad087ca15c at com.atlassian.jira.bc.project.DefaultProjectService.updateProject(DefaultProjectService.java:212) @400000004b97c4ad087ca544 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) @400000004b97c4ad087cf364 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) @400000004b97c4ad087cf74c at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) @400000004b97c4ad087cfb34 at java.lang.reflect.Method.invoke(Method.java:592) @400000004b97c4ad087cff1c at com.atlassian.jira.ProxyAdapter$ProxiedComponentInvocationHandler.invoke(ProxyAdapter.java:167) @400000004b97c4ad087d1a74 at $Proxy263.updateProject(Unknown Source) @400000004b97c4ad087d1e5c at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) @400000004b97c4ad087d2244 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) @400000004b97c4ad087d262c at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  3. 0

    开源中国(OSChina.NET)

    oschina.net | 1 year ago
    java.lang.IllegalStateException: Tomcat connector in failed state at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServle tContainer.start(TomcatEmbeddedServletContainer.java:157) at org.springframework.boot.context.embedded.EmbeddedWebApplicationConte xt.startEmbeddedServletContainer(EmbeddedWebApplicationContext.java:288) at org.springframework.boot.context.embedded.EmbeddedWebApplicationConte xt.finishRefresh(EmbeddedWebApplicationContext.java:141) at org.springframework.context.support.AbstractApplicationContext.refres h(AbstractApplicationContext.java:483) at org.springframework.boot.context.embedded.EmbeddedWebApplicationConte xt.refresh(EmbeddedWebApplicationContext.java:118) at org.springframework.boot.SpringApplication.refresh(SpringApplication. java:686) at org.springframework.boot.SpringApplication.run(SpringApplication.java :320) at org.springframework.boot.SpringApplication.run(SpringApplication.java :957) at org.springframework.boot.SpringApplication.run(SpringApplication.java :946) at com.baidu.rigel.biplatform.tesseract.application.TesseractApplication .main(TesseractApplication.java:63)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Error while parsing common domain names using InternetDomainName.java

    GitHub | 2 years ago | marios-caspida
    java.lang.IllegalStateException: Not under a public suffix: us-east-1.amazonaws.com > at com.google.common.base.Preconditions.checkState(Preconditions.java:197) > at com.google.common.net.InternetDomainName.topPrivateDomain(InternetDomainName.java:424) > at *****.main(MyTestJavaClass.java:8> 9)
  6. 0

    android sqlite database access raising lock error

    Stack Overflow | 3 years ago | mungaih pk
    java.lang.IllegalStateException: database /data/data/com.intelligent.stocktrader/databases/stocktrader.db (conn# 0) already closed 09-11 13:11:15.329: W/System.err(22091): at android.database.sqlite.SQLiteDatabase.verifyDbIsOpen(SQLiteDatabase.java:2082) 09-11 13:11:15.329: W/System.err(22091): at android.database.sqlite.SQLiteDatabase.lock(SQLiteDatabase.java:413) 09-11 13:11:15.329: W/System.err(22091): at android.database.sqlite.SQLiteDatabase.lock(SQLiteDatabase.java:400) 09-11 13:11:15.329: W/System.err(22091): at android.database.sqlite.SQLiteQuery.fillWindow(SQLiteQuery.java:79) 09-11 13:11:15.339: W/System.err(22091): at android.database.sqlite.SQLiteCursor.fillWindow(SQLiteCursor.java:160) 09-11 13:11:15.339: W/System.err(22091): at android.database.sqlite.SQLiteCursor.getCount(SQLiteCursor.java:152) 09-11 13:11:15.339: W/System.err(22091): at android.database.AbstractCursor.moveToPosition(AbstractCursor.java:158) 09-11 13:11:15.349: W/System.err(22091): at android.database.AbstractCursor.moveToFirst(AbstractCursor.java:235) 09-11 13:11:15.349: W/System.err(22091): at com.intelligent.stocktrader.database.ShareService.checkWatchList(ShareService.java:160) 09-11 13:11:15.349: W/System.err(22091): at com.intelligent.stocktrader.database.ShareService.onCreate(ShareService.java:63) 09-11 13:11:15.359: W/System.err(22091): at android.app.ActivityThread.handleCreateService(ActivityThread.java:2252) 09-11 13:11:15.359: W/System.err(22091): at android.app.ActivityThread.access$1600(ActivityThread.java:122) 09-11 13:11:15.359: W/System.err(22091): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1200) 09-11 13:11:15.369: W/System.err(22091): at android.os.Handler.dispatchMessage(Handler.java:99) 09-11 13:11:15.369: W/System.err(22091): at android.os.Looper.loop(Looper.java:137) 09-11 13:11:15.369: W/System.err(22091): at android.app.ActivityThread.main(ActivityThread.java:4340) 09-11 13:11:15.369: W/System.err(22091): at java.lang.reflect.Method.invokeNative(Native Method)

    3 unregistered visitors
    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.IllegalStateException

      You can not update a project with an invalid validation result. @400000004b97c4ad087ca15c at com.atlassian.jira.bc.project.DefaultProjectService.updateProject(DefaultProjectService.java:212) @400000004b97c4ad087ca544 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) @400000004b97c4ad087cf364 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) @400000004b97c4ad087cf74c at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) @400000004b97c4ad087cfb34 at java.lang.reflect.Method.invoke(Method.java:592) @400000004b97c4ad087cff1c at com.atlassian.jira.ProxyAdapter$ProxiedComponentInvocationHandler.invoke(ProxyAdapter.java:167) @400000004b97c4ad087d1a74 at $Proxy263.updateProject(Unknown Source) @400000004b97c4ad087d1e5c at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) @400000004b97c4ad087d2244 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) @400000004b97c4ad087d262c at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

      at java.lang.reflect.Method.invoke()
    2. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Method.java:592)
      1 frame
    3. com.atlassian.plugin
      DefaultComponentRegistrar$ContextClassLoaderSettingInvocationHandler.invoke
      1. com.atlassian.plugin.osgi.hostcomponents.impl.DefaultComponentRegistrar$ContextClassLoaderSettingInvocationHandler.invoke(DefaultComponentRegistrar.java:129)
      1 frame