there is an exist entity named student.now i used command line
jhipster entity student
to add a field birthday type of Instant.when i restart app after jhipster generate code,idea throw
2018-08-29 13:35:59.651 ERROR 12500 --- [mo-1-Executor-1]
i.g.j.c.liquibase.AsyncSpringLiquibase : Liquibase could not start
correctly, your database is NOT ready: Validation Failed:
1 change sets check sum
config/liquibase/changelog/20180829023724_added_entity_Student.xml::20180829023724-1::jhipster
was: 7:aba89ebafe84e997111f7ce081afc26c but is now:
7:7d10331a42bc3d1b3d90f86c2fc5ab2b
liquibase.exception.ValidationFailedException: Validation Failed:
1 change sets check sum
config/liquibase/changelog/20180829023724_added_entity_Student.xml::20180829023724-1::jhipster
was: 7:aba89ebafe84e997111f7ce081afc26c but is now:
7:7d10331a42bc3d1b3d90f86c2fc5ab2b
at
liquibase.changelog.DatabaseChangeLog.validate(DatabaseChangeLog.java:266)
at liquibase.Liquibase.update(Liquibase.java:210) at
liquibase.Liquibase.update(Liquibase.java:192) at
liquibase.integration.spring.SpringLiquibase.performUpdate(SpringLiquibase.java:431)
at
liquibase.integration.spring.SpringLiquibase.afterPropertiesSet(SpringLiquibase.java:388)
at
io.github.jhipster.config.liquibase.AsyncSpringLiquibase.initDb(AsyncSpringLiquibase.java:103)
at
io.github.jhipster.config.liquibase.AsyncSpringLiquibase.lambda$afterPropertiesSet$0(AsyncSpringLiquibase.java:83)
at
io.github.jhipster.async.ExceptionHandlingAsyncTaskExecutor.lambda$createWrappedRunnable$1(ExceptionHandlingAsyncTaskExecutor.java:68)
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)
and i cant save a new student at all,why?
Related
I am trying to store a graph created from Spark-dataframes with the project Cypher-for-Apache-Spark into neo4j.
When i run my code: which you can find it in the last comment in an issue in github
i get this error :
Exception in thread "main" org.neo4j.driver.v1.exceptions.DatabaseException: Unable to create CONSTRAINT ON ( ___neo4jgraphs874:___neo4jgraphs874 ) ASSERT ___neo4jgraphs874.___morpheusID IS UNIQUE:
Both Node(57) and Node(74) have the label `___neo4jgraphs874` and property `___morpheusID` = 4
any one knows why that happen ?
Solved here
I 've figured out what is the problem:
this error is fired because the dataframes have the same id numbers :
df1||df2||df3
0L||0L ||0L
1L||1L ||1L
2L||2L ||2L
to be fixed each dataframe need to have it's id differents from the other :
df1||df2||df3
0L||3L ||6L
1L||4L ||7L
2L||5L ||8L
We have created three custom field for the StockItem screen (see attached image).
Oz Custom Fields
We would like to search via the Web Services Endpoint (WSE) 5.30.001 using one of these CustomFields, to achieve this we created a new OzStockItem element in our WSE definition Oz WSE Definition and are attempting to use this via the following code.
var itemList = c.GetList(new OzStockItem { OzMinCount = new IntSearch { Condition = IntCondition.IsGreaterThan, Value = 0 } }, false).Cast<OzStockItem>();
However instead of getting back a list of the items that match the filter it is failing with the following error.
An unhandled exception of type 'System.ServiceModel.FaultException' occurred in mscorlib.dll
Additional information:
System.Web.Services.Protocols.SoapException: Server was unable to process request.
---> System.InvalidCastException: Specified cast is not valid.
at PX.Api.ContractBased.ExportTableToEntitiesMapper.<MapCustomFields>d__28.MoveNext()
at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
at PX.Api.ContractBased.ExportTableToEntitiesMapper.<MapEntitiesInner>d__26.MoveNext()
at PX.Api.ContractBased.ExportTableToEntitiesMapper.<MapEntities>d__25.MoveNext()
at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
at PX.Api.ContractBased.EntityService.GetList(EntityGateBase gate, String version, String name, EntityImpl entity, Boolean returnFullEntities, Boolean ignoreValueFields, PXGraph graph)
at PX.Api.ContractBased.Soap.EntityGate.GetList(Entity entity, Boolean returnFullEntities)
Please could someone advise what we are missing here?
I have a Dynamics CRM Plugin registered in "Pre Validation" and trigger on delete.
I have inside it a LINQ query that retrieve the maximum value of a date field of children records for a particular parent record.
Here is my code:
var q = (from e1 in serviceContext.CreateQuery<entity1>()
join e2 in serviceContext.CreateQuery<entity2>() on e1.typeid.Id equals e2.codeId
where e1.statecode == 0 && e1.ParentId.Id.Equals(new Guid(ParentGuidStr))
orderby e1.dt descending
select new {e1.dt, e2.code}).ToList();
I am getting the following error on the above query When the record that the plugin triggers on is INACTIVE:
PreValidateEntity1Delete PlugIn Error:
System.Reflection.TargetInvocationException: Exception has been thrown
by the target of an invocation. ---> System.ArgumentNullException:
Value cannot be null. Parameter name: g
I am NOT sure why I am getting the above error and if the link between an inactive children record and a parent record got broken in a LINQ query or there is another reason.
First, please ensure all children records have reference to parent record.
Then, change your where contidion into:
where e1.statecode == 0 && e1.ParentId != null && e1.ParentId.Id.Equals(new Guid(ParentGuidStr))
The problem is that an EntityReference field (e1.ParentId) may be null and when you tried access a null entity, the error appears.
Then because of that, you should also make sure e1.typeid is not null in the join condition too.
Or, you can try a workaround with 2 separate queries, and collect information from their results.
Good luck!
Sorry if this is a bit of a noob question but I'm not all that good with vb and I've been googling my issue all week and not finding a solution.
I'm trying to export a weekly data extract from SQL Server 2008 to a new (variably named) worksheet in an Excel workbook using SSIS.
My current set up is a script task that defines the excel sheet name to write to followed by an ODBC -> Excel transfer.
This is my script task (which passeses debugging every time);
Public Sub Main()
Dim vars As Variables
Dts.VariableDispenser.LockOneForWrite("SheetName", vars)
vars(0).Value = "Week_" & DatePart(DateInterval.WeekOfYear, Today())
vars.Unlock()
Dts.TaskResult = ScriptResults.Success
End Sub
I've got my user variable, SheetName, set to Package-wide with the Value set to WeekNew.
I have the package set to run in 32bit.
I've set the delay validation to True for the entire contents of container.
I was getting these error messages in the debug log yesterday;
Error: 0xC0202009 at Create Data Extract, Create Extract [804]:
SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80040E37.
Error: 0xC02020E8 at Create Data Extract, Create DQ Extract [804]:
Opening a rowset for "Week_30" failed. Check that the object exists in the database.
Error: 0xC004701A at Create Data Extract, SSIS.Pipeline: component "Create Extract" (804) failed the pre-execute phase and returned error code 0xC02020E8.
I can't remember what I changed yesterday, but now when it gets to the Excel Destination part of the export I get the following from the debug log;
Error: 0xC0202009 at Create Data Extract, Excel Destination [1045]: SSIS Error Code
DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80040E37.
Error: 0xC02020E8 at Create Data Extract, Excel Destination [1045]: Opening a rowset for "Week_30" failed. Check that the object exists in the database.
Error: 0xC004701A at Create Data Extract, SSIS.Pipeline: component "Excel Destination" (1045) failed the pre-execute phase and returned error code 0xC02020E8.
I really don't know what to do to fix this and it's starting to drive me nuts. Any advice anyone can give would be amazing, I am so out of my depth right now!
EDIT: I have tried creating the destiation in the excel file and writing to that but it still writes 0 rows.
EDIT: Having followed the tutorial that TMNT2014 posted, I've gotten the following error messages;
Error: 0xC001C012 at Foreach Loop Container: ForEach Variable Mapping number 1 to variable "User::WeekKey" cannot be applied.
Error: 0xC001C012 at Foreach Loop Container: ForEach Variable Mapping number 8 to variable "User::Ref_Number" cannot be applied.
Error: 0xC001C012 at Foreach Loop Container: ForEach Variable Mapping number 9 to variable "User::Ref_Number_2" cannot be applied.
Error: 0xC001C012 at Foreach Loop Container: ForEach Variable Mapping number 10 to variable "User::Ref_Number3" cannot be applied.
Error: 0xC001C012 at Foreach Loop Container: ForEach Variable Mapping number 11 to variable "User::Ref_Number4" cannot be applied.
Error: 0xC001C012 at Foreach Loop Container: ForEach Variable Mapping number 13 to variable "User::Status1" cannot be applied.
Error: 0xC001C012 at Foreach Loop Container: ForEach Variable Mapping number 14 to variable "User::Status2" cannot be applied.
Error: 0xC001C012 at Foreach Loop Container: ForEach Variable Mapping number 22 to variable "User::Region" cannot be applied.
Error: 0xC001C012 at Foreach Loop Container: ForEach Variable Mapping number 45 to variable "User::Date" cannot be applied.
There are 45 fields in my dataset, these are the only errors I'm getting and there's no additional info. I've checked online and haven't found anyone else that is JUST getting the variable mapping error (it's always in conjunction with something else) and no-one has had this issue using Rafael's example data. I can only assume that it's something to do with the source formatting of my data.
I have all 45 variables set to String, the create table statement creates each field as Varchar and I have a data conversion from Unicode string to non-unicode string in the export (because otherwise it fails on conversion). Any ideas?
The following is the config that I have used (and it works, I've checked!)
In a Sequence Container:
vb.net Script Task
Public Sub Main()
Dim vars As Variables
Dts.VariableDispenser.LockOneForWrite("SheetName", vars)
vars(0).Value = "Week_" & DatePart(DateInterval.WeekOfYear, Today())&"$"
vars.Unlock()
Dts.TaskResult = ScriptResults.Success
Entry Point = Main
No variables
Then a Data Flow Task
Made up of
OLEDB Source - Table or View
Data Conversion - Non Unicode to Unicode
Excel Destination - Table Name or Sheet Variable (User::SheetName)
The Variables I have in the package are:
CreateSheetStatement - Pretty sure this isn't being used any more but keeping it just in case I need it in future.
I've taken the Create table statement out due to data sensitivity, but you get the jist
"CREATE TABLE `"+ #[User::SheetName] + "`(ENTER CREATE TABLE STATEMENT HERE)"
SheetName
(DT_WSTR,5)"Week_" + (DT_STR,2,1252)DATEPART("week", getdate() )+"$"
XLFileRootDir
This one is used to define the datestamp at the end of the variable file name in the excel connection manager
In Excel, I've created the tabs for each Week Key and defined a named range on each tab which relates to the tab name (So, Tab Week_01 has a Named range for my data to land in which is called Week_01)
Thank you for all your help TMNT2014! :)
Hello fellow developer,iam getting error when running code above:
public void getConditioningQuery(String columnName,String value){
QueryResult<OrderedRows<String, String, String>> result =
(QueryResult<OrderedRows<String, String, String>>) new IndexedSlicesQuery<String, String, String>(keyspace, serializer, serializer, serializer)
.addEqualsExpression("state", "TI")
.setReturnKeysOnly()
.setColumnFamily(CF_NAME)
.setStartKey("")
.execute();
System.out.println("Result="+result.get().getList());
}
this method is to find row where state=TI.
i've added index in my column family and if i manual query in cassandra-cli,the data is show,but if im using the code using hector,im getting this error:
in my IDE=
345 [main] INFO me.prettyprint.cassandra.service.JmxMonitor - Registering JMX me.prettyprint.cassandra.service_MyCluster:ServiceType=hector,MonitorType=hector
867 [main] INFO me.prettyprint.cassandra.hector.TimingLogger - start[1306754734185] time[91] tag[WRITE.success_]
10926 [main] INFO me.prettyprint.cassandra.hector.TimingLogger - start[1306754734314] time[10021] tag[READ.fail_]
me.prettyprint.hector.api.exceptions.HTimedOutException: TimedOutException()
at me.prettyprint.cassandra.service.ExceptionsTranslatorImpl.translate(ExceptionsTranslatorImpl.java:32)
and in cassandra log=
ERROR 18:25:34,326 Fatal exception in thread Thread[ReadStage:102,5,main]
java.lang.AssertionError: No data found for NamesQueryFilter(columns=) in DecoratedKey(165611378069681836494944905825187619237, 73616e6a6f7578):QueryPath(columnFamilyName='user', superColumnName='null', columnName='null') (original filter NamesQueryFilter(columns=)) from expression 'user.state EQ TI'
at org.apache.cassandra.db.ColumnFamilyStore.scan(ColumnFamilyStore.java:1603)
at org.apache.cassandra.service.IndexScanVerbHandler.doVerb(IndexScanVerbHandler.java:42)
at org.apache.cassandra.net.MessageDeliveryTask.run(MessageDeliveryTask.java:72)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:680)
im so confuse because the error is tell if the data in column in column family user is not found,but if im using cassandra-cli,the data is shows..
im so confuse and still stuck here..maybe my method is wrong?somebody can help me telling me what is wrong?im still google to solve this problem..thanks for your attention and sorry for my bad english :D..
It looks like you're hitting CASSANDRA-2653 if you're using 0.8-rc1 or similar. This should be fixed in the current 0.8 branch.
You can't use setReturnKeysOnly with index queries, yet. This will be fixed in a future release (see the ticket Tyler linked); in the meantime, simply let it return one or more columns as a workaround.