Book a Demo

Author Topic: Ea can't explain some unicode string in diagram  (Read 5144 times)

qiuqiuqiu67

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Ea can't explain some unicode string in diagram
« on: August 16, 2012, 08:07:59 pm »
Dear Sparx:
     I am sorry to report a poblem that in the EA 8.0.858 some message in the Sequence Diagram will disappear.When the designer write the diagram,it is ok,but when he place the package which the diagram  belonged to other place,will receive a alarm that "Dao.field 3163 The field is too small to accept the amount of data you attempted to add"     One message will occur this problem like that "[ch25209][ch37327][ch33719][ch24471][ch25152][ch26377][ch22909][ch21451]N[ch22825][ch20869][ch26368][ch36817][ch29609][ch36807][ch30340][ch28216][ch25103][ch21015][ch34920][ch65292][ch25353][ch29992][ch25143]id[ch25490][ch24207]abcdefg"(The message is not longer than 255 chars).I can simulate this problem again.It seems that some unicode message will occur this problem
   I am very hopefully to receive your help,thanks very much.
                                                                                  Ike
« Last Edit: August 16, 2012, 08:12:42 pm by qiuqiuqiu67 »

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Ea can't explain some unicode string in diagra
« Reply #1 on: August 16, 2012, 09:07:34 pm »
Yep, we reported more or less the same problem.
The problem is that the name field for a message is only 256 characters. When the full signature of an operation exceeds this you get these type of problems.
I think you can locally fix it by increasing the size of the name column in t_connector.

Geert

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Ea can't explain some unicode string in diagra
« Reply #2 on: August 17, 2012, 12:01:25 am »
Quote
The message is not longer than 255 chars
The space available is measured in bytes. But 255 (Chinese) chars occupy definitely more than 255 bytes.

However, EA should check the size and issue a better error message.

q.
« Last Edit: August 17, 2012, 12:02:45 am by qwerty »

qiuqiuqiu67

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: Ea can't explain some unicode string in diagra
« Reply #3 on: August 17, 2012, 03:49:38 pm »
Thank you ,but  I think such message does not exceed than 255 chars beacause I find that only some default mssage can occur this problem.
eg: I change the message from "[ch25209][ch37327][ch33719][ch24471][ch25152][ch26377][ch22909][ch21451]N[ch22825][ch20869][ch26368][ch36817][ch29609][ch36807][ch30340][ch28216][ch25103][ch21015][ch34920][ch65292][ch25353][ch29992][ch25143]id[ch25490][ch24207]abcdefg" to "[ch25209][ch37327][ch33719][ch24471][ch25152][ch26377][ch22909][ch21451][ch19968][ch22825][ch20869][ch26368][ch36817][ch29609][ch36807][ch30340][ch28216][ch25103][ch21015][ch34920][ch65292][ch25353][ch29992][ch25143]id[ch25490][ch24207]abcdefg" (change the char N to chinese chars “[ch19968]”)[ch65292]the problem doesn't occur. I even make a more longer mesage, it can't occur this problem.additionally,normally a chinese chars ocupy 2 to 3 bytes,but the message is less than 35 chinese chars.
 ps: how to increasing the size of the name column in t_connector,thank you

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Ea can't explain some unicode string in diagra
« Reply #4 on: August 17, 2012, 04:18:33 pm »
Quote
ps: how to increasing the size of the name column in t_connector,thank you

Ask your DBA.

Geert

qiuqiuqiu67

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: Ea can't explain some unicode string in diagra
« Reply #5 on: August 17, 2012, 06:32:52 pm »
Thank you very much.but Please say more,thank you.
you mean that the EA save the diagram to db? so I should change some config of the db.but what db EA default used(I setup the EA without setup db)?To change the config,in the EA or the db?

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Ea can't explain some unicode string in diagra
« Reply #6 on: August 17, 2012, 06:56:20 pm »
EA saves all data to a database.
By default it saves to a .eap file, which is in fact an MS Access db.

Geert

qiuqiuqiu67

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: Ea can't explain some unicode string in diagra
« Reply #7 on: August 17, 2012, 08:10:09 pm »
but i never setup ms access before,so the acess db embeded by Ea?How could change the config?in Ea setup package,or system32 or reg table?Thanks very much.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Ea can't explain some unicode string in diagra
« Reply #8 on: August 17, 2012, 08:42:45 pm »
You need a native MS Access Client. Open the EAP with that. Alter the according column.

Alternatively write a script: Repository.Execute ("ALTER t_...")

(I don't have the alter-syntax at hand, but you DBA will)

q.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Ea can't explain some unicode string in diagra
« Reply #9 on: August 17, 2012, 11:42:10 pm »
If all this is confusing you, it is probably best not to mess around with the db structure and leave it up to Sparx support to help you out.

You can send them a bug report using the link on the bottom of the page.

Geert