You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been trying to create a .aasx file using this library, and attach a json file as a submodel. When I save the output of this code to a test.aasx file and try to unzip it using Archive Utility, instead of creating a test folder, it instead creates a test.aasx.cpgz which cannot be opened.
When trying to open an example .aasx file from the samples provided here using Archive Utility, it opens as expected and allows me to view the contents.
When trying to open the test.aasx file in Package explorer, it fails with the following error:
Inner message: While opening aasx C:\Users\HannesStiebitzhofer\AppData\Local\Temp\tmp7B2A.aasx from source local file: C:\Users\HannesStiebitzhofer\Dropbox\AASX\aas4.aasx buffered to: C:\Users\HannesStiebitzhofer\AppData\Local\Temp\tmp7B2A.aasx at \AdminShellPackageEnv.cs:line 456 gave: While reading the AASX C:\Users\HannesStiebitzhofer\AppData\Local\Temp\tmp7B2A.aasx at \AdminShellPackageEnv.cs:line 393 gave: Unable to find AASX origin. Aborting!
The aasx/aasx-origin file is where it should be, and contains the text: Intentionally empty..
I also tried running the tests in AASXSerializer and wrote the file that was generated and ran into the same issue.
I have tried this both with and without attaching the json as a submodel.
I am attaching the output .aasx in case it can help with debugging. I renamed the extension to .zip as github would not accept a .aasx file. I would appreciate any pointers if I am doing anything wrong. I am new to Java so my code may not be the best. Thanks! test2.zip
The text was updated successfully, but these errors were encountered:
When I save the output of this code to a test.aasx file and try to unzip it using Archive Utility, instead of creating a test folder, it instead creates a test.aasx.cpgz which cannot be opened.
This is most likely a quirk of the tool that you are using. Maybe the AASX Package Explorer provides some meta data that AAS4J is not providing. With other tools, e.g., 7zip, everything is behaving as expected.
When trying to open the test.aasx file in Package explorer, it fails with the following error:
I've been trying to create a
.aasx
file using this library, and attach ajson
file as a submodel. When I save the output of this code to atest.aasx
file and try to unzip it using Archive Utility, instead of creating atest
folder, it instead creates atest.aasx.cpgz
which cannot be opened.When trying to open an example
.aasx
file from the samples provided here using Archive Utility, it opens as expected and allows me to view the contents.When trying to open the
test.aasx
file in Package explorer, it fails with the following error:The
aasx/aasx-origin
file is where it should be, and contains the text:Intentionally empty.
.I also tried running the tests in
AASXSerializer
and wrote the file that was generated and ran into the same issue.Here is my code:
I have tried this both with and without attaching the
json
as a submodel.I am attaching the output
.aasx
in case it can help with debugging. I renamed the extension to.zip
as github would not accept a.aasx
file. I would appreciate any pointers if I am doing anything wrong. I am new to Java so my code may not be the best. Thanks!test2.zip
The text was updated successfully, but these errors were encountered: