StephenOTT / STIX-Java

STIX 2.x Java Library
MIT License
29 stars 13 forks source link

resolved to a type #110

Open hadesgrid opened 3 years ago

hadesgrid commented 3 years ago

Dear Sir, I am trying to implement the stix-java proyect but i am having lots of problems when referencing the classes. The following error is shown: ArchiveFileExtension cannot be resolved to a type in the src\main\java\io\digitalstate\stix\coo\extension\types\ArchiveFileExtensionExt.java I also have the same problem with other classes like Artifact, AttackPattern, AutonomousSystem, etc

could you help me to solve this problem Many thanks in advance Ana

hadesgrid commented 3 years ago

Hello Sephen, Could it be possible that the missing classes like AttackPattern are the Domain Objects ? I am trying to use the code and trying to guess what is missing thank you in advance

StephenOTT commented 3 years ago

Can you post a snippet of your code/class you are building.

Attack pattern is a Domain Object as per: https://github.com/StephenOTT/STIX-Java/blob/master/src/main/java/io/digitalstate/stix/sdo/objects/AttackPatternSdo.java#L36

hadesgrid commented 3 years ago

Hello Stephen, thank you for taking time to answer my questions. the problem that I have is that the AttackPattern class is missing

[image: image.png]

/**

} I have searched in the repository in case I did something wrong at the time of cloning but i can not find it ¿do i have to build the class with the AttackPattern attributes ?

kind regards Ana

On Mon, Jun 7, 2021 at 1:26 PM Stephen Russett @.***> wrote:

Can you post a snippet of your code/class you are building.

Attack pattern is a Domain Object as per: https://github.com/StephenOTT/STIX-Java/blob/master/src/main/java/io/digitalstate/stix/sdo/objects/AttackPatternSdo.java#L36

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/StephenOTT/STIX-Java/issues/110#issuecomment-855844857, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHLGNKG2QNO45BR3WY4FGFLTRSUE7ANCNFSM456IO6MA .

StephenOTT commented 3 years ago

If the class file: https://github.com/StephenOTT/STIX-Java/blob/master/src/main/java/io/digitalstate/stix/sdo/objects/AttackPatternSdo.java#L36 is missing from your cloned version then I would suggest to reclone.

Which branch did you clone from?

hadesgrid commented 3 years ago

Hello Stephen, the missing class I am referring to is AttackPattern.class. but this is just one of them, there are others like ArchiveFileExtension, Artifact.class,AttackPattern.class,AutonomousSystem.class that are also missing

[image: image.png]

On Thu, Jun 10, 2021 at 8:11 PM Stephen Russett @.***> wrote:

If the class file: https://github.com/StephenOTT/STIX-Java/blob/master/src/main/java/io/digitalstate/stix/sdo/objects/AttackPatternSdo.java#L36 is missing from your cloned version then I would suggest to reclone.

Which branch did you clone from?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/StephenOTT/STIX-Java/issues/110#issuecomment-858857637, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHLGNKBKPMFIEA3LIIXB3KDTSD537ANCNFSM456IO6MA .

hadesgrid commented 3 years ago

sorry the branch i have check out is dependabot/maven/org.hibernate.validator-hibernate-validator-6.0.20.Final https://github.com/StephenOTT/STIX-Java/tree/dependabot/maven/org.hibernate.validator-hibernate-validator-6.0.20.Final dependabot/maven/org.hibernate.validator-hibernate-validator-6.0.20.Final https://github.com/StephenOTT/STIX-Java/tree/dependabot/maven/org.hibernate.validator-hibernate-validator-6.0.20.Final Regards Ana

On Fri, Jun 11, 2021 at 7:55 AM Ana Gutierrez @.***> wrote:

Hello Stephen, the missing class I am referring to is AttackPattern.class. but this is just one of them, there are others like ArchiveFileExtension, Artifact.class,AttackPattern.class,AutonomousSystem.class that are also missing

[image: image.png]

On Thu, Jun 10, 2021 at 8:11 PM Stephen Russett @.***> wrote:

If the class file: https://github.com/StephenOTT/STIX-Java/blob/master/src/main/java/io/digitalstate/stix/sdo/objects/AttackPatternSdo.java#L36 is missing from your cloned version then I would suggest to reclone.

Which branch did you clone from?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/StephenOTT/STIX-Java/issues/110#issuecomment-858857637, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHLGNKBKPMFIEA3LIIXB3KDTSD537ANCNFSM456IO6MA .

hadesgrid commented 3 years ago

I have been tracing the commits to see where the classes were omitted and I found that, for example in the commit c15b925797d37c5c0c5f5b93a0e4ffd8fe93aaef [c15b925]

the class Bundle was removed but this class is still been use

On Fri, Jun 11, 2021 at 8:23 AM Ana Gutierrez @.***> wrote:

sorry the branch i have check out is dependabot/maven/org.hibernate.validator-hibernate-validator-6.0.20.Final https://github.com/StephenOTT/STIX-Java/tree/dependabot/maven/org.hibernate.validator-hibernate-validator-6.0.20.Final dependabot/maven/org.hibernate.validator-hibernate-validator-6.0.20.Final https://github.com/StephenOTT/STIX-Java/tree/dependabot/maven/org.hibernate.validator-hibernate-validator-6.0.20.Final Regards Ana

On Fri, Jun 11, 2021 at 7:55 AM Ana Gutierrez @.***> wrote:

Hello Stephen, the missing class I am referring to is AttackPattern.class. but this is just one of them, there are others like ArchiveFileExtension, Artifact.class,AttackPattern.class,AutonomousSystem.class that are also missing

[image: image.png]

On Thu, Jun 10, 2021 at 8:11 PM Stephen Russett @.***> wrote:

If the class file: https://github.com/StephenOTT/STIX-Java/blob/master/src/main/java/io/digitalstate/stix/sdo/objects/AttackPatternSdo.java#L36 is missing from your cloned version then I would suggest to reclone.

Which branch did you clone from?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/StephenOTT/STIX-Java/issues/110#issuecomment-858857637, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHLGNKBKPMFIEA3LIIXB3KDTSD537ANCNFSM456IO6MA .