Tag Archives: Java.lang.IllegalStateException

[Solved] java.lang.illegalstateexception: unable to forward after submitting the response

The root cause of this problem is this line of code:

The solution is to delete the line of super.

This line of code is simply understood as: the default implementation of the dopost method of the httpservlet returns the HTTP 405 status code.

The doget or dopost method of the parent httpservlet overrides the method you override. The default implementation of the doget or dopost method of the parent httpservlet returns an HTTP error with a status code of 405, indicating that the request method for the specified resource is not allowed.

Solve kylin error: java.lang.illegalstateexception

When a kylin build job is executed to the third step, an error is reported in extract fact table distinct columns:

2017-05-24 20:04:07,930 ERROR [pool-9-thread-3] common.MapReduceExecutable:127 : error execute MapReduceExecutable{id=a79c9625-39aa-4f17-8015-73b640558425-02, name=Extra
ct Fact Table Distinct Columns, state=RUNNING}
java.lang.IllegalStateException
        at org.apache.kylin.engine.mr.steps.FactDistinctColumnsJob.run(FactDistinctColumnsJob.java:98)
        at org.apache.kylin.engine.mr.MRUtil.runMRJob(MRUtil.java:92)
        at org.apache.kylin.engine.mr.common.MapReduceExecutable.doWork(MapReduceExecutable.java:120)
        at org.apache.kylin.job.execution.AbstractExecutable.execute(AbstractExecutable.java:113)
        at org.apache.kylin.job.execution.DefaultChainedExecutable.doWork(DefaultChainedExecutable.java:57)
        at org.apache.kylin.job.execution.AbstractExecutable.execute(AbstractExecutable.java:113)
        at org.apache.kylin.job.impl.threadpool.DefaultScheduler$JobRunner.run(DefaultScheduler.java:136)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)

Solution: find the kylin instance that executes the build task, reload the metadata or restart the kylin service (not recommended), and then rebuild

Cause analysis: the meta in the memory of the job server executing the build is not updated, which is caused by using the meta in the cache to execute the build

[Solved] Java.lang.IllegalStateException: Circular dependencies cannot exist in RelativeLayout

  1. <?xml version=“1.0” encoding=”utf-8″?>  
  2. <ScrollView xmlns:android=“http://schemas.android.com/apk/res/android”  
  3.     android:layout_width=“fill_parent”  
  4.     android:layout_height=“wrap_content” >  
  5.     <HorizontalScrollView  
  6.         android:layout_width=“fill_parent”  
  7.         android:layout_height=“wrap_content” >  
  8.         <RelativeLayout  
  9.             android:layout_width=“fill_parent”  
  10.             android:layout_height=“fill_parent”>  
  11.             <TextView  
  12.                 android:id=“@+id/textview1”  
  13.                 android:layout_width=“wrap_content”  
  14.                 android:layout_height=“wrap_content”  
  15.                 android:text=“Scrolling view”  
  16.                 android:textSize=“30dp” />  
  17.             <ImageView  
  18.                 android:id=“@+id/imageview1”  
  19.                 android:layout_width=“wrap_content”  
  20.                 android:layout_height=“wrap_content”  
  21.                 android:layout_toRightOf=“@id/textview1”  
  22.                 android:src=“@drawable/item1” />  
  23.             <TextView  
  24.                 android:id=“@+id/textview2”  
  25.                 android:layout_width=“wrap_content”  
  26.                 android:layout_height=“wrap_content”  
  27.                 android:layout_toRightOf=“@id/imageview1”  
  28.                 android:text=“Vertical and horizontal scrolling”  
  29.                 android:textSize=“30dp” />  
  30.             <ImageView  
  31.                 <span style=“color:#ff6666;”>android:id=”@+id/imageview2″  
  32. </span>                android:layout_width=“wrap_content”  
  33.                 android:layout_height=“wrap_content”  
  34.                 android:layout_below=“@id/textview1”  
  35.                 android:src=“@drawable/item2” />  
  36.             <TextView  
  37.                 android:id=“@+id/textview3”  
  38.                 android:layout_width=“wrap_content”  
  39.                 android:layout_height=“wrap_content”  
  40.                 android:layout_below=“@id/imageview2”  
  41.                 android:text=“Vertical and horizontal scrolling”  
  42.                 android:textSize=“30dp” />  
  43.             <ImageView  
  44.                <span style=“color:#ff6666;”> android:id=”@+id/imageview2″</span>  
  45.                 android:layout_width=“wrap_content”  
  46.                 android:layout_height=“wrap_content”  
  47.                 android:layout_below=“@id/textview3”  
  48.                 android:src=“@drawable/item3” />  
  49.         </RelativeLayout>  
  50.     </HorizontalScrollView>  
  51. </ScrollView>  

 

Such an exception broke out, java.lang.IllegalStateException: Circular dependencies cannot exist in RelativeLayout.

The reason is that duplicate view ID names are reproduced in the RelativeLayout layout, and imageview2, textview3, and imageview2 have circular dependencies.

Solution: Modify the id of the last ImageView to imageview3. Avoid the control cycle dependency in RelativeLayout.

The essence is: the position of 1 depends on the position relative to 2 and 2 depends on the position relative to 1, but the two relative positions are contradictory.