Error does not compile xml by <xsd:simpleType> tag

I try to add a new list to my xml to generate some classes for a service, but when I add this xml fragment it gives me an error in the tags that are inside xsd:sequence all xsd:simpleType. This is the error message that tells me: s4s-elt-must-match.1: The content of ‘sequence’ must match (annotation?, (element… Read More Error does not compile xml by <xsd:simpleType> tag

AWS Lambda java.lang.ClassNotFoundException: com.opencsv.exceptions.CsvException

I am getting below mentioned error while running code on AWS lambda – START RequestId: cd42e5ab-fbc8-4f50-8c4f-e8257525bd78 Version: $LATEST Error loading method handler on class com.test.myapp: java.lang.NoClassDefFoundError java.lang.NoClassDefFoundError: com/opencsv/exceptions/CsvException at java.base/java.lang.Class.getDeclaredMethods0(Native Method) at java.base/java.lang.Class.privateGetDeclaredMethods(Unknown Source) at java.base/java.lang.Class.privateGetPublicMethods(Unknown Source) at java.base/java.lang.Class.getMethods(Unknown Source) Caused by: java.lang.ClassNotFoundException: com.opencsv.exceptions.CsvException. Current classpath: file:/var/task/ I am working on IntelliJ created a JAR… Read More AWS Lambda java.lang.ClassNotFoundException: com.opencsv.exceptions.CsvException

Update statement is no query?

How do I define the update statement in the orm.xml. I have it as a named-query and everything works, but my teacher said that an update statement isn’t a query. I have tried a native query, but that wasn’t working. ORM-Type: <?xml version="1.0" encoding="UTF-8"?> <entity-mappings version="1.0" xmlns="http://java.sun.com/xml/ns/persistence/orm&quot; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot; xsi:schemaLocation="http://java.sun.com/xml/ns/persistence/orm orm_1_0.xsd"> Update Statement: <named-query name="updateTshirts"> <query>… Read More Update statement is no query?

Cannot get child element from parsed XML javascript (google script)

I am trying to get child node, but it prints null. My code: function findFile(ICO){ var fileName = ICO + ‘.xml’; const folderFiles = DriveApp.getFolderById(‘folderID’).getFiles(); while (folderFiles.hasNext()) { var folderFile = folderFiles.next(); if(folderFile.getName() == fileName){ return folderFile.getId(); break; } } } function filesearch(ICO){ var fileId = findFile(ICO); var fileFound = DriveApp.getFileById(fileId).getBlob().getDataAsString(); var rawXml = XmlService.parse(fileFound);… Read More Cannot get child element from parsed XML javascript (google script)