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

DataStax JIRA | Robert Stupp | 1 year ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  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 | 1 year ago | Robert Stupp
    java.lang.IllegalArgumentException: A CQL blob string must start with "0x"
  2. 0

    Universal Image Loader : IllegalArgumentException when using FileNameGenerator with extension

    Stack Overflow | 2 years ago
    java.lang.IllegalArgumentException: keys must match regex [a-z0-9_-] {1,64}: "1828294.jpg" at com.nostra13.universalimageloader.cache.disc.impl.ext.DiskLruCache.valida teKey(DiskLruCache.java:697) at com.nostra13.universalimageloader.cache.disc.impl.ext.DiskLruCache.get(Di skLruCache.java:414) at com.nostra13.universalimageloader.cache.disc.impl.ext.LruDiscCache.get(Lr uDiscCache.java:133) at com.nostra13.universalimageloader.core.ImageLoaderEngine$1.run(ImageLoade rEngine.java:72) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java :1112) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.jav a:587)
  3. 0

    [elasticsearch] elasticsearch couchdb-river startup issues - Grokbase

    grokbase.com | 8 months ago
    java.lang.IllegalArgumentException: URI can't be null. at sun.net.spi.DefaultProxySelector.select(DefaultProxySelector.java:141) at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:925) at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:849) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1299) at org.elasticsearch.river.couchdb.CouchdbRiver$Slurper.run(CouchdbRiver.java:468)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    java.lang.IllegalArgumentException: argument type mismatch... WHEN DEPLOYING SIMPLE Service Assembly with servicemix-bean

    apache.org | 1 year ago
    java.lang.IllegalArgumentException: argument type mismatch</loc-message> <stack-trace></stack-trace> </msg-loc-info> </exception-info> </task-result-details> </component-task-result-details> </component-task-result> at org.apache.servicemix.common.ManagementSupport.failure(ManagementSupport.java:46)[93:servicemix-common:2011.01.0.fuse-03-01] at org.apache.servicemix.common.AbstractDeployer.failure(AbstractDeployer.java:43)[93:servicemix-common:2011.01.0.fuse-03-01] at org.apache.servicemix.common.xbean.AbstractXBeanDeployer.deploy(AbstractXBeanDeployer.java:118)[93:servicemix-common:2011.01.0.fuse-03-01] at org.apache.servicemix.common.BaseServiceUnitManager.doDeploy(BaseServiceUnitManager.java:88)[93:servicemix-common:2011.01.0.fuse-03-01] at org.apache.servicemix.common.BaseServiceUnitManager.deploy(BaseServiceUnitManager.java:69)[93:servicemix-common:2011.01.0.fuse-03-01] at org.apache.servicemix.jbi.deployer.artifacts.ServiceUnitImpl.deploy(ServiceUnitImpl.java:104)[96:org.apache.servicemix.jbi.deployer:1.4.0.fuse-03-01] at org.apache.servicemix.jbi.deployer.impl.ServiceAssemblyInstaller.deploySUs(ServiceAssemblyInstaller.java:207)[96:org.apache.servicemix.jbi.deployer:1.4.0.fuse-03-01] at org.apache.servicemix.jbi.deployer.impl.ServiceAssemblyInstaller.install(ServiceAssemblyInstaller.java:85)[96:org.apache.servicemix.jbi.deployer:1.4.0.fuse-03-01] at org.apache.servicemix.jbi.deployer.impl.Deployer.onBundleStarted(Deployer.java:334)[96:org.apache.servicemix.jbi.deployer:1.4.0.fuse-03-01] at org.apache.servicemix.jbi.deployer.impl.Deployer.bundleChanged(Deployer.java:264)[96:org.apache.servicemix.jbi.deployer:1.4.0.fuse-03-01] at org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:919)[osgi-3.6.0.v20100517.jar:] at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:227)[osgi-3.6.0.v20100517.jar:] at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:149)[osgi-3.6.0.v20100517.jar:] at org.eclipse.osgi.framework.internal.core.Framework.publishBundleEventPrivileged(Framework.java:1349)[osgi-3.6.0.v20100517.jar:] at org.eclipse.osgi.framework.internal.core.Framework.publishBundleEvent(Framework.java:1300)[osgi-3.6.0.v20100517.jar:] at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:380)[osgi-3.6.0.v20100517.jar:] at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:284)[osgi-3.6.0.v20100517.jar:] at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:276)[osgi-3.6.0.v20100517.jar:] at org.apache.karaf.shell.osgi.RestartBundle.doExecute(RestartBundle.java:32)[27:org.apache.karaf.shell.osgi:2.1.6.fuse-01-01] at org.apache.karaf.shell.osgi.BundlesCommand.doExecute(BundlesCommand.java:49)[27:org.apache.karaf.shell.osgi:2.1.6.fuse-01-01] at org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:38)[14:org.apache.karaf.shell.console:2.1.6.fuse-01-01] at org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:35)[14:org.apache.karaf.shell.console:2.1.6.fuse-01-01] at org.apache.felix.gogo.runtime.shell.CommandProxy.execute(CommandProxy.java:50)[14:org.apache.karaf.shell.console:2.1.6.fuse-01-01] at org.apache.felix.gogo.runtime.shell.Closure.execute(Closure.java:229)[14:org.apache.karaf.shell.console:2.1.6.fuse-01-01] at org.apache.felix.gogo.runtime.shell.Closure.executeStatement(Closure.java:162)[14:org.apache.karaf.shell.console:2.1.6.fuse-01-01] at org.apache.felix.gogo.runtime.shell.Pipe.run(Pipe.java:101)[14:org.apache.karaf.shell.console:2.1.6.fuse-01-01] at org.apache.felix.gogo.runtime.shell.Closure.execute(Closure.java:79)[14:org.apache.karaf.shell.console:2.1.6.fuse-01-01] at org.apache.felix.gogo.runtime.shell.CommandSessionImpl.execute(CommandSessionImpl.java:71)[14:org.apache.karaf.shell.console:2.1.6.fuse-01-01] at org.apache.karaf.shell.console.jline.Console.run(Console.java:170)[14:org.apache.karaf.shell.console:2.1.6.fuse-01-01]
  6. 0

    JIRA - User - Error importing data: java.lang.IllegalArgumentException: Type numeric not

    nabble.com | 1 year ago
    java.lang.IllegalArgumentException: Type numeric not found I'm trying to upgrade from Jira 3.12.1-#229 to 3.13.2-#335. My "logs/catalina.out" looks like this:

    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