java.lang.IllegalArgumentException: tag mismatch, expected 1 got 2490

GitHub | mupet0000 | 6 months ago
  1. 0

    Failed Decode, retrieved files unreadable.

    GitHub | 6 months ago | mupet0000
    java.lang.IllegalArgumentException: tag mismatch, expected 1 got 2490
  2. 0

    market crashes on restoreTransactions()

    GitHub | 5 years ago | lorenx
    java.lang.IllegalArgumentException: Type mismatch type:null tag:1
  3. 0

    I have a simple UDT example and trying to use the Datastax Driver mapping feature. Here's my UDT: {code} cqlsh:umv> DESCRIBE TYPE umv.entitlement ; CREATE TYPE umv.entitlement ( name text, start_date timestamp, end_date timestamp ); {code} Here is my table: {code} cqlsh:umv> DESCRIBE TABLE household_entitlement; CREATE TABLE umv.household_entitlement ( household_id text, provider text, entitlement frozen<entitlement>, PRIMARY KEY ((household_id, provider)) ) {code} Which all works in CQLSH. Then from Java I have the following class to map the UDT to: {code} @UDT(name = "entitlement", keyspace = "umv") public static class Entitlement { @Field(name = "name") private String name; @Field(name = "start_date") private Date startDate; @Field(name = "end_date") private Date endDate; public String getName() { return name; } public Date getStartDate() { return startDate; } public Date getEndDate() { return endDate; } public void setName(String name) { this.name = name; } public void setStartDate(Date startDate) { this.startDate = startDate; } public void setEndDate(Date endDate) { this.endDate = endDate; } @Override public String toString() { return "Entitlement{" + "name='" + name + '\'' + ", startDate=" + startDate + ", endDate=" + endDate + "} " + super.toString(); } } {code} And then some code to select all from the table: {code} public static void main(String[] args) throws Exception { Cluster cluster = Cluster.builder().addContactPoint("192.168.10.10").build(); Session umvKeyspace = cluster.connect("umv"); UDTMapper<Entitlement> mapper = new MappingManager(umvKeyspace).udtMapper(Entitlement.class); ResultSet execute = umvKeyspace.execute("select * from household_entitlement"); for (Row row : execute) { UDTValue entitlement = row.getUDTValue("entitlement"); System.out.println(entitlement); System.out.println(mapper.fromUDT(entitlement)); } umvKeyspace.close(); cluster.close(); } {code} I get the following exception: {code} Exception in thread "main" java.lang.IllegalArgumentException: UDT conversion mismatch: expected type umv.entitlement, got umv.entitlement at com.datastax.driver.mapping.UDTMapper.fromUDT(UDTMapper.java:66) at UDTSpike.main(UDTSpike.java:22) {code} The versions are: {code} vagrant@cassandra-spark:~$ cqlsh Connected to Test Cluster at 192.168.10.10:9042. [cqlsh 5.0.1 | Cassandra 2.1.2 | CQL spec 3.2.0 | Native protocol v3] {code} However if i use 2.1.1 of the driver it works fine.

    DataStax JIRA | 2 years ago | Christopher Batey
    java.lang.IllegalArgumentException: UDT conversion mismatch: expected type umv.entitlement, got umv.entitlement
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    I have a simple UDT example and trying to use the Datastax Driver mapping feature. Here's my UDT: {code} cqlsh:umv> DESCRIBE TYPE umv.entitlement ; CREATE TYPE umv.entitlement ( name text, start_date timestamp, end_date timestamp ); {code} Here is my table: {code} cqlsh:umv> DESCRIBE TABLE household_entitlement; CREATE TABLE umv.household_entitlement ( household_id text, provider text, entitlement frozen<entitlement>, PRIMARY KEY ((household_id, provider)) ) {code} Which all works in CQLSH. Then from Java I have the following class to map the UDT to: {code} @UDT(name = "entitlement", keyspace = "umv") public static class Entitlement { @Field(name = "name") private String name; @Field(name = "start_date") private Date startDate; @Field(name = "end_date") private Date endDate; public String getName() { return name; } public Date getStartDate() { return startDate; } public Date getEndDate() { return endDate; } public void setName(String name) { this.name = name; } public void setStartDate(Date startDate) { this.startDate = startDate; } public void setEndDate(Date endDate) { this.endDate = endDate; } @Override public String toString() { return "Entitlement{" + "name='" + name + '\'' + ", startDate=" + startDate + ", endDate=" + endDate + "} " + super.toString(); } } {code} And then some code to select all from the table: {code} public static void main(String[] args) throws Exception { Cluster cluster = Cluster.builder().addContactPoint("192.168.10.10").build(); Session umvKeyspace = cluster.connect("umv"); UDTMapper<Entitlement> mapper = new MappingManager(umvKeyspace).udtMapper(Entitlement.class); ResultSet execute = umvKeyspace.execute("select * from household_entitlement"); for (Row row : execute) { UDTValue entitlement = row.getUDTValue("entitlement"); System.out.println(entitlement); System.out.println(mapper.fromUDT(entitlement)); } umvKeyspace.close(); cluster.close(); } {code} I get the following exception: {code} Exception in thread "main" java.lang.IllegalArgumentException: UDT conversion mismatch: expected type umv.entitlement, got umv.entitlement at com.datastax.driver.mapping.UDTMapper.fromUDT(UDTMapper.java:66) at UDTSpike.main(UDTSpike.java:22) {code} The versions are: {code} vagrant@cassandra-spark:~$ cqlsh Connected to Test Cluster at 192.168.10.10:9042. [cqlsh 5.0.1 | Cassandra 2.1.2 | CQL spec 3.2.0 | Native protocol v3] {code} However if i use 2.1.1 of the driver it works fine.

    DataStax JIRA | 2 years ago | Christopher Batey
    java.lang.IllegalArgumentException: UDT conversion mismatch: expected type umv.entitlement, got umv.entitlement
  6. 0

    h3. Summary When restoring a backup from JIRA Cloud to JIRA Server the import fails and the user is requested to import the backup again. \\ h3. Environment Migrating from JIRA Cloud to JIRA Server \\ h3. Steps to Reproduce # Export a backup from a JIRA Cloud instance where none of the avatars are .svg files. # Install JIRA Server 6.4.11. # Try to import a backup from Cloud (tested on 7.0.0-OD-02-247) into JIRA Server. h3. Expected Results The backup would be imported with no problems. h3. Actual Results The import fails and the user is prompted to re-import the data. The below exception is thrown in the atlassian-jira.log file: {noformat} 2015-09-12 04:08:18,224 JiraImportTaskExecutionThread-1 DEBUG roshan 247x213x1 stpbzd 10.148.71.82 /secure/admin/XmlRestore.jspa [mysema.query.sql.AbstractSQLQuery] query : select AVATAR.id from avatar AVATAR where AVATAR.avatartype = ? and AVATAR.systemavatar = ? and AVATAR.filename in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) 2015-09-12 04:08:18,232 JiraImportTaskExecutionThread-1 DEBUG roshan 247x213x1 stpbzd 10.148.71.82 /secure/admin/XmlRestore.jspa [query.sql.dml.SQLInsertClause] update project set avatar = ? where project.avatar in () 2015-09-12 04:08:18,250 JiraImportTaskExecutionThread-1 ERROR roshan 247x213x1 stpbzd 10.148.71.82 /secure/admin/XmlRestore.jspa [jira.bc.dataimport.DefaultDataImportService] Error importing data: java.lang.IllegalArgumentException: Expected 1 paths, but got 2 java.lang.IllegalArgumentException: Expected 1 paths, but got 2 at com.mysema.query.sql.dml.AbstractSQLClause.setParameters(AbstractSQLClause.java:102) at com.mysema.query.sql.dml.SQLUpdateClause.createStatement(SQLUpdateClause.java:113) at com.mysema.query.sql.dml.SQLUpdateClause.execute(SQLUpdateClause.java:154) at com.atlassian.jira.upgrade.tasks.DowngradeTask_Build70024$2.run(DowngradeTask_Build70024.java:188) at com.atlassian.jira.database.DbConnectionManagerImpl.execute(DbConnectionManagerImpl.java:122) at com.atlassian.jira.upgrade.tasks.DowngradeTask_Build70024.downgradeProjectIcons(DowngradeTask_Build70024.java:139) at com.atlassian.jira.upgrade.tasks.DowngradeTask_Build70024.downgrade(DowngradeTask_Build70024.java:103) at com.atlassian.jira.bc.dataimport.DowngradeWorker.runDowngradeTask(DowngradeWorker.java:158) at com.atlassian.jira.bc.dataimport.DowngradeWorker.downgrade(DowngradeWorker.java:94) at com.atlassian.jira.bc.dataimport.DefaultDataImportService.executeDowngradeTasks(DefaultDataImportService.java:860) at com.atlassian.jira.bc.dataimport.DefaultDataImportService.performImport(DefaultDataImportService.java:782) at com.atlassian.jira.bc.dataimport.DefaultDataImportService.doImport(DefaultDataImportService.java:332) at com.atlassian.jira.web.action.setup.DataImportAsyncCommand.call(DataImportAsyncCommand.java:65) at com.atlassian.jira.web.action.setup.DataImportAsyncCommand.call(DataImportAsyncCommand.java:28) at com.atlassian.jira.task.ImportTaskManagerImpl$TaskCallableDecorator.call(ImportTaskManagerImpl.java:177) at com.atlassian.jira.task.ImportTaskManagerImpl$TaskCallableDecorator.call(ImportTaskManagerImpl.java:148) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) 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) {noformat} h3. Notes Please see internal notes for data to reproduce the problem and further investigation. h3.Workaround # Extract the backup zip file; # Edit the {{entities.xml}} file; # Search for an entry of 'rocket.png'. It should look like the following: {code:XML} <Avatar id="XXXXX" fileName="rocket.png" contentType="image/png" avatarType="project" systemAvatar="1"/> {code} # Change it to: {code:XML} <Avatar id="XXXXX" fileName="default.svg" contentType="image/png" avatarType="project" systemAvatar="1"/> {code} # Save the file; # Zip the {{entities.xml}} and {{activeobjects.xml}} files again; # And try to restore the backup. (!) Make sure to provide a license key so you won't be affected by JRA-45187.

    Atlassian JIRA | 1 year ago | Matheus Fernandes
    java.lang.IllegalArgumentException: Expected 1 paths, but got 2

    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

      tag mismatch, expected 1 got 2490

      at com.github.horrorho.inflatabledonkey.data.der.DER.asApplicationSpecific()
    2. com.github.horrorho
      AssetTokenClient.lambda$assets$0
      1. com.github.horrorho.inflatabledonkey.data.der.DER.asApplicationSpecific(DER.java:121)[InflatableDonkey.jar:na]
      2. com.github.horrorho.inflatabledonkey.data.der.ProtectionInfo.<init>(ProtectionInfo.java:109)[InflatableDonkey.jar:na]
      3. com.github.horrorho.inflatabledonkey.data.der.DERUtils.parse(DERUtils.java:57)[InflatableDonkey.jar:na]
      4. com.github.horrorho.inflatabledonkey.data.der.DERUtils.parse(DERUtils.java:47)[InflatableDonkey.jar:na]
      5. com.github.horrorho.inflatabledonkey.pcs.xzone.ProtectionZoneAssistant.importProtectionInfo(ProtectionZoneAssistant.java:161)[InflatableDonkey.jar:na]
      6. com.github.horrorho.inflatabledonkey.pcs.xzone.ProtectionZone.newProtectionZone(ProtectionZone.java:123)[InflatableDonkey.jar:na]
      7. com.github.horrorho.inflatabledonkey.pcs.xzone.ProtectionZone.newProtectionZone(ProtectionZone.java:116)[InflatableDonkey.jar:na]
      8. com.github.horrorho.inflatabledonkey.cloud.clients.AssetTokenClient.asset(AssetTokenClient.java:94)[InflatableDonkey.jar:na]
      9. com.github.horrorho.inflatabledonkey.cloud.clients.AssetTokenClient.lambda$assets$0(AssetTokenClient.java:87)[InflatableDonkey.jar:na]
      9 frames
    3. Java RT
      ReferencePipeline.collect
      1. java.util.stream.ReferencePipeline$3$1.accept(Unknown Source)[na:1.8.0_91]
      2. java.util.stream.ReferencePipeline$3$1.accept(Unknown Source)[na:1.8.0_91]
      3. java.util.stream.ReferencePipeline$2$1.accept(Unknown Source)[na:1.8.0_91]
      4. java.util.ArrayList$ArrayListSpliterator.forEachRemaining(Unknown Source)[na:1.8.0_91]
      5. java.util.stream.AbstractPipeline.copyInto(Unknown Source)[na:1.8.0_91]
      6. java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source)[na:1.8.0_91]
      7. java.util.stream.ReduceOps$ReduceOp.evaluateSequential(Unknown Source)[na:1.8.0_91]
      8. java.util.stream.AbstractPipeline.evaluate(Unknown Source)[na:1.8.0_91]
      9. java.util.stream.ReferencePipeline.collect(Unknown Source)[na:1.8.0_91]
      9 frames
    4. com.github.horrorho
      Backup.assets
      1. com.github.horrorho.inflatabledonkey.cloud.clients.AssetTokenClient.assets(AssetTokenClient.java:90)[InflatableDonkey.jar:na]
      2. com.github.horrorho.inflatabledonkey.Backup.assets(Backup.java:113)[InflatableDonkey.jar:na]
      2 frames