java.lang.IllegalArgumentException: A CQL blob string must start with "0x"

DataStax JIRA | Robert Stupp | 10 months ago
  1. 0

    While working on [CASSANDRA-11064|https://issues.apache.org/jira/browse/CASSANDRA-11064], I discovered that (Dynamic)CompositeTypes are parsed in the driver as blobs, but the correct CQL representation for these types is a string literal. Example: {code} cqlsh:foo> create table bar (id int PRIMARY KEY , dyn 'DynamicCompositeType(s => UTF8Type, i => Int32Type)'); cqlsh:foo> insert into bar (id, dyn) VALUES ( 1, 's@foo:i@32'); cqlsh:foo> insert into bar (id, dyn) values (2, 0x123456); ServerError: <ErrorMessage code=0000 [Server error] message="java.lang.IllegalArgumentException: Invalid component representation: 0x123456"> {code} The exception is thrown in {{org.apache.cassandra.db.marshal.DynamicCompositeType.DynamicParsedComparator#DynamicParsedComparator}} which expects a string literal. This will lead to issues if one really uses (Dynamic)CompositeType as an initcond for UDAs, since the driver then throws an exception. {code} ERROR 06:21:50 Error parsing schema from Cassandra system tables: the schema in Cluster#getMetadata() will appear incomplete or stale java.lang.IllegalArgumentException: A CQL blob string must start with "0x" at com.datastax.driver.core.utils.Bytes.fromHexString(Bytes.java:161) ~[cassandra-driver-core-3.0.0-SNAPSHOT-4c4456e-shaded.jar:na] at com.datastax.driver.core.TypeCodec$CustomCodec.parse(TypeCodec.java:998) ~[cassandra-driver-core-3.0.0-SNAPSHOT-4c4456e-shaded.jar:na] at com.datastax.driver.core.TypeCodec$CustomCodec.parse(TypeCodec.java:989) ~[cassandra-driver-core-3.0.0-SNAPSHOT-4c4456e-shaded.jar:na] at com.datastax.driver.core.AggregateMetadata.build(AggregateMetadata.java:104) ~[cassandra-driver-core-3.0.0-SNAPSHOT-4c4456e-shaded.jar:na] at com.datastax.driver.core.SchemaParser.buildAggregates(SchemaParser.java:223) ~[cassandra-driver-core-3.0.0-SNAPSHOT-4c4456e-shaded.jar:na] at com.datastax.driver.core.SchemaParser.refresh(SchemaParser.java:101) ~[cassandra-driver-core-3.0.0-SNAPSHOT-4c4456e-shaded.jar:na] at com.datastax.driver.core.ControlConnection.refreshSchema(ControlConnection.java:341) [cassandra-driver-core-3.0.0-SNAPSHOT-4c4456e-shaded.jar:na] at com.datastax.driver.core.ControlConnection.refreshSchema(ControlConnection.java:306) [cassandra-driver-core-3.0.0-SNAPSHOT-4c4456e-shaded.jar:na] at com.datastax.driver.core.Cluster$Manager$SchemaRefreshRequestDeliveryCallback$1.runMayThrow(Cluster.java:2538) [cassandra-driver-core-3.0.0-SNAPSHOT-4c4456e-shaded.jar:na] at com.datastax.driver.core.ExceptionCatchingRunnable.run(ExceptionCatchingRunnable.java:32) [cassandra-driver-core-3.0.0-SNAPSHOT-4c4456e-shaded.jar:na] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_66] at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_66] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_66] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_66] at java.lang.Thread.run(Thread.java:745) [na:1.8.0_66] {code}

    DataStax JIRA | 10 months ago | Robert Stupp
    java.lang.IllegalArgumentException: A CQL blob string must start with "0x"
  2. 0

    Server Tomcat v7.0 unable to start

    Stack Overflow | 3 years ago | user1805
    java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/Deployment]]
  3. 0

    Showcase-portlet -> AutocompleteEntry > Custom Facet The demo is functional, however there are server errors when typing a letter in the component. Also, the images are missing on the opening drop-down. 17:18:55,177 ERROR [BaseURLEncodedStringImpl:57] URL path must start with a '/' or include '://' java.lang.IllegalArgumentException: URL path must start with a '/' or include '://' at com.liferay.portlet.PortletResponseImpl.encodeURL(PortletResponseImpl.java:314) at com.liferay.faces.bridge.context.url.BaseURLEncodedStringImpl.toString(BaseURLEncodedStri ngImpl.java:54) at com.liferay.faces.bridge.context.url.BridgeURLBaseImpl.toString(BridgeURLBaseImpl.java:13 9) at com.liferay.faces.bridge.context.ExternalContextImpl.encodeResourceURL(ExternalContextImp l.java:153) at com.sun.faces.renderkit.RenderKitUtils.getImageSource(RenderKitUtils.java:1359) at com.sun.faces.renderkit.html_basic.ImageRenderer.encodeEnd(ImageRenderer.java:96) at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:877) at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.ja va:312) at com.sun.faces.renderkit.html_basic.GridRenderer.renderRow(GridRenderer.java:185) at com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:129) at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:847) at org.icefaces.ace.component.autocompleteentry.AutoCompleteEntryRenderer.encodeParentAndChi ldren(AutoCompleteEntryRenderer.java:585) at org.icefaces.ace.component.autocompleteentry.AutoCompleteEntryRenderer.populateList(AutoC ompleteEntryRenderer.java:386) at org.icefaces.ace.component.autocompleteentry.AutoCompleteEntryRenderer.encodeList(AutoCom pleteEntryRenderer.java:336) at org.icefaces.ace.component.autocompleteentry.AutoCompleteEntryRenderer.encodeScript(AutoC ompleteEntryRenderer.java:326) at org.icefaces.ace.component.autocompleteentry.AutoCompleteEntryRenderer.encodeBegin(AutoCo mpleteEntryRenderer.java:217) at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:822) at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.ja va:302) at com.sun.faces.renderkit.html_basic.GridRenderer.renderRow(GridRenderer.java:185) at com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:129) at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:847) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1819) at javax.faces.render.Renderer.encodeChildren(Renderer.java:168) at org.icefaces.impl.renderkit.RendererWrapper.encodeChildren(RendererWrapper.java:41) at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:847) at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.ja va:304) at com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:105) at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:847) at org.icefaces.ace.renderkit.CoreRenderer.renderChild(CoreRenderer.java:82) at org.icefaces.ace.renderkit.CoreRenderer.renderChildren(CoreRenderer.java:70) at org.icefaces.ace.component.panel.PanelRenderer.encodeContent(PanelRenderer.java:257) at org.icefaces.ace.component.panel.PanelRenderer.encodeMarkup(PanelRenderer.java:137) at org.icefaces.ace.component.panel.PanelRenderer.encodeEnd(PanelRenderer.java:75) at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:877) at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.ja va:312) ..............

    ICEsoft JIRA Issue Tracker | 2 years ago | Carmen Cristurean
    java.lang.IllegalArgumentException: URL path must start with a '/' or include '://'
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Showcase-portlet -> AutocompleteEntry > Custom Facet The demo is functional, however there are server errors when typing a letter in the component. Also, the images are missing on the opening drop-down. 17:18:55,177 ERROR [BaseURLEncodedStringImpl:57] URL path must start with a '/' or include '://' java.lang.IllegalArgumentException: URL path must start with a '/' or include '://' at com.liferay.portlet.PortletResponseImpl.encodeURL(PortletResponseImpl.java:314) at com.liferay.faces.bridge.context.url.BaseURLEncodedStringImpl.toString(BaseURLEncodedStri ngImpl.java:54) at com.liferay.faces.bridge.context.url.BridgeURLBaseImpl.toString(BridgeURLBaseImpl.java:13 9) at com.liferay.faces.bridge.context.ExternalContextImpl.encodeResourceURL(ExternalContextImp l.java:153) at com.sun.faces.renderkit.RenderKitUtils.getImageSource(RenderKitUtils.java:1359) at com.sun.faces.renderkit.html_basic.ImageRenderer.encodeEnd(ImageRenderer.java:96) at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:877) at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.ja va:312) at com.sun.faces.renderkit.html_basic.GridRenderer.renderRow(GridRenderer.java:185) at com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:129) at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:847) at org.icefaces.ace.component.autocompleteentry.AutoCompleteEntryRenderer.encodeParentAndChi ldren(AutoCompleteEntryRenderer.java:585) at org.icefaces.ace.component.autocompleteentry.AutoCompleteEntryRenderer.populateList(AutoC ompleteEntryRenderer.java:386) at org.icefaces.ace.component.autocompleteentry.AutoCompleteEntryRenderer.encodeList(AutoCom pleteEntryRenderer.java:336) at org.icefaces.ace.component.autocompleteentry.AutoCompleteEntryRenderer.encodeScript(AutoC ompleteEntryRenderer.java:326) at org.icefaces.ace.component.autocompleteentry.AutoCompleteEntryRenderer.encodeBegin(AutoCo mpleteEntryRenderer.java:217) at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:822) at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.ja va:302) at com.sun.faces.renderkit.html_basic.GridRenderer.renderRow(GridRenderer.java:185) at com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:129) at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:847) at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1819) at javax.faces.render.Renderer.encodeChildren(Renderer.java:168) at org.icefaces.impl.renderkit.RendererWrapper.encodeChildren(RendererWrapper.java:41) at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:847) at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.ja va:304) at com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:105) at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:847) at org.icefaces.ace.renderkit.CoreRenderer.renderChild(CoreRenderer.java:82) at org.icefaces.ace.renderkit.CoreRenderer.renderChildren(CoreRenderer.java:70) at org.icefaces.ace.component.panel.PanelRenderer.encodeContent(PanelRenderer.java:257) at org.icefaces.ace.component.panel.PanelRenderer.encodeMarkup(PanelRenderer.java:137) at org.icefaces.ace.component.panel.PanelRenderer.encodeEnd(PanelRenderer.java:75) at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:877) at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.ja va:312) ..............

    ICEsoft JIRA Issue Tracker | 2 years ago | Carmen Cristurean
    java.lang.IllegalArgumentException: URL path must start with a '/' or include '://'
  6. 0

    [FACES-2111] Error on encodeURL - Liferay Issues

    liferay.com | 11 months ago
    java.lang.IllegalArgumentException: URL path must start with a '/' or include '://'

    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.IllegalArgumentException

      A CQL blob string must start with "0x"

      at com.datastax.driver.core.utils.Bytes.fromHexString()
    2. DataStax Java Driver for Apache Cassandra - Core
      ExceptionCatchingRunnable.run
      1. com.datastax.driver.core.utils.Bytes.fromHexString(Bytes.java:161)[cassandra-driver-core-3.0.0-SNAPSHOT-4c4456e-shaded.jar:na]
      2. com.datastax.driver.core.TypeCodec$CustomCodec.parse(TypeCodec.java:998)[cassandra-driver-core-3.0.0-SNAPSHOT-4c4456e-shaded.jar:na]
      3. com.datastax.driver.core.TypeCodec$CustomCodec.parse(TypeCodec.java:989)[cassandra-driver-core-3.0.0-SNAPSHOT-4c4456e-shaded.jar:na]
      4. com.datastax.driver.core.AggregateMetadata.build(AggregateMetadata.java:104)[cassandra-driver-core-3.0.0-SNAPSHOT-4c4456e-shaded.jar:na]
      5. com.datastax.driver.core.SchemaParser.buildAggregates(SchemaParser.java:223)[cassandra-driver-core-3.0.0-SNAPSHOT-4c4456e-shaded.jar:na]
      6. com.datastax.driver.core.SchemaParser.refresh(SchemaParser.java:101)[cassandra-driver-core-3.0.0-SNAPSHOT-4c4456e-shaded.jar:na]
      7. com.datastax.driver.core.ControlConnection.refreshSchema(ControlConnection.java:341)[cassandra-driver-core-3.0.0-SNAPSHOT-4c4456e-shaded.jar:na]
      8. com.datastax.driver.core.ControlConnection.refreshSchema(ControlConnection.java:306)[cassandra-driver-core-3.0.0-SNAPSHOT-4c4456e-shaded.jar:na]
      9. com.datastax.driver.core.Cluster$Manager$SchemaRefreshRequestDeliveryCallback$1.runMayThrow(Cluster.java:2538)[cassandra-driver-core-3.0.0-SNAPSHOT-4c4456e-shaded.jar:na]
      10. com.datastax.driver.core.ExceptionCatchingRunnable.run(ExceptionCatchingRunnable.java:32)[cassandra-driver-core-3.0.0-SNAPSHOT-4c4456e-shaded.jar:na]
      10 frames
    3. Java RT
      Thread.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[na:1.8.0_66]
      2. java.util.concurrent.FutureTask.run(FutureTask.java:266)[na:1.8.0_66]
      3. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[na:1.8.0_66]
      4. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[na:1.8.0_66]
      5. java.lang.Thread.run(Thread.java:745)[na:1.8.0_66]
      5 frames