We want to create amazing apps without being stopped by crashes. Join us to help others who have the same bug.

I want to fix my crash

I want to help others

java.lang.IllegalStateException: ActionBarContextView can only be used with android:layout_width=
(or fill_parent)
at com.android.internal.widget.ActionBarContextView.onMeasure(ActionBarContextView.java:
)
at android.view.View.measure(View.java:
)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:
)
at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:
)
at android.widget.LinearLayout.measureVertical(LinearLayout.java:
)
at android.widget.LinearLayout.onMeasure(LinearLayout.java:
)
at android.view.View.measure(View.java:
)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:
)
at android.widget.FrameLayout.onMeasure(FrameLayout.java:
)
at com.android.internal.policy.impl.PhoneWindow$DecorView.onMeasure(PhoneWindow.java:
)
at android.view.View.measure(View.java:
)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:
)
at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:
)
at android.widget.LinearLayout.measureHorizontal(LinearLayout.java:
)
at android.widget.LinearLayout.onMeasure(LinearLayout.java:
)
at android.view.View.measure(View.java:
)
at android.widget.RelativeLayout.measureChildHorizontal(RelativeLayout.java:
)
at android.widget.RelativeLayout.onMeasure(RelativeLayout.java:
)
at android.view.View.measure(View.java:
)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:
)
at android.widget.FrameLayout.onMeasure(FrameLayout.java:
)
at android.view.View.measure(View.java:
)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:
)
at com.android.internal.widget.ActionBarOverlayLayout.onMeasure(ActionBarOverlayLayout.java:
)
at android.view.View.measure(View.java:
)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:
)
at android.widget.FrameLayout.onMeasure(FrameLayout.java:
)
at com.android.internal.policy.impl.PhoneWindow$DecorView.onMeasure(PhoneWindow.java:
)
at android.view.View.measure(View.java:
)
at android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:
)
at android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:
)
at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:
)
at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:
)
at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:
)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:
)
at android.view.Choreographer.doCallbacks(Choreographer.java:
)
at android.view.Choreographer.doFrame(Choreographer.java:
)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:
)
at android.os.Handler.handleCallback(Handler.java:
)
at android.os.Handler.dispatchMessage(Handler.java:
)
at android.os.Looper.loop(Looper.java:
)
at android.app.ActivityThread.main(ActivityThread.java:
)

java.lang.IllegalStateException: ActionBarContextView can only be used with android:layout_width=
(or fill_parent)
at com.android.internal.widget.ActionBarContextView.onMeasure(ActionBarContextView.java:
)
at android.view.View.measure(View.java:
)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:
)
at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:
)
at android.widget.LinearLayout.measureVertical(LinearLayout.java:
)
at android.widget.LinearLayout.onMeasure(LinearLayout.java:
)
at android.view.View.measure(View.java:
)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:
)
at android.widget.FrameLayout.onMeasure(FrameLayout.java:
)
at com.android.internal.policy.impl.PhoneWindow$DecorView.onMeasure(PhoneWindow.java:
)
at android.view.View.measure(View.java:
)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:
)
at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:
)
at android.widget.LinearLayout.measureHorizontal(LinearLayout.java:
)
at android.widget.LinearLayout.onMeasure(LinearLayout.java:
)
at android.view.View.measure(View.java:
)
at android.widget.RelativeLayout.measureChildHorizontal(RelativeLayout.java:
)
at android.widget.RelativeLayout.onMeasure(RelativeLayout.java:
)
at android.view.View.measure(View.java:
)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:
)
at android.widget.FrameLayout.onMeasure(FrameLayout.java:
)
at android.view.View.measure(View.java:
)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:
)
at com.android.internal.widget.ActionBarOverlayLayout.onMeasure(ActionBarOverlayLayout.java:
)
at android.view.View.measure(View.java:
)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:
)
at android.widget.FrameLayout.onMeasure(FrameLayout.java:
)
at com.android.internal.policy.impl.PhoneWindow$DecorView.onMeasure(PhoneWindow.java:
)
at android.view.View.measure(View.java:
)
at android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:
)
at android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:
)
at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:
)
at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:
)
at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:
)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:
)
at android.view.Choreographer.doCallbacks(Choreographer.java:
)
at android.view.Choreographer.doFrame(Choreographer.java:
)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:
)
at android.os.Handler.handleCallback(Handler.java:
)
at android.os.Handler.dispatchMessage(Handler.java:
)
at android.os.Looper.loop(Looper.java:
)
at android.app.ActivityThread.main(ActivityThread.java:
)

java.lang.IllegalStateException: ActionBarContextView can only be used with android:layout_width=
(or fill_parent)
at com.android.internal.widget.ActionBarContextView.onMeasure(ActionBarContextView.java:
)
at android.view.View.measure(View.java:
)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:
)
at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:
)
at android.widget.LinearLayout.measureVertical(LinearLayout.java:
)
at android.widget.LinearLayout.onMeasure(LinearLayout.java:
)
at android.view.View.measure(View.java:
)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:
)
at android.widget.FrameLayout.onMeasure(FrameLayout.java:
)
at com.android.internal.policy.impl.PhoneWindow$DecorView.onMeasure(PhoneWindow.java:
)
at android.view.View.measure(View.java:
)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:
)
at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:
)
at android.widget.LinearLayout.measureHorizontal(LinearLayout.java:
)
at android.widget.LinearLayout.onMeasure(LinearLayout.java:
)
at android.view.View.measure(View.java:
)
at android.widget.RelativeLayout.measureChildHorizontal(RelativeLayout.java:
)
at android.widget.RelativeLayout.onMeasure(RelativeLayout.java:
)
at android.view.View.measure(View.java:
)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:
)
at android.widget.FrameLayout.onMeasure(FrameLayout.java:
)
at android.view.View.measure(View.java:
)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:
)
at com.android.internal.widget.ActionBarOverlayLayout.onMeasure(ActionBarOverlayLayout.java:
)
at android.view.View.measure(View.java:
)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:
)
at android.widget.FrameLayout.onMeasure(FrameLayout.java:
)
at com.android.internal.policy.impl.PhoneWindow$DecorView.onMeasure(PhoneWindow.java:
)
at android.view.View.measure(View.java:
)
at android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:
)
at android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:
)
at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:
)
at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:
)
at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:
)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:
)
at android.view.Choreographer.doCallbacks(Choreographer.java:
)
at android.view.Choreographer.doFrame(Choreographer.java:
)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:
)
at android.os.Handler.handleCallback(Handler.java:
)
at android.os.Handler.dispatchMessage(Handler.java:
)
at android.os.Looper.loop(Looper.java:
)
at android.app.ActivityThread.main(ActivityThread.java:
)

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)

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)

Root Cause Analysis

java.lang.IllegalStateException

ActionBarContextView can only be used with android:layout_width=
(or fill_parent)
at com.android.internal.widget.ActionBarContextView.onMeasure(ActionBarContextView.java:
)
at android.view.View.measure(View.java:
)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:
)
at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:
)
at android.widget.LinearLayout.measureVertical(LinearLayout.java:
)
at android.widget.LinearLayout.onMeasure(LinearLayout.java:
)
at android.view.View.measure(View.java:
)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:
)
at android.widget.FrameLayout.onMeasure(FrameLayout.java:
)
at com.android.internal.policy.impl.PhoneWindow$DecorView.onMeasure(PhoneWindow.java:
)
at android.view.View.measure(View.java:
)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:
)
at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:
)
at android.widget.LinearLayout.measureHorizontal(LinearLayout.java:
)
at android.widget.LinearLayout.onMeasure(LinearLayout.java:
)
at android.view.View.measure(View.java:
)
at android.widget.RelativeLayout.measureChildHorizontal(RelativeLayout.java:
)
at android.widget.RelativeLayout.onMeasure(RelativeLayout.java:
)
at android.view.View.measure(View.java:
)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:
)
at android.widget.FrameLayout.onMeasure(FrameLayout.java:
)
at android.view.View.measure(View.java:
)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:
)
at com.android.internal.widget.ActionBarOverlayLayout.onMeasure(ActionBarOverlayLayout.java:
)
at android.view.View.measure(View.java:
)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:
)
at android.widget.FrameLayout.onMeasure(FrameLayout.java:
)
at com.android.internal.policy.impl.PhoneWindow$DecorView.onMeasure(PhoneWindow.java:
)
at android.view.View.measure(View.java:
)
at android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:
)
at android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:
)
at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:
)
at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:
)
at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:
)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:
)
at android.view.Choreographer.doCallbacks(Choreographer.java:
)
at android.view.Choreographer.doFrame(Choreographer.java:
)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:
)
at android.os.Handler.handleCallback(Handler.java:
)
at android.os.Handler.dispatchMessage(Handler.java:
)
at android.os.Looper.loop(Looper.java:
)
at android.app.ActivityThread.main(ActivityThread.java:
)